@luxalgo/vela 0.8.0 → 0.8.2

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 (49) hide show
  1. package/NOTICE +1 -1
  2. package/README.md +16 -8
  3. package/dist/{DataProvider-BrlxntPN.d.cts → DataProvider-COGDs9Xg.d.cts} +1 -1
  4. package/dist/{DataProvider-DwFIoV4r.d.ts → DataProvider-DpOWZD8F.d.ts} +1 -1
  5. package/dist/{chunk-KA77UTRF.js → chunk-27UTYE7T.js} +25 -2
  6. package/dist/{chunk-EZ5FWVLA.js → chunk-DPAA3SRT.js} +94 -13
  7. package/dist/{chunk-BZQM2XO7.js → chunk-HKNO24GD.js} +13 -1
  8. package/dist/{chunk-2IAETM2I.js → chunk-NLDTVFOI.js} +79 -6
  9. package/dist/{chunk-E3GU6AUI.js → chunk-R2JMNIHY.js} +68 -23
  10. package/dist/{chunk-QBPUT5SU.js → chunk-T3DZIR5Y.js} +211 -54
  11. package/dist/{contributions-tjNExo1o.d.ts → contributions-Cgm9RJYP.d.cts} +38 -11
  12. package/dist/{contributions-CtlptxR8.d.cts → contributions-bWgwyiVi.d.ts} +38 -11
  13. package/dist/index.cjs +317 -62
  14. package/dist/index.d.cts +8 -8
  15. package/dist/index.d.ts +8 -8
  16. package/dist/index.js +4 -4
  17. package/dist/{options-BnEPUuVV.d.ts → options-NAUHiQEC.d.cts} +3 -3
  18. package/dist/{options-BnEPUuVV.d.cts → options-NAUHiQEC.d.ts} +3 -3
  19. package/dist/{plugin-BWxJRKzS.d.cts → plugin-CjjzZX2F.d.cts} +4 -4
  20. package/dist/{plugin-e2WUEtiI.d.ts → plugin-CqxWoDKS.d.ts} +4 -4
  21. package/dist/plugin.cjs +20 -6
  22. package/dist/plugin.d.cts +5 -5
  23. package/dist/plugin.d.ts +5 -5
  24. package/dist/plugin.js +2 -2
  25. package/dist/providers/binance.d.cts +2 -2
  26. package/dist/providers/binance.d.ts +2 -2
  27. package/dist/providers/coinbase.d.cts +2 -2
  28. package/dist/providers/coinbase.d.ts +2 -2
  29. package/dist/providers/hyperliquid.d.cts +2 -2
  30. package/dist/providers/hyperliquid.d.ts +2 -2
  31. package/dist/{side-panel-HF0IAzwf.d.cts → side-panel-wMNfgyZb.d.cts} +13 -0
  32. package/dist/{side-panel-HF0IAzwf.d.ts → side-panel-wMNfgyZb.d.ts} +13 -0
  33. package/dist/{statusline-model-zKXtGIjj.d.ts → statusline-model-Dih6FGWP.d.ts} +3 -3
  34. package/dist/{statusline-model-DFY7tuHj.d.cts → statusline-model-Dpfpq54A.d.cts} +3 -3
  35. package/dist/ui.cjs +115 -5
  36. package/dist/ui.d.cts +28 -2
  37. package/dist/ui.d.ts +28 -2
  38. package/dist/ui.js +3 -3
  39. package/dist/vela.global.js +317 -62
  40. package/dist/vela.global.min.js +61 -68
  41. package/dist/widget.cjs +476 -85
  42. package/dist/widget.d.cts +20 -10
  43. package/dist/widget.d.ts +20 -10
  44. package/dist/widget.js +7 -7
  45. package/dist/workspace.cjs +476 -85
  46. package/dist/workspace.d.cts +6 -6
  47. package/dist/workspace.d.ts +6 -6
  48. package/dist/workspace.js +6 -6
  49. package/package.json +3 -3
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-CtlptxR8.cjs';
2
- export { B as BarsChangeReason, C as CellStateContext, h as ContextSelect, i as DrawingsControl, j as EngineAlert, k as EngineCapabilities, l as EngineContextSnapshot, m as EngineFactory, n as EngineWarning, o as ExecutionHandlers, p as ExecutionMarket, q as ExecutionRequest, r as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, s as IndicatorEventMap, I as IndicatorHandle, t as IndicatorSummary, L as LegendActionDescriptor, u as LegendCalloutContent, v as LegendCalloutDescriptor, w as LegendCalloutItem, x as LegendCalloutSpec, y as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, z as NativeIndicatorContext, A as NativeIndicatorDescriptor, G as NativeIndicatorInfo, H as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, J as PreparedScript, K as RendererControl, a as ReplayBounds, Q as ReplayControl, T as ReplayEndReason, U as ReplayStartOptions, R as ReplayState, X as RunIndicatorResult, Y as SceneInspection, c as ScriptRun, Z as ScriptRunCause, _ as ScriptRunResult, S as ScriptingEngine, $ as SidePanelButton, a0 as SidePanelDescriptor, a1 as SidePanelHandle, a2 as SidePanelHeader, a3 as StatePersistenceHandler, a4 as StrategyFill, a5 as StrategyState, a6 as StrategyTrade, a7 as SymbolRankingHook, a8 as TypedEventBus, V as Vela, a9 as VelaDeps, b as VelaEventMap, aa as VisibleBarRange, ab as WidgetActionDescriptor, ac as WidgetActionTarget, ad as WidgetAttachment, W as WidgetContext, ae as getNativeIndicator, af as legendActions, ag as legendCallouts, ah as nativeIndicatorDescriptors, ai as nativeIndicatorTypes, aj as registerDefaultEngine, ak as registerLegendAction, al as registerLegendCallout, am as registerNativeIndicator, an as registerSidePanel, ao as registerStatePersistence, ap as registerSymbolRanking, aq as registerWidgetAction, ar as registerWidgetAttachment, as as resolveEngines, at as sidePanels, au as statePersistenceHandlers, av as symbolRanking, aw as topbarActionOverride, ax as unregisterDefaultEngine, ay as unregisterLegendAction, az as unregisterLegendCallout, aA as unregisterNativeIndicator, aB as unregisterSidePanel, aC as unregisterStatePersistence, aD as unregisterWidgetAction, aE as unregisterWidgetAttachment, aF as widgetActions, aG as widgetAttachments } from './contributions-CtlptxR8.cjs';
3
- import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, e as IChartRenderer, R as RendererCapabilities, f as RendererDisplayOptions, g as IndicatorRenderHandle, h as IndicatorStatus, c as VelaTheme, W as WallClock, O as OHLCV, i as Pane, j as PaneAction, k as MoveTarget, l as IndicatorModel, m as ScenePatch, I as InputValue, n as SymbolPickerFn, o as LegendActionView, p as LegendCalloutView, q as InputChangeEvent, T as ThemeName, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, s as TimelineMark, t as MarkGroup, u as MarkClickEvent, a as VisibleRange, v as DataWindowReadout, w as IDrawingsRendererPort, x as Millis, y as SnapMode, z as DrawingTypeKey, B as ToolbarDefinition, M as MarketConfig, E as MarketSnapshot } from './options-BnEPUuVV.cjs';
4
- export { F as AddIndicatorOptions, G as AnimationConfig, H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, $ as DataWindowGroup, a0 as DataWindowOHLC, a1 as DataWindowRow, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a5 as DrawingIntent, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, a9 as DrawingMode, aa as DrawingPoint, ab as DrawingPolyline, ac as DrawingSeriesBar, ad as DrawingSeriesGateway, ae as DrawingSeriesState, af as DrawingStyle, ag as DrawingTable, ah as DrawingText, ai as DrawingXLoc, aj as DrawingsOption, ak as Fill, al as FillGradientStop, am as IndicatorMeta, an as InputCondition, ao as InputSchema, ap as InputType, aq as InputWhen, ar as IntroAnimation, as as IntroConfig, at as IntroStyle, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, az as MarkContent, aA as MarkContentSource, aB as MarkGlyph, aC as MarkPanelItem, aD as MarkShape, aE as MarkerPoint, aF as MarkerSeries, aG as MarketSwitch, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aM as PriceLine, aN as Projector, aO as ProviderName, aP as RendererConstructor, aQ as Scene, aR as SchemaPatch, aS as SecondClock, aT as SeriesDisplay, aU as SeriesKind, aV as SeriesPoint, aW as SeriesSpec, aX as SeriesSurface, aY as SeriesValueDelta, aZ as SettingsField, a_ as SettingsSchema, a$ as SettingsVisibilityPolicy, b0 as TableCell, b1 as TableMerge, b2 as TablePosition, b3 as ToolbarGroupConfig, b4 as TradeExecution, b5 as ValuePatch, b as VelaOptions, V as VisibleRangePreset, b6 as buildToolbar, b7 as defaultToolbar, b8 as inputDeltas, b9 as inputVisible, ba as seriesInScale, bb as seriesShownOn } from './options-BnEPUuVV.cjs';
5
- import { S as SettingsSelectOption } from './plugin-BWxJRKzS.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 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, 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, Y as createDrawing, Z as deserializeDrawing, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a2 as registerDrawingType, 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-BWxJRKzS.cjs';
7
- import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-BrlxntPN.cjs';
8
- 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-HF0IAzwf.cjs';
1
+ import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-Cgm9RJYP.cjs';
2
+ export { B as BarsChangeReason, C as CellStateContext, h as CodeUpdateResult, i as ContextSelect, j as DrawingsControl, 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, t as IndicatorEventMap, I as IndicatorHandle, u as IndicatorSummary, L as LegendActionDescriptor, v as LegendCalloutContent, w as LegendCalloutDescriptor, x as LegendCalloutItem, y as LegendCalloutSpec, z as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, A as NativeIndicatorContext, G as NativeIndicatorDescriptor, H as NativeIndicatorInfo, J as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, K as PreparedScript, Q as RendererControl, a as ReplayBounds, T as ReplayControl, U as ReplayEndReason, X as ReplayStartOptions, R as ReplayState, Y as RunIndicatorResult, Z as SceneInspection, 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, a9 as TypedEventBus, V as Vela, aa as VelaDeps, b as VelaEventMap, ab as VisibleBarRange, ac as WidgetActionDescriptor, ad as WidgetActionTarget, ae as WidgetAttachment, W as WidgetContext, af as getNativeIndicator, ag as legendActions, ah as legendCallouts, ai as nativeIndicatorDescriptors, 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
+ import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, e as IChartRenderer, R as RendererCapabilities, f as RendererDisplayOptions, g as IndicatorRenderHandle, h as IndicatorStatus, c as VelaTheme, W as WallClock, O as OHLCV, i as Pane, j as PaneAction, k as MoveTarget, l as IndicatorModel, m as ScenePatch, I as InputValue, n as SymbolPickerFn, o as LegendActionView, p as LegendCalloutView, q as InputChangeEvent, T as ThemeName, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, s as TimelineMark, t as MarkGroup, u as MarkClickEvent, a as VisibleRange, v as DataWindowReadout, w as IDrawingsRendererPort, x as Millis, y as SnapMode, z as DrawingTypeKey, B as ToolbarDefinition, M as MarketConfig, E as MarketSnapshot } from './options-NAUHiQEC.cjs';
4
+ export { F as AddIndicatorOptions, G as AnimationConfig, H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, $ as DataWindowGroup, a0 as DataWindowOHLC, a1 as DataWindowRow, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a5 as DrawingIntent, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, a9 as DrawingMode, aa as DrawingPoint, ab as DrawingPolyline, ac as DrawingSeriesBar, ad as DrawingSeriesGateway, ae as DrawingSeriesState, af as DrawingStyle, ag as DrawingTable, ah as DrawingText, ai as DrawingXLoc, aj as DrawingsOption, ak as Fill, al as FillGradientStop, am as IndicatorMeta, an as InputCondition, ao as InputSchema, ap as InputType, aq as InputWhen, ar as IntroAnimation, as as IntroConfig, at as IntroStyle, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, az as MarkContent, aA as MarkContentSource, aB as MarkGlyph, aC as MarkPanelItem, aD as MarkShape, aE as MarkerPoint, aF as MarkerSeries, aG as MarketSwitch, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aM as PriceLine, aN as Projector, aO as ProviderName, aP as RendererConstructor, aQ as Scene, aR as SchemaPatch, aS as SecondClock, aT as SeriesDisplay, aU as SeriesKind, aV as SeriesPoint, aW as SeriesSpec, aX as SeriesSurface, aY as SeriesValueDelta, aZ as SettingsField, a_ as SettingsSchema, a$ as SettingsVisibilityPolicy, b0 as TableCell, b1 as TableMerge, b2 as TablePosition, b3 as ToolbarGroupConfig, b4 as TradeExecution, b5 as ValuePatch, b as VelaOptions, V as VisibleRangePreset, b6 as buildToolbar, b7 as defaultToolbar, b8 as inputDeltas, b9 as inputVisible, ba as seriesInScale, bb as seriesShownOn } from './options-NAUHiQEC.cjs';
5
+ import { S as SettingsSelectOption } from './plugin-CjjzZX2F.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 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, 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, Y as createDrawing, Z as deserializeDrawing, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a2 as registerDrawingType, 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';
7
+ import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-COGDs9Xg.cjs';
8
+ 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';
9
9
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.cjs';
10
10
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
11
11
 
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-tjNExo1o.js';
2
- export { B as BarsChangeReason, C as CellStateContext, h as ContextSelect, i as DrawingsControl, j as EngineAlert, k as EngineCapabilities, l as EngineContextSnapshot, m as EngineFactory, n as EngineWarning, o as ExecutionHandlers, p as ExecutionMarket, q as ExecutionRequest, r as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, s as IndicatorEventMap, I as IndicatorHandle, t as IndicatorSummary, L as LegendActionDescriptor, u as LegendCalloutContent, v as LegendCalloutDescriptor, w as LegendCalloutItem, x as LegendCalloutSpec, y as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, z as NativeIndicatorContext, A as NativeIndicatorDescriptor, G as NativeIndicatorInfo, H as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, J as PreparedScript, K as RendererControl, a as ReplayBounds, Q as ReplayControl, T as ReplayEndReason, U as ReplayStartOptions, R as ReplayState, X as RunIndicatorResult, Y as SceneInspection, c as ScriptRun, Z as ScriptRunCause, _ as ScriptRunResult, S as ScriptingEngine, $ as SidePanelButton, a0 as SidePanelDescriptor, a1 as SidePanelHandle, a2 as SidePanelHeader, a3 as StatePersistenceHandler, a4 as StrategyFill, a5 as StrategyState, a6 as StrategyTrade, a7 as SymbolRankingHook, a8 as TypedEventBus, V as Vela, a9 as VelaDeps, b as VelaEventMap, aa as VisibleBarRange, ab as WidgetActionDescriptor, ac as WidgetActionTarget, ad as WidgetAttachment, W as WidgetContext, ae as getNativeIndicator, af as legendActions, ag as legendCallouts, ah as nativeIndicatorDescriptors, ai as nativeIndicatorTypes, aj as registerDefaultEngine, ak as registerLegendAction, al as registerLegendCallout, am as registerNativeIndicator, an as registerSidePanel, ao as registerStatePersistence, ap as registerSymbolRanking, aq as registerWidgetAction, ar as registerWidgetAttachment, as as resolveEngines, at as sidePanels, au as statePersistenceHandlers, av as symbolRanking, aw as topbarActionOverride, ax as unregisterDefaultEngine, ay as unregisterLegendAction, az as unregisterLegendCallout, aA as unregisterNativeIndicator, aB as unregisterSidePanel, aC as unregisterStatePersistence, aD as unregisterWidgetAction, aE as unregisterWidgetAttachment, aF as widgetActions, aG as widgetAttachments } from './contributions-tjNExo1o.js';
3
- import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, e as IChartRenderer, R as RendererCapabilities, f as RendererDisplayOptions, g as IndicatorRenderHandle, h as IndicatorStatus, c as VelaTheme, W as WallClock, O as OHLCV, i as Pane, j as PaneAction, k as MoveTarget, l as IndicatorModel, m as ScenePatch, I as InputValue, n as SymbolPickerFn, o as LegendActionView, p as LegendCalloutView, q as InputChangeEvent, T as ThemeName, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, s as TimelineMark, t as MarkGroup, u as MarkClickEvent, a as VisibleRange, v as DataWindowReadout, w as IDrawingsRendererPort, x as Millis, y as SnapMode, z as DrawingTypeKey, B as ToolbarDefinition, M as MarketConfig, E as MarketSnapshot } from './options-BnEPUuVV.js';
4
- export { F as AddIndicatorOptions, G as AnimationConfig, H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, $ as DataWindowGroup, a0 as DataWindowOHLC, a1 as DataWindowRow, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a5 as DrawingIntent, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, a9 as DrawingMode, aa as DrawingPoint, ab as DrawingPolyline, ac as DrawingSeriesBar, ad as DrawingSeriesGateway, ae as DrawingSeriesState, af as DrawingStyle, ag as DrawingTable, ah as DrawingText, ai as DrawingXLoc, aj as DrawingsOption, ak as Fill, al as FillGradientStop, am as IndicatorMeta, an as InputCondition, ao as InputSchema, ap as InputType, aq as InputWhen, ar as IntroAnimation, as as IntroConfig, at as IntroStyle, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, az as MarkContent, aA as MarkContentSource, aB as MarkGlyph, aC as MarkPanelItem, aD as MarkShape, aE as MarkerPoint, aF as MarkerSeries, aG as MarketSwitch, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aM as PriceLine, aN as Projector, aO as ProviderName, aP as RendererConstructor, aQ as Scene, aR as SchemaPatch, aS as SecondClock, aT as SeriesDisplay, aU as SeriesKind, aV as SeriesPoint, aW as SeriesSpec, aX as SeriesSurface, aY as SeriesValueDelta, aZ as SettingsField, a_ as SettingsSchema, a$ as SettingsVisibilityPolicy, b0 as TableCell, b1 as TableMerge, b2 as TablePosition, b3 as ToolbarGroupConfig, b4 as TradeExecution, b5 as ValuePatch, b as VelaOptions, V as VisibleRangePreset, b6 as buildToolbar, b7 as defaultToolbar, b8 as inputDeltas, b9 as inputVisible, ba as seriesInScale, bb as seriesShownOn } from './options-BnEPUuVV.js';
5
- import { S as SettingsSelectOption } from './plugin-e2WUEtiI.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 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, 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, Y as createDrawing, Z as deserializeDrawing, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a2 as registerDrawingType, 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-e2WUEtiI.js';
7
- import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-DwFIoV4r.js';
8
- 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-HF0IAzwf.js';
1
+ import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-bWgwyiVi.js';
2
+ export { B as BarsChangeReason, C as CellStateContext, h as CodeUpdateResult, i as ContextSelect, j as DrawingsControl, 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, t as IndicatorEventMap, I as IndicatorHandle, u as IndicatorSummary, L as LegendActionDescriptor, v as LegendCalloutContent, w as LegendCalloutDescriptor, x as LegendCalloutItem, y as LegendCalloutSpec, z as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, A as NativeIndicatorContext, G as NativeIndicatorDescriptor, H as NativeIndicatorInfo, J as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, K as PreparedScript, Q as RendererControl, a as ReplayBounds, T as ReplayControl, U as ReplayEndReason, X as ReplayStartOptions, R as ReplayState, Y as RunIndicatorResult, Z as SceneInspection, 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, a9 as TypedEventBus, V as Vela, aa as VelaDeps, b as VelaEventMap, ab as VisibleBarRange, ac as WidgetActionDescriptor, ad as WidgetActionTarget, ae as WidgetAttachment, W as WidgetContext, af as getNativeIndicator, ag as legendActions, ah as legendCallouts, ai as nativeIndicatorDescriptors, 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
+ import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, e as IChartRenderer, R as RendererCapabilities, f as RendererDisplayOptions, g as IndicatorRenderHandle, h as IndicatorStatus, c as VelaTheme, W as WallClock, O as OHLCV, i as Pane, j as PaneAction, k as MoveTarget, l as IndicatorModel, m as ScenePatch, I as InputValue, n as SymbolPickerFn, o as LegendActionView, p as LegendCalloutView, q as InputChangeEvent, T as ThemeName, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, s as TimelineMark, t as MarkGroup, u as MarkClickEvent, a as VisibleRange, v as DataWindowReadout, w as IDrawingsRendererPort, x as Millis, y as SnapMode, z as DrawingTypeKey, B as ToolbarDefinition, M as MarketConfig, E as MarketSnapshot } from './options-NAUHiQEC.js';
4
+ export { F as AddIndicatorOptions, G as AnimationConfig, H as Background, J as BoxFontFamily, K as BoxHAlign, Q as BoxTextSize, X as BoxVAlign, Y as CandleBarColor, Z as CandleSeries, _ as CandleStyle, $ as DataWindowGroup, a0 as DataWindowOHLC, a1 as DataWindowRow, a2 as DirtyRange, a3 as DrawingBox, a4 as DrawingExtend, a5 as DrawingIntent, a6 as DrawingLabel, a7 as DrawingLine, a8 as DrawingLinefill, a9 as DrawingMode, aa as DrawingPoint, ab as DrawingPolyline, ac as DrawingSeriesBar, ad as DrawingSeriesGateway, ae as DrawingSeriesState, af as DrawingStyle, ag as DrawingTable, ah as DrawingText, ai as DrawingXLoc, aj as DrawingsOption, ak as Fill, al as FillGradientStop, am as IndicatorMeta, an as InputCondition, ao as InputSchema, ap as InputType, aq as InputWhen, ar as IntroAnimation, as as IntroConfig, at as IntroStyle, au as LabelStyle, av as LabelYLoc, aw as LineLikeKind, ax as LineLikeSeries, ay as LineLikeStyle, az as MarkContent, aA as MarkContentSource, aB as MarkGlyph, aC as MarkPanelItem, aD as MarkShape, aE as MarkerPoint, aF as MarkerSeries, aG as MarketSwitch, aH as PaneAxis, aI as PaneAxisBand, aJ as PaneHint, aK as PaneKind, aL as PolylinePoint, aM as PriceLine, aN as Projector, aO as ProviderName, aP as RendererConstructor, aQ as Scene, aR as SchemaPatch, aS as SecondClock, aT as SeriesDisplay, aU as SeriesKind, aV as SeriesPoint, aW as SeriesSpec, aX as SeriesSurface, aY as SeriesValueDelta, aZ as SettingsField, a_ as SettingsSchema, a$ as SettingsVisibilityPolicy, b0 as TableCell, b1 as TableMerge, b2 as TablePosition, b3 as ToolbarGroupConfig, b4 as TradeExecution, b5 as ValuePatch, b as VelaOptions, V as VisibleRangePreset, b6 as buildToolbar, b7 as defaultToolbar, b8 as inputDeltas, b9 as inputVisible, ba as seriesInScale, bb as seriesShownOn } from './options-NAUHiQEC.js';
5
+ import { S as SettingsSelectOption } from './plugin-CqxWoDKS.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 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, 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, Y as createDrawing, Z as deserializeDrawing, _ as drawingTypes, $ as getDrawingType, a0 as normalizeSettingsRow, a1 as registerChartType, a2 as registerDrawingType, 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';
7
+ import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-DpOWZD8F.js';
8
+ 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';
9
9
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.js';
10
10
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
11
11
 
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import './chunk-JU4CWEBF.js';
2
- export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MarksControl, MultiProviderFeed, NativeRenderer, RendererControl, ReplayControl, SecondClock, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-QBPUT5SU.js';
3
- export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, OVERRIDABLE_TOPBAR_IDS, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, inputDeltas, inputVisible, legendActions, legendCallouts, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, 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-EZ5FWVLA.js';
4
- import './chunk-2IAETM2I.js';
5
- 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-BZQM2XO7.js';
2
+ export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MarksControl, MultiProviderFeed, NativeRenderer, RendererControl, ReplayControl, SecondClock, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-T3DZIR5Y.js';
3
+ export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, OVERRIDABLE_TOPBAR_IDS, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, inputDeltas, inputVisible, legendActions, legendCallouts, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, 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';
4
+ import './chunk-NLDTVFOI.js';
5
+ 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';
6
6
 
7
7
  // src/core/replayTicks.ts
8
8
  function lowerTimeframeTicks(chart, timeframe) {
@@ -1984,9 +1984,9 @@ interface AnimationConfig {
1984
1984
  /** Eased cursor-anchored wheel-zoom: the bar spacing glides toward each wheel notch's
1985
1985
  * target instead of jumping. Default `true` ({@link ZOOM_EASE_DEFAULT_MS}). */
1986
1986
  zoom?: boolean | number;
1987
- /** Inertial/kinetic pan — the velocity a drag releases with decays over this
1988
- * time-constant (a short, snappy glide by default; `false` stops dead). Default
1989
- * `true` ({@link PAN_INERTIA_DEFAULT_MS}). */
1987
+ /** Inertial/kinetic pan on touch — the velocity a finger flick releases with decays
1988
+ * over this time-constant (a short, snappy glide by default; `false` stops dead). A
1989
+ * mouse release always stops dead. Default `true` ({@link PAN_INERTIA_DEFAULT_MS}). */
1990
1990
  pan?: boolean | number;
1991
1991
  /** The programmatic scroll glide — the scroll-to-latest button, `chart.panBy`, the
1992
1992
  * keyboard pan keys — easing the view toward its target at constant zoom. Default:
@@ -1984,9 +1984,9 @@ interface AnimationConfig {
1984
1984
  /** Eased cursor-anchored wheel-zoom: the bar spacing glides toward each wheel notch's
1985
1985
  * target instead of jumping. Default `true` ({@link ZOOM_EASE_DEFAULT_MS}). */
1986
1986
  zoom?: boolean | number;
1987
- /** Inertial/kinetic pan — the velocity a drag releases with decays over this
1988
- * time-constant (a short, snappy glide by default; `false` stops dead). Default
1989
- * `true` ({@link PAN_INERTIA_DEFAULT_MS}). */
1987
+ /** Inertial/kinetic pan on touch — the velocity a finger flick releases with decays
1988
+ * over this time-constant (a short, snappy glide by default; `false` stops dead). A
1989
+ * mouse release always stops dead. Default `true` ({@link PAN_INERTIA_DEFAULT_MS}). */
1990
1990
  pan?: boolean | number;
1991
1991
  /** The programmatic scroll glide — the scroll-to-latest button, `chart.panBy`, the
1992
1992
  * keyboard pan keys — easing the view toward its target at constant zoom. Default:
@@ -1,9 +1,9 @@
1
- import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aU as SeriesKind, c as VelaTheme } from './options-BnEPUuVV.cjs';
2
- import { f as DataControl } from './contributions-CtlptxR8.cjs';
3
- import './side-panel-HF0IAzwf.cjs';
1
+ import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aU as SeriesKind, c as VelaTheme } from './options-NAUHiQEC.cjs';
2
+ import { f as DataControl } from './contributions-Cgm9RJYP.cjs';
3
+ import './side-panel-wMNfgyZb.cjs';
4
4
  import './icons-BZYbJXSV.cjs';
5
5
  import './keymap-CGOz5F5f.cjs';
6
- import './DataProvider-BrlxntPN.cjs';
6
+ import './DataProvider-COGDs9Xg.cjs';
7
7
 
8
8
  /** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
9
9
  interface DrawingTypeMeta {
@@ -1,9 +1,9 @@
1
- import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aU as SeriesKind, c as VelaTheme } from './options-BnEPUuVV.js';
2
- import { f as DataControl } from './contributions-tjNExo1o.js';
3
- import './side-panel-HF0IAzwf.js';
1
+ import { z as DrawingTypeKey, af as DrawingStyle, S as SerializedDrawing, D as Drawing, O as OHLCV, aU as SeriesKind, c as VelaTheme } from './options-NAUHiQEC.js';
2
+ import { f as DataControl } from './contributions-bWgwyiVi.js';
3
+ import './side-panel-wMNfgyZb.js';
4
4
  import './icons-BZYbJXSV.js';
5
5
  import './keymap-CGOz5F5f.js';
6
- import './DataProvider-DwFIoV4r.js';
6
+ import './DataProvider-DpOWZD8F.js';
7
7
 
8
8
  /** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
9
9
  interface DrawingTypeMeta {
package/dist/plugin.cjs CHANGED
@@ -332,6 +332,7 @@ registerIcon("expand", S('<rect x="2.2" y="2.2" width="11.6" height="11.6" rx="1
332
332
  registerIcon("plus", S('<path d="M8 2.8v10.4M2.8 8h10.4"/>'));
333
333
  registerIcon("minus", S('<path d="M2.8 8h10.4"/>'));
334
334
  registerIcon("maximize", S('<path d="M2.5 6V3a.5.5 0 0 1 .5-.5h3M10 2.5h3a.5.5 0 0 1 .5.5v3M13.5 10v3a.5.5 0 0 1-.5.5h-3M6 13.5H3a.5.5 0 0 1-.5-.5v-3"/>'));
335
+ registerIcon("restore", S('<path d="M6 2.5v3a.5.5 0 0 1-.5.5h-3M13.5 6h-3a.5.5 0 0 1-.5-.5v-3M10 13.5v-3a.5.5 0 0 1 .5-.5h3M2.5 10h3a.5.5 0 0 1 .5.5v3"/>'));
335
336
  registerIcon("restore", S('<path d="M6.2 2.5v3.7H2.5M9.8 13.5V9.8h3.7M13.5 6.2H9.8V2.5M2.5 9.8h3.7v3.7"/>'));
336
337
  registerIcon("star", S('<path d="M8 2.2l1.75 3.55 3.9.55-2.8 2.75.65 3.9L8 11.1l-3.5 1.85.65-3.9-2.8-2.75 3.9-.55z"/>'));
337
338
  registerIcon("star-filled", S('<path d="M8 2.2l1.75 3.55 3.9.55-2.8 2.75.65 3.9L8 11.1l-3.5 1.85.65-3.9-2.8-2.75 3.9-.55z"/>', 'fill="currentColor"'));
@@ -3160,6 +3161,10 @@ var FibRatios = class extends Drawing {
3160
3161
 
3161
3162
  // src/core/drawings/types/FibLevels.ts
3162
3163
  var FibLevels = class extends FibRatios {
3164
+ /** Price of a level for the two anchor prices; subclasses override to change which anchor ratio 0 sits on. */
3165
+ levelPrice(ratio, p1, p2) {
3166
+ return p1 + ratio * (p2 - p1);
3167
+ }
3163
3168
  /** Per-level pixel line + price for the ENABLED levels, spanning the anchors' time range. */
3164
3169
  levelLines(proj) {
3165
3170
  const a = this.anchors[0];
@@ -3169,11 +3174,10 @@ var FibLevels = class extends FibRatios {
3169
3174
  const xb = proj.xOf(b.time);
3170
3175
  const x1 = Math.min(xa, xb);
3171
3176
  const x2 = Math.max(xa, xb);
3172
- const delta = b.price - a.price;
3173
3177
  const out = [];
3174
3178
  for (const lv of this.levels) {
3175
3179
  if (!lv.enabled) continue;
3176
- const price = a.price + lv.ratio * delta;
3180
+ const price = this.levelPrice(lv.ratio, a.price, b.price);
3177
3181
  const y = proj.yOf(price, this.paneId);
3178
3182
  if (y == null) continue;
3179
3183
  out.push({ ratio: lv.ratio, color: lv.color, label: lv.label, price, x1, x2, y });
@@ -3213,8 +3217,7 @@ var FibLevels = class extends FibRatios {
3213
3217
  const a = this.anchors[0];
3214
3218
  const b = this.anchors[1];
3215
3219
  if (!a || !b) return null;
3216
- const delta = b.price - a.price;
3217
- const prices = this.levels.filter((l) => l.enabled).map((l) => a.price + l.ratio * delta);
3220
+ const prices = this.levels.filter((l) => l.enabled).map((l) => this.levelPrice(l.ratio, a.price, b.price));
3218
3221
  if (prices.length === 0) return null;
3219
3222
  return { min: Math.min(...prices), max: Math.max(...prices) };
3220
3223
  }
@@ -3300,13 +3303,24 @@ function cycleLevels(count, enabledCount = count) {
3300
3303
  // src/core/drawings/types/FibRetracement.ts
3301
3304
  var LEVELS = fibLevels([0, 0.236, 0.382, 0.5, 0.618, 0.786, 1]);
3302
3305
  var FibRetracement = class extends FibLevels {
3303
- constructor() {
3304
- super(...arguments);
3306
+ constructor(init) {
3307
+ super(init);
3305
3308
  this.type = "fibretracement";
3309
+ if (this.reverse === void 0) this.reverse = false;
3306
3310
  }
3307
3311
  defaultLevels() {
3308
3312
  return LEVELS;
3309
3313
  }
3314
+ levelPrice(ratio, p1, p2) {
3315
+ return this.reverse ? p1 + ratio * (p2 - p1) : p2 + ratio * (p1 - p2);
3316
+ }
3317
+ writeProps() {
3318
+ return { ...super.writeProps(), reverse: this.reverse };
3319
+ }
3320
+ readProps(props) {
3321
+ super.readProps(props);
3322
+ this.reverse = typeof props.reverse === "boolean" ? props.reverse : true;
3323
+ }
3310
3324
  };
3311
3325
 
3312
3326
  // src/core/drawings/types/FibExtension.ts
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-BWxJRKzS.cjs';
2
- export { B as BarsChangeReason, C as CellStateContext, h as ContextSelect, j as EngineAlert, k as EngineCapabilities, l as EngineContextSnapshot, m as EngineFactory, n as EngineWarning, o as ExecutionHandlers, p as ExecutionMarket, q as ExecutionRequest, r as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, u as LegendCalloutContent, v as LegendCalloutDescriptor, w as LegendCalloutItem, x as LegendCalloutSpec, y as LegendIndicatorInfo, N as NativeIndicator, z as NativeIndicatorContext, A as NativeIndicatorDescriptor, G as NativeIndicatorInfo, H as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, J as PreparedScript, c as ScriptRun, Z as ScriptRunCause, _ as ScriptRunResult, S as ScriptingEngine, $ as SidePanelButton, a0 as SidePanelDescriptor, a1 as SidePanelHandle, a2 as SidePanelHeader, a3 as StatePersistenceHandler, a4 as StrategyFill, a5 as StrategyState, a6 as StrategyTrade, a7 as SymbolRankingHook, aa as VisibleBarRange, ab as WidgetActionDescriptor, ac as WidgetActionTarget, ad as WidgetAttachment, W as WidgetContext, ae as getNativeIndicator, af as legendActions, ag as legendCallouts, ai as nativeIndicatorTypes, aj as registerDefaultEngine, ak as registerLegendAction, al as registerLegendCallout, am as registerNativeIndicator, an as registerSidePanel, ao as registerStatePersistence, ap as registerSymbolRanking, aq as registerWidgetAction, ar as registerWidgetAttachment, as as resolveEngines, at as sidePanels, au as statePersistenceHandlers, av as symbolRanking, aw as topbarActionOverride, ax as unregisterDefaultEngine, ay as unregisterLegendAction, az as unregisterLegendCallout, aA as unregisterNativeIndicator, aB as unregisterSidePanel, aC as unregisterStatePersistence, aD as unregisterWidgetAction, aE as unregisterWidgetAttachment, aF as widgetActions, aG as widgetAttachments } from './contributions-CtlptxR8.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-HF0IAzwf.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-BnEPUuVV.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-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';
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-BrlxntPN.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';
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-e2WUEtiI.js';
2
- export { B as BarsChangeReason, C as CellStateContext, h as ContextSelect, j as EngineAlert, k as EngineCapabilities, l as EngineContextSnapshot, m as EngineFactory, n as EngineWarning, o as ExecutionHandlers, p as ExecutionMarket, q as ExecutionRequest, r as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, u as LegendCalloutContent, v as LegendCalloutDescriptor, w as LegendCalloutItem, x as LegendCalloutSpec, y as LegendIndicatorInfo, N as NativeIndicator, z as NativeIndicatorContext, A as NativeIndicatorDescriptor, G as NativeIndicatorInfo, H as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, J as PreparedScript, c as ScriptRun, Z as ScriptRunCause, _ as ScriptRunResult, S as ScriptingEngine, $ as SidePanelButton, a0 as SidePanelDescriptor, a1 as SidePanelHandle, a2 as SidePanelHeader, a3 as StatePersistenceHandler, a4 as StrategyFill, a5 as StrategyState, a6 as StrategyTrade, a7 as SymbolRankingHook, aa as VisibleBarRange, ab as WidgetActionDescriptor, ac as WidgetActionTarget, ad as WidgetAttachment, W as WidgetContext, ae as getNativeIndicator, af as legendActions, ag as legendCallouts, ai as nativeIndicatorTypes, aj as registerDefaultEngine, ak as registerLegendAction, al as registerLegendCallout, am as registerNativeIndicator, an as registerSidePanel, ao as registerStatePersistence, ap as registerSymbolRanking, aq as registerWidgetAction, ar as registerWidgetAttachment, as as resolveEngines, at as sidePanels, au as statePersistenceHandlers, av as symbolRanking, aw as topbarActionOverride, ax as unregisterDefaultEngine, ay as unregisterLegendAction, az as unregisterLegendCallout, aA as unregisterNativeIndicator, aB as unregisterSidePanel, aC as unregisterStatePersistence, aD as unregisterWidgetAction, aE as unregisterWidgetAttachment, aF as widgetActions, aG as widgetAttachments } from './contributions-tjNExo1o.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-HF0IAzwf.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-BnEPUuVV.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-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';
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-DwFIoV4r.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';
package/dist/plugin.js CHANGED
@@ -1,3 +1,3 @@
1
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-EZ5FWVLA.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-BZQM2XO7.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,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-BnEPUuVV.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-BrlxntPN.cjs';
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';
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-BnEPUuVV.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DwFIoV4r.js';
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';
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-BnEPUuVV.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-BrlxntPN.cjs';
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';
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-BnEPUuVV.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DwFIoV4r.js';
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';
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-BnEPUuVV.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-BrlxntPN.cjs';
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';
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-BnEPUuVV.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DwFIoV4r.js';
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';
3
3
 
4
4
  /**
5
5
  * Hyperliquid market-data provider, built from scratch on the public info API — no
@@ -15,6 +15,9 @@ interface SidePanelOptions {
15
15
  * its width. Docked when false/omitted. A floating panel gets a header pin the user
16
16
  * can dock it with (see {@link SidePanel.onPlacementChange}). */
17
17
  overlay?: boolean;
18
+ /** A header button that MAXIMIZES the panel over every chart of the shell, and restores
19
+ * it. For panels that are sometimes the main work surface (an editor). */
20
+ maximizable?: boolean;
18
21
  }
19
22
  /**
20
23
  * Clamp a width to its bounds and round to whole pixels — PURE. The drag, a programmatic
@@ -47,11 +50,21 @@ declare class SidePanel {
47
50
  private readonly floatable;
48
51
  private overlayOn;
49
52
  private readonly pin;
53
+ private readonly maxButton;
54
+ private maximizedOn;
55
+ /** Set while the close is announced, so a listener's own close does not re-enter. */
56
+ private closing;
50
57
  /** `modifier` is the panel's own class, carrying its content styles (e.g. `vela-ot`). */
51
58
  constructor(host: HTMLElement, title: string, modifier: string, opts?: SidePanelOptions);
52
59
  get open(): boolean;
53
60
  /** Open/close the panel — a bare call flips it. */
54
61
  toggle(open?: boolean): void;
62
+ /** Whether the panel covers every chart right now. */
63
+ get maximized(): boolean;
64
+ /** Maximize the panel over the shell's charts, or restore it. A no-op on a panel not
65
+ * declared `maximizable`. */
66
+ setMaximized(maximized: boolean): void;
67
+ private refreshMaxButton;
55
68
  /** The scrolling body, for a panel filled from OUTSIDE the class — a contributed panel's
56
69
  * `mount` receives exactly this element. Subclasses use the protected `body`. */
57
70
  get content(): HTMLElement;
@@ -15,6 +15,9 @@ interface SidePanelOptions {
15
15
  * its width. Docked when false/omitted. A floating panel gets a header pin the user
16
16
  * can dock it with (see {@link SidePanel.onPlacementChange}). */
17
17
  overlay?: boolean;
18
+ /** A header button that MAXIMIZES the panel over every chart of the shell, and restores
19
+ * it. For panels that are sometimes the main work surface (an editor). */
20
+ maximizable?: boolean;
18
21
  }
19
22
  /**
20
23
  * Clamp a width to its bounds and round to whole pixels — PURE. The drag, a programmatic
@@ -47,11 +50,21 @@ declare class SidePanel {
47
50
  private readonly floatable;
48
51
  private overlayOn;
49
52
  private readonly pin;
53
+ private readonly maxButton;
54
+ private maximizedOn;
55
+ /** Set while the close is announced, so a listener's own close does not re-enter. */
56
+ private closing;
50
57
  /** `modifier` is the panel's own class, carrying its content styles (e.g. `vela-ot`). */
51
58
  constructor(host: HTMLElement, title: string, modifier: string, opts?: SidePanelOptions);
52
59
  get open(): boolean;
53
60
  /** Open/close the panel — a bare call flips it. */
54
61
  toggle(open?: boolean): void;
62
+ /** Whether the panel covers every chart right now. */
63
+ get maximized(): boolean;
64
+ /** Maximize the panel over the shell's charts, or restore it. A no-op on a panel not
65
+ * declared `maximizable`. */
66
+ setMaximized(maximized: boolean): void;
67
+ private refreshMaxButton;
55
68
  /** The scrolling body, for a panel filled from OUTSIDE the class — a contributed panel's
56
69
  * `mount` receives exactly this element. Subclasses use the protected `body`. */
57
70
  get content(): HTMLElement;
@@ -1,6 +1,6 @@
1
- import { D as DataProvider } from './DataProvider-DwFIoV4r.js';
2
- import { S as ScriptingEngine, V as Vela } from './contributions-tjNExo1o.js';
3
- import { W as WallClock, V as VisibleRangePreset } from './options-BnEPUuVV.js';
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';
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`
@@ -1,6 +1,6 @@
1
- import { D as DataProvider } from './DataProvider-BrlxntPN.cjs';
2
- import { S as ScriptingEngine, V as Vela } from './contributions-CtlptxR8.cjs';
3
- import { W as WallClock, V as VisibleRangePreset } from './options-BnEPUuVV.cjs';
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';
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`