T16 Finance: market charts with kinds, volume, profile, studies, drawings, compare, alerts and sync (T16a–b); quotes, book, tape and DOM (T16c); order entry, blotter, risk, options and payoff (T16d); markets, calendars, portfolio and wallet (T16e); typography::Ellipsis ends lines that gpui's truncate clipped; chart notes stack and ticks label round values
This commit is contained in:
76 files changed
+10311
-173
No files matched your search
@@ -16,7 +16,7 @@ use gpui::{
|
||||
|
||||
use crate::{
|
||||
probe::probe,
|
||||
ui::{keep, section, set},
|
||||
ui::{keep, noise, section, set},
|
||||
};
|
||||
|
||||
pub fn plain(cx: &mut App) -> impl IntoElement + use<> {
|
||||
@@ -49,17 +49,6 @@ const PEOPLE: [&str; 10] = [
|
||||
];
|
||||
const REGIONS: [&str; 4] = ["Europe", "Americas", "Asia", "Oceania"];
|
||||
|
||||
/// A steady pseudo-random series, so captures repeat.
|
||||
fn noise(seed: u64) -> impl FnMut() -> f64 {
|
||||
let mut state = seed;
|
||||
move || {
|
||||
state = state
|
||||
.wrapping_mul(6364136223846793005)
|
||||
.wrapping_add(1442695040888963407);
|
||||
(state >> 33) as f64 / (1u64 << 31) as f64
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn order_rows() -> Vec<Row> {
|
||||
let mut next = noise(7);
|
||||
(0..24)
|
||||
|
||||
Reference in new issue
Block a user