@luxalgo/vela 0.8.2 → 0.8.4

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 (48) hide show
  1. package/dist/{DataProvider-COGDs9Xg.d.cts → DataProvider-Bw58CjYy.d.cts} +1 -1
  2. package/dist/{DataProvider-DpOWZD8F.d.ts → DataProvider-Byo8pEv0.d.ts} +1 -1
  3. package/dist/{chunk-DPAA3SRT.js → chunk-ALTGHKIM.js} +836 -32
  4. package/dist/{chunk-27UTYE7T.js → chunk-AUOB7A5Y.js} +49 -7
  5. package/dist/{chunk-HKNO24GD.js → chunk-I2U4NZD2.js} +56 -1
  6. package/dist/{chunk-R2JMNIHY.js → chunk-MOJ4T26N.js} +341 -169
  7. package/dist/{chunk-T3DZIR5Y.js → chunk-UNUVPQFW.js} +2214 -886
  8. package/dist/{chunk-NLDTVFOI.js → chunk-WY5H4S4I.js} +129 -10
  9. package/dist/{contributions-Cgm9RJYP.d.cts → contributions-BY3zSYiZ.d.ts} +98 -7
  10. package/dist/{contributions-bWgwyiVi.d.ts → contributions-DOm40g5-.d.cts} +98 -7
  11. package/dist/index.cjs +3066 -893
  12. package/dist/index.d.cts +36 -22
  13. package/dist/index.d.ts +36 -22
  14. package/dist/index.js +5 -5
  15. package/dist/{options-NAUHiQEC.d.ts → options-CSXbjMM5.d.cts} +129 -4
  16. package/dist/{options-NAUHiQEC.d.cts → options-CSXbjMM5.d.ts} +129 -4
  17. package/dist/{plugin-CqxWoDKS.d.ts → plugin-BDxUhGO3.d.ts} +4 -4
  18. package/dist/{plugin-CjjzZX2F.d.cts → plugin-CiQVyETg.d.cts} +4 -4
  19. package/dist/plugin.cjs +573 -17
  20. package/dist/plugin.d.cts +5 -5
  21. package/dist/plugin.d.ts +5 -5
  22. package/dist/plugin.js +3 -3
  23. package/dist/providers/binance.d.cts +2 -2
  24. package/dist/providers/binance.d.ts +2 -2
  25. package/dist/providers/coinbase.d.cts +2 -2
  26. package/dist/providers/coinbase.d.ts +2 -2
  27. package/dist/providers/hyperliquid.d.cts +2 -2
  28. package/dist/providers/hyperliquid.d.ts +2 -2
  29. package/dist/{side-panel-wMNfgyZb.d.cts → side-panel-_2UK1gSm.d.cts} +45 -3
  30. package/dist/{side-panel-wMNfgyZb.d.ts → side-panel-_2UK1gSm.d.ts} +45 -3
  31. package/dist/{statusline-model-Dih6FGWP.d.ts → statusline-model-C9tYXuux.d.ts} +19 -4
  32. package/dist/{statusline-model-Dpfpq54A.d.cts → statusline-model-DUBX6Fib.d.cts} +19 -4
  33. package/dist/ui.cjs +224 -14
  34. package/dist/ui.d.cts +119 -87
  35. package/dist/ui.d.ts +119 -87
  36. package/dist/ui.js +3 -3
  37. package/dist/vela.global.js +3073 -900
  38. package/dist/vela.global.min.js +158 -54
  39. package/dist/widget.cjs +3640 -1119
  40. package/dist/widget.d.cts +24 -10
  41. package/dist/widget.d.ts +24 -10
  42. package/dist/widget.js +7 -7
  43. package/dist/workspace.cjs +3639 -1119
  44. package/dist/workspace.d.cts +61 -20
  45. package/dist/workspace.d.ts +61 -20
  46. package/dist/workspace.js +6 -6
  47. package/package.json +1 -1
  48. /package/dist/{chunk-JU4CWEBF.js → chunk-W5YPYZ2P.js} +0 -0
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 CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, N as NEUTRAL, m as NormalizedSettingsRow, R as RendererLayerArgs, n as RendererLayerDefinition, o as RendererLayerInstance, p as SERIES_LINE, q as SESSION_OFF, r as SESSION_POST, s as SESSION_PRE, t as SLATE, u as SLATE_DEEP, v as SeriesDataEngine, w as SeriesDataEngineHost, x as SettingsInlineControl, y as SettingsRowCondition, z as SettingsRowDescriptor, E as SettingsRowInlineNumber, F as SettingsRowSwatch, G as SettingsRowValueKey, J as SettingsRowWhen, K as SettingsRowWidth, S as SettingsSelectOption, L as SettingsValueRow, T as TRADE_EXIT, O as TRADE_LONG, P as TRADE_SHORT, V as VALID, W as WARNING, Q as categoricalColor, U as chartType, X as chartTypes, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a3 as registerRendererDefaults, a4 as registerRendererLayer, a5 as rendererDefaults, a6 as rendererLayers, a7 as settingsRowValueKeys, a8 as stableSeriesId, a9 as tickerModifierIds, aa as unregisterChartType, ab as unregisterRendererDefaults, ac as unregisterRendererLayer } from './plugin-CjjzZX2F.cjs';
2
- export { B as BarsChangeReason, C as CellStateContext, i as ContextSelect, k as EngineAlert, l as EngineCapabilities, m as EngineContextSnapshot, n as EngineFactory, o as EngineWarning, p as ExecutionHandlers, q as ExecutionMarket, r as ExecutionRequest, s as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, v as LegendCalloutContent, w as LegendCalloutDescriptor, x as LegendCalloutItem, y as LegendCalloutSpec, z as LegendIndicatorInfo, N as NativeIndicator, A as NativeIndicatorContext, G as NativeIndicatorDescriptor, H as NativeIndicatorInfo, J as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, K as PreparedScript, c as ScriptRun, _ as ScriptRunCause, $ as ScriptRunResult, S as ScriptingEngine, a0 as SidePanelButton, a1 as SidePanelDescriptor, a2 as SidePanelHandle, a3 as SidePanelHeader, a4 as StatePersistenceHandler, a5 as StrategyFill, a6 as StrategyState, a7 as StrategyTrade, a8 as SymbolRankingHook, ab as VisibleBarRange, ac as WidgetActionDescriptor, ad as WidgetActionTarget, ae as WidgetAttachment, W as WidgetContext, af as getNativeIndicator, ag as legendActions, ah as legendCallouts, aj as nativeIndicatorTypes, ak as registerDefaultEngine, al as registerLegendAction, am as registerLegendCallout, an as registerNativeIndicator, ao as registerSidePanel, ap as registerStatePersistence, aq as registerSymbolRanking, ar as registerWidgetAction, as as registerWidgetAttachment, at as resolveEngines, au as sidePanels, av as statePersistenceHandlers, aw as symbolRanking, ax as topbarActionOverride, ay as unregisterDefaultEngine, az as unregisterLegendAction, aA as unregisterLegendCallout, aB as unregisterNativeIndicator, aC as unregisterSidePanel, aD as unregisterStatePersistence, aE as unregisterWidgetAction, aF as unregisterWidgetAttachment, aG as widgetActions, aH as widgetAttachments } from './contributions-Cgm9RJYP.cjs';
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-wMNfgyZb.cjs';
4
- export { H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, ab as DrawingPolyline, ag as DrawingTable, z as DrawingTypeKey, ai as DrawingXLoc, ak as Fill, al as FillGradientStop, am as IndicatorMeta, l as IndicatorModel, an as InputCondition, ao as InputSchema, ap as InputType, I as InputValue, aq as InputWhen, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, L as LineStyle, aE as MarkerPoint, aF as MarkerSeries, x as Millis, O as OHLCV, i as Pane, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aM as PriceLine, P as PriceStyle, aQ as Scene, m as ScenePatch, aR as SchemaPatch, aT as SeriesDisplay, aU as SeriesKind, aV as SeriesPoint, aW as SeriesSpec, aX as SeriesSurface, aY as SeriesValueDelta, b0 as TableCell, b1 as TableMerge, b2 as TablePosition, b4 as TradeExecution, b5 as ValuePatch, b8 as inputDeltas, b9 as inputVisible, ba as seriesInScale, bb as seriesShownOn } from './options-NAUHiQEC.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 CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, N as NEUTRAL, m as NormalizedSettingsRow, R as RendererLayerArgs, n as RendererLayerDefinition, o as RendererLayerInstance, p as SERIES_LINE, q as SESSION_OFF, r as SESSION_POST, s as SESSION_PRE, t as SLATE, u as SLATE_DEEP, v as SeriesDataEngine, w as SeriesDataEngineHost, x as SettingsInlineControl, y as SettingsRowCondition, z as SettingsRowDescriptor, E as SettingsRowInlineNumber, F as SettingsRowSwatch, G as SettingsRowValueKey, J as SettingsRowWhen, K as SettingsRowWidth, S as SettingsSelectOption, L as SettingsValueRow, T as TRADE_EXIT, O as TRADE_LONG, P as TRADE_SHORT, V as VALID, W as WARNING, Q as categoricalColor, U as chartType, X as chartTypes, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a3 as registerRendererDefaults, a4 as registerRendererLayer, a5 as rendererDefaults, a6 as rendererLayers, a7 as settingsRowValueKeys, a8 as stableSeriesId, a9 as tickerModifierIds, aa as unregisterChartType, ab as unregisterRendererDefaults, ac as unregisterRendererLayer } from './plugin-CiQVyETg.cjs';
2
+ export { B as BarsChangeReason, C as CellStateContext, i as ContextMenuPointer, j as ContextSelect, l as EngineAlert, m as EngineCapabilities, n as EngineContextSnapshot, o as EngineFactory, p as EngineWarning, q as ExecutionHandlers, r as ExecutionMarket, s as ExecutionRequest, t as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, w as LegendCalloutContent, x as LegendCalloutDescriptor, y as LegendCalloutItem, z as LegendCalloutSpec, A as LegendIndicatorInfo, N as NativeIndicator, G as NativeIndicatorContext, H as NativeIndicatorDescriptor, J as NativeIndicatorInfo, K as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, Q as PreparedScript, c as ScriptRun, $ as ScriptRunCause, a0 as ScriptRunResult, S as ScriptingEngine, a1 as SidePanelButton, a2 as SidePanelDescriptor, a3 as SidePanelHandle, a4 as SidePanelHeader, a5 as StatePersistenceHandler, a6 as StrategyFill, a7 as StrategyState, a8 as StrategyTrade, a9 as SymbolRankingHook, ac as VisibleBarRange, ad as WidgetActionDescriptor, ae as WidgetActionTarget, af as WidgetAttachment, W as WidgetContext, ag as getNativeIndicator, ah as legendActions, ai as legendCallouts, ak as nativeIndicatorTypes, al as registerDefaultEngine, am as registerLegendAction, an as registerLegendCallout, ao as registerNativeIndicator, ap as registerSidePanel, aq as registerStatePersistence, ar as registerSymbolRanking, as as registerWidgetAction, at as registerWidgetAttachment, au as resolveEngines, av as sidePanels, aw as statePersistenceHandlers, ax as symbolRanking, ay as topbarActionOverride, az as unregisterDefaultEngine, aA as unregisterLegendAction, aB as unregisterLegendCallout, aC as unregisterNativeIndicator, aD as unregisterSidePanel, aE as unregisterStatePersistence, aF as unregisterWidgetAction, aG as unregisterWidgetAttachment, aH as widgetActions, aI as widgetAttachments } from './contributions-DOm40g5-.cjs';
3
+ export { C as CONTEXT_MENU_BUILTIN_ORDER, 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-_2UK1gSm.cjs';
4
+ export { H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, ab as DrawingPolyline, ag as DrawingTable, z as DrawingTypeKey, ai as DrawingXLoc, ak as Fill, al as FillGradientStop, am as IndicatorMeta, l as IndicatorModel, an as InputCondition, ao as InputSchema, ap as InputType, I as InputValue, aq as InputWhen, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, L as LineStyle, aE as MarkerPoint, aF as MarkerSeries, x as Millis, O as OHLCV, i as Pane, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aQ as PriceLine, P as PriceStyle, aU as Scene, m as ScenePatch, aV as SchemaPatch, aX as SeriesDisplay, aY as SeriesKind, aZ as SeriesPoint, a_ as SeriesSpec, a$ as SeriesSurface, b0 as SeriesValueDelta, b4 as TableCell, b5 as TableMerge, b6 as TablePosition, b8 as TradeExecution, b9 as ValuePatch, bc as inputDeltas, bd as inputVisible, be as seriesInScale, bf as seriesShownOn } from './options-CSXbjMM5.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-COGDs9Xg.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-Bw58CjYy.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 CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, N as NEUTRAL, m as NormalizedSettingsRow, R as RendererLayerArgs, n as RendererLayerDefinition, o as RendererLayerInstance, p as SERIES_LINE, q as SESSION_OFF, r as SESSION_POST, s as SESSION_PRE, t as SLATE, u as SLATE_DEEP, v as SeriesDataEngine, w as SeriesDataEngineHost, x as SettingsInlineControl, y as SettingsRowCondition, z as SettingsRowDescriptor, E as SettingsRowInlineNumber, F as SettingsRowSwatch, G as SettingsRowValueKey, J as SettingsRowWhen, K as SettingsRowWidth, S as SettingsSelectOption, L as SettingsValueRow, T as TRADE_EXIT, O as TRADE_LONG, P as TRADE_SHORT, V as VALID, W as WARNING, Q as categoricalColor, U as chartType, X as chartTypes, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a3 as registerRendererDefaults, a4 as registerRendererLayer, a5 as rendererDefaults, a6 as rendererLayers, a7 as settingsRowValueKeys, a8 as stableSeriesId, a9 as tickerModifierIds, aa as unregisterChartType, ab as unregisterRendererDefaults, ac as unregisterRendererLayer } from './plugin-CqxWoDKS.js';
2
- export { B as BarsChangeReason, C as CellStateContext, i as ContextSelect, k as EngineAlert, l as EngineCapabilities, m as EngineContextSnapshot, n as EngineFactory, o as EngineWarning, p as ExecutionHandlers, q as ExecutionMarket, r as ExecutionRequest, s as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, v as LegendCalloutContent, w as LegendCalloutDescriptor, x as LegendCalloutItem, y as LegendCalloutSpec, z as LegendIndicatorInfo, N as NativeIndicator, A as NativeIndicatorContext, G as NativeIndicatorDescriptor, H as NativeIndicatorInfo, J as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, K as PreparedScript, c as ScriptRun, _ as ScriptRunCause, $ as ScriptRunResult, S as ScriptingEngine, a0 as SidePanelButton, a1 as SidePanelDescriptor, a2 as SidePanelHandle, a3 as SidePanelHeader, a4 as StatePersistenceHandler, a5 as StrategyFill, a6 as StrategyState, a7 as StrategyTrade, a8 as SymbolRankingHook, ab as VisibleBarRange, ac as WidgetActionDescriptor, ad as WidgetActionTarget, ae as WidgetAttachment, W as WidgetContext, af as getNativeIndicator, ag as legendActions, ah as legendCallouts, aj as nativeIndicatorTypes, ak as registerDefaultEngine, al as registerLegendAction, am as registerLegendCallout, an as registerNativeIndicator, ao as registerSidePanel, ap as registerStatePersistence, aq as registerSymbolRanking, ar as registerWidgetAction, as as registerWidgetAttachment, at as resolveEngines, au as sidePanels, av as statePersistenceHandlers, aw as symbolRanking, ax as topbarActionOverride, ay as unregisterDefaultEngine, az as unregisterLegendAction, aA as unregisterLegendCallout, aB as unregisterNativeIndicator, aC as unregisterSidePanel, aD as unregisterStatePersistence, aE as unregisterWidgetAction, aF as unregisterWidgetAttachment, aG as widgetActions, aH as widgetAttachments } from './contributions-bWgwyiVi.js';
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-wMNfgyZb.js';
4
- export { H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, ab as DrawingPolyline, ag as DrawingTable, z as DrawingTypeKey, ai as DrawingXLoc, ak as Fill, al as FillGradientStop, am as IndicatorMeta, l as IndicatorModel, an as InputCondition, ao as InputSchema, ap as InputType, I as InputValue, aq as InputWhen, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, L as LineStyle, aE as MarkerPoint, aF as MarkerSeries, x as Millis, O as OHLCV, i as Pane, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aM as PriceLine, P as PriceStyle, aQ as Scene, m as ScenePatch, aR as SchemaPatch, aT as SeriesDisplay, aU as SeriesKind, aV as SeriesPoint, aW as SeriesSpec, aX as SeriesSurface, aY as SeriesValueDelta, b0 as TableCell, b1 as TableMerge, b2 as TablePosition, b4 as TradeExecution, b5 as ValuePatch, b8 as inputDeltas, b9 as inputVisible, ba as seriesInScale, bb as seriesShownOn } from './options-NAUHiQEC.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 CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, N as NEUTRAL, m as NormalizedSettingsRow, R as RendererLayerArgs, n as RendererLayerDefinition, o as RendererLayerInstance, p as SERIES_LINE, q as SESSION_OFF, r as SESSION_POST, s as SESSION_PRE, t as SLATE, u as SLATE_DEEP, v as SeriesDataEngine, w as SeriesDataEngineHost, x as SettingsInlineControl, y as SettingsRowCondition, z as SettingsRowDescriptor, E as SettingsRowInlineNumber, F as SettingsRowSwatch, G as SettingsRowValueKey, J as SettingsRowWhen, K as SettingsRowWidth, S as SettingsSelectOption, L as SettingsValueRow, T as TRADE_EXIT, O as TRADE_LONG, P as TRADE_SHORT, V as VALID, W as WARNING, Q as categoricalColor, U as chartType, X as chartTypes, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a3 as registerRendererDefaults, a4 as registerRendererLayer, a5 as rendererDefaults, a6 as rendererLayers, a7 as settingsRowValueKeys, a8 as stableSeriesId, a9 as tickerModifierIds, aa as unregisterChartType, ab as unregisterRendererDefaults, ac as unregisterRendererLayer } from './plugin-BDxUhGO3.js';
2
+ export { B as BarsChangeReason, C as CellStateContext, i as ContextMenuPointer, j as ContextSelect, l as EngineAlert, m as EngineCapabilities, n as EngineContextSnapshot, o as EngineFactory, p as EngineWarning, q as ExecutionHandlers, r as ExecutionMarket, s as ExecutionRequest, t as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, w as LegendCalloutContent, x as LegendCalloutDescriptor, y as LegendCalloutItem, z as LegendCalloutSpec, A as LegendIndicatorInfo, N as NativeIndicator, G as NativeIndicatorContext, H as NativeIndicatorDescriptor, J as NativeIndicatorInfo, K as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, Q as PreparedScript, c as ScriptRun, $ as ScriptRunCause, a0 as ScriptRunResult, S as ScriptingEngine, a1 as SidePanelButton, a2 as SidePanelDescriptor, a3 as SidePanelHandle, a4 as SidePanelHeader, a5 as StatePersistenceHandler, a6 as StrategyFill, a7 as StrategyState, a8 as StrategyTrade, a9 as SymbolRankingHook, ac as VisibleBarRange, ad as WidgetActionDescriptor, ae as WidgetActionTarget, af as WidgetAttachment, W as WidgetContext, ag as getNativeIndicator, ah as legendActions, ai as legendCallouts, ak as nativeIndicatorTypes, al as registerDefaultEngine, am as registerLegendAction, an as registerLegendCallout, ao as registerNativeIndicator, ap as registerSidePanel, aq as registerStatePersistence, ar as registerSymbolRanking, as as registerWidgetAction, at as registerWidgetAttachment, au as resolveEngines, av as sidePanels, aw as statePersistenceHandlers, ax as symbolRanking, ay as topbarActionOverride, az as unregisterDefaultEngine, aA as unregisterLegendAction, aB as unregisterLegendCallout, aC as unregisterNativeIndicator, aD as unregisterSidePanel, aE as unregisterStatePersistence, aF as unregisterWidgetAction, aG as unregisterWidgetAttachment, aH as widgetActions, aI as widgetAttachments } from './contributions-BY3zSYiZ.js';
3
+ export { C as CONTEXT_MENU_BUILTIN_ORDER, 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-_2UK1gSm.js';
4
+ export { H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, ab as DrawingPolyline, ag as DrawingTable, z as DrawingTypeKey, ai as DrawingXLoc, ak as Fill, al as FillGradientStop, am as IndicatorMeta, l as IndicatorModel, an as InputCondition, ao as InputSchema, ap as InputType, I as InputValue, aq as InputWhen, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, L as LineStyle, aE as MarkerPoint, aF as MarkerSeries, x as Millis, O as OHLCV, i as Pane, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aQ as PriceLine, P as PriceStyle, aU as Scene, m as ScenePatch, aV as SchemaPatch, aX as SeriesDisplay, aY as SeriesKind, aZ as SeriesPoint, a_ as SeriesSpec, a$ as SeriesSurface, b0 as SeriesValueDelta, b4 as TableCell, b5 as TableMerge, b6 as TablePosition, b8 as TradeExecution, b9 as ValuePatch, bc as inputDeltas, bd as inputVisible, be as seriesInScale, bf as seriesShownOn } from './options-CSXbjMM5.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-DpOWZD8F.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-Byo8pEv0.js';
package/dist/plugin.js CHANGED
@@ -1,3 +1,3 @@
1
- import './chunk-JU4CWEBF.js';
2
- export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, OVERRIDABLE_TOPBAR_IDS, chartType, chartTypes, clampPanelWidth, drawingTypes, getDrawingType, getNativeIndicator, inputDeltas, inputVisible, legendActions, legendCallouts, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerLegendAction, registerLegendCallout, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerStatePersistence, registerSymbolRanking, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, seriesInScale, seriesShownOn, settingsRowValueKeys, sidePanels, stableSeriesId, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-DPAA3SRT.js';
3
- export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CHIP_PLATE, 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-HKNO24GD.js';
1
+ import './chunk-W5YPYZ2P.js';
2
+ export { CONTEXT_MENU_BUILTIN_ORDER, DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, OVERRIDABLE_TOPBAR_IDS, chartType, chartTypes, clampPanelWidth, drawingTypes, getDrawingType, getNativeIndicator, inputDeltas, inputVisible, legendActions, legendCallouts, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerLegendAction, registerLegendCallout, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerStatePersistence, registerSymbolRanking, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, seriesInScale, seriesShownOn, settingsRowValueKeys, sidePanels, stableSeriesId, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-ALTGHKIM.js';
3
+ export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CHIP_PLATE, 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-I2U4NZD2.js';
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-NAUHiQEC.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-COGDs9Xg.cjs';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CSXbjMM5.cjs';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Bw58CjYy.cjs';
3
3
 
4
4
  /**
5
5
  * Binance market-data provider, built from scratch on the public REST + WebSocket
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-NAUHiQEC.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DpOWZD8F.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CSXbjMM5.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Byo8pEv0.js';
3
3
 
4
4
  /**
5
5
  * Binance market-data provider, built from scratch on the public REST + WebSocket
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-NAUHiQEC.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-COGDs9Xg.cjs';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CSXbjMM5.cjs';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Bw58CjYy.cjs';
3
3
 
4
4
  /**
5
5
  * Coinbase market-data provider, built from scratch on the public Exchange REST + WebSocket APIs
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-NAUHiQEC.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DpOWZD8F.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CSXbjMM5.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Byo8pEv0.js';
3
3
 
4
4
  /**
5
5
  * Coinbase market-data provider, built from scratch on the public Exchange REST + WebSocket APIs
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-NAUHiQEC.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-COGDs9Xg.cjs';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CSXbjMM5.cjs';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Bw58CjYy.cjs';
3
3
 
4
4
  /**
5
5
  * Hyperliquid market-data provider, built from scratch on the public info API — no
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-NAUHiQEC.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DpOWZD8F.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CSXbjMM5.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Byo8pEv0.js';
3
3
 
4
4
  /**
5
5
  * Hyperliquid market-data provider, built from scratch on the public info API — no
@@ -1,3 +1,35 @@
1
+ /**
2
+ * The rank of every built-in context-menu row, by zone and row id (`settings` is each
3
+ * zone's settings row). Contributed `context:*` actions sort TOGETHER with these rows by
4
+ * their `order` (default 0), ascending; on a tie the built-in row comes first, then the
5
+ * actions in registration order. The built-in actions rank below 0 and the settings row at
6
+ * 1000, so an action without `order` lands after the built-in actions and before the
7
+ * settings row, and `order: -100` leads the menu.
8
+ */
9
+ declare const CONTEXT_MENU_BUILTIN_ORDER: {
10
+ readonly body: {
11
+ readonly 'reset-view': -30;
12
+ readonly 'remove-drawings': -20;
13
+ readonly 'remove-indicators': -10;
14
+ readonly settings: 1000;
15
+ };
16
+ readonly 'price-axis': {
17
+ readonly auto: -80;
18
+ readonly invert: -70;
19
+ readonly 'scale:regular': -60;
20
+ readonly 'scale:percent': -50;
21
+ readonly 'scale:indexed': -40;
22
+ readonly 'scale:log': -30;
23
+ readonly labels: -20;
24
+ readonly levels: -10;
25
+ readonly settings: 1000;
26
+ };
27
+ readonly 'time-axis': {
28
+ readonly timezone: -10;
29
+ readonly settings: 1000;
30
+ };
31
+ };
32
+
1
33
  /** Width (px) a panel takes when it declares none. */
2
34
  declare const DEFAULT_PANEL_WIDTH = 280;
3
35
  /** Bounds a RESIZABLE panel takes when it declares none. */
@@ -54,11 +86,21 @@ declare class SidePanel {
54
86
  private maximizedOn;
55
87
  /** Set while the close is announced, so a listener's own close does not re-enter. */
56
88
  private closing;
89
+ /** Open as far as the dock and the host are concerned — a closed panel can still be on
90
+ * screen while its exit animation runs. */
91
+ private isOpen;
92
+ /** The exit animation of a close; a reopen cancels it. */
93
+ private exit;
57
94
  /** `modifier` is the panel's own class, carrying its content styles (e.g. `vela-ot`). */
58
95
  constructor(host: HTMLElement, title: string, modifier: string, opts?: SidePanelOptions);
59
96
  get open(): boolean;
60
- /** Open/close the panel — a bare call flips it. */
61
- toggle(open?: boolean): void;
97
+ /**
98
+ * Open/close the panel — a bare call flips it. The panel reports closed at once, but a
99
+ * close keeps it on screen, marked `data-closing`, while a host exit animation runs.
100
+ * `instant` skips that, and also cuts short the exit of a panel already closing: a panel
101
+ * handing the dock to another leaves at once.
102
+ */
103
+ toggle(open?: boolean, instant?: boolean): void;
62
104
  /** Whether the panel covers every chart right now. */
63
105
  get maximized(): boolean;
64
106
  /** Maximize the panel over the shell's charts, or restore it. A no-op on a panel not
@@ -90,4 +132,4 @@ declare class SidePanel {
90
132
  private mountResizer;
91
133
  }
92
134
 
93
- export { DEFAULT_PANEL_MAX_WIDTH as D, type SidePanelOptions as S, DEFAULT_PANEL_MIN_WIDTH as a, DEFAULT_PANEL_WIDTH as b, clampPanelWidth as c, SidePanel as d };
135
+ export { CONTEXT_MENU_BUILTIN_ORDER as C, DEFAULT_PANEL_MAX_WIDTH as D, type SidePanelOptions as S, DEFAULT_PANEL_MIN_WIDTH as a, DEFAULT_PANEL_WIDTH as b, clampPanelWidth as c, SidePanel as d };
@@ -1,3 +1,35 @@
1
+ /**
2
+ * The rank of every built-in context-menu row, by zone and row id (`settings` is each
3
+ * zone's settings row). Contributed `context:*` actions sort TOGETHER with these rows by
4
+ * their `order` (default 0), ascending; on a tie the built-in row comes first, then the
5
+ * actions in registration order. The built-in actions rank below 0 and the settings row at
6
+ * 1000, so an action without `order` lands after the built-in actions and before the
7
+ * settings row, and `order: -100` leads the menu.
8
+ */
9
+ declare const CONTEXT_MENU_BUILTIN_ORDER: {
10
+ readonly body: {
11
+ readonly 'reset-view': -30;
12
+ readonly 'remove-drawings': -20;
13
+ readonly 'remove-indicators': -10;
14
+ readonly settings: 1000;
15
+ };
16
+ readonly 'price-axis': {
17
+ readonly auto: -80;
18
+ readonly invert: -70;
19
+ readonly 'scale:regular': -60;
20
+ readonly 'scale:percent': -50;
21
+ readonly 'scale:indexed': -40;
22
+ readonly 'scale:log': -30;
23
+ readonly labels: -20;
24
+ readonly levels: -10;
25
+ readonly settings: 1000;
26
+ };
27
+ readonly 'time-axis': {
28
+ readonly timezone: -10;
29
+ readonly settings: 1000;
30
+ };
31
+ };
32
+
1
33
  /** Width (px) a panel takes when it declares none. */
2
34
  declare const DEFAULT_PANEL_WIDTH = 280;
3
35
  /** Bounds a RESIZABLE panel takes when it declares none. */
@@ -54,11 +86,21 @@ declare class SidePanel {
54
86
  private maximizedOn;
55
87
  /** Set while the close is announced, so a listener's own close does not re-enter. */
56
88
  private closing;
89
+ /** Open as far as the dock and the host are concerned — a closed panel can still be on
90
+ * screen while its exit animation runs. */
91
+ private isOpen;
92
+ /** The exit animation of a close; a reopen cancels it. */
93
+ private exit;
57
94
  /** `modifier` is the panel's own class, carrying its content styles (e.g. `vela-ot`). */
58
95
  constructor(host: HTMLElement, title: string, modifier: string, opts?: SidePanelOptions);
59
96
  get open(): boolean;
60
- /** Open/close the panel — a bare call flips it. */
61
- toggle(open?: boolean): void;
97
+ /**
98
+ * Open/close the panel — a bare call flips it. The panel reports closed at once, but a
99
+ * close keeps it on screen, marked `data-closing`, while a host exit animation runs.
100
+ * `instant` skips that, and also cuts short the exit of a panel already closing: a panel
101
+ * handing the dock to another leaves at once.
102
+ */
103
+ toggle(open?: boolean, instant?: boolean): void;
62
104
  /** Whether the panel covers every chart right now. */
63
105
  get maximized(): boolean;
64
106
  /** Maximize the panel over the shell's charts, or restore it. A no-op on a panel not
@@ -90,4 +132,4 @@ declare class SidePanel {
90
132
  private mountResizer;
91
133
  }
92
134
 
93
- export { DEFAULT_PANEL_MAX_WIDTH as D, type SidePanelOptions as S, DEFAULT_PANEL_MIN_WIDTH as a, DEFAULT_PANEL_WIDTH as b, clampPanelWidth as c, SidePanel as d };
135
+ export { CONTEXT_MENU_BUILTIN_ORDER as C, DEFAULT_PANEL_MAX_WIDTH as D, type SidePanelOptions as S, DEFAULT_PANEL_MIN_WIDTH as a, DEFAULT_PANEL_WIDTH as b, clampPanelWidth as c, SidePanel as d };
@@ -1,6 +1,6 @@
1
- import { D as DataProvider } from './DataProvider-DpOWZD8F.js';
2
- import { S as ScriptingEngine, V as Vela } from './contributions-bWgwyiVi.js';
3
- import { W as WallClock, V as VisibleRangePreset } from './options-NAUHiQEC.js';
1
+ import { D as DataProvider } from './DataProvider-Byo8pEv0.js';
2
+ import { S as ScriptingEngine, V as Vela } from './contributions-BY3zSYiZ.js';
3
+ import { W as WallClock, V as VisibleRangePreset } from './options-CSXbjMM5.js';
4
4
 
5
5
  /** The linkable dimensions. `crosshair` mirrors the pointer time onto same-group
6
6
  * cells as GHOST crosshairs (renderers without the optional `setExternalCrosshair`
@@ -43,6 +43,19 @@ interface PanelsState {
43
43
  widths?: Record<string, number>;
44
44
  pinned?: string[];
45
45
  }
46
+ /**
47
+ * The drawing tools' shared preferences — one set per shell, like the favorite stars:
48
+ * each tool's remembered settings (what its next drawing starts from), the magnet, and
49
+ * stay-in-drawing-mode. `defaults` maps a tool type to its settings and passes through
50
+ * opaquely; `drawings.setToolDefaults` validates each entry at restore time.
51
+ */
52
+ interface DrawingToolsState {
53
+ defaults?: Record<string, unknown>;
54
+ /** Each tool's saved looks — a list of `{ name, settings }`, by tool type. */
55
+ templates?: Record<string, unknown[]>;
56
+ magnet?: 'off' | 'weak' | 'strong';
57
+ stay?: boolean;
58
+ }
46
59
  /** Per-chart (per-cell) state: the market, the display prefs, the content documents,
47
60
  * and the indicator ledger. The widget's whole chart state is ONE of these. */
48
61
  interface CellState {
@@ -122,6 +135,8 @@ interface WorkspaceState {
122
135
  favorites?: string[];
123
136
  /** Favorite timeframes (the topbar's quick-switch chips) — a SHARED preference. */
124
137
  timeframeFavorites?: string[];
138
+ /** The drawing tools' remembered settings, magnet and stay mode — a SHARED preference. */
139
+ drawingTools?: DrawingToolsState;
125
140
  /** The docked side panels: which one is open, and the widths the user dragged. */
126
141
  panels?: PanelsState;
127
142
  /** Per-chart state, one entry per SLOT (a single `c1` entry for the widget).
@@ -407,4 +422,4 @@ declare class Bottombar {
407
422
  * the status line's own right-click menu drive these. */
408
423
  type StatuslinePart = 'logo' | 'name' | 'market' | 'ohlc' | 'change';
409
424
 
410
- export { Bottombar as B, type CellState as C, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, TOPBAR_BUILTIN_IDS as p, TOPBAR_DEFAULT_LEFT as q, TOPBAR_DEFAULT_RIGHT as r, sanitizeState as s, type WidgetStorage as t, localStorageAdapter as u, pinnedTopbarActionIds as v, resolveIndicators as w, resolveTopbarComposition as x, topbarHas as y };
425
+ export { Bottombar as B, type CellState as C, type DrawingToolsState as D, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, TOPBAR_BUILTIN_IDS as p, TOPBAR_DEFAULT_LEFT as q, TOPBAR_DEFAULT_RIGHT as r, sanitizeState as s, type WidgetStorage as t, localStorageAdapter as u, pinnedTopbarActionIds as v, resolveIndicators as w, resolveTopbarComposition as x, topbarHas as y };
@@ -1,6 +1,6 @@
1
- import { D as DataProvider } from './DataProvider-COGDs9Xg.cjs';
2
- import { S as ScriptingEngine, V as Vela } from './contributions-Cgm9RJYP.cjs';
3
- import { W as WallClock, V as VisibleRangePreset } from './options-NAUHiQEC.cjs';
1
+ import { D as DataProvider } from './DataProvider-Bw58CjYy.cjs';
2
+ import { S as ScriptingEngine, V as Vela } from './contributions-DOm40g5-.cjs';
3
+ import { W as WallClock, V as VisibleRangePreset } from './options-CSXbjMM5.cjs';
4
4
 
5
5
  /** The linkable dimensions. `crosshair` mirrors the pointer time onto same-group
6
6
  * cells as GHOST crosshairs (renderers without the optional `setExternalCrosshair`
@@ -43,6 +43,19 @@ interface PanelsState {
43
43
  widths?: Record<string, number>;
44
44
  pinned?: string[];
45
45
  }
46
+ /**
47
+ * The drawing tools' shared preferences — one set per shell, like the favorite stars:
48
+ * each tool's remembered settings (what its next drawing starts from), the magnet, and
49
+ * stay-in-drawing-mode. `defaults` maps a tool type to its settings and passes through
50
+ * opaquely; `drawings.setToolDefaults` validates each entry at restore time.
51
+ */
52
+ interface DrawingToolsState {
53
+ defaults?: Record<string, unknown>;
54
+ /** Each tool's saved looks — a list of `{ name, settings }`, by tool type. */
55
+ templates?: Record<string, unknown[]>;
56
+ magnet?: 'off' | 'weak' | 'strong';
57
+ stay?: boolean;
58
+ }
46
59
  /** Per-chart (per-cell) state: the market, the display prefs, the content documents,
47
60
  * and the indicator ledger. The widget's whole chart state is ONE of these. */
48
61
  interface CellState {
@@ -122,6 +135,8 @@ interface WorkspaceState {
122
135
  favorites?: string[];
123
136
  /** Favorite timeframes (the topbar's quick-switch chips) — a SHARED preference. */
124
137
  timeframeFavorites?: string[];
138
+ /** The drawing tools' remembered settings, magnet and stay mode — a SHARED preference. */
139
+ drawingTools?: DrawingToolsState;
125
140
  /** The docked side panels: which one is open, and the widths the user dragged. */
126
141
  panels?: PanelsState;
127
142
  /** Per-chart state, one entry per SLOT (a single `c1` entry for the widget).
@@ -407,4 +422,4 @@ declare class Bottombar {
407
422
  * the status line's own right-click menu drive these. */
408
423
  type StatuslinePart = 'logo' | 'name' | 'market' | 'ohlc' | 'change';
409
424
 
410
- export { Bottombar as B, type CellState as C, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, TOPBAR_BUILTIN_IDS as p, TOPBAR_DEFAULT_LEFT as q, TOPBAR_DEFAULT_RIGHT as r, sanitizeState as s, type WidgetStorage as t, localStorageAdapter as u, pinnedTopbarActionIds as v, resolveIndicators as w, resolveTopbarComposition as x, topbarHas as y };
425
+ export { Bottombar as B, type CellState as C, type DrawingToolsState as D, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, TOPBAR_BUILTIN_IDS as p, TOPBAR_DEFAULT_LEFT as q, TOPBAR_DEFAULT_RIGHT as r, sanitizeState as s, type WidgetStorage as t, localStorageAdapter as u, pinnedTopbarActionIds as v, resolveIndicators as w, resolveTopbarComposition as x, topbarHas as y };