@luxalgo/vela 0.6.11 → 0.6.13

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 (41) hide show
  1. package/README.md +110 -46
  2. package/dist/{DataProvider-BBf-jc6W.d.ts → DataProvider-DhzstpQb.d.ts} +1 -1
  3. package/dist/{DataProvider-p0TEyhlX.d.cts → DataProvider-DlMtrwqM.d.cts} +1 -1
  4. package/dist/{chunk-MTLJKZDZ.js → chunk-F4M24ANM.js} +122 -1
  5. package/dist/{chunk-IO3NYSQV.js → chunk-G52XAKZY.js} +184 -25
  6. package/dist/{chunk-73PEA4MU.js → chunk-JKGA36ZM.js} +635 -49
  7. package/dist/{contributions-Bbe2R-mQ.d.ts → contributions-37nni40G.d.ts} +6 -4
  8. package/dist/{contributions-CO01zWve.d.cts → contributions-lPojhTxI.d.cts} +6 -4
  9. package/dist/index.cjs +744 -37
  10. package/dist/index.d.cts +6 -6
  11. package/dist/index.d.ts +6 -6
  12. package/dist/index.js +2 -2
  13. package/dist/{options-yp7sA96q.d.cts → options-CYS5Wmlx.d.cts} +71 -2
  14. package/dist/{options-yp7sA96q.d.ts → options-CYS5Wmlx.d.ts} +71 -2
  15. package/dist/{plugin-CkkH8QnX.d.cts → plugin-Cwikpz1m.d.cts} +10 -3
  16. package/dist/{plugin-DwxjM3Ni.d.ts → plugin-DHyaoMjW.d.ts} +10 -3
  17. package/dist/plugin.cjs +110 -0
  18. package/dist/plugin.d.cts +4 -4
  19. package/dist/plugin.d.ts +4 -4
  20. package/dist/plugin.js +1 -1
  21. package/dist/providers/binance.d.cts +2 -2
  22. package/dist/providers/binance.d.ts +2 -2
  23. package/dist/providers/coinbase.d.cts +2 -2
  24. package/dist/providers/coinbase.d.ts +2 -2
  25. package/dist/providers/hyperliquid.d.cts +2 -2
  26. package/dist/providers/hyperliquid.d.ts +2 -2
  27. package/dist/{statusline-CHPDuKNp.d.ts → statusline-model-CiJm-riV.d.cts} +7 -85
  28. package/dist/{statusline-DTHZUFqK.d.cts → statusline-model-D-q_OOx9.d.ts} +7 -85
  29. package/dist/ui.d.cts +1 -1
  30. package/dist/ui.d.ts +1 -1
  31. package/dist/vela.global.js +744 -37
  32. package/dist/vela.global.min.js +52 -52
  33. package/dist/widget.cjs +927 -61
  34. package/dist/widget.d.cts +118 -7
  35. package/dist/widget.d.ts +118 -7
  36. package/dist/widget.js +4 -4
  37. package/dist/workspace.cjs +927 -61
  38. package/dist/workspace.d.cts +5 -5
  39. package/dist/workspace.d.ts +5 -5
  40. package/dist/workspace.js +3 -3
  41. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { D as DrawingsDocument, R as Resolved } from './contributions-CO01zWve.cjs';
2
- export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, c as DataControl, d as DrawingsControl, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, n as IndicatorEventMap, I as IndicatorHandle, o as IndicatorSummary, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, y as PreparedScript, z as RendererControl, A as RunIndicatorResult, G as SceneInspection, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, $ as TypedEventBus, V as Vela, a0 as VelaDeps, a1 as VelaEventMap, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, a9 as nativeIndicatorDescriptors, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-CO01zWve.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, 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, a as VisibleRange, s as DataWindowReadout, t as IDrawingsRendererPort, u as Millis, v as SnapMode, w as DrawingTypeKey, x as ToolbarDefinition, M as MarketConfig } from './options-yp7sA96q.cjs';
4
- export { y as AddIndicatorOptions, B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Q as DataWindowGroup, W as DataWindowOHLC, X as DataWindowRow, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, $ as DrawingIntent, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a3 as DrawingMode, a4 as DrawingPoint, a5 as DrawingPolyline, a6 as DrawingStyle, a7 as DrawingTable, a8 as DrawingText, a9 as DrawingXLoc, aa as DrawingsOption, ab as Fill, ac as FillGradientStop, ad as IndicatorMeta, ae as InputCondition, af as InputSchema, ag as InputType, ah as InputWhen, ai as LabelStyle, aj as LabelYLoc, ak as LineLikeKind, al as LineLikeSeries, am as LineLikeStyle, an as MarkerPoint, ao as MarkerSeries, ap as MarketSnapshot, aq as MarketSwitch, ar as PaneAxis, as as PaneAxisBand, at as PaneHint, au as PaneKind, av as PolylinePoint, aw as PriceLine, ax as Projector, ay as ProviderName, az as RendererConstructor, aA as Scene, aB as SchemaPatch, aC as SeriesKind, aD as SeriesPoint, aE as SeriesSpec, aF as SeriesValueDelta, aG as SettingsField, aH as SettingsSchema, aI as SettingsVisibilityPolicy, aJ as TableCell, aK as TableMerge, aL as TablePosition, aM as ToolbarGroupConfig, aN as TradeExecution, aO as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aP as buildToolbar, aQ as defaultToolbar, aR as inputDeltas, aS as inputVisible } from './options-yp7sA96q.cjs';
5
- import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-p0TEyhlX.cjs';
6
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-CkkH8QnX.cjs';
1
+ import { D as DrawingsDocument, R as Resolved } from './contributions-lPojhTxI.cjs';
2
+ export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, c as DataControl, d as DrawingsControl, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, n as IndicatorEventMap, I as IndicatorHandle, o as IndicatorSummary, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, y as PreparedScript, z as RendererControl, A as RunIndicatorResult, G as SceneInspection, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, $ as TypedEventBus, V as Vela, a0 as VelaDeps, a1 as VelaEventMap, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, a9 as nativeIndicatorDescriptors, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-lPojhTxI.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, 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, a as VisibleRange, s as DataWindowReadout, t as IDrawingsRendererPort, u as Millis, v as SnapMode, w as DrawingTypeKey, x as ToolbarDefinition, M as MarketConfig } from './options-CYS5Wmlx.cjs';
4
+ export { y as AddIndicatorOptions, B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Q as DataWindowGroup, W as DataWindowOHLC, X as DataWindowRow, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, $ as DrawingIntent, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a3 as DrawingMode, a4 as DrawingPoint, a5 as DrawingPolyline, a6 as DrawingSeriesBar, a7 as DrawingSeriesGateway, a8 as DrawingSeriesState, a9 as DrawingStyle, aa as DrawingTable, ab as DrawingText, ac as DrawingXLoc, ad as DrawingsOption, ae as Fill, af as FillGradientStop, ag as IndicatorMeta, ah as InputCondition, ai as InputSchema, aj as InputType, ak as InputWhen, al as LabelStyle, am as LabelYLoc, an as LineLikeKind, ao as LineLikeSeries, ap as LineLikeStyle, aq as MarkerPoint, ar as MarkerSeries, as as MarketSnapshot, at as MarketSwitch, au as PaneAxis, av as PaneAxisBand, aw as PaneHint, ax as PaneKind, ay as PolylinePoint, az as PriceLine, aA as Projector, aB as ProviderName, aC as RendererConstructor, aD as Scene, aE as SchemaPatch, aF as SeriesKind, aG as SeriesPoint, aH as SeriesSpec, aI as SeriesValueDelta, aJ as SettingsField, aK as SettingsSchema, aL as SettingsVisibilityPolicy, aM as TableCell, aN as TableMerge, aO as TablePosition, aP as ToolbarGroupConfig, aQ as TradeExecution, aR as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aS as buildToolbar, aT as defaultToolbar, aU as inputDeltas, aV as inputVisible } from './options-CYS5Wmlx.cjs';
5
+ import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-DlMtrwqM.cjs';
6
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-Cwikpz1m.cjs';
7
7
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.cjs';
8
8
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.cjs';
9
9
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { D as DrawingsDocument, R as Resolved } from './contributions-Bbe2R-mQ.js';
2
- export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, c as DataControl, d as DrawingsControl, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, n as IndicatorEventMap, I as IndicatorHandle, o as IndicatorSummary, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, y as PreparedScript, z as RendererControl, A as RunIndicatorResult, G as SceneInspection, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, $ as TypedEventBus, V as Vela, a0 as VelaDeps, a1 as VelaEventMap, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, a9 as nativeIndicatorDescriptors, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-Bbe2R-mQ.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, 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, a as VisibleRange, s as DataWindowReadout, t as IDrawingsRendererPort, u as Millis, v as SnapMode, w as DrawingTypeKey, x as ToolbarDefinition, M as MarketConfig } from './options-yp7sA96q.js';
4
- export { y as AddIndicatorOptions, B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Q as DataWindowGroup, W as DataWindowOHLC, X as DataWindowRow, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, $ as DrawingIntent, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a3 as DrawingMode, a4 as DrawingPoint, a5 as DrawingPolyline, a6 as DrawingStyle, a7 as DrawingTable, a8 as DrawingText, a9 as DrawingXLoc, aa as DrawingsOption, ab as Fill, ac as FillGradientStop, ad as IndicatorMeta, ae as InputCondition, af as InputSchema, ag as InputType, ah as InputWhen, ai as LabelStyle, aj as LabelYLoc, ak as LineLikeKind, al as LineLikeSeries, am as LineLikeStyle, an as MarkerPoint, ao as MarkerSeries, ap as MarketSnapshot, aq as MarketSwitch, ar as PaneAxis, as as PaneAxisBand, at as PaneHint, au as PaneKind, av as PolylinePoint, aw as PriceLine, ax as Projector, ay as ProviderName, az as RendererConstructor, aA as Scene, aB as SchemaPatch, aC as SeriesKind, aD as SeriesPoint, aE as SeriesSpec, aF as SeriesValueDelta, aG as SettingsField, aH as SettingsSchema, aI as SettingsVisibilityPolicy, aJ as TableCell, aK as TableMerge, aL as TablePosition, aM as ToolbarGroupConfig, aN as TradeExecution, aO as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aP as buildToolbar, aQ as defaultToolbar, aR as inputDeltas, aS as inputVisible } from './options-yp7sA96q.js';
5
- import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-BBf-jc6W.js';
6
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-DwxjM3Ni.js';
1
+ import { D as DrawingsDocument, R as Resolved } from './contributions-37nni40G.js';
2
+ export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, c as DataControl, d as DrawingsControl, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, n as IndicatorEventMap, I as IndicatorHandle, o as IndicatorSummary, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, y as PreparedScript, z as RendererControl, A as RunIndicatorResult, G as SceneInspection, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, $ as TypedEventBus, V as Vela, a0 as VelaDeps, a1 as VelaEventMap, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, a9 as nativeIndicatorDescriptors, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-37nni40G.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, 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, a as VisibleRange, s as DataWindowReadout, t as IDrawingsRendererPort, u as Millis, v as SnapMode, w as DrawingTypeKey, x as ToolbarDefinition, M as MarketConfig } from './options-CYS5Wmlx.js';
4
+ export { y as AddIndicatorOptions, B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Q as DataWindowGroup, W as DataWindowOHLC, X as DataWindowRow, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, $ as DrawingIntent, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a3 as DrawingMode, a4 as DrawingPoint, a5 as DrawingPolyline, a6 as DrawingSeriesBar, a7 as DrawingSeriesGateway, a8 as DrawingSeriesState, a9 as DrawingStyle, aa as DrawingTable, ab as DrawingText, ac as DrawingXLoc, ad as DrawingsOption, ae as Fill, af as FillGradientStop, ag as IndicatorMeta, ah as InputCondition, ai as InputSchema, aj as InputType, ak as InputWhen, al as LabelStyle, am as LabelYLoc, an as LineLikeKind, ao as LineLikeSeries, ap as LineLikeStyle, aq as MarkerPoint, ar as MarkerSeries, as as MarketSnapshot, at as MarketSwitch, au as PaneAxis, av as PaneAxisBand, aw as PaneHint, ax as PaneKind, ay as PolylinePoint, az as PriceLine, aA as Projector, aB as ProviderName, aC as RendererConstructor, aD as Scene, aE as SchemaPatch, aF as SeriesKind, aG as SeriesPoint, aH as SeriesSpec, aI as SeriesValueDelta, aJ as SettingsField, aK as SettingsSchema, aL as SettingsVisibilityPolicy, aM as TableCell, aN as TableMerge, aO as TablePosition, aP as ToolbarGroupConfig, aQ as TradeExecution, aR as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aS as buildToolbar, aT as defaultToolbar, aU as inputDeltas, aV as inputVisible } from './options-CYS5Wmlx.js';
5
+ import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-DhzstpQb.js';
6
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-DHyaoMjW.js';
7
7
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.js';
8
8
  export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.js';
9
9
  export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { stableSeriesId } from './chunk-H26BEHF4.js';
2
- export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-73PEA4MU.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, settingsRowValueKeys, sidePanels, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-MTLJKZDZ.js';
2
+ export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-JKGA36ZM.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, settingsRowValueKeys, sidePanels, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-F4M24ANM.js';
4
4
  import './chunk-MHY7MVXH.js';
5
5
  export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CROSSHAIR, HIGHLIGHT, INFO, INVALID, MARKER, NEUTRAL, SERIES_LINE, SESSION_OFF, SESSION_POST, SESSION_PRE, SLATE, SLATE_DEEP, TRADE_EXIT, TRADE_LONG, TRADE_SHORT, VALID, WARNING, categoricalColor, iconMarkup, registerIcon } from './chunk-KG4YT3TI.js';
@@ -626,6 +626,62 @@ type ScenePatch = ValuePatch | SchemaPatch;
626
626
  /** A function that detaches a previously-registered subscription. */
627
627
  type Unsubscribe = () => void;
628
628
 
629
+ /**
630
+ * Async series access for data-driven drawings — the ranged, any-timeframe sibling
631
+ * of {@link Projector.barsInRange}. Painting stays synchronous: a read either serves
632
+ * bars from cache or reports `loading` while a fetch runs in the background; the
633
+ * gateway then fires {@link DrawingSeriesGateway.onUpdate} so the renderer repaints
634
+ * and the next read finds the bars. Neutral by design — any drawing that needs bars
635
+ * of a finer timeframe than the chart's reads through this seam.
636
+ */
637
+ /** One OHLC(V) bar as the gateway returns it (`time` = bar open, epoch ms). */
638
+ interface DrawingSeriesBar {
639
+ time: number;
640
+ open: number;
641
+ high: number;
642
+ low: number;
643
+ close: number;
644
+ volume?: number;
645
+ }
646
+ /**
647
+ * The synchronous answer to a series read. `ready` and `loading` carry the RESOLVED
648
+ * timeframe (an `'auto'` request comes back concrete) and its bar duration so consumers
649
+ * never re-derive timeframe math. `loading` may carry best-effort PARTIAL bars from
650
+ * previously fetched overlapping windows, so a resize keeps painting what it already
651
+ * has while the widened fetch runs; `unavailable` is a terminal state for this
652
+ * request — no fetch was started.
653
+ */
654
+ type DrawingSeriesState = {
655
+ state: 'loading';
656
+ timeframe: string;
657
+ barMs: number;
658
+ bars?: ReadonlyArray<DrawingSeriesBar>;
659
+ } | {
660
+ state: 'ready';
661
+ bars: ReadonlyArray<DrawingSeriesBar>;
662
+ timeframe: string;
663
+ barMs: number;
664
+ } | {
665
+ state: 'unavailable';
666
+ /** `no-source` = the market has no ranged feed (inline data); `none-lower` = NO
667
+ * offered timeframe is below the chart's (the chart is already at the finest);
668
+ * `not-lower` = the explicit pick does not subdivide the chart's (lower picks
669
+ * exist); `too-wide` = the range would need more bars than the gateway's cap. */
670
+ reason: 'no-source' | 'none-lower' | 'not-lower' | 'too-wide';
671
+ };
672
+ /**
673
+ * The core-owned gateway the renderer hands drawings via {@link Projector.seriesInRange}.
674
+ * `timeframe` accepts a canonical value (`'5'`, `'60'`, `'D'`) or `'auto'` — the gateway
675
+ * resolves `'auto'` against the chart's own timeframe and refuses anything not strictly
676
+ * lower than it.
677
+ */
678
+ interface DrawingSeriesGateway {
679
+ /** Synchronous cache read for the CHART's OWN symbol; kicks a background fetch on a miss. */
680
+ seriesInRange(timeframe: string, from: number, to: number): DrawingSeriesState;
681
+ /** Fires when a background fetch lands new bars (the renderer repaints on it). */
682
+ onUpdate(listener: () => void): Unsubscribe;
683
+ }
684
+
629
685
  /**
630
686
  * Geometry seam for user drawings. A drawing stores its anchors in DATA space
631
687
  * ({@link DrawingPoint}); every pixel it needs is resolved on demand through a
@@ -633,6 +689,7 @@ type Unsubscribe = () => void;
633
689
  * drawing survives reload, pan/zoom, bar-prepend, and timezone changes — the
634
690
  * same invariant Pine drawings get from `xloc:'bar_time'`.
635
691
  */
692
+
636
693
  /** A drawing anchor in DATA space (epoch-ms time + data-space price). */
637
694
  interface DrawingPoint {
638
695
  /** Epoch ms — resolved to a fractional logical bar index by the time scale. */
@@ -690,6 +747,14 @@ interface Projector {
690
747
  close: number;
691
748
  volume?: number;
692
749
  }>;
750
+ /**
751
+ * Bars of a FINER timeframe than the chart's, for the same symbol — the async sibling
752
+ * of {@link barsInRange} (see {@link DrawingSeriesGateway}): a cache read that reports
753
+ * `loading` while the background fetch runs, after which the renderer repaints.
754
+ * Optional: renderers without a series gateway omit it, and such drawings degrade to
755
+ * an anchors-only rendering.
756
+ */
757
+ seriesInRange?(timeframe: string, from: number, to: number): DrawingSeriesState;
693
758
  /** Plot width in media px (excludes the right price-axis strip). */
694
759
  readonly width: number;
695
760
  /** Plot height in media px (excludes the bottom time-axis strip). */
@@ -762,7 +827,7 @@ interface SettingsSchema {
762
827
  * The interactive user-drawing types. The lean-core set ships first; new types
763
828
  * (fibs/patterns) extend the union + register a class — no base/port change.
764
829
  */
765
- type DrawingTypeKey = 'trendline' | 'hline' | 'ray' | 'extendedline' | 'vline' | 'hray' | 'crossline' | 'infoline' | 'trendangle' | 'box' | 'text' | 'note' | 'pricenote' | 'comment' | 'pricelabel' | 'signpost' | 'parallelchannel' | 'disjointchannel' | 'flattopbottom' | 'regressionchannel' | 'anchoredvwap' | 'fixedrangevp' | 'pitchfork' | 'schiffpitchfork' | 'modifiedschiffpitchfork' | 'insidepitchfork' | 'arrow' | 'callout' | 'ellipse' | 'triangle' | 'polyline' | 'freehand' | 'highlighter' | 'circle' | 'rotatedrect' | 'path' | 'arc' | 'curve' | 'arrowmarkup' | 'arrowmarkdown' | 'flagmark' | 'iconstamp' | 'fibretracement' | 'fibextension' | 'fibextensiontrend' | 'fibfan' | 'fibtimezones' | 'fibchannel' | 'fibspeedfan' | 'trendfibtime' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibspiral' | 'gannfan' | 'gannbox' | 'gannsquare' | 'dedekind' | 'sonic' | 'supersonic' | 'goldensonic' | 'goldensupersonic' | 'datepricerange' | 'position' | 'xabcd' | 'abcd' | 'elliottimpulse' | 'elliottcorrection' | 'headshoulders' | 'gartley' | 'bat' | 'butterfly' | 'crab' | 'shark' | 'cypher';
830
+ type DrawingTypeKey = 'trendline' | 'hline' | 'ray' | 'extendedline' | 'vline' | 'hray' | 'crossline' | 'infoline' | 'trendangle' | 'box' | 'text' | 'note' | 'pricenote' | 'comment' | 'pricelabel' | 'signpost' | 'parallelchannel' | 'disjointchannel' | 'flattopbottom' | 'regressionchannel' | 'anchoredvwap' | 'fixedrangevp' | 'pitchfork' | 'schiffpitchfork' | 'modifiedschiffpitchfork' | 'insidepitchfork' | 'arrow' | 'callout' | 'ellipse' | 'triangle' | 'polyline' | 'freehand' | 'highlighter' | 'circle' | 'rotatedrect' | 'path' | 'arc' | 'curve' | 'arrowmarkup' | 'arrowmarkdown' | 'flagmark' | 'iconstamp' | 'fibretracement' | 'fibextension' | 'fibextensiontrend' | 'fibfan' | 'fibtimezones' | 'fibchannel' | 'fibspeedfan' | 'trendfibtime' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibspiral' | 'gannfan' | 'gannbox' | 'gannsquare' | 'dedekind' | 'sonic' | 'supersonic' | 'goldensonic' | 'goldensupersonic' | 'datepricerange' | 'position' | 'magnifier' | 'xabcd' | 'abcd' | 'elliottimpulse' | 'elliottcorrection' | 'headshoulders' | 'gartley' | 'bat' | 'butterfly' | 'crab' | 'shark' | 'cypher';
766
831
  /** One anchor's role + which axes its handle may move along. */
767
832
  interface AnchorSlot {
768
833
  role: string;
@@ -1064,6 +1129,10 @@ interface IDrawingsRendererPort {
1064
1129
  * renderer keeps owning the mutual exclusion (with armed tools too) and reports
1065
1130
  * every actual change back through the `mode` intent. Optional. */
1066
1131
  setMode?(mode: DrawingMode): void;
1132
+ /** Hand the renderer the core's series gateway so data-driven drawings can read bars
1133
+ * of a finer timeframe (exposed to them as `Projector.seriesInRange`). Optional — a
1134
+ * renderer without it simply never resolves lower-timeframe series. */
1135
+ setSeriesGateway?(gateway: DrawingSeriesGateway): void;
1067
1136
  /** Open a drawing's settings popup (selecting it too) — the programmatic twin of a click on it. */
1068
1137
  openSettings(id: string): void;
1069
1138
  /** Display another chart's in-progress placement as a GHOST at reduced opacity
@@ -1767,4 +1836,4 @@ interface AddIndicatorOptions {
1767
1836
  title?: string;
1768
1837
  }
1769
1838
 
1770
- export { type DrawingIntent as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxHAlign as E, type BoxTextSize as F, type BoxVAlign as G, type CandleBarColor as H, type InputValue as I, type CandleSeries as J, type CandleStyle as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowGroup as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowOHLC as W, type DataWindowRow as X, type DirtyRange as Y, type DrawingBox as Z, type DrawingExtend as _, type VisibleRange as a, type DrawingLabel as a0, type DrawingLine as a1, type DrawingLinefill as a2, type DrawingMode as a3, type DrawingPoint as a4, type DrawingPolyline as a5, type DrawingStyle as a6, type DrawingTable as a7, type DrawingText as a8, type DrawingXLoc as a9, type Scene as aA, type SchemaPatch as aB, type SeriesKind as aC, type SeriesPoint as aD, type SeriesSpec as aE, type SeriesValueDelta as aF, type SettingsField as aG, type SettingsSchema as aH, type SettingsVisibilityPolicy as aI, type TableCell as aJ, type TableMerge as aK, type TablePosition as aL, type ToolbarGroupConfig as aM, type TradeExecution as aN, type ValuePatch as aO, buildToolbar as aP, defaultToolbar as aQ, inputDeltas as aR, inputVisible as aS, type PaneInfo as aT, type DrawingsOption as aa, type Fill as ab, type FillGradientStop as ac, type IndicatorMeta as ad, type InputCondition as ae, type InputSchema as af, type InputType as ag, type InputWhen as ah, type LabelStyle as ai, type LabelYLoc as aj, type LineLikeKind as ak, type LineLikeSeries as al, type LineLikeStyle as am, type MarkerPoint as an, type MarkerSeries as ao, type MarketSnapshot as ap, type MarketSwitch as aq, type PaneAxis as ar, type PaneAxisBand as as, type PaneHint as at, type PaneKind as au, type PolylinePoint as av, type PriceLine as aw, type Projector as ax, type ProviderName as ay, type RendererConstructor as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type IChartRenderer as e, type RendererDisplayOptions as f, type IndicatorRenderHandle as g, type IndicatorStatus as h, type Pane as i, type PaneAction as j, type MoveTarget as k, type IndicatorModel as l, type ScenePatch as m, type SymbolPickerFn as n, type LegendActionView as o, type LegendCalloutView as p, type InputChangeEvent as q, type ClickEvent as r, type DataWindowReadout as s, type IDrawingsRendererPort as t, type Millis as u, type SnapMode as v, type DrawingTypeKey as w, type ToolbarDefinition as x, type AddIndicatorOptions as y, type BoxFontFamily as z };
1839
+ export { type DrawingIntent as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxHAlign as E, type BoxTextSize as F, type BoxVAlign as G, type CandleBarColor as H, type InputValue as I, type CandleSeries as J, type CandleStyle as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowGroup as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowOHLC as W, type DataWindowRow as X, type DirtyRange as Y, type DrawingBox as Z, type DrawingExtend as _, type VisibleRange as a, type DrawingLabel as a0, type DrawingLine as a1, type DrawingLinefill as a2, type DrawingMode as a3, type DrawingPoint as a4, type DrawingPolyline as a5, type DrawingSeriesBar as a6, type DrawingSeriesGateway as a7, type DrawingSeriesState as a8, type DrawingStyle as a9, type Projector as aA, type ProviderName as aB, type RendererConstructor as aC, type Scene as aD, type SchemaPatch as aE, type SeriesKind as aF, type SeriesPoint as aG, type SeriesSpec as aH, type SeriesValueDelta as aI, type SettingsField as aJ, type SettingsSchema as aK, type SettingsVisibilityPolicy as aL, type TableCell as aM, type TableMerge as aN, type TablePosition as aO, type ToolbarGroupConfig as aP, type TradeExecution as aQ, type ValuePatch as aR, buildToolbar as aS, defaultToolbar as aT, inputDeltas as aU, inputVisible as aV, type PaneInfo as aW, type DrawingTable as aa, type DrawingText as ab, type DrawingXLoc as ac, type DrawingsOption as ad, type Fill as ae, type FillGradientStop as af, type IndicatorMeta as ag, type InputCondition as ah, type InputSchema as ai, type InputType as aj, type InputWhen as ak, type LabelStyle as al, type LabelYLoc as am, type LineLikeKind as an, type LineLikeSeries as ao, type LineLikeStyle as ap, type MarkerPoint as aq, type MarkerSeries as ar, type MarketSnapshot as as, type MarketSwitch as at, type PaneAxis as au, type PaneAxisBand as av, type PaneHint as aw, type PaneKind as ax, type PolylinePoint as ay, type PriceLine as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type IChartRenderer as e, type RendererDisplayOptions as f, type IndicatorRenderHandle as g, type IndicatorStatus as h, type Pane as i, type PaneAction as j, type MoveTarget as k, type IndicatorModel as l, type ScenePatch as m, type SymbolPickerFn as n, type LegendActionView as o, type LegendCalloutView as p, type InputChangeEvent as q, type ClickEvent as r, type DataWindowReadout as s, type IDrawingsRendererPort as t, type Millis as u, type SnapMode as v, type DrawingTypeKey as w, type ToolbarDefinition as x, type AddIndicatorOptions as y, type BoxFontFamily as z };
@@ -626,6 +626,62 @@ type ScenePatch = ValuePatch | SchemaPatch;
626
626
  /** A function that detaches a previously-registered subscription. */
627
627
  type Unsubscribe = () => void;
628
628
 
629
+ /**
630
+ * Async series access for data-driven drawings — the ranged, any-timeframe sibling
631
+ * of {@link Projector.barsInRange}. Painting stays synchronous: a read either serves
632
+ * bars from cache or reports `loading` while a fetch runs in the background; the
633
+ * gateway then fires {@link DrawingSeriesGateway.onUpdate} so the renderer repaints
634
+ * and the next read finds the bars. Neutral by design — any drawing that needs bars
635
+ * of a finer timeframe than the chart's reads through this seam.
636
+ */
637
+ /** One OHLC(V) bar as the gateway returns it (`time` = bar open, epoch ms). */
638
+ interface DrawingSeriesBar {
639
+ time: number;
640
+ open: number;
641
+ high: number;
642
+ low: number;
643
+ close: number;
644
+ volume?: number;
645
+ }
646
+ /**
647
+ * The synchronous answer to a series read. `ready` and `loading` carry the RESOLVED
648
+ * timeframe (an `'auto'` request comes back concrete) and its bar duration so consumers
649
+ * never re-derive timeframe math. `loading` may carry best-effort PARTIAL bars from
650
+ * previously fetched overlapping windows, so a resize keeps painting what it already
651
+ * has while the widened fetch runs; `unavailable` is a terminal state for this
652
+ * request — no fetch was started.
653
+ */
654
+ type DrawingSeriesState = {
655
+ state: 'loading';
656
+ timeframe: string;
657
+ barMs: number;
658
+ bars?: ReadonlyArray<DrawingSeriesBar>;
659
+ } | {
660
+ state: 'ready';
661
+ bars: ReadonlyArray<DrawingSeriesBar>;
662
+ timeframe: string;
663
+ barMs: number;
664
+ } | {
665
+ state: 'unavailable';
666
+ /** `no-source` = the market has no ranged feed (inline data); `none-lower` = NO
667
+ * offered timeframe is below the chart's (the chart is already at the finest);
668
+ * `not-lower` = the explicit pick does not subdivide the chart's (lower picks
669
+ * exist); `too-wide` = the range would need more bars than the gateway's cap. */
670
+ reason: 'no-source' | 'none-lower' | 'not-lower' | 'too-wide';
671
+ };
672
+ /**
673
+ * The core-owned gateway the renderer hands drawings via {@link Projector.seriesInRange}.
674
+ * `timeframe` accepts a canonical value (`'5'`, `'60'`, `'D'`) or `'auto'` — the gateway
675
+ * resolves `'auto'` against the chart's own timeframe and refuses anything not strictly
676
+ * lower than it.
677
+ */
678
+ interface DrawingSeriesGateway {
679
+ /** Synchronous cache read for the CHART's OWN symbol; kicks a background fetch on a miss. */
680
+ seriesInRange(timeframe: string, from: number, to: number): DrawingSeriesState;
681
+ /** Fires when a background fetch lands new bars (the renderer repaints on it). */
682
+ onUpdate(listener: () => void): Unsubscribe;
683
+ }
684
+
629
685
  /**
630
686
  * Geometry seam for user drawings. A drawing stores its anchors in DATA space
631
687
  * ({@link DrawingPoint}); every pixel it needs is resolved on demand through a
@@ -633,6 +689,7 @@ type Unsubscribe = () => void;
633
689
  * drawing survives reload, pan/zoom, bar-prepend, and timezone changes — the
634
690
  * same invariant Pine drawings get from `xloc:'bar_time'`.
635
691
  */
692
+
636
693
  /** A drawing anchor in DATA space (epoch-ms time + data-space price). */
637
694
  interface DrawingPoint {
638
695
  /** Epoch ms — resolved to a fractional logical bar index by the time scale. */
@@ -690,6 +747,14 @@ interface Projector {
690
747
  close: number;
691
748
  volume?: number;
692
749
  }>;
750
+ /**
751
+ * Bars of a FINER timeframe than the chart's, for the same symbol — the async sibling
752
+ * of {@link barsInRange} (see {@link DrawingSeriesGateway}): a cache read that reports
753
+ * `loading` while the background fetch runs, after which the renderer repaints.
754
+ * Optional: renderers without a series gateway omit it, and such drawings degrade to
755
+ * an anchors-only rendering.
756
+ */
757
+ seriesInRange?(timeframe: string, from: number, to: number): DrawingSeriesState;
693
758
  /** Plot width in media px (excludes the right price-axis strip). */
694
759
  readonly width: number;
695
760
  /** Plot height in media px (excludes the bottom time-axis strip). */
@@ -762,7 +827,7 @@ interface SettingsSchema {
762
827
  * The interactive user-drawing types. The lean-core set ships first; new types
763
828
  * (fibs/patterns) extend the union + register a class — no base/port change.
764
829
  */
765
- type DrawingTypeKey = 'trendline' | 'hline' | 'ray' | 'extendedline' | 'vline' | 'hray' | 'crossline' | 'infoline' | 'trendangle' | 'box' | 'text' | 'note' | 'pricenote' | 'comment' | 'pricelabel' | 'signpost' | 'parallelchannel' | 'disjointchannel' | 'flattopbottom' | 'regressionchannel' | 'anchoredvwap' | 'fixedrangevp' | 'pitchfork' | 'schiffpitchfork' | 'modifiedschiffpitchfork' | 'insidepitchfork' | 'arrow' | 'callout' | 'ellipse' | 'triangle' | 'polyline' | 'freehand' | 'highlighter' | 'circle' | 'rotatedrect' | 'path' | 'arc' | 'curve' | 'arrowmarkup' | 'arrowmarkdown' | 'flagmark' | 'iconstamp' | 'fibretracement' | 'fibextension' | 'fibextensiontrend' | 'fibfan' | 'fibtimezones' | 'fibchannel' | 'fibspeedfan' | 'trendfibtime' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibspiral' | 'gannfan' | 'gannbox' | 'gannsquare' | 'dedekind' | 'sonic' | 'supersonic' | 'goldensonic' | 'goldensupersonic' | 'datepricerange' | 'position' | 'xabcd' | 'abcd' | 'elliottimpulse' | 'elliottcorrection' | 'headshoulders' | 'gartley' | 'bat' | 'butterfly' | 'crab' | 'shark' | 'cypher';
830
+ type DrawingTypeKey = 'trendline' | 'hline' | 'ray' | 'extendedline' | 'vline' | 'hray' | 'crossline' | 'infoline' | 'trendangle' | 'box' | 'text' | 'note' | 'pricenote' | 'comment' | 'pricelabel' | 'signpost' | 'parallelchannel' | 'disjointchannel' | 'flattopbottom' | 'regressionchannel' | 'anchoredvwap' | 'fixedrangevp' | 'pitchfork' | 'schiffpitchfork' | 'modifiedschiffpitchfork' | 'insidepitchfork' | 'arrow' | 'callout' | 'ellipse' | 'triangle' | 'polyline' | 'freehand' | 'highlighter' | 'circle' | 'rotatedrect' | 'path' | 'arc' | 'curve' | 'arrowmarkup' | 'arrowmarkdown' | 'flagmark' | 'iconstamp' | 'fibretracement' | 'fibextension' | 'fibextensiontrend' | 'fibfan' | 'fibtimezones' | 'fibchannel' | 'fibspeedfan' | 'trendfibtime' | 'fibcircles' | 'fibarcs' | 'fibwedge' | 'fibspiral' | 'gannfan' | 'gannbox' | 'gannsquare' | 'dedekind' | 'sonic' | 'supersonic' | 'goldensonic' | 'goldensupersonic' | 'datepricerange' | 'position' | 'magnifier' | 'xabcd' | 'abcd' | 'elliottimpulse' | 'elliottcorrection' | 'headshoulders' | 'gartley' | 'bat' | 'butterfly' | 'crab' | 'shark' | 'cypher';
766
831
  /** One anchor's role + which axes its handle may move along. */
767
832
  interface AnchorSlot {
768
833
  role: string;
@@ -1064,6 +1129,10 @@ interface IDrawingsRendererPort {
1064
1129
  * renderer keeps owning the mutual exclusion (with armed tools too) and reports
1065
1130
  * every actual change back through the `mode` intent. Optional. */
1066
1131
  setMode?(mode: DrawingMode): void;
1132
+ /** Hand the renderer the core's series gateway so data-driven drawings can read bars
1133
+ * of a finer timeframe (exposed to them as `Projector.seriesInRange`). Optional — a
1134
+ * renderer without it simply never resolves lower-timeframe series. */
1135
+ setSeriesGateway?(gateway: DrawingSeriesGateway): void;
1067
1136
  /** Open a drawing's settings popup (selecting it too) — the programmatic twin of a click on it. */
1068
1137
  openSettings(id: string): void;
1069
1138
  /** Display another chart's in-progress placement as a GHOST at reduced opacity
@@ -1767,4 +1836,4 @@ interface AddIndicatorOptions {
1767
1836
  title?: string;
1768
1837
  }
1769
1838
 
1770
- export { type DrawingIntent as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxHAlign as E, type BoxTextSize as F, type BoxVAlign as G, type CandleBarColor as H, type InputValue as I, type CandleSeries as J, type CandleStyle as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowGroup as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowOHLC as W, type DataWindowRow as X, type DirtyRange as Y, type DrawingBox as Z, type DrawingExtend as _, type VisibleRange as a, type DrawingLabel as a0, type DrawingLine as a1, type DrawingLinefill as a2, type DrawingMode as a3, type DrawingPoint as a4, type DrawingPolyline as a5, type DrawingStyle as a6, type DrawingTable as a7, type DrawingText as a8, type DrawingXLoc as a9, type Scene as aA, type SchemaPatch as aB, type SeriesKind as aC, type SeriesPoint as aD, type SeriesSpec as aE, type SeriesValueDelta as aF, type SettingsField as aG, type SettingsSchema as aH, type SettingsVisibilityPolicy as aI, type TableCell as aJ, type TableMerge as aK, type TablePosition as aL, type ToolbarGroupConfig as aM, type TradeExecution as aN, type ValuePatch as aO, buildToolbar as aP, defaultToolbar as aQ, inputDeltas as aR, inputVisible as aS, type PaneInfo as aT, type DrawingsOption as aa, type Fill as ab, type FillGradientStop as ac, type IndicatorMeta as ad, type InputCondition as ae, type InputSchema as af, type InputType as ag, type InputWhen as ah, type LabelStyle as ai, type LabelYLoc as aj, type LineLikeKind as ak, type LineLikeSeries as al, type LineLikeStyle as am, type MarkerPoint as an, type MarkerSeries as ao, type MarketSnapshot as ap, type MarketSwitch as aq, type PaneAxis as ar, type PaneAxisBand as as, type PaneHint as at, type PaneKind as au, type PolylinePoint as av, type PriceLine as aw, type Projector as ax, type ProviderName as ay, type RendererConstructor as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type IChartRenderer as e, type RendererDisplayOptions as f, type IndicatorRenderHandle as g, type IndicatorStatus as h, type Pane as i, type PaneAction as j, type MoveTarget as k, type IndicatorModel as l, type ScenePatch as m, type SymbolPickerFn as n, type LegendActionView as o, type LegendCalloutView as p, type InputChangeEvent as q, type ClickEvent as r, type DataWindowReadout as s, type IDrawingsRendererPort as t, type Millis as u, type SnapMode as v, type DrawingTypeKey as w, type ToolbarDefinition as x, type AddIndicatorOptions as y, type BoxFontFamily as z };
1839
+ export { type DrawingIntent as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxHAlign as E, type BoxTextSize as F, type BoxVAlign as G, type CandleBarColor as H, type InputValue as I, type CandleSeries as J, type CandleStyle as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowGroup as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowOHLC as W, type DataWindowRow as X, type DirtyRange as Y, type DrawingBox as Z, type DrawingExtend as _, type VisibleRange as a, type DrawingLabel as a0, type DrawingLine as a1, type DrawingLinefill as a2, type DrawingMode as a3, type DrawingPoint as a4, type DrawingPolyline as a5, type DrawingSeriesBar as a6, type DrawingSeriesGateway as a7, type DrawingSeriesState as a8, type DrawingStyle as a9, type Projector as aA, type ProviderName as aB, type RendererConstructor as aC, type Scene as aD, type SchemaPatch as aE, type SeriesKind as aF, type SeriesPoint as aG, type SeriesSpec as aH, type SeriesValueDelta as aI, type SettingsField as aJ, type SettingsSchema as aK, type SettingsVisibilityPolicy as aL, type TableCell as aM, type TableMerge as aN, type TablePosition as aO, type ToolbarGroupConfig as aP, type TradeExecution as aQ, type ValuePatch as aR, buildToolbar as aS, defaultToolbar as aT, inputDeltas as aU, inputVisible as aV, type PaneInfo as aW, type DrawingTable as aa, type DrawingText as ab, type DrawingXLoc as ac, type DrawingsOption as ad, type Fill as ae, type FillGradientStop as af, type IndicatorMeta as ag, type InputCondition as ah, type InputSchema as ai, type InputType as aj, type InputWhen as ak, type LabelStyle as al, type LabelYLoc as am, type LineLikeKind as an, type LineLikeSeries as ao, type LineLikeStyle as ap, type MarkerPoint as aq, type MarkerSeries as ar, type MarketSnapshot as as, type MarketSwitch as at, type PaneAxis as au, type PaneAxisBand as av, type PaneHint as aw, type PaneKind as ax, type PolylinePoint as ay, type PriceLine as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type IChartRenderer as e, type RendererDisplayOptions as f, type IndicatorRenderHandle as g, type IndicatorStatus as h, type Pane as i, type PaneAction as j, type MoveTarget as k, type IndicatorModel as l, type ScenePatch as m, type SymbolPickerFn as n, type LegendActionView as o, type LegendCalloutView as p, type InputChangeEvent as q, type ClickEvent as r, type DataWindowReadout as s, type IDrawingsRendererPort as t, type Millis as u, type SnapMode as v, type DrawingTypeKey as w, type ToolbarDefinition as x, type AddIndicatorOptions as y, type BoxFontFamily as z };
@@ -1,9 +1,9 @@
1
- import { w as DrawingTypeKey, a6 as DrawingStyle, S as SerializedDrawing, D as Drawing, aC as SeriesKind, O as OHLCV, c as VelaTheme } from './options-yp7sA96q.cjs';
2
- import { c as DataControl } from './contributions-CO01zWve.cjs';
1
+ import { w as DrawingTypeKey, a9 as DrawingStyle, S as SerializedDrawing, D as Drawing, aF as SeriesKind, O as OHLCV, c as VelaTheme } from './options-CYS5Wmlx.cjs';
2
+ import { c as DataControl } from './contributions-lPojhTxI.cjs';
3
3
  import './side-panel-CT9ZwIGz.cjs';
4
4
  import './icons-BZYbJXSV.cjs';
5
5
  import './keymap-CGOz5F5f.cjs';
6
- import './DataProvider-p0TEyhlX.cjs';
6
+ import './DataProvider-DlMtrwqM.cjs';
7
7
 
8
8
  /** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
9
9
  interface DrawingTypeMeta {
@@ -14,6 +14,13 @@ interface DrawingTypeMeta {
14
14
  /** Inline SVG markup for the toolbar button — no DOM, renderer paints it. */
15
15
  icon: string;
16
16
  defaultStyle: DrawingStyle;
17
+ /** The tool's body REPLACES the series pixels inside its area (an opaque inset): a fresh
18
+ * instance then starts ABOVE the pane's series stack instead of just under the candles —
19
+ * under them its content would be buried. The user can still reorder it afterwards. */
20
+ coversSeries?: boolean;
21
+ /** One short sentence prompting the placement gesture, shown by the renderer at the
22
+ * bottom of the chart while the tool is armed and no placement has started yet. */
23
+ placementHint?: string;
17
24
  /** Build an instance from a (partial) serialized record. Serves create + deserialize. */
18
25
  create(init: Partial<SerializedDrawing> & {
19
26
  paneId: string;
@@ -1,9 +1,9 @@
1
- import { w as DrawingTypeKey, a6 as DrawingStyle, S as SerializedDrawing, D as Drawing, aC as SeriesKind, O as OHLCV, c as VelaTheme } from './options-yp7sA96q.js';
2
- import { c as DataControl } from './contributions-Bbe2R-mQ.js';
1
+ import { w as DrawingTypeKey, a9 as DrawingStyle, S as SerializedDrawing, D as Drawing, aF as SeriesKind, O as OHLCV, c as VelaTheme } from './options-CYS5Wmlx.js';
2
+ import { c as DataControl } from './contributions-37nni40G.js';
3
3
  import './side-panel-CT9ZwIGz.js';
4
4
  import './icons-BZYbJXSV.js';
5
5
  import './keymap-CGOz5F5f.js';
6
- import './DataProvider-BBf-jc6W.js';
6
+ import './DataProvider-DhzstpQb.js';
7
7
 
8
8
  /** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
9
9
  interface DrawingTypeMeta {
@@ -14,6 +14,13 @@ interface DrawingTypeMeta {
14
14
  /** Inline SVG markup for the toolbar button — no DOM, renderer paints it. */
15
15
  icon: string;
16
16
  defaultStyle: DrawingStyle;
17
+ /** The tool's body REPLACES the series pixels inside its area (an opaque inset): a fresh
18
+ * instance then starts ABOVE the pane's series stack instead of just under the candles —
19
+ * under them its content would be buried. The user can still reorder it afterwards. */
20
+ coversSeries?: boolean;
21
+ /** One short sentence prompting the placement gesture, shown by the renderer at the
22
+ * bottom of the chart while the tool is armed and no placement has started yet. */
23
+ placementHint?: string;
17
24
  /** Build an instance from a (partial) serialized record. Serves create + deserialize. */
18
25
  create(init: Partial<SerializedDrawing> & {
19
26
  paneId: string;
package/dist/plugin.cjs CHANGED
@@ -5348,6 +5348,100 @@ function roundFloat(n) {
5348
5348
  return Math.round(n * 1e8) / 1e8;
5349
5349
  }
5350
5350
 
5351
+ // src/core/drawings/types/Magnifier.ts
5352
+ var MAGNIFIER_TIMEFRAME_OPTIONS = [
5353
+ { value: "auto", label: "Auto", ms: 0 },
5354
+ { value: "1", label: "1m", ms: 6e4 },
5355
+ { value: "5", label: "5m", ms: 3e5 },
5356
+ { value: "15", label: "15m", ms: 9e5 },
5357
+ { value: "30", label: "30m", ms: 18e5 },
5358
+ { value: "60", label: "1h", ms: 36e5 },
5359
+ { value: "240", label: "4h", ms: 144e5 },
5360
+ { value: "D", label: "1D", ms: 864e5 }
5361
+ ];
5362
+ function defaultMagnifierStyle() {
5363
+ return { timeframe: "auto", upColor: "", downColor: "" };
5364
+ }
5365
+ var Magnifier = class extends Drawing {
5366
+ constructor(init) {
5367
+ super(init);
5368
+ this.type = "magnifier";
5369
+ /** Pixel rect of the timeframe chip as painted last frame, caret included — the chip is
5370
+ * an interactive dropdown trigger, so the interaction layer needs the exact rect the
5371
+ * painter measured. Renderer-transient: never serialized, null while unpainted. */
5372
+ this.chipRect = null;
5373
+ if (!this.magnifier) this.magnifier = defaultMagnifierStyle();
5374
+ }
5375
+ anchorSchema() {
5376
+ return { min: 2, max: 2, slots: [{ role: "c1", free: "both" }, { role: "c2", free: "both" }] };
5377
+ }
5378
+ placementMode() {
5379
+ return "drag";
5380
+ }
5381
+ /** The pixel rectangle between the two corner anchors (painter + hit-test share it). */
5382
+ rect(proj) {
5383
+ const a = this.anchors[0];
5384
+ const b = this.anchors[1];
5385
+ if (!a || !b) return null;
5386
+ const ya = proj.yOf(a.price, this.paneId);
5387
+ const yb = proj.yOf(b.price, this.paneId);
5388
+ if (ya == null || yb == null) return null;
5389
+ return { x1: proj.xOf(a.time), y1: ya, x2: proj.xOf(b.time), y2: yb };
5390
+ }
5391
+ hitTest(px, py, proj, tol) {
5392
+ const r = this.rect(proj);
5393
+ if (!r) return false;
5394
+ if (pointInBox(px, py, r.x1, r.y1, r.x2, r.y2)) return true;
5395
+ const edges = [
5396
+ [r.x1, r.y1, r.x2, r.y1],
5397
+ [r.x2, r.y1, r.x2, r.y2],
5398
+ [r.x2, r.y2, r.x1, r.y2],
5399
+ [r.x1, r.y2, r.x1, r.y1]
5400
+ ];
5401
+ return edges.some((e) => distToSegment(px, py, e[0], e[1], e[2], e[3]) <= tol);
5402
+ }
5403
+ handlePoints(proj) {
5404
+ const r = this.rect(proj);
5405
+ return r ? [[r.x1, r.y1], [r.x2, r.y2]] : [];
5406
+ }
5407
+ hitHandle(px, py, proj, tol) {
5408
+ return handleAt(px, py, this.handlePoints(proj), tol + 3);
5409
+ }
5410
+ bounds(proj) {
5411
+ const r = this.rect(proj);
5412
+ if (!r) return null;
5413
+ return { x: Math.min(r.x1, r.x2), y: Math.min(r.y1, r.y2), w: Math.abs(r.x2 - r.x1), h: Math.abs(r.y2 - r.y1) };
5414
+ }
5415
+ priceRange() {
5416
+ const a = this.anchors[0];
5417
+ const b = this.anchors[1];
5418
+ if (!a || !b) return null;
5419
+ return { min: Math.min(a.price, b.price), max: Math.max(a.price, b.price) };
5420
+ }
5421
+ schema() {
5422
+ return {
5423
+ fields: [
5424
+ {
5425
+ path: "magnifier.timeframe",
5426
+ label: "Timeframe",
5427
+ kind: "select",
5428
+ options: MAGNIFIER_TIMEFRAME_OPTIONS,
5429
+ group: "behavior"
5430
+ },
5431
+ ...LINE_FIELDS.map((f) => ({ ...f, label: f.label.replace("Line", "Border") })),
5432
+ { path: "magnifier.upColor", label: "Up candles", kind: "color", group: "fill" },
5433
+ { path: "magnifier.downColor", label: "Down candles", kind: "color", group: "fill" }
5434
+ ]
5435
+ };
5436
+ }
5437
+ writeProps() {
5438
+ return { ...this.magnifier };
5439
+ }
5440
+ readProps(props) {
5441
+ this.magnifier = { ...defaultMagnifierStyle(), ...props };
5442
+ }
5443
+ };
5444
+
5351
5445
  // src/core/drawings/registry.ts
5352
5446
  var REGISTRY2 = /* @__PURE__ */ new Map();
5353
5447
  function registerDrawingType(meta) {
@@ -5983,6 +6077,22 @@ registerDrawingType({
5983
6077
  defaultStyle: { lineColor: DEFAULT_DRAWING_COLOR, lineWidth: 1, lineStyle: "solid" },
5984
6078
  create: (init) => new PositionTool(init)
5985
6079
  });
6080
+ var MAGNIFIER_ICON = svg24(
6081
+ '<circle cx="10.5" cy="10.5" r="6.5"/><path d="m15.3 15.3 5.2 5.2"/><path d="M8 12.5v-3M10.5 13.5v-5.5M13 12v-2"/>'
6082
+ );
6083
+ registerDrawingType({
6084
+ type: "magnifier",
6085
+ group: "measure",
6086
+ label: "Magnifier",
6087
+ icon: MAGNIFIER_ICON,
6088
+ // An empty border color means the THEME's contrast ink (white on dark, black on
6089
+ // light), resolved at paint time so it follows theme switches; a user pick wins.
6090
+ defaultStyle: { lineColor: "", lineWidth: 1, lineStyle: "solid" },
6091
+ coversSeries: true,
6092
+ // the inset's backdrop must sit over the base candles it replaces
6093
+ placementHint: "Drag an area on the chart to view it at a lower timeframe",
6094
+ create: (init) => new Magnifier(init)
6095
+ });
5986
6096
  var VWAP_ICON = svg24('<line x1="5" y1="3" x2="5" y2="21"/><path d="M5 16c4 0 5-9 8-9s3 5 8 3"/>');
5987
6097
  registerDrawingType({
5988
6098
  type: "anchoredvwap",
package/dist/plugin.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-CkkH8QnX.cjs';
2
- export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, y as PreparedScript, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-CO01zWve.cjs';
1
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-Cwikpz1m.cjs';
2
+ export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, y as PreparedScript, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-lPojhTxI.cjs';
3
3
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.cjs';
4
- export { B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a5 as DrawingPolyline, a7 as DrawingTable, w as DrawingTypeKey, a9 as DrawingXLoc, ab as Fill, ac as FillGradientStop, ad as IndicatorMeta, l as IndicatorModel, ae as InputCondition, af as InputSchema, ag as InputType, I as InputValue, ah as InputWhen, ai as LabelStyle, aj as LabelYLoc, ak as LineLikeKind, al as LineLikeSeries, am as LineLikeStyle, L as LineStyle, an as MarkerPoint, ao as MarkerSeries, u as Millis, O as OHLCV, i as Pane, ar as PaneAxis, as as PaneAxisBand, at as PaneHint, au as PaneKind, av as PolylinePoint, aw as PriceLine, P as PriceStyle, aA as Scene, m as ScenePatch, aB as SchemaPatch, aC as SeriesKind, aD as SeriesPoint, aE as SeriesSpec, aF as SeriesValueDelta, aJ as TableCell, aK as TableMerge, aL as TablePosition, aN as TradeExecution, aO as ValuePatch, aR as inputDeltas, aS as inputVisible } from './options-yp7sA96q.cjs';
4
+ export { B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a5 as DrawingPolyline, aa as DrawingTable, w as DrawingTypeKey, ac as DrawingXLoc, ae as Fill, af as FillGradientStop, ag as IndicatorMeta, l as IndicatorModel, ah as InputCondition, ai as InputSchema, aj as InputType, I as InputValue, ak as InputWhen, al as LabelStyle, am as LabelYLoc, an as LineLikeKind, ao as LineLikeSeries, ap as LineLikeStyle, L as LineStyle, aq as MarkerPoint, ar as MarkerSeries, u as Millis, O as OHLCV, i as Pane, au as PaneAxis, av as PaneAxisBand, aw as PaneHint, ax as PaneKind, ay as PolylinePoint, az as PriceLine, P as PriceStyle, aD as Scene, m as ScenePatch, aE as SchemaPatch, aF as SeriesKind, aG as SeriesPoint, aH as SeriesSpec, aI as SeriesValueDelta, aM as TableCell, aN as TableMerge, aO as TablePosition, aQ as TradeExecution, aR as ValuePatch, aU as inputDeltas, aV as inputVisible } from './options-CYS5Wmlx.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-p0TEyhlX.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-DlMtrwqM.cjs';
package/dist/plugin.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-DwxjM3Ni.js';
2
- export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, y as PreparedScript, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-Bbe2R-mQ.js';
1
+ export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-DHyaoMjW.js';
2
+ export { B as BarsChangeReason, C as CellStateContext, b as ContextSelect, e as EngineAlert, f as EngineCapabilities, g as EngineContextSnapshot, h as EngineFactory, i as EngineWarning, j as ExecutionHandlers, k as ExecutionMarket, l as ExecutionRequest, m as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, L as LegendActionDescriptor, p as LegendCalloutContent, q as LegendCalloutDescriptor, r as LegendCalloutItem, s as LegendCalloutSpec, t as LegendIndicatorInfo, N as NativeIndicator, u as NativeIndicatorContext, v as NativeIndicatorDescriptor, w as NativeIndicatorInfo, x as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, y as PreparedScript, a as ScriptRun, H as ScriptRunCause, J as ScriptRunResult, S as ScriptingEngine, K as SidePanelButton, M as SidePanelDescriptor, Q as SidePanelHandle, T as SidePanelHeader, U as StatePersistenceHandler, X as StrategyFill, Y as StrategyState, Z as StrategyTrade, _ as SymbolRankingHook, a2 as VisibleBarRange, a3 as WidgetActionDescriptor, a4 as WidgetActionTarget, a5 as WidgetAttachment, W as WidgetContext, a6 as getNativeIndicator, a7 as legendActions, a8 as legendCallouts, aa as nativeIndicatorTypes, ab as registerDefaultEngine, ac as registerLegendAction, ad as registerLegendCallout, ae as registerNativeIndicator, af as registerSidePanel, ag as registerStatePersistence, ah as registerSymbolRanking, ai as registerWidgetAction, aj as registerWidgetAttachment, ak as resolveEngines, al as sidePanels, am as statePersistenceHandlers, an as symbolRanking, ao as topbarActionOverride, ap as unregisterDefaultEngine, aq as unregisterLegendAction, ar as unregisterLegendCallout, as as unregisterNativeIndicator, at as unregisterSidePanel, au as unregisterStatePersistence, av as unregisterWidgetAction, aw as unregisterWidgetAttachment, ax as widgetActions, ay as widgetAttachments } from './contributions-37nni40G.js';
3
3
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.js';
4
- export { B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a5 as DrawingPolyline, a7 as DrawingTable, w as DrawingTypeKey, a9 as DrawingXLoc, ab as Fill, ac as FillGradientStop, ad as IndicatorMeta, l as IndicatorModel, ae as InputCondition, af as InputSchema, ag as InputType, I as InputValue, ah as InputWhen, ai as LabelStyle, aj as LabelYLoc, ak as LineLikeKind, al as LineLikeSeries, am as LineLikeStyle, L as LineStyle, an as MarkerPoint, ao as MarkerSeries, u as Millis, O as OHLCV, i as Pane, ar as PaneAxis, as as PaneAxisBand, at as PaneHint, au as PaneKind, av as PolylinePoint, aw as PriceLine, P as PriceStyle, aA as Scene, m as ScenePatch, aB as SchemaPatch, aC as SeriesKind, aD as SeriesPoint, aE as SeriesSpec, aF as SeriesValueDelta, aJ as TableCell, aK as TableMerge, aL as TablePosition, aN as TradeExecution, aO as ValuePatch, aR as inputDeltas, aS as inputVisible } from './options-yp7sA96q.js';
4
+ export { B as Background, z as BoxFontFamily, E as BoxHAlign, F as BoxTextSize, G as BoxVAlign, H as CandleBarColor, J as CandleSeries, K as CandleStyle, Y as DirtyRange, Z as DrawingBox, _ as DrawingExtend, a0 as DrawingLabel, a1 as DrawingLine, a2 as DrawingLinefill, a5 as DrawingPolyline, aa as DrawingTable, w as DrawingTypeKey, ac as DrawingXLoc, ae as Fill, af as FillGradientStop, ag as IndicatorMeta, l as IndicatorModel, ah as InputCondition, ai as InputSchema, aj as InputType, I as InputValue, ak as InputWhen, al as LabelStyle, am as LabelYLoc, an as LineLikeKind, ao as LineLikeSeries, ap as LineLikeStyle, L as LineStyle, aq as MarkerPoint, ar as MarkerSeries, u as Millis, O as OHLCV, i as Pane, au as PaneAxis, av as PaneAxisBand, aw as PaneHint, ax as PaneKind, ay as PolylinePoint, az as PriceLine, P as PriceStyle, aD as Scene, m as ScenePatch, aE as SchemaPatch, aF as SeriesKind, aG as SeriesPoint, aH as SeriesSpec, aI as SeriesValueDelta, aM as TableCell, aN as TableMerge, aO as TablePosition, aQ as TradeExecution, aR as ValuePatch, aU as inputDeltas, aV as inputVisible } from './options-CYS5Wmlx.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-BBf-jc6W.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-DhzstpQb.js';
package/dist/plugin.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export { stableSeriesId } from './chunk-H26BEHF4.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, settingsRowValueKeys, sidePanels, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-MTLJKZDZ.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, settingsRowValueKeys, sidePanels, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-F4M24ANM.js';
3
3
  export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CROSSHAIR, HIGHLIGHT, INFO, INVALID, MARKER, NEUTRAL, SERIES_LINE, SESSION_OFF, SESSION_POST, SESSION_PRE, SLATE, SLATE_DEEP, TRADE_EXIT, TRADE_LONG, TRADE_SHORT, VALID, WARNING, categoricalColor, iconMarkup, registerIcon } from './chunk-KG4YT3TI.js';