@luxalgo/vela 0.6.3 → 0.6.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.
Files changed (45) hide show
  1. package/dist/{DataProvider-DHX4x6-r.d.ts → DataProvider-BmHkcwvJ.d.ts} +1 -1
  2. package/dist/{DataProvider-CNmk84SH.d.cts → DataProvider-DrN7ZIou.d.cts} +1 -1
  3. package/dist/{chunk-TP56QRMK.js → chunk-2R7BANEM.js} +1 -1
  4. package/dist/{chunk-7Y7CJ7EN.js → chunk-BEJ57HP4.js} +8 -1
  5. package/dist/{chunk-7D6YIF34.js → chunk-FQBT4NFM.js} +431 -74
  6. package/dist/{chunk-U5KCQHAC.js → chunk-N6MBJHMV.js} +129 -41
  7. package/dist/{chunk-QHZ7IXFL.js → chunk-OICPLNU7.js} +59 -9
  8. package/dist/{contributions-DDpv7hEL.d.cts → contributions-2bEmCF9S.d.cts} +2 -2
  9. package/dist/{contributions-ciV6Neyd.d.ts → contributions-DatoAzMx.d.ts} +2 -2
  10. package/dist/{history-CFqZm5re.d.ts → history-BmyjaVir.d.cts} +6 -6
  11. package/dist/{history-ChoT34nz.d.cts → history-CvOtsjT5.d.ts} +6 -6
  12. package/dist/index.cjs +500 -85
  13. package/dist/index.d.cts +63 -9
  14. package/dist/index.d.ts +63 -9
  15. package/dist/index.js +4 -4
  16. package/dist/{options-BqGeFHtp.d.ts → options-YdiaaVjt.d.cts} +20 -1
  17. package/dist/{options-BqGeFHtp.d.cts → options-YdiaaVjt.d.ts} +20 -1
  18. package/dist/{plugin-C97gUCVf.d.ts → plugin-Bcone6Vh.d.ts} +9 -5
  19. package/dist/{plugin-CSb_sTiN.d.cts → plugin-DO_DX0gp.d.cts} +9 -5
  20. package/dist/plugin.cjs +8 -0
  21. package/dist/plugin.d.cts +4 -4
  22. package/dist/plugin.d.ts +4 -4
  23. package/dist/plugin.js +2 -2
  24. package/dist/providers/binance.d.cts +2 -2
  25. package/dist/providers/binance.d.ts +2 -2
  26. package/dist/providers/coinbase.d.cts +2 -2
  27. package/dist/providers/coinbase.d.ts +2 -2
  28. package/dist/providers/hyperliquid.d.cts +2 -2
  29. package/dist/providers/hyperliquid.d.ts +2 -2
  30. package/dist/ui.cjs +59 -9
  31. package/dist/ui.d.cts +10 -2
  32. package/dist/ui.d.ts +10 -2
  33. package/dist/ui.js +2 -2
  34. package/dist/vela.global.js +500 -85
  35. package/dist/vela.global.min.js +84 -47
  36. package/dist/widget.cjs +801 -227
  37. package/dist/widget.d.cts +34 -8
  38. package/dist/widget.d.ts +34 -8
  39. package/dist/widget.js +145 -73
  40. package/dist/workspace.cjs +756 -178
  41. package/dist/workspace.d.cts +29 -5
  42. package/dist/workspace.d.ts +29 -5
  43. package/dist/workspace.js +143 -67
  44. package/package.json +1 -1
  45. /package/dist/{chunk-Q3XQHLIH.js → chunk-AOGZBKUE.js} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { D as DrawingsDocument, R as Resolved } from './contributions-DDpv7hEL.cjs';
2
- export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-DDpv7hEL.cjs';
3
- import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent, q as ClickEvent, A as AxisLongPressEvent, a as VisibleRange, r as DataWindowReadout, s as IDrawingsRendererPort, t as Millis, u as SnapMode, v as DrawingTypeKey, w as ToolbarDefinition, M as MarketConfig } from './options-BqGeFHtp.cjs';
4
- export { x as AddIndicatorOptions, B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, K as DataWindowGroup, Q as DataWindowOHLC, W as DataWindowRow, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, _ as DrawingIntent, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a2 as DrawingMode, a3 as DrawingPoint, a4 as DrawingPolyline, a5 as DrawingStyle, a6 as DrawingTable, a7 as DrawingText, a8 as DrawingXLoc, a9 as DrawingsOption, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, ad as InputSchema, ae as InputType, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, ak as MarkerPoint, al as MarkerSeries, am as MarketSnapshot, an as MarketSwitch, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, as as Projector, at as ProviderName, au as RendererConstructor, av as Scene, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aB as SettingsField, aC as SettingsSchema, aD as TableCell, aE as TableMerge, aF as TablePosition, aG as ToolbarGroupConfig, aH as TradeExecution, aI as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aJ as buildToolbar, aK as defaultToolbar } from './options-BqGeFHtp.cjs';
5
- import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-CNmk84SH.cjs';
6
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-CSb_sTiN.cjs';
1
+ import { D as DrawingsDocument, R as Resolved } from './contributions-2bEmCF9S.cjs';
2
+ export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-2bEmCF9S.cjs';
3
+ import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent, q as ClickEvent, A as AxisLongPressEvent, a as VisibleRange, r as DataWindowReadout, s as IDrawingsRendererPort, t as Millis, u as SnapMode, v as DrawingTypeKey, w as ToolbarDefinition, M as MarketConfig } from './options-YdiaaVjt.cjs';
4
+ export { x as AddIndicatorOptions, B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, K as DataWindowGroup, Q as DataWindowOHLC, W as DataWindowRow, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, _ as DrawingIntent, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a2 as DrawingMode, a3 as DrawingPoint, a4 as DrawingPolyline, a5 as DrawingStyle, a6 as DrawingTable, a7 as DrawingText, a8 as DrawingXLoc, a9 as DrawingsOption, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, ad as InputCondition, ae as InputSchema, af as InputType, ag as InputWhen, ah as LabelStyle, ai as LabelYLoc, aj as LineLikeKind, ak as LineLikeSeries, al as LineLikeStyle, am as MarkerPoint, an as MarkerSeries, ao as MarketSnapshot, ap as MarketSwitch, aq as PaneHint, ar as PaneKind, as as PolylinePoint, at as PriceLine, au as Projector, av as ProviderName, aw as RendererConstructor, ax as Scene, ay as SchemaPatch, az as SeriesKind, aA as SeriesPoint, aB as SeriesSpec, aC as SeriesValueDelta, aD as SettingsField, aE as SettingsSchema, aF as TableCell, aG as TableMerge, aH as TablePosition, aI as ToolbarGroupConfig, aJ as TradeExecution, aK as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aL as buildToolbar, aM as defaultToolbar, aN as inputVisible } from './options-YdiaaVjt.cjs';
5
+ import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-DrN7ZIou.cjs';
6
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-DO_DX0gp.cjs';
7
7
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.cjs';
8
8
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.cjs';
9
9
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
@@ -129,6 +129,12 @@ interface BaselineSeriesStyle {
129
129
  /** Baseline position as a percent of the visible pane price range (0 = low, 100 = high). */
130
130
  baselineLevel: number;
131
131
  }
132
+ /** Session-zone shading (the `sessionZones` feature): the wash painted over
133
+ * pre-market and post-market time bands. Alpha belongs in the color itself. */
134
+ interface SessionShadeStyle {
135
+ premarketColor: string;
136
+ postmarketColor: string;
137
+ }
132
138
  interface ChartStyle {
133
139
  /** Per-chart-type settings (plugin SDK sections), keyed by type id then row key. */
134
140
  chartTypes: Record<string, Record<string, unknown>>;
@@ -146,6 +152,7 @@ interface ChartStyle {
146
152
  line: LineSeriesStyle;
147
153
  area: AreaSeriesStyle;
148
154
  baseline: BaselineSeriesStyle;
155
+ sessions: SessionShadeStyle;
149
156
  }
150
157
  interface ChartConfig {
151
158
  version: number;
@@ -249,6 +256,12 @@ interface ChartConfig {
249
256
  * center-to-center pitch (and the crosshair step) without changing body width. 1 = default. */
250
257
  spacing: number;
251
258
  };
259
+ /** Session-zone shading — the washes painted over the pre/post-market bands a host
260
+ * pushes through the `sessionZones` feature (no bands ⇒ the colors are dormant). */
261
+ sessions: {
262
+ premarketColor: string;
263
+ postmarketColor: string;
264
+ };
252
265
  /** Draw-order keys — what paints in front of what. The candles' own key plus one per
253
266
  * indicator id; user drawings persist their keys in the drawings document, in the same
254
267
  * space, so a saved chart keeps a drawing under the candles or between two indicators. */
@@ -270,7 +283,8 @@ interface ChartConfig {
270
283
  * dependency-free and themed to match the chart, mirroring `InputsUI`.
271
284
  */
272
285
  /** A host-contributed settings row: callback-based (the host owns the state).
273
- * `heading` opens a titled group inside the tab (an in-pane section title). */
286
+ * `heading` opens a titled group inside the tab (an in-pane section title);
287
+ * `color` is a swatch opening the themed picker (any CSS color, alpha included). */
274
288
  type HostSettingsRow = {
275
289
  kind: 'heading';
276
290
  label: string;
@@ -285,6 +299,11 @@ type HostSettingsRow = {
285
299
  options: readonly string[];
286
300
  get: () => string;
287
301
  set: (v: string) => void;
302
+ } | {
303
+ kind: 'color';
304
+ label: string;
305
+ get: () => string;
306
+ set: (v: string) => void;
288
307
  };
289
308
  /** A host-contributed settings tab (see `RendererControl.setSettingsSections`). */
290
309
  interface HostSettingsSection {
@@ -323,6 +342,8 @@ declare class NativeRenderer implements IChartRenderer {
323
342
  private readonly volumeRenderer;
324
343
  /** SDK renderer layers instantiated at mount ({@link registerRendererLayer}). */
325
344
  private extLayers;
345
+ /** Last applied layer-canvas order (ids below + above the data canvas) — re-slotted only on change. */
346
+ private layerOrderSig;
326
347
  private attributionEl;
327
348
  private attributionEnabled;
328
349
  /** Host-supplied mark shown INSTEAD of the built-in one (`attribution: '<html>'`). */
@@ -403,6 +424,7 @@ declare class NativeRenderer implements IChartRenderer {
403
424
  private maximizedPaneId;
404
425
  private rightAxisW;
405
426
  private paneControls;
427
+ private axisScaleButtons;
406
428
  private readonly paneActionCbs;
407
429
  private hoverLogical;
408
430
  private settingsDialog;
@@ -780,6 +802,8 @@ declare class NativeRenderer implements IChartRenderer {
780
802
  private renderFrame;
781
803
  /** Repaint the SDK layers that opted into cursor tracking (their own canvas only). */
782
804
  private repaintCursorLayers;
805
+ /** Blank one SDK layer canvas (a collapsed host pane suppresses the layer's painting). */
806
+ private clearLayerCanvas;
783
807
  /** One frame's args for an SDK renderer layer (shared by the data + cursor paint paths). */
784
808
  private extLayerArgs;
785
809
  /** Paint the below-data (L-1) + geometry (L0) + chrome (L1) layers from the current scene/coords. */
@@ -837,20 +861,50 @@ declare class NativeRenderer implements IChartRenderer {
837
861
  private paneMasterTitle;
838
862
  /** The pane a bespoke-layer native indicator (volume/vpvr) currently lives in (null = not mounted). */
839
863
  private nativeLayerPane;
864
+ /** The mounted native indicator that OWNS an SDK layer — the one whose type equals the
865
+ * layer id (the id doubles as the data channel, so the pairing is the SDK's own
866
+ * contract). Null for chart-type channels and while the owner is hidden (a hidden
867
+ * indicator leaves the scene; its cleared data channel paints nothing anyway). */
868
+ private layerOwner;
869
+ /** The pane an SDK layer paints on: its owner's pane, else the price pane. */
870
+ private layerPane;
871
+ /** The SDK layer canvases split around the data canvas, each side back-to-front:
872
+ * owned layers by their owner's z key against the candles' (an indicator restacked
873
+ * below the candles takes its layer canvas along), unowned by declared placement. */
874
+ private orderedLayerCanvases;
875
+ /** The full canvas pile in paint order (layers + data/volume/vpvr) — what the DOM
876
+ * stacking and the screenshot compositor must both follow. */
877
+ private canvasPile;
878
+ /** Re-slot the SDK layer canvases in the plot when the computed order changed (a z
879
+ * write, a restored config, an indicator mount/remove/restack). Runs at the top of
880
+ * every data frame; a no-op when the signature is unchanged. Re-inserting an
881
+ * absolutely-positioned, pointer-transparent canvas repaints nothing by itself. */
882
+ private syncLayerCanvasOrder;
840
883
  /** True when an active volume layer is this study pane's ONLY content — so its scale should
841
884
  * come from volume, not the empty {0,1} placeholder. (In the price pane, or alongside a real
842
885
  * series, volume stays a bottom overlay and the master scale wins.) */
843
886
  private volumeOwnsPane;
887
+ /** True when this study pane's master content is only SDK-layer natives (series-less
888
+ * models whose type names a mounted layer) — its scale then follows the visible bars
889
+ * (see the call site). Any real master series takes over the scale as usual. */
890
+ private layerNativesOwnPane;
844
891
  /** Per-pane scale state for a host UI (e.g. a price-axis context menu): the pane's pixel
845
892
  * band (`top`/`height`, so a click y maps to a pane) plus its current axis `mode`/`log`.
846
893
  * Top-to-bottom order. Every pane is independent — the price pane from the scene setting,
847
894
  * study panes from their own. */
848
895
  private paneScaleInfos;
896
+ /** Thin projection of the panes for the axis A/L hover buttons (top-to-bottom order). */
897
+ private axisScaleViews;
898
+ /** Toggle one pane's autoscale (the A axis button): off freezes the current window into
899
+ * manual mode, on drops it — the per-pane twin of the chart-level `autoScale` feature. */
900
+ private togglePaneAuto;
849
901
  /** Set one pane's axis mode. The price pane routes to the scene-level setting (persisted +
850
902
  * keyboard shortcuts); a study pane keeps its own, so panes never affect each other. */
851
903
  private setPaneScaleMode;
852
- /** Set one pane's logarithmic flag. Clears that pane's frozen (manual) window so the new
853
- * space re-fits, and routes the price pane to the scene-level flag. */
904
+ /** Set one pane's logarithmic flag; the price pane routes to the scene-level flag.
905
+ * Log and auto are INDEPENDENT: a frozen (manual) window is kept — its price bounds
906
+ * stay put and only its `log` tag flips, so the same range re-renders in the new
907
+ * space instead of snapping back to autoscale. */
854
908
  private setPaneLog;
855
909
  /** Flip one pane's axis (high at the bottom). The price pane routes to the scene-level flag
856
910
  * (persisted with the chart config); study panes keep their own so panes stay independent. */
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { D as DrawingsDocument, R as Resolved } from './contributions-ciV6Neyd.js';
2
- export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-ciV6Neyd.js';
3
- import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent, q as ClickEvent, A as AxisLongPressEvent, a as VisibleRange, r as DataWindowReadout, s as IDrawingsRendererPort, t as Millis, u as SnapMode, v as DrawingTypeKey, w as ToolbarDefinition, M as MarketConfig } from './options-BqGeFHtp.js';
4
- export { x as AddIndicatorOptions, B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, K as DataWindowGroup, Q as DataWindowOHLC, W as DataWindowRow, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, _ as DrawingIntent, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a2 as DrawingMode, a3 as DrawingPoint, a4 as DrawingPolyline, a5 as DrawingStyle, a6 as DrawingTable, a7 as DrawingText, a8 as DrawingXLoc, a9 as DrawingsOption, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, ad as InputSchema, ae as InputType, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, ak as MarkerPoint, al as MarkerSeries, am as MarketSnapshot, an as MarketSwitch, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, as as Projector, at as ProviderName, au as RendererConstructor, av as Scene, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aB as SettingsField, aC as SettingsSchema, aD as TableCell, aE as TableMerge, aF as TablePosition, aG as ToolbarGroupConfig, aH as TradeExecution, aI as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aJ as buildToolbar, aK as defaultToolbar } from './options-BqGeFHtp.js';
5
- import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-DHX4x6-r.js';
6
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-C97gUCVf.js';
1
+ import { D as DrawingsDocument, R as Resolved } from './contributions-DatoAzMx.js';
2
+ export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-DatoAzMx.js';
3
+ import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent, q as ClickEvent, A as AxisLongPressEvent, a as VisibleRange, r as DataWindowReadout, s as IDrawingsRendererPort, t as Millis, u as SnapMode, v as DrawingTypeKey, w as ToolbarDefinition, M as MarketConfig } from './options-YdiaaVjt.js';
4
+ export { x as AddIndicatorOptions, B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, K as DataWindowGroup, Q as DataWindowOHLC, W as DataWindowRow, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, _ as DrawingIntent, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a2 as DrawingMode, a3 as DrawingPoint, a4 as DrawingPolyline, a5 as DrawingStyle, a6 as DrawingTable, a7 as DrawingText, a8 as DrawingXLoc, a9 as DrawingsOption, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, ad as InputCondition, ae as InputSchema, af as InputType, ag as InputWhen, ah as LabelStyle, ai as LabelYLoc, aj as LineLikeKind, ak as LineLikeSeries, al as LineLikeStyle, am as MarkerPoint, an as MarkerSeries, ao as MarketSnapshot, ap as MarketSwitch, aq as PaneHint, ar as PaneKind, as as PolylinePoint, at as PriceLine, au as Projector, av as ProviderName, aw as RendererConstructor, ax as Scene, ay as SchemaPatch, az as SeriesKind, aA as SeriesPoint, aB as SeriesSpec, aC as SeriesValueDelta, aD as SettingsField, aE as SettingsSchema, aF as TableCell, aG as TableMerge, aH as TablePosition, aI as ToolbarGroupConfig, aJ as TradeExecution, aK as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aL as buildToolbar, aM as defaultToolbar, aN as inputVisible } from './options-YdiaaVjt.js';
5
+ import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-BmHkcwvJ.js';
6
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-Bcone6Vh.js';
7
7
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.js';
8
8
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.js';
9
9
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
@@ -129,6 +129,12 @@ interface BaselineSeriesStyle {
129
129
  /** Baseline position as a percent of the visible pane price range (0 = low, 100 = high). */
130
130
  baselineLevel: number;
131
131
  }
132
+ /** Session-zone shading (the `sessionZones` feature): the wash painted over
133
+ * pre-market and post-market time bands. Alpha belongs in the color itself. */
134
+ interface SessionShadeStyle {
135
+ premarketColor: string;
136
+ postmarketColor: string;
137
+ }
132
138
  interface ChartStyle {
133
139
  /** Per-chart-type settings (plugin SDK sections), keyed by type id then row key. */
134
140
  chartTypes: Record<string, Record<string, unknown>>;
@@ -146,6 +152,7 @@ interface ChartStyle {
146
152
  line: LineSeriesStyle;
147
153
  area: AreaSeriesStyle;
148
154
  baseline: BaselineSeriesStyle;
155
+ sessions: SessionShadeStyle;
149
156
  }
150
157
  interface ChartConfig {
151
158
  version: number;
@@ -249,6 +256,12 @@ interface ChartConfig {
249
256
  * center-to-center pitch (and the crosshair step) without changing body width. 1 = default. */
250
257
  spacing: number;
251
258
  };
259
+ /** Session-zone shading — the washes painted over the pre/post-market bands a host
260
+ * pushes through the `sessionZones` feature (no bands ⇒ the colors are dormant). */
261
+ sessions: {
262
+ premarketColor: string;
263
+ postmarketColor: string;
264
+ };
252
265
  /** Draw-order keys — what paints in front of what. The candles' own key plus one per
253
266
  * indicator id; user drawings persist their keys in the drawings document, in the same
254
267
  * space, so a saved chart keeps a drawing under the candles or between two indicators. */
@@ -270,7 +283,8 @@ interface ChartConfig {
270
283
  * dependency-free and themed to match the chart, mirroring `InputsUI`.
271
284
  */
272
285
  /** A host-contributed settings row: callback-based (the host owns the state).
273
- * `heading` opens a titled group inside the tab (an in-pane section title). */
286
+ * `heading` opens a titled group inside the tab (an in-pane section title);
287
+ * `color` is a swatch opening the themed picker (any CSS color, alpha included). */
274
288
  type HostSettingsRow = {
275
289
  kind: 'heading';
276
290
  label: string;
@@ -285,6 +299,11 @@ type HostSettingsRow = {
285
299
  options: readonly string[];
286
300
  get: () => string;
287
301
  set: (v: string) => void;
302
+ } | {
303
+ kind: 'color';
304
+ label: string;
305
+ get: () => string;
306
+ set: (v: string) => void;
288
307
  };
289
308
  /** A host-contributed settings tab (see `RendererControl.setSettingsSections`). */
290
309
  interface HostSettingsSection {
@@ -323,6 +342,8 @@ declare class NativeRenderer implements IChartRenderer {
323
342
  private readonly volumeRenderer;
324
343
  /** SDK renderer layers instantiated at mount ({@link registerRendererLayer}). */
325
344
  private extLayers;
345
+ /** Last applied layer-canvas order (ids below + above the data canvas) — re-slotted only on change. */
346
+ private layerOrderSig;
326
347
  private attributionEl;
327
348
  private attributionEnabled;
328
349
  /** Host-supplied mark shown INSTEAD of the built-in one (`attribution: '<html>'`). */
@@ -403,6 +424,7 @@ declare class NativeRenderer implements IChartRenderer {
403
424
  private maximizedPaneId;
404
425
  private rightAxisW;
405
426
  private paneControls;
427
+ private axisScaleButtons;
406
428
  private readonly paneActionCbs;
407
429
  private hoverLogical;
408
430
  private settingsDialog;
@@ -780,6 +802,8 @@ declare class NativeRenderer implements IChartRenderer {
780
802
  private renderFrame;
781
803
  /** Repaint the SDK layers that opted into cursor tracking (their own canvas only). */
782
804
  private repaintCursorLayers;
805
+ /** Blank one SDK layer canvas (a collapsed host pane suppresses the layer's painting). */
806
+ private clearLayerCanvas;
783
807
  /** One frame's args for an SDK renderer layer (shared by the data + cursor paint paths). */
784
808
  private extLayerArgs;
785
809
  /** Paint the below-data (L-1) + geometry (L0) + chrome (L1) layers from the current scene/coords. */
@@ -837,20 +861,50 @@ declare class NativeRenderer implements IChartRenderer {
837
861
  private paneMasterTitle;
838
862
  /** The pane a bespoke-layer native indicator (volume/vpvr) currently lives in (null = not mounted). */
839
863
  private nativeLayerPane;
864
+ /** The mounted native indicator that OWNS an SDK layer — the one whose type equals the
865
+ * layer id (the id doubles as the data channel, so the pairing is the SDK's own
866
+ * contract). Null for chart-type channels and while the owner is hidden (a hidden
867
+ * indicator leaves the scene; its cleared data channel paints nothing anyway). */
868
+ private layerOwner;
869
+ /** The pane an SDK layer paints on: its owner's pane, else the price pane. */
870
+ private layerPane;
871
+ /** The SDK layer canvases split around the data canvas, each side back-to-front:
872
+ * owned layers by their owner's z key against the candles' (an indicator restacked
873
+ * below the candles takes its layer canvas along), unowned by declared placement. */
874
+ private orderedLayerCanvases;
875
+ /** The full canvas pile in paint order (layers + data/volume/vpvr) — what the DOM
876
+ * stacking and the screenshot compositor must both follow. */
877
+ private canvasPile;
878
+ /** Re-slot the SDK layer canvases in the plot when the computed order changed (a z
879
+ * write, a restored config, an indicator mount/remove/restack). Runs at the top of
880
+ * every data frame; a no-op when the signature is unchanged. Re-inserting an
881
+ * absolutely-positioned, pointer-transparent canvas repaints nothing by itself. */
882
+ private syncLayerCanvasOrder;
840
883
  /** True when an active volume layer is this study pane's ONLY content — so its scale should
841
884
  * come from volume, not the empty {0,1} placeholder. (In the price pane, or alongside a real
842
885
  * series, volume stays a bottom overlay and the master scale wins.) */
843
886
  private volumeOwnsPane;
887
+ /** True when this study pane's master content is only SDK-layer natives (series-less
888
+ * models whose type names a mounted layer) — its scale then follows the visible bars
889
+ * (see the call site). Any real master series takes over the scale as usual. */
890
+ private layerNativesOwnPane;
844
891
  /** Per-pane scale state for a host UI (e.g. a price-axis context menu): the pane's pixel
845
892
  * band (`top`/`height`, so a click y maps to a pane) plus its current axis `mode`/`log`.
846
893
  * Top-to-bottom order. Every pane is independent — the price pane from the scene setting,
847
894
  * study panes from their own. */
848
895
  private paneScaleInfos;
896
+ /** Thin projection of the panes for the axis A/L hover buttons (top-to-bottom order). */
897
+ private axisScaleViews;
898
+ /** Toggle one pane's autoscale (the A axis button): off freezes the current window into
899
+ * manual mode, on drops it — the per-pane twin of the chart-level `autoScale` feature. */
900
+ private togglePaneAuto;
849
901
  /** Set one pane's axis mode. The price pane routes to the scene-level setting (persisted +
850
902
  * keyboard shortcuts); a study pane keeps its own, so panes never affect each other. */
851
903
  private setPaneScaleMode;
852
- /** Set one pane's logarithmic flag. Clears that pane's frozen (manual) window so the new
853
- * space re-fits, and routes the price pane to the scene-level flag. */
904
+ /** Set one pane's logarithmic flag; the price pane routes to the scene-level flag.
905
+ * Log and auto are INDEPENDENT: a frozen (manual) window is kept — its price bounds
906
+ * stay put and only its `log` tag flips, so the same range re-renders in the new
907
+ * space instead of snapping back to autoscale. */
854
908
  private setPaneLog;
855
909
  /** Flip one pane's axis (high at the bottom). The price pane routes to the scene-level flag
856
910
  * (persisted with the chart config); study panes keep their own so panes stay independent. */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { stableSeriesId } from './chunk-Q3XQHLIH.js';
2
- export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-7D6YIF34.js';
3
- export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, legendActions, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, settingsRowValueKeys, sidePanels, tickerModifierIds, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-7Y7CJ7EN.js';
4
- import './chunk-QHZ7IXFL.js';
1
+ export { stableSeriesId } from './chunk-AOGZBKUE.js';
2
+ export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-FQBT4NFM.js';
3
+ export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, inputVisible, legendActions, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, settingsRowValueKeys, sidePanels, tickerModifierIds, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-BEJ57HP4.js';
4
+ import './chunk-OICPLNU7.js';
5
5
  export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CROSSHAIR, HIGHLIGHT, INFO, INVALID, MARKER, NEUTRAL, SERIES_LINE, SESSION_OFF, SESSION_POST, SESSION_PRE, SLATE, SLATE_DEEP, TRADE_EXIT, TRADE_LONG, TRADE_SHORT, VALID, WARNING, categoricalColor, iconMarkup, registerIcon } from './chunk-PN5KWFZ4.js';
@@ -384,6 +384,21 @@ type InputValue = number | string | boolean;
384
384
  * no picker is wired, `input.symbol` falls back to a plain text field.
385
385
  */
386
386
  type SymbolPickerFn = (current: string, onPick: (symbol: string) => void) => void;
387
+ /** One visibility condition on another input's current value: `equals` matches a single
388
+ * value (a toggle, one dropdown choice), `anyOf` matches a set (several choices). */
389
+ interface InputCondition {
390
+ key: string;
391
+ equals?: InputValue;
392
+ anyOf?: readonly InputValue[];
393
+ }
394
+ /** An input's visibility gate: one condition, or several AND-ed together. */
395
+ type InputWhen = InputCondition | readonly InputCondition[];
396
+ /**
397
+ * Evaluate a visibility gate against the dialog's resolved current values (an input's
398
+ * stored value, else its `defval`). No gate ⇒ visible. Mirrors the chart-settings row
399
+ * gate (`settingsRowVisible`) so both dialogs share one condition vocabulary.
400
+ */
401
+ declare function inputVisible(when: InputWhen | undefined, values: Record<string, InputValue>): boolean;
387
402
  interface InputSchema {
388
403
  /** Stable key used by `setInput()` — the engine's own variable id, falling back to `title`. */
389
404
  key: string;
@@ -402,6 +417,10 @@ interface InputSchema {
402
417
  inline?: string;
403
418
  /** Settings-dialog tab hosting this input; unset ⇒ the default "Inputs" tab. */
404
419
  tab?: string;
420
+ /** Visibility gate: the input's row shows only while the condition(s) pass against
421
+ * the dialog's current values — re-evaluated live on every edit. Inputs sharing an
422
+ * `inline=` row show while ANY member's gate passes. A hidden input keeps its value. */
423
+ when?: InputWhen;
405
424
  tooltip?: string;
406
425
  }
407
426
 
@@ -1618,4 +1637,4 @@ interface AddIndicatorOptions {
1618
1637
  title?: string;
1619
1638
  }
1620
1639
 
1621
- export { type DrawingLabel as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxTextSize as E, type BoxVAlign as F, type CandleBarColor as G, type CandleSeries as H, type IChartRenderer as I, type CandleStyle as J, type DataWindowGroup as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowOHLC as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowRow as W, type DirtyRange as X, type DrawingBox as Y, type DrawingExtend as Z, type DrawingIntent as _, type VisibleRange as a, type DrawingLine as a0, type DrawingLinefill as a1, type DrawingMode as a2, type DrawingPoint as a3, type DrawingPolyline as a4, type DrawingStyle as a5, type DrawingTable as a6, type DrawingText as a7, type DrawingXLoc as a8, type DrawingsOption as a9, type SeriesValueDelta as aA, type SettingsField as aB, type SettingsSchema as aC, type TableCell as aD, type TableMerge as aE, type TablePosition as aF, type ToolbarGroupConfig as aG, type TradeExecution as aH, type ValuePatch as aI, buildToolbar as aJ, defaultToolbar as aK, type PaneInfo as aL, type Fill as aa, type FillGradientStop as ab, type IndicatorMeta as ac, type InputSchema as ad, type InputType as ae, type LabelStyle as af, type LabelYLoc as ag, type LineLikeKind as ah, type LineLikeSeries as ai, type LineLikeStyle as aj, type MarkerPoint as ak, type MarkerSeries as al, type MarketSnapshot as am, type MarketSwitch as an, type PaneHint as ao, type PaneKind as ap, type PolylinePoint as aq, type PriceLine as ar, type Projector as as, type ProviderName as at, type RendererConstructor as au, type Scene as av, type SchemaPatch as aw, type SeriesKind as ax, type SeriesPoint as ay, type SeriesSpec as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type InputChangeEvent as p, type ClickEvent as q, type DataWindowReadout as r, type IDrawingsRendererPort as s, type Millis as t, type SnapMode as u, type DrawingTypeKey as v, type ToolbarDefinition as w, type AddIndicatorOptions as x, type BoxFontFamily as y, type BoxHAlign as z };
1640
+ export { type DrawingLabel as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxTextSize as E, type BoxVAlign as F, type CandleBarColor as G, type CandleSeries as H, type IChartRenderer as I, type CandleStyle as J, type DataWindowGroup as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowOHLC as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowRow as W, type DirtyRange as X, type DrawingBox as Y, type DrawingExtend as Z, type DrawingIntent as _, type VisibleRange as a, type DrawingLine as a0, type DrawingLinefill as a1, type DrawingMode as a2, type DrawingPoint as a3, type DrawingPolyline as a4, type DrawingStyle as a5, type DrawingTable as a6, type DrawingText as a7, type DrawingXLoc as a8, type DrawingsOption as a9, type SeriesPoint as aA, type SeriesSpec as aB, type SeriesValueDelta as aC, type SettingsField as aD, type SettingsSchema as aE, type TableCell as aF, type TableMerge as aG, type TablePosition as aH, type ToolbarGroupConfig as aI, type TradeExecution as aJ, type ValuePatch as aK, buildToolbar as aL, defaultToolbar as aM, inputVisible as aN, type PaneInfo as aO, type Fill as aa, type FillGradientStop as ab, type IndicatorMeta as ac, type InputCondition as ad, type InputSchema as ae, type InputType as af, type InputWhen as ag, type LabelStyle as ah, type LabelYLoc as ai, type LineLikeKind as aj, type LineLikeSeries as ak, type LineLikeStyle as al, type MarkerPoint as am, type MarkerSeries as an, type MarketSnapshot as ao, type MarketSwitch as ap, type PaneHint as aq, type PaneKind as ar, type PolylinePoint as as, type PriceLine as at, type Projector as au, type ProviderName as av, type RendererConstructor as aw, type Scene as ax, type SchemaPatch as ay, type SeriesKind as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type InputChangeEvent as p, type ClickEvent as q, type DataWindowReadout as r, type IDrawingsRendererPort as s, type Millis as t, type SnapMode as u, type DrawingTypeKey as v, type ToolbarDefinition as w, type AddIndicatorOptions as x, type BoxFontFamily as y, type BoxHAlign as z };
@@ -384,6 +384,21 @@ type InputValue = number | string | boolean;
384
384
  * no picker is wired, `input.symbol` falls back to a plain text field.
385
385
  */
386
386
  type SymbolPickerFn = (current: string, onPick: (symbol: string) => void) => void;
387
+ /** One visibility condition on another input's current value: `equals` matches a single
388
+ * value (a toggle, one dropdown choice), `anyOf` matches a set (several choices). */
389
+ interface InputCondition {
390
+ key: string;
391
+ equals?: InputValue;
392
+ anyOf?: readonly InputValue[];
393
+ }
394
+ /** An input's visibility gate: one condition, or several AND-ed together. */
395
+ type InputWhen = InputCondition | readonly InputCondition[];
396
+ /**
397
+ * Evaluate a visibility gate against the dialog's resolved current values (an input's
398
+ * stored value, else its `defval`). No gate ⇒ visible. Mirrors the chart-settings row
399
+ * gate (`settingsRowVisible`) so both dialogs share one condition vocabulary.
400
+ */
401
+ declare function inputVisible(when: InputWhen | undefined, values: Record<string, InputValue>): boolean;
387
402
  interface InputSchema {
388
403
  /** Stable key used by `setInput()` — the engine's own variable id, falling back to `title`. */
389
404
  key: string;
@@ -402,6 +417,10 @@ interface InputSchema {
402
417
  inline?: string;
403
418
  /** Settings-dialog tab hosting this input; unset ⇒ the default "Inputs" tab. */
404
419
  tab?: string;
420
+ /** Visibility gate: the input's row shows only while the condition(s) pass against
421
+ * the dialog's current values — re-evaluated live on every edit. Inputs sharing an
422
+ * `inline=` row show while ANY member's gate passes. A hidden input keeps its value. */
423
+ when?: InputWhen;
405
424
  tooltip?: string;
406
425
  }
407
426
 
@@ -1618,4 +1637,4 @@ interface AddIndicatorOptions {
1618
1637
  title?: string;
1619
1638
  }
1620
1639
 
1621
- export { type DrawingLabel as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxTextSize as E, type BoxVAlign as F, type CandleBarColor as G, type CandleSeries as H, type IChartRenderer as I, type CandleStyle as J, type DataWindowGroup as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowOHLC as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowRow as W, type DirtyRange as X, type DrawingBox as Y, type DrawingExtend as Z, type DrawingIntent as _, type VisibleRange as a, type DrawingLine as a0, type DrawingLinefill as a1, type DrawingMode as a2, type DrawingPoint as a3, type DrawingPolyline as a4, type DrawingStyle as a5, type DrawingTable as a6, type DrawingText as a7, type DrawingXLoc as a8, type DrawingsOption as a9, type SeriesValueDelta as aA, type SettingsField as aB, type SettingsSchema as aC, type TableCell as aD, type TableMerge as aE, type TablePosition as aF, type ToolbarGroupConfig as aG, type TradeExecution as aH, type ValuePatch as aI, buildToolbar as aJ, defaultToolbar as aK, type PaneInfo as aL, type Fill as aa, type FillGradientStop as ab, type IndicatorMeta as ac, type InputSchema as ad, type InputType as ae, type LabelStyle as af, type LabelYLoc as ag, type LineLikeKind as ah, type LineLikeSeries as ai, type LineLikeStyle as aj, type MarkerPoint as ak, type MarkerSeries as al, type MarketSnapshot as am, type MarketSwitch as an, type PaneHint as ao, type PaneKind as ap, type PolylinePoint as aq, type PriceLine as ar, type Projector as as, type ProviderName as at, type RendererConstructor as au, type Scene as av, type SchemaPatch as aw, type SeriesKind as ax, type SeriesPoint as ay, type SeriesSpec as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type InputChangeEvent as p, type ClickEvent as q, type DataWindowReadout as r, type IDrawingsRendererPort as s, type Millis as t, type SnapMode as u, type DrawingTypeKey as v, type ToolbarDefinition as w, type AddIndicatorOptions as x, type BoxFontFamily as y, type BoxHAlign as z };
1640
+ export { type DrawingLabel as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxTextSize as E, type BoxVAlign as F, type CandleBarColor as G, type CandleSeries as H, type IChartRenderer as I, type CandleStyle as J, type DataWindowGroup as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowOHLC as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowRow as W, type DirtyRange as X, type DrawingBox as Y, type DrawingExtend as Z, type DrawingIntent as _, type VisibleRange as a, type DrawingLine as a0, type DrawingLinefill as a1, type DrawingMode as a2, type DrawingPoint as a3, type DrawingPolyline as a4, type DrawingStyle as a5, type DrawingTable as a6, type DrawingText as a7, type DrawingXLoc as a8, type DrawingsOption as a9, type SeriesPoint as aA, type SeriesSpec as aB, type SeriesValueDelta as aC, type SettingsField as aD, type SettingsSchema as aE, type TableCell as aF, type TableMerge as aG, type TablePosition as aH, type ToolbarGroupConfig as aI, type TradeExecution as aJ, type ValuePatch as aK, buildToolbar as aL, defaultToolbar as aM, inputVisible as aN, type PaneInfo as aO, type Fill as aa, type FillGradientStop as ab, type IndicatorMeta as ac, type InputCondition as ad, type InputSchema as ae, type InputType as af, type InputWhen as ag, type LabelStyle as ah, type LabelYLoc as ai, type LineLikeKind as aj, type LineLikeSeries as ak, type LineLikeStyle as al, type MarkerPoint as am, type MarkerSeries as an, type MarketSnapshot as ao, type MarketSwitch as ap, type PaneHint as aq, type PaneKind as ar, type PolylinePoint as as, type PriceLine as at, type Projector as au, type ProviderName as av, type RendererConstructor as aw, type Scene as ax, type SchemaPatch as ay, type SeriesKind as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type InputChangeEvent as p, type ClickEvent as q, type DataWindowReadout as r, type IDrawingsRendererPort as s, type Millis as t, type SnapMode as u, type DrawingTypeKey as v, type ToolbarDefinition as w, type AddIndicatorOptions as x, type BoxFontFamily as y, type BoxHAlign as z };
@@ -1,9 +1,9 @@
1
- import { v as DrawingTypeKey, a5 as DrawingStyle, S as SerializedDrawing, D as Drawing, ax as SeriesKind, O as OHLCV, c as VelaTheme } from './options-BqGeFHtp.js';
2
- import { b as DataControl } from './contributions-ciV6Neyd.js';
1
+ import { v as DrawingTypeKey, a5 as DrawingStyle, S as SerializedDrawing, D as Drawing, az as SeriesKind, O as OHLCV, c as VelaTheme } from './options-YdiaaVjt.js';
2
+ import { b as DataControl } from './contributions-DatoAzMx.js';
3
3
  import './side-panel-CT9ZwIGz.js';
4
4
  import './icons-BZYbJXSV.js';
5
5
  import './keymap-CGOz5F5f.js';
6
- import './DataProvider-DHX4x6-r.js';
6
+ import './DataProvider-BmHkcwvJ.js';
7
7
 
8
8
  /** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
9
9
  interface DrawingTypeMeta {
@@ -588,7 +588,9 @@ interface RendererLayerArgs {
588
588
  /** Time ranges still loading (`<id>-pending` channel) — skeleton/reveal UIs. */
589
589
  pending: ReadonlyArray<readonly [number, number]>;
590
590
  coords: CoordinateSystem;
591
- /** The price pane's scale + bounds. */
591
+ /** The scale + bounds of the pane the layer paints on: the pane of the native
592
+ * indicator that owns this channel (its type equals the layer id), else the price
593
+ * pane — so a layer-backed indicator moved to its own pane takes its layer along. */
592
594
  scale: PriceScale;
593
595
  bounds: PaneBounds;
594
596
  theme: VelaTheme;
@@ -639,7 +641,9 @@ interface RendererLayerDefinition {
639
641
  /** The layer id — also its native-data channel (`setNativeData(id, …)` / `id + '-pending'`). */
640
642
  id: string;
641
643
  /** Stacking: `'below-data'` = behind the candles (reveal-under styles); `'above-data'` =
642
- * over the candles, under the chrome/axes. Default `'above-data'`. */
644
+ * over the candles, under the chrome/axes. Default `'above-data'`. A layer owned by a
645
+ * native indicator (its type equals the layer id) follows that indicator's z key in
646
+ * the pane stacking instead (`seriesOrder` / the object tree), mounting in front. */
643
647
  placement?: 'below-data' | 'above-data';
644
648
  /** Repaint this layer when the pointer moves (hover hit-testing UIs). Off by default:
645
649
  * pointer moves normally repaint only the crosshair overlay, not the layers. */
@@ -1,9 +1,9 @@
1
- import { v as DrawingTypeKey, a5 as DrawingStyle, S as SerializedDrawing, D as Drawing, ax as SeriesKind, O as OHLCV, c as VelaTheme } from './options-BqGeFHtp.cjs';
2
- import { b as DataControl } from './contributions-DDpv7hEL.cjs';
1
+ import { v as DrawingTypeKey, a5 as DrawingStyle, S as SerializedDrawing, D as Drawing, az as SeriesKind, O as OHLCV, c as VelaTheme } from './options-YdiaaVjt.cjs';
2
+ import { b as DataControl } from './contributions-2bEmCF9S.cjs';
3
3
  import './side-panel-CT9ZwIGz.cjs';
4
4
  import './icons-BZYbJXSV.cjs';
5
5
  import './keymap-CGOz5F5f.cjs';
6
- import './DataProvider-CNmk84SH.cjs';
6
+ import './DataProvider-DrN7ZIou.cjs';
7
7
 
8
8
  /** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
9
9
  interface DrawingTypeMeta {
@@ -588,7 +588,9 @@ interface RendererLayerArgs {
588
588
  /** Time ranges still loading (`<id>-pending` channel) — skeleton/reveal UIs. */
589
589
  pending: ReadonlyArray<readonly [number, number]>;
590
590
  coords: CoordinateSystem;
591
- /** The price pane's scale + bounds. */
591
+ /** The scale + bounds of the pane the layer paints on: the pane of the native
592
+ * indicator that owns this channel (its type equals the layer id), else the price
593
+ * pane — so a layer-backed indicator moved to its own pane takes its layer along. */
592
594
  scale: PriceScale;
593
595
  bounds: PaneBounds;
594
596
  theme: VelaTheme;
@@ -639,7 +641,9 @@ interface RendererLayerDefinition {
639
641
  /** The layer id — also its native-data channel (`setNativeData(id, …)` / `id + '-pending'`). */
640
642
  id: string;
641
643
  /** Stacking: `'below-data'` = behind the candles (reveal-under styles); `'above-data'` =
642
- * over the candles, under the chrome/axes. Default `'above-data'`. */
644
+ * over the candles, under the chrome/axes. Default `'above-data'`. A layer owned by a
645
+ * native indicator (its type equals the layer id) follows that indicator's z key in
646
+ * the pane stacking instead (`seriesOrder` / the object tree), mounting in front. */
643
647
  placement?: 'below-data' | 'above-data';
644
648
  /** Repaint this layer when the pointer moves (hover hit-testing UIs). Off by default:
645
649
  * pointer moves normally repaint only the crosshair overlay, not the layers. */
package/dist/plugin.cjs CHANGED
@@ -5950,6 +5950,13 @@ registerDrawingType({
5950
5950
  create: (init) => new FixedRangeVolumeProfile(init)
5951
5951
  });
5952
5952
 
5953
+ // src/core/model/inputs.ts
5954
+ function inputVisible(when, values) {
5955
+ if (!when) return true;
5956
+ const conds = Array.isArray(when) ? when : [when];
5957
+ return conds.every((c) => c.anyOf ? c.anyOf.some((x) => x === values[c.key]) : values[c.key] === c.equals);
5958
+ }
5959
+
5953
5960
  // src/core/model/identity.ts
5954
5961
  function stableSeriesId(parts) {
5955
5962
  const normTitle = parts.title.trim().toLowerCase().replace(/\s+/g, "-");
@@ -5989,6 +5996,7 @@ exports.drawingTypes = drawingTypes;
5989
5996
  exports.getDrawingType = getDrawingType;
5990
5997
  exports.getNativeIndicator = getNativeIndicator;
5991
5998
  exports.iconMarkup = iconMarkup;
5999
+ exports.inputVisible = inputVisible;
5992
6000
  exports.legendActions = legendActions;
5993
6001
  exports.nativeIndicatorTypes = nativeIndicatorTypes;
5994
6002
  exports.normalizeSettingsRow = normalizeSettingsRow;
package/dist/plugin.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-CSb_sTiN.cjs';
2
- export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-DDpv7hEL.cjs';
1
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-DO_DX0gp.cjs';
2
+ export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-2bEmCF9S.cjs';
3
3
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.cjs';
4
- export { B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a4 as DrawingPolyline, a6 as DrawingTable, v as DrawingTypeKey, a8 as DrawingXLoc, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, k as IndicatorModel, ad as InputSchema, ae as InputType, m as InputValue, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, L as LineStyle, ak as MarkerPoint, al as MarkerSeries, t as Millis, O as OHLCV, h as Pane, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, P as PriceStyle, av as Scene, l as ScenePatch, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aD as TableCell, aE as TableMerge, aF as TablePosition, aH as TradeExecution, aI as ValuePatch } from './options-BqGeFHtp.cjs';
4
+ export { B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a4 as DrawingPolyline, a6 as DrawingTable, v as DrawingTypeKey, a8 as DrawingXLoc, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, k as IndicatorModel, ad as InputCondition, ae as InputSchema, af as InputType, m as InputValue, ag as InputWhen, ah as LabelStyle, ai as LabelYLoc, aj as LineLikeKind, ak as LineLikeSeries, al as LineLikeStyle, L as LineStyle, am as MarkerPoint, an as MarkerSeries, t as Millis, O as OHLCV, h as Pane, aq as PaneHint, ar as PaneKind, as as PolylinePoint, at as PriceLine, P as PriceStyle, ax as Scene, l as ScenePatch, ay as SchemaPatch, az as SeriesKind, aA as SeriesPoint, aB as SeriesSpec, aC as SeriesValueDelta, aF as TableCell, aG as TableMerge, aH as TablePosition, aJ as TradeExecution, aK as ValuePatch, aN as inputVisible } from './options-YdiaaVjt.cjs';
5
5
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.cjs';
6
6
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
7
- export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-CNmk84SH.cjs';
7
+ export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-DrN7ZIou.cjs';
package/dist/plugin.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-C97gUCVf.js';
2
- export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-ciV6Neyd.js';
1
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-Bcone6Vh.js';
2
+ export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-DatoAzMx.js';
3
3
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.js';
4
- export { B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a4 as DrawingPolyline, a6 as DrawingTable, v as DrawingTypeKey, a8 as DrawingXLoc, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, k as IndicatorModel, ad as InputSchema, ae as InputType, m as InputValue, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, L as LineStyle, ak as MarkerPoint, al as MarkerSeries, t as Millis, O as OHLCV, h as Pane, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, P as PriceStyle, av as Scene, l as ScenePatch, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aD as TableCell, aE as TableMerge, aF as TablePosition, aH as TradeExecution, aI as ValuePatch } from './options-BqGeFHtp.js';
4
+ export { B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a4 as DrawingPolyline, a6 as DrawingTable, v as DrawingTypeKey, a8 as DrawingXLoc, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, k as IndicatorModel, ad as InputCondition, ae as InputSchema, af as InputType, m as InputValue, ag as InputWhen, ah as LabelStyle, ai as LabelYLoc, aj as LineLikeKind, ak as LineLikeSeries, al as LineLikeStyle, L as LineStyle, am as MarkerPoint, an as MarkerSeries, t as Millis, O as OHLCV, h as Pane, aq as PaneHint, ar as PaneKind, as as PolylinePoint, at as PriceLine, P as PriceStyle, ax as Scene, l as ScenePatch, ay as SchemaPatch, az as SeriesKind, aA as SeriesPoint, aB as SeriesSpec, aC as SeriesValueDelta, aF as TableCell, aG as TableMerge, aH as TablePosition, aJ as TradeExecution, aK as ValuePatch, aN as inputVisible } from './options-YdiaaVjt.js';
5
5
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.js';
6
6
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
7
- export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-DHX4x6-r.js';
7
+ export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-BmHkcwvJ.js';