@luxalgo/vela 0.8.3 → 0.8.5
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/dist/{DataProvider-oH78tYXL.d.ts → DataProvider-BUdlkx9I.d.ts} +1 -1
- package/dist/{DataProvider-wbtJ3-Sa.d.cts → DataProvider-DdqMxKdl.d.cts} +1 -1
- package/dist/{chunk-KWI3YDBW.js → chunk-ALTGHKIM.js} +584 -25
- package/dist/{chunk-TO3GIK7Z.js → chunk-AUOB7A5Y.js} +2 -2
- package/dist/{chunk-2IPXYM4B.js → chunk-BN4DNS3O.js} +114 -11
- package/dist/{chunk-VHGACEHO.js → chunk-I2U4NZD2.js} +7 -1
- package/dist/{chunk-HMHA733L.js → chunk-QYIO37K7.js} +2407 -829
- package/dist/{chunk-G7B7ZCBF.js → chunk-WY5H4S4I.js} +1 -1
- package/dist/{contributions-HGqnNb_P.d.ts → contributions-D8xuYc9U.d.cts} +91 -8
- package/dist/{contributions-BhOBRenr.d.cts → contributions-P9fBBuY1.d.ts} +91 -8
- package/dist/index.cjs +3064 -921
- package/dist/index.d.cts +25 -15
- package/dist/index.d.ts +25 -15
- package/dist/index.js +4 -4
- package/dist/{options-lMUwmRwh.d.cts → options-BI5Tp32b.d.cts} +100 -5
- package/dist/{options-lMUwmRwh.d.ts → options-BI5Tp32b.d.ts} +100 -5
- package/dist/{plugin-Do5J5xuF.d.cts → plugin-B8F1nor8.d.cts} +14 -8
- package/dist/{plugin-Cr2Pj8q8.d.ts → plugin-D5Z-Q6TX.d.ts} +14 -8
- package/dist/plugin.cjs +555 -17
- package/dist/plugin.d.cts +4 -4
- package/dist/plugin.d.ts +4 -4
- package/dist/plugin.js +2 -2
- package/dist/providers/binance.d.cts +2 -2
- package/dist/providers/binance.d.ts +2 -2
- package/dist/providers/coinbase.d.cts +2 -2
- package/dist/providers/coinbase.d.ts +2 -2
- package/dist/providers/hyperliquid.d.cts +2 -2
- package/dist/providers/hyperliquid.d.ts +2 -2
- package/dist/{statusline-model-CY1wzxHg.d.ts → statusline-model-CTwtDIca.d.cts} +19 -4
- package/dist/{statusline-model-B-2xGlB_.d.cts → statusline-model-D9kWC9X5.d.ts} +19 -4
- package/dist/ui.d.cts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +3071 -928
- package/dist/vela.global.min.js +125 -55
- package/dist/widget.cjs +3314 -1068
- package/dist/widget.d.cts +6 -6
- package/dist/widget.d.ts +6 -6
- package/dist/widget.js +7 -7
- package/dist/workspace.cjs +3314 -1068
- package/dist/workspace.d.cts +19 -5
- package/dist/workspace.d.ts +19 -5
- package/dist/workspace.js +6 -6
- package/package.json +1 -1
|
@@ -103,11 +103,20 @@ interface SeriesBase {
|
|
|
103
103
|
}
|
|
104
104
|
interface LineLikeSeries extends SeriesBase {
|
|
105
105
|
kind: LineLikeKind;
|
|
106
|
+
/**
|
|
107
|
+
* One entry per bar the indicator ran over, index-aligned to the bars: entry `i` draws on
|
|
108
|
+
* bar `i`, whatever its `time`. Entries past the last bar draw on the bar slots after it,
|
|
109
|
+
* one per slot, so a series shifted forward continues into the chart's right whitespace;
|
|
110
|
+
* give them the times those slots would have. A gap is a `value: null` entry.
|
|
111
|
+
*/
|
|
106
112
|
points: SeriesPoint[];
|
|
107
113
|
style: LineLikeStyle;
|
|
108
114
|
}
|
|
109
115
|
interface CandleSeries extends SeriesBase {
|
|
110
116
|
kind: 'candle' | 'bar';
|
|
117
|
+
/** One entry per bar the indicator ran over, index-aligned like `points`. A bar with no
|
|
118
|
+
* candle is an empty slot (or an entry with `NaN` prices): it draws nothing, and the
|
|
119
|
+
* candles after it stay on their own bars. Never compact the array to drop it. */
|
|
111
120
|
bars: OHLCV[];
|
|
112
121
|
style?: Partial<CandleStyle>;
|
|
113
122
|
/** Per-bar plotcandle/plotbar colours, aligned to `bars` by index (null ≡ use defaults). */
|
|
@@ -323,7 +332,8 @@ interface Pane {
|
|
|
323
332
|
kind: PaneKind;
|
|
324
333
|
/** Display order, top-to-bottom; the price pane is conventionally order 0. */
|
|
325
334
|
order: number;
|
|
326
|
-
/** Relative height weight among panes (the renderer normalizes).
|
|
335
|
+
/** Relative height weight among panes (the renderer normalizes). Omitted keeps the
|
|
336
|
+
* weight an existing pane already has; a new pane gets the renderer's default. */
|
|
327
337
|
heightWeight?: number;
|
|
328
338
|
title?: string;
|
|
329
339
|
}
|
|
@@ -613,6 +623,12 @@ type SeriesValueDelta = {
|
|
|
613
623
|
seriesId: string;
|
|
614
624
|
kind: 'bars';
|
|
615
625
|
bars: OHLCV[];
|
|
626
|
+
/**
|
|
627
|
+
* The series' per-bar colors (see `CandleSeries.barColors`), index-aligned to `bars`.
|
|
628
|
+
* Omitted keeps the current ones; the orchestrator always states them, `[]` included,
|
|
629
|
+
* so a run that emits no colors clears the previous set instead of leaving it on new bars.
|
|
630
|
+
*/
|
|
631
|
+
barColors?: Array<CandleBarColor | null>;
|
|
616
632
|
} | {
|
|
617
633
|
seriesId: string;
|
|
618
634
|
kind: 'markers';
|
|
@@ -848,6 +864,10 @@ interface DrawingStyle {
|
|
|
848
864
|
fillOpacity?: number;
|
|
849
865
|
arrowLeft?: boolean;
|
|
850
866
|
arrowRight?: boolean;
|
|
867
|
+
/** Run the line past its first anchor to the chart edge (trend line). */
|
|
868
|
+
extendLeft?: boolean;
|
|
869
|
+
/** Run the line past its second anchor to the chart edge (trend line). */
|
|
870
|
+
extendRight?: boolean;
|
|
851
871
|
}
|
|
852
872
|
/** A drawing's editable text/annotation block. */
|
|
853
873
|
interface DrawingText {
|
|
@@ -859,6 +879,10 @@ interface DrawingText {
|
|
|
859
879
|
vAlign: 'top' | 'center' | 'bottom';
|
|
860
880
|
bold?: boolean;
|
|
861
881
|
italic?: boolean;
|
|
882
|
+
/** Where a line's label sits along it (line tools); absent = the middle. */
|
|
883
|
+
place?: 'start' | 'middle' | 'end';
|
|
884
|
+
/** Which side of the line its label sits on (line tools); absent = above. */
|
|
885
|
+
side?: 'above' | 'below';
|
|
862
886
|
}
|
|
863
887
|
|
|
864
888
|
/**
|
|
@@ -884,6 +908,12 @@ interface SettingsField {
|
|
|
884
908
|
}>;
|
|
885
909
|
/** Cosmetic grouping in the popup. */
|
|
886
910
|
group?: 'line' | 'fill' | 'text' | 'behavior';
|
|
911
|
+
/** Only offered while another setting holds one of these values (an option that matters
|
|
912
|
+
* only in some modes). */
|
|
913
|
+
when?: {
|
|
914
|
+
path: string;
|
|
915
|
+
in: readonly unknown[];
|
|
916
|
+
};
|
|
887
917
|
}
|
|
888
918
|
interface SettingsSchema {
|
|
889
919
|
fields: SettingsField[];
|
|
@@ -899,7 +929,7 @@ interface SettingsSchema {
|
|
|
899
929
|
* The interactive user-drawing types. The lean-core set ships first; new types
|
|
900
930
|
* (fibs/patterns) extend the union + register a class — no base/port change.
|
|
901
931
|
*/
|
|
902
|
-
type DrawingTypeKey = 'trendline' | 'hline' | 'ray' | 'extendedline' | 'vline' | 'hray' | 'crossline' | 'infoline' | 'trendangle' | 'box' | 'text' | 'note' | 'pricenote' | 'comment' | 'pricelabel' | 'signpost' | 'parallelchannel' | 'disjointchannel' | 'flattopbottom' | 'regressionchannel' | 'anchoredvwap' | 'fixedrangevp' | 'pitchfork' | 'schiffpitchfork' | 'modifiedschiffpitchfork' | 'insidepitchfork' | 'arrow' | 'callout' | 'ellipse' | 'triangle' | 'polyline' | 'freehand' | 'highlighter' | 'circle' | 'rotatedrect' | 'path' | 'arc' | 'curve' | 'arrowmarkup' | 'arrowmarkdown' | 'flagmark' | 'iconstamp' | 'fibretracement' | 'fibextension' | 'fibextensiontrend' | 'fibfan' | 'fibtimezones' | 'fibchannel' | 'fibspeedfan' | 'trendfibtime' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibspiral' | 'gannfan' | 'gannbox' | 'gannsquare' | 'dedekind' | 'sonic' | 'supersonic' | 'goldensonic' | 'goldensupersonic' | 'datepricerange' | 'position' | 'magnifier' | 'xabcd' | 'abcd' | 'elliottimpulse' | 'elliottcorrection' | 'headshoulders' | 'gartley' | 'bat' | 'butterfly' | 'crab' | 'shark' | 'cypher';
|
|
932
|
+
type DrawingTypeKey = 'trendline' | 'hline' | 'ray' | 'extendedline' | 'vline' | 'hray' | 'crossline' | 'infoline' | 'trendangle' | 'box' | 'text' | 'note' | 'pricenote' | 'comment' | 'pricelabel' | 'signpost' | 'parallelchannel' | 'disjointchannel' | 'flattopbottom' | 'regressionchannel' | 'anchoredvwap' | 'fixedrangevp' | 'pitchfork' | 'schiffpitchfork' | 'modifiedschiffpitchfork' | 'insidepitchfork' | 'arrow' | 'callout' | 'ellipse' | 'triangle' | 'polyline' | 'freehand' | 'highlighter' | 'circle' | 'rotatedrect' | 'path' | 'arc' | 'curve' | 'arrowmarkup' | 'arrowmarkdown' | 'flagmark' | 'iconstamp' | 'fibretracement' | 'fibextension' | 'fibextensiontrend' | 'fibfan' | 'fibtimezones' | 'fibchannel' | 'fibspeedfan' | 'trendfibtime' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibspiral' | 'gannfan' | 'gannbox' | 'gannsquare' | 'dedekind' | 'sonic' | 'supersonic' | 'goldensonic' | 'goldensupersonic' | 'datepricerange' | 'position' | 'magnifier' | 'xabcd' | 'abcd' | 'elliottimpulse' | 'elliottcorrection' | 'headshoulders' | 'gartley' | 'bat' | 'butterfly' | 'crab' | 'shark' | 'cypher' | 'fairvaluegap' | 'orderblock' | 'liquidity';
|
|
903
933
|
/** One anchor's role + which axes its handle may move along. */
|
|
904
934
|
interface AnchorSlot {
|
|
905
935
|
role: string;
|
|
@@ -927,6 +957,8 @@ interface SerializedDrawing {
|
|
|
927
957
|
createdAt: number;
|
|
928
958
|
/** Per-type extras (e.g. box `extend`) — keeps the base closed. */
|
|
929
959
|
props?: Record<string, unknown>;
|
|
960
|
+
/** The timeframe bands the drawing shows on (see `TIMEFRAME_BANDS`); absent = every one. */
|
|
961
|
+
showOn?: string[];
|
|
930
962
|
}
|
|
931
963
|
/**
|
|
932
964
|
* The parent of every user drawing. Owns the shared state + settings/serialization
|
|
@@ -945,6 +977,8 @@ declare abstract class Drawing {
|
|
|
945
977
|
locked: boolean;
|
|
946
978
|
visible: boolean;
|
|
947
979
|
zIndex: number;
|
|
980
|
+
/** The timeframe bands the drawing shows on; `undefined` = every timeframe. */
|
|
981
|
+
showOn?: string[];
|
|
948
982
|
readonly createdAt: number;
|
|
949
983
|
constructor(init: Partial<SerializedDrawing> & {
|
|
950
984
|
paneId: string;
|
|
@@ -1085,6 +1119,24 @@ declare function buildToolbar(option: DrawingsOption | undefined): {
|
|
|
1085
1119
|
visible: boolean;
|
|
1086
1120
|
};
|
|
1087
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
* A tool's remembered settings — what the next drawing of that type starts from. Captured
|
|
1124
|
+
* from the last drawing of the type the user styled: its style, its text styling (never the
|
|
1125
|
+
* words themselves) and its per-type settings (`props`: fib levels, position sizing, profile
|
|
1126
|
+
* rows…). Geometry, lock, visibility and depth are per-drawing and never carried over.
|
|
1127
|
+
*/
|
|
1128
|
+
interface DrawingToolDefaults {
|
|
1129
|
+
style?: Partial<DrawingStyle>;
|
|
1130
|
+
text?: Partial<Omit<DrawingText, 'value'>>;
|
|
1131
|
+
props?: Record<string, unknown>;
|
|
1132
|
+
}
|
|
1133
|
+
/** A named, saved look for one tool (a "style"): applied, it sets the same settings a
|
|
1134
|
+
* remembered default does — style, text styling and per-type settings. */
|
|
1135
|
+
interface DrawingToolTemplate {
|
|
1136
|
+
name: string;
|
|
1137
|
+
settings: DrawingToolDefaults;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1088
1140
|
/**
|
|
1089
1141
|
* The renderer-local drawing MODES beyond an armed tool: the transient measure ruler,
|
|
1090
1142
|
* the eraser, or none. Mutually exclusive with each other and with any armed tool —
|
|
@@ -1140,6 +1192,19 @@ type DrawingIntent = {
|
|
|
1140
1192
|
kind: 'favorite';
|
|
1141
1193
|
type: DrawingTypeKey;
|
|
1142
1194
|
on: boolean;
|
|
1195
|
+
}
|
|
1196
|
+
/** The settings panel saved the drawing's look as a named style for its tool. */
|
|
1197
|
+
| {
|
|
1198
|
+
kind: 'template-save';
|
|
1199
|
+
type: DrawingTypeKey;
|
|
1200
|
+
name: string;
|
|
1201
|
+
settings: DrawingToolDefaults;
|
|
1202
|
+
}
|
|
1203
|
+
/** The settings panel deleted one of a tool's saved styles. */
|
|
1204
|
+
| {
|
|
1205
|
+
kind: 'template-remove';
|
|
1206
|
+
type: DrawingTypeKey;
|
|
1207
|
+
name: string;
|
|
1143
1208
|
} | {
|
|
1144
1209
|
kind: 'snap-mode';
|
|
1145
1210
|
mode: SnapMode;
|
|
@@ -1188,13 +1253,18 @@ interface IDrawingsRendererPort {
|
|
|
1188
1253
|
syncDrawings(docs: readonly SerializedDrawing[]): void;
|
|
1189
1254
|
/** Arm/disarm a tool (`null` = selection/idle, pan resumes). `lastStyle` is the
|
|
1190
1255
|
* tool's last-used style (if any) so the placement preview matches what will be
|
|
1191
|
-
* committed, rather than falling back to the type default
|
|
1192
|
-
|
|
1256
|
+
* committed, rather than falling back to the type default; `defaults` carries the
|
|
1257
|
+
* tool's whole remembered settings (style, text styling, per-type settings) for a
|
|
1258
|
+
* renderer that previews more than the style. */
|
|
1259
|
+
setActiveTool(type: DrawingTypeKey | null, lastStyle?: SerializedDrawing['style'], defaults?: DrawingToolDefaults): void;
|
|
1193
1260
|
/** Reflect which drawings are selected (drives handle painting); `[]` = none. */
|
|
1194
1261
|
setSelection(ids: readonly string[]): void;
|
|
1195
1262
|
/** Push the FAVORITE tool set (flyout stars + any favorites-driven UI). Optional —
|
|
1196
1263
|
* favorites still work headless without a renderer reflection. */
|
|
1197
1264
|
setFavorites?(types: readonly DrawingTypeKey[]): void;
|
|
1265
|
+
/** Push every tool's saved looks (the settings panel's style menu). Optional — the
|
|
1266
|
+
* styles still round-trip through the core without a renderer reflection. */
|
|
1267
|
+
setToolTemplates?(map: Readonly<Partial<Record<DrawingTypeKey, DrawingToolTemplate[]>>>): void;
|
|
1198
1268
|
/** Push per-tool shortcut hints — PRE-FORMATTED display strings (e.g. `'Alt+T'`)
|
|
1199
1269
|
* shown beside the tools in the toolbar flyouts. The host owns the keymap and the
|
|
1200
1270
|
* platform formatting; the renderer only displays. Optional. */
|
|
@@ -1456,6 +1526,9 @@ interface CrosshairEvent {
|
|
|
1456
1526
|
* horizontal level from the price pane). Optional and additive: a renderer that
|
|
1457
1527
|
* doesn't track panes omits it. */
|
|
1458
1528
|
paneKind?: 'price' | 'study' | null;
|
|
1529
|
+
/** The id of the pane under the cursor — the same id `chart.panes.list()` reports;
|
|
1530
|
+
* null off the plot. Optional and additive, like {@link paneKind}. */
|
|
1531
|
+
paneId?: string | null;
|
|
1459
1532
|
/** Value at the crosshair per series, keyed by stable series id. */
|
|
1460
1533
|
values: ReadonlyMap<string, number>;
|
|
1461
1534
|
/** The hovered price bar's OHLCV (null when the cursor is off any bar). */
|
|
@@ -1463,7 +1536,12 @@ interface CrosshairEvent {
|
|
|
1463
1536
|
}
|
|
1464
1537
|
interface ClickEvent {
|
|
1465
1538
|
time: Millis | null;
|
|
1539
|
+
/** Value at the click on its pane's scale, as {@link CrosshairEvent.price}. */
|
|
1466
1540
|
price: number | null;
|
|
1541
|
+
/** The kind of pane clicked; null off the plot. Optional — a renderer that doesn't track panes omits it. */
|
|
1542
|
+
paneKind?: 'price' | 'study' | null;
|
|
1543
|
+
/** The id of the pane clicked (as `chart.panes.list()` reports it); null off the plot. Optional. */
|
|
1544
|
+
paneId?: string | null;
|
|
1467
1545
|
}
|
|
1468
1546
|
/** A touch long-press on an axis strip — the mobile substitute for a right-click menu. */
|
|
1469
1547
|
interface AxisLongPressEvent {
|
|
@@ -1534,6 +1612,11 @@ type PaneAction = {
|
|
|
1534
1612
|
type: 'maximize';
|
|
1535
1613
|
paneId: string;
|
|
1536
1614
|
maximized: boolean;
|
|
1615
|
+
}
|
|
1616
|
+
/** The user finished resizing panes (a separator drag or reset); read the new weights back through `paneHeightWeight`. */
|
|
1617
|
+
| {
|
|
1618
|
+
type: 'resize';
|
|
1619
|
+
paneIds: string[];
|
|
1537
1620
|
};
|
|
1538
1621
|
/**
|
|
1539
1622
|
* The rendering backend abstraction. No backend (e.g. lightweight-charts) types
|
|
@@ -1621,6 +1704,14 @@ interface IChartRenderer {
|
|
|
1621
1704
|
setPaneCollapsed?(paneId: string, collapsed: boolean): void;
|
|
1622
1705
|
/** Maximize one pane to fill the plot, or restore the previous split (`null`). */
|
|
1623
1706
|
setPaneMaximized?(paneId: string | null): void;
|
|
1707
|
+
/**
|
|
1708
|
+
* Set a pane's height weight: panes share the plot height in proportion to their weights
|
|
1709
|
+
* (collapsed panes aside). The weight must survive later `ensurePane` calls that carry
|
|
1710
|
+
* none — only an explicit `heightWeight` replaces it.
|
|
1711
|
+
*/
|
|
1712
|
+
setPaneHeightWeight?(paneId: string, weight: number): void;
|
|
1713
|
+
/** A pane's current height weight, or null when the renderer has no such pane. */
|
|
1714
|
+
paneHeightWeight?(paneId: string): number | null;
|
|
1624
1715
|
/**
|
|
1625
1716
|
* The renderer reports a user-initiated pane action (from a pane hover button or a
|
|
1626
1717
|
* double-click). The host/core reflects it: `'remove'` tears down the pane's
|
|
@@ -2138,6 +2229,10 @@ interface PaneInfo {
|
|
|
2138
2229
|
order: number;
|
|
2139
2230
|
collapsed: boolean;
|
|
2140
2231
|
maximized: boolean;
|
|
2232
|
+
/** The pane's share of the plot height relative to the other panes (the price pane
|
|
2233
|
+
* defaults to 3, study panes to 1 on the native renderer). Absent on a renderer that
|
|
2234
|
+
* doesn't report pane sizes. */
|
|
2235
|
+
heightWeight?: number;
|
|
2141
2236
|
indicators: Array<{
|
|
2142
2237
|
id: string;
|
|
2143
2238
|
title: string;
|
|
@@ -2173,4 +2268,4 @@ interface AddIndicatorOptions {
|
|
|
2173
2268
|
title?: string;
|
|
2174
2269
|
}
|
|
2175
2270
|
|
|
2176
|
-
export { type DataWindowGroup as $, type AxisLongPressEvent as A, type ToolbarDefinition as B, type CrosshairEvent as C, Drawing as D, type MarketSnapshot as E, type AddIndicatorOptions as F, type AnimationConfig as G, type Background as H, type InputValue as I, type BoxFontFamily as J, type BoxHAlign as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type BoxTextSize as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type WallClock as W, type BoxVAlign as X, type CandleBarColor as Y, type CandleSeries as Z, type CandleStyle as _, type VisibleRange as a, type SeriesSurface as a$, type DataWindowOHLC as a0, type DataWindowRow as a1, type DirtyRange as a2, type DrawingBox as a3, type DrawingExtend as a4, type DrawingIntent as a5, type DrawingLabel as a6, type DrawingLine as a7, type DrawingLinefill as a8, type DrawingMode as a9, type MarkContentSource as aA, type MarkGlyph as aB, type MarkPanelItem as aC, type MarkShape as aD, type MarkerPoint as aE, type MarkerSeries as aF, type MarketSwitch as aG, type PaneAxis as aH, type PaneAxisBand as aI, type PaneHint as aJ, type PaneKind as aK, type PolylinePoint as aL, type PriceAxisOptions as aM, type PriceAxisTick as aN, type PriceAxisTickContext as aO, type PriceAxisTicksFn as aP, type PriceLine as aQ, type Projector as aR, type ProviderName as aS, type RendererConstructor as aT, type Scene as aU, type SchemaPatch as aV, SecondClock as aW, type SeriesDisplay as aX, type SeriesKind as aY, type SeriesPoint as aZ, type SeriesSpec as a_, type DrawingPoint as aa, type DrawingPolyline as ab, type DrawingSeriesBar as ac, type DrawingSeriesGateway as ad, type DrawingSeriesState as ae, type DrawingStyle as af, type DrawingTable as ag, type DrawingText as ah, type DrawingXLoc as ai, type DrawingsOption as aj, type Fill as ak, type FillGradientStop as al, type IndicatorMeta as am, type InputCondition as an, type InputSchema as ao, type InputType as ap, type InputWhen as aq, type IntroAnimation as ar, type IntroConfig as as, type IntroStyle as at, type LabelStyle as au, type LabelYLoc as av, type LineLikeKind as aw, type LineLikeSeries as ax, type LineLikeStyle as ay, type MarkContent as az, type VelaOptions as b, type SeriesValueDelta as b0, type SettingsField as b1, type SettingsSchema as b2, type SettingsVisibilityPolicy as b3, type TableCell as b4, type TableMerge as b5, type TablePosition as b6, type ToolbarGroupConfig as b7, type TradeExecution as b8, type ValuePatch as b9, buildToolbar as ba, defaultToolbar as bb, inputDeltas as bc, inputVisible as bd, seriesInScale as be, seriesShownOn as bf, type PaneInfo as bg, type VelaTheme as c, type MarketSession as d, type IChartRenderer as e, type RendererDisplayOptions as f, type IndicatorRenderHandle as g, type IndicatorStatus as h, type Pane as i, type PaneAction as j, type MoveTarget as k, type IndicatorModel as l, type ScenePatch as m, type SymbolPickerFn as n, type LegendActionView as o, type LegendCalloutView as p, type InputChangeEvent as q, type ClickEvent as r, type TimelineMark as s, type MarkGroup as t, type MarkClickEvent as u, type DataWindowReadout as v, type IDrawingsRendererPort as w, type Millis as x, type SnapMode as y, type DrawingTypeKey as z };
|
|
2271
|
+
export { type DataWindowGroup as $, type AxisLongPressEvent as A, type ToolbarDefinition as B, type CrosshairEvent as C, Drawing as D, type MarketSnapshot as E, type AddIndicatorOptions as F, type AnimationConfig as G, type Background as H, type InputValue as I, type BoxFontFamily as J, type BoxHAlign as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type BoxTextSize as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type WallClock as W, type BoxVAlign as X, type CandleBarColor as Y, type CandleSeries as Z, type CandleStyle as _, type VisibleRange as a, type SeriesSurface as a$, type DataWindowOHLC as a0, type DataWindowRow as a1, type DirtyRange as a2, type DrawingBox as a3, type DrawingExtend as a4, type DrawingIntent as a5, type DrawingLabel as a6, type DrawingLine as a7, type DrawingLinefill as a8, type DrawingMode as a9, type MarkContentSource as aA, type MarkGlyph as aB, type MarkPanelItem as aC, type MarkShape as aD, type MarkerPoint as aE, type MarkerSeries as aF, type MarketSwitch as aG, type PaneAxis as aH, type PaneAxisBand as aI, type PaneHint as aJ, type PaneKind as aK, type PolylinePoint as aL, type PriceAxisOptions as aM, type PriceAxisTick as aN, type PriceAxisTickContext as aO, type PriceAxisTicksFn as aP, type PriceLine as aQ, type Projector as aR, type ProviderName as aS, type RendererConstructor as aT, type Scene as aU, type SchemaPatch as aV, SecondClock as aW, type SeriesDisplay as aX, type SeriesKind as aY, type SeriesPoint as aZ, type SeriesSpec as a_, type DrawingPoint as aa, type DrawingPolyline as ab, type DrawingSeriesBar as ac, type DrawingSeriesGateway as ad, type DrawingSeriesState as ae, type DrawingStyle as af, type DrawingTable as ag, type DrawingText as ah, type DrawingXLoc as ai, type DrawingsOption as aj, type Fill as ak, type FillGradientStop as al, type IndicatorMeta as am, type InputCondition as an, type InputSchema as ao, type InputType as ap, type InputWhen as aq, type IntroAnimation as ar, type IntroConfig as as, type IntroStyle as at, type LabelStyle as au, type LabelYLoc as av, type LineLikeKind as aw, type LineLikeSeries as ax, type LineLikeStyle as ay, type MarkContent as az, type VelaOptions as b, type SeriesValueDelta as b0, type SettingsField as b1, type SettingsSchema as b2, type SettingsVisibilityPolicy as b3, type TableCell as b4, type TableMerge as b5, type TablePosition as b6, type ToolbarGroupConfig as b7, type TradeExecution as b8, type ValuePatch as b9, buildToolbar as ba, defaultToolbar as bb, inputDeltas as bc, inputVisible as bd, seriesInScale as be, seriesShownOn as bf, type PaneInfo as bg, type DrawingToolDefaults as bh, type DrawingToolTemplate as bi, type VelaTheme as c, type MarketSession as d, type IChartRenderer as e, type RendererDisplayOptions as f, type IndicatorRenderHandle as g, type IndicatorStatus as h, type Pane as i, type PaneAction as j, type MoveTarget as k, type IndicatorModel as l, type ScenePatch as m, type SymbolPickerFn as n, type LegendActionView as o, type LegendCalloutView as p, type InputChangeEvent as q, type ClickEvent as r, type TimelineMark as s, type MarkGroup as t, type MarkClickEvent as u, type DataWindowReadout as v, type IDrawingsRendererPort as w, type Millis as x, type SnapMode as y, type DrawingTypeKey as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aY as SeriesKind, c as VelaTheme } from './options-
|
|
2
|
-
import { f as DataControl } from './contributions-
|
|
1
|
+
import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aY as SeriesKind, c as VelaTheme } from './options-BI5Tp32b.cjs';
|
|
2
|
+
import { f as DataControl } from './contributions-D8xuYc9U.cjs';
|
|
3
3
|
import './side-panel-_2UK1gSm.cjs';
|
|
4
4
|
import './icons-BZYbJXSV.cjs';
|
|
5
5
|
import './keymap-CGOz5F5f.cjs';
|
|
6
|
-
import './DataProvider-
|
|
6
|
+
import './DataProvider-DdqMxKdl.cjs';
|
|
7
7
|
|
|
8
8
|
/** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
|
|
9
9
|
interface DrawingTypeMeta {
|
|
@@ -184,17 +184,23 @@ interface SeriesDataEngineHost {
|
|
|
184
184
|
}
|
|
185
185
|
/**
|
|
186
186
|
* A per-chart data engine behind a chart type: created on first entry into the style,
|
|
187
|
-
* suspended/resumed as the user switches styles,
|
|
187
|
+
* suspended/resumed as the user switches styles, replaced by a fresh engine when the
|
|
188
|
+
* market or the replay state changes, stopped when the chart is destroyed.
|
|
188
189
|
* All methods are fire-and-forget from the chart's point of view — the engine owns its
|
|
189
|
-
* own scheduling and pushes results through the host channels.
|
|
190
|
+
* own scheduling and pushes results through the host channels. The host forwards pushes
|
|
191
|
+
* only from the chart's current, unsuspended engine: work still in flight when the
|
|
192
|
+
* engine is suspended or stopped never reaches the scene.
|
|
190
193
|
*/
|
|
191
194
|
interface SeriesDataEngine {
|
|
192
195
|
start(host: SeriesDataEngineHost): void;
|
|
193
|
-
/** The style was left — stop fetching/pushing, keep state
|
|
196
|
+
/** The style was left, or a market switch began — stop fetching/pushing, keep state
|
|
197
|
+
* for a cheap resume. Host pushes are dropped from here until `resume()`. */
|
|
194
198
|
suspend(): void;
|
|
195
|
-
/** The style was re-entered
|
|
199
|
+
/** The style was re-entered — re-push what the layer shows (nothing pushed while
|
|
200
|
+
* suspended reached it). */
|
|
196
201
|
resume(): void;
|
|
197
|
-
/** The chart is going away — release everything.
|
|
202
|
+
/** The chart is going away, or the engine is being replaced — release everything.
|
|
203
|
+
* Its host drops every push from here on. */
|
|
198
204
|
stop(): void;
|
|
199
205
|
/** The visible range changed (pan/zoom) while the style is active. */
|
|
200
206
|
onViewport?(range: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aY as SeriesKind, c as VelaTheme } from './options-
|
|
2
|
-
import { f as DataControl } from './contributions-
|
|
1
|
+
import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aY as SeriesKind, c as VelaTheme } from './options-BI5Tp32b.js';
|
|
2
|
+
import { f as DataControl } from './contributions-P9fBBuY1.js';
|
|
3
3
|
import './side-panel-_2UK1gSm.js';
|
|
4
4
|
import './icons-BZYbJXSV.js';
|
|
5
5
|
import './keymap-CGOz5F5f.js';
|
|
6
|
-
import './DataProvider-
|
|
6
|
+
import './DataProvider-BUdlkx9I.js';
|
|
7
7
|
|
|
8
8
|
/** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
|
|
9
9
|
interface DrawingTypeMeta {
|
|
@@ -184,17 +184,23 @@ interface SeriesDataEngineHost {
|
|
|
184
184
|
}
|
|
185
185
|
/**
|
|
186
186
|
* A per-chart data engine behind a chart type: created on first entry into the style,
|
|
187
|
-
* suspended/resumed as the user switches styles,
|
|
187
|
+
* suspended/resumed as the user switches styles, replaced by a fresh engine when the
|
|
188
|
+
* market or the replay state changes, stopped when the chart is destroyed.
|
|
188
189
|
* All methods are fire-and-forget from the chart's point of view — the engine owns its
|
|
189
|
-
* own scheduling and pushes results through the host channels.
|
|
190
|
+
* own scheduling and pushes results through the host channels. The host forwards pushes
|
|
191
|
+
* only from the chart's current, unsuspended engine: work still in flight when the
|
|
192
|
+
* engine is suspended or stopped never reaches the scene.
|
|
190
193
|
*/
|
|
191
194
|
interface SeriesDataEngine {
|
|
192
195
|
start(host: SeriesDataEngineHost): void;
|
|
193
|
-
/** The style was left — stop fetching/pushing, keep state
|
|
196
|
+
/** The style was left, or a market switch began — stop fetching/pushing, keep state
|
|
197
|
+
* for a cheap resume. Host pushes are dropped from here until `resume()`. */
|
|
194
198
|
suspend(): void;
|
|
195
|
-
/** The style was re-entered
|
|
199
|
+
/** The style was re-entered — re-push what the layer shows (nothing pushed while
|
|
200
|
+
* suspended reached it). */
|
|
196
201
|
resume(): void;
|
|
197
|
-
/** The chart is going away — release everything.
|
|
202
|
+
/** The chart is going away, or the engine is being replaced — release everything.
|
|
203
|
+
* Its host drops every push from here on. */
|
|
198
204
|
stop(): void;
|
|
199
205
|
/** The visible range changed (pan/zoom) while the style is active. */
|
|
200
206
|
onViewport?(range: {
|