@magmonium/one 0.4.89 → 0.4.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -12301,12 +12301,16 @@ interface LaneLabel {
|
|
|
12301
12301
|
/** Items sharing this label, left to right; more than one when merged. */
|
|
12302
12302
|
keys: string[];
|
|
12303
12303
|
}
|
|
12304
|
+
/** A label's span along the axis, `[start, end]` in px, from its keys and anchor. */
|
|
12305
|
+
type LaneExtent = (keys: readonly string[], x: number) => readonly [number, number];
|
|
12304
12306
|
/**
|
|
12305
12307
|
* Lays axis labels into two lanes by pixel collision: a label too close to
|
|
12306
12308
|
* the last one on the first lane drops to the second; when both are taken it
|
|
12307
|
-
* joins the nearer neighbour as one merged label ("SMA 50 · 100").
|
|
12309
|
+
* joins the nearer neighbour as one merged label ("SMA 50 · 100"). With
|
|
12310
|
+
* `extent`, the gap is measured between label edges, not anchors — a merged
|
|
12311
|
+
* label is measured again, so it blocks by its grown width.
|
|
12308
12312
|
*/
|
|
12309
|
-
export declare const layoutLanes: (items: readonly LaneItem[], minGapPx: number) => LaneLabel[];
|
|
12313
|
+
export declare const layoutLanes: (items: readonly LaneItem[], minGapPx: number, extent?: LaneExtent) => LaneLabel[];
|
|
12310
12314
|
/** `line` — one price axis. `list` — rows, highest first. `auto` — list under 360px. */
|
|
12311
12315
|
type PriceLadderVariant = 'line' | 'list' | 'auto';
|
|
12312
12316
|
/** `level` — a tick (SMA, EMA). `bound` — a range end-cap (52-week low/high).
|
|
@@ -12733,6 +12737,8 @@ type ScaleCompareOp = 'gt' | 'gte' | 'lt' | 'lte' | 'within' | 'beyond';
|
|
|
12733
12737
|
type ScaleOperandKind = 'mark' | 'fixed' | 'pct';
|
|
12734
12738
|
type ScaleCombineMode = 'all' | 'any' | 'not';
|
|
12735
12739
|
interface Mark {
|
|
12740
|
+
/** Unique within the scale (tag position): `key` may be unset or repeated. */
|
|
12741
|
+
id: string;
|
|
12736
12742
|
key: string;
|
|
12737
12743
|
name: string;
|
|
12738
12744
|
value: number;
|