@luxalgo/vela 0.6.7 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DataProvider-BsQM2WNH.d.cts → DataProvider-8Z95Q-RJ.d.cts} +1 -1
- package/dist/{DataProvider-BSLlBpB9.d.ts → DataProvider-DExJrfut.d.ts} +1 -1
- package/dist/{chunk-2R7BANEM.js → chunk-62SVGONC.js} +2 -2
- package/dist/{chunk-6WFKTAT4.js → chunk-6WDDVMBJ.js} +548 -147
- package/dist/{chunk-L3I2CCYO.js → chunk-EQCHJZOT.js} +49 -2
- package/dist/{chunk-OICPLNU7.js → chunk-FCVIG7JG.js} +188 -2
- package/dist/{chunk-WVP4XV5A.js → chunk-STHSKXOR.js} +407 -159
- package/dist/{chunk-PN5KWFZ4.js → chunk-WFSZBX3R.js} +2 -2
- package/dist/{contributions-Z12BrWCy.d.ts → contributions-C1U2Krwg.d.cts} +112 -7
- package/dist/{contributions-Hv4_cOJo.d.cts → contributions-D7PVZO2i.d.ts} +112 -7
- package/dist/index.cjs +755 -152
- package/dist/index.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +4 -4
- package/dist/{options-BaVTMXaO.d.ts → options-FM0peknS.d.cts} +84 -7
- package/dist/{options-BaVTMXaO.d.cts → options-FM0peknS.d.ts} +84 -7
- package/dist/{plugin-9koBjc5H.d.ts → plugin-7bkF32Rk.d.ts} +3 -3
- package/dist/{plugin-BXhDHTYn.d.cts → plugin-DfVqBz9p.d.cts} +3 -3
- package/dist/plugin.cjs +18 -2
- package/dist/plugin.d.cts +4 -4
- package/dist/plugin.d.ts +4 -4
- package/dist/plugin.js +2 -2
- package/dist/providers/binance.d.cts +2 -2
- package/dist/providers/binance.d.ts +2 -2
- package/dist/providers/coinbase.d.cts +2 -2
- package/dist/providers/coinbase.d.ts +2 -2
- package/dist/providers/hyperliquid.d.cts +2 -2
- package/dist/providers/hyperliquid.d.ts +2 -2
- package/dist/{bottombar-Br4rzx_R.d.ts → statusline-DOPiT6I6.d.cts} +91 -6
- package/dist/{bottombar-Div5zibZ.d.cts → statusline-zdF4eZLr.d.ts} +91 -6
- package/dist/ui.cjs +201 -4
- package/dist/ui.d.cts +89 -2
- package/dist/ui.d.ts +89 -2
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +755 -152
- package/dist/vela.global.min.js +93 -44
- package/dist/widget.cjs +1144 -271
- package/dist/widget.d.cts +12 -85
- package/dist/widget.d.ts +12 -85
- package/dist/widget.js +7 -7
- package/dist/workspace.cjs +1144 -271
- package/dist/workspace.d.cts +65 -11
- package/dist/workspace.d.ts +65 -11
- package/dist/workspace.js +6 -6
- 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-
|
|
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 LegendIndicatorInfo, N as NativeIndicator,
|
|
3
|
-
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent,
|
|
4
|
-
export {
|
|
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-
|
|
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-
|
|
1
|
+
import { D as DrawingsDocument, R as Resolved } from './contributions-C1U2Krwg.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-C1U2Krwg.cjs';
|
|
3
|
+
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as 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-FM0peknS.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 inputVisible } from './options-FM0peknS.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-8Z95Q-RJ.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-DfVqBz9p.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';
|
|
@@ -367,6 +367,8 @@ declare class NativeRenderer implements IChartRenderer {
|
|
|
367
367
|
private backendMode;
|
|
368
368
|
private glowAmount;
|
|
369
369
|
private readonly chrome;
|
|
370
|
+
/** Hover tooltips for Pine labels (canvas hit-rects collected by the chrome layer). */
|
|
371
|
+
private labelTooltip;
|
|
370
372
|
private readonly crosshairLayer;
|
|
371
373
|
private scheduler;
|
|
372
374
|
/** 1 Hz repaint pump so the price-axis countdown-to-bar-close ticks; null when off. */
|
|
@@ -381,6 +383,8 @@ declare class NativeRenderer implements IChartRenderer {
|
|
|
381
383
|
private indicatorValuesOn;
|
|
382
384
|
/** Host-contributed legend actions — held here so a rebuild of the legend re-wires them. */
|
|
383
385
|
private legendActionsProvider;
|
|
386
|
+
/** Host-contributed legend callouts — held here so a rebuild of the legend re-wires them. */
|
|
387
|
+
private legendCalloutsProvider;
|
|
384
388
|
/** Host override of the legend's fold toggle — held here so a remount re-applies it. */
|
|
385
389
|
private legendOverviewAction;
|
|
386
390
|
private keyboard;
|
|
@@ -660,9 +664,10 @@ declare class NativeRenderer implements IChartRenderer {
|
|
|
660
664
|
mountIndicator(model: IndicatorModel): IndicatorRenderHandle;
|
|
661
665
|
updateIndicator(handle: IndicatorRenderHandle, patch: ScenePatch): void;
|
|
662
666
|
removeIndicator(handle: IndicatorRenderHandle): void;
|
|
663
|
-
setIndicatorInputs(handle: IndicatorRenderHandle, values: Record<string, InputValue>): void;
|
|
667
|
+
setIndicatorInputs(handle: IndicatorRenderHandle, values: Record<string, InputValue>, props?: Record<string, InputValue>): void;
|
|
664
668
|
setSymbolPicker(picker: SymbolPickerFn | null): void;
|
|
665
669
|
setLegendActions(provider: ((indicatorId: string) => LegendActionView[]) | null): void;
|
|
670
|
+
setLegendCallouts(provider: ((indicatorId: string) => LegendCalloutView[]) | null): void;
|
|
666
671
|
setLegendOverviewAction(action: (() => void) | null): void;
|
|
667
672
|
openIndicatorSettings(indicatorId: string): void;
|
|
668
673
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DrawingsDocument, R as Resolved } from './contributions-
|
|
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 LegendIndicatorInfo, N as NativeIndicator,
|
|
3
|
-
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent,
|
|
4
|
-
export {
|
|
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-
|
|
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-
|
|
1
|
+
import { D as DrawingsDocument, R as Resolved } from './contributions-D7PVZO2i.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-D7PVZO2i.js';
|
|
3
|
+
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as 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-FM0peknS.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 inputVisible } from './options-FM0peknS.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-DExJrfut.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-7bkF32Rk.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';
|
|
@@ -367,6 +367,8 @@ declare class NativeRenderer implements IChartRenderer {
|
|
|
367
367
|
private backendMode;
|
|
368
368
|
private glowAmount;
|
|
369
369
|
private readonly chrome;
|
|
370
|
+
/** Hover tooltips for Pine labels (canvas hit-rects collected by the chrome layer). */
|
|
371
|
+
private labelTooltip;
|
|
370
372
|
private readonly crosshairLayer;
|
|
371
373
|
private scheduler;
|
|
372
374
|
/** 1 Hz repaint pump so the price-axis countdown-to-bar-close ticks; null when off. */
|
|
@@ -381,6 +383,8 @@ declare class NativeRenderer implements IChartRenderer {
|
|
|
381
383
|
private indicatorValuesOn;
|
|
382
384
|
/** Host-contributed legend actions — held here so a rebuild of the legend re-wires them. */
|
|
383
385
|
private legendActionsProvider;
|
|
386
|
+
/** Host-contributed legend callouts — held here so a rebuild of the legend re-wires them. */
|
|
387
|
+
private legendCalloutsProvider;
|
|
384
388
|
/** Host override of the legend's fold toggle — held here so a remount re-applies it. */
|
|
385
389
|
private legendOverviewAction;
|
|
386
390
|
private keyboard;
|
|
@@ -660,9 +664,10 @@ declare class NativeRenderer implements IChartRenderer {
|
|
|
660
664
|
mountIndicator(model: IndicatorModel): IndicatorRenderHandle;
|
|
661
665
|
updateIndicator(handle: IndicatorRenderHandle, patch: ScenePatch): void;
|
|
662
666
|
removeIndicator(handle: IndicatorRenderHandle): void;
|
|
663
|
-
setIndicatorInputs(handle: IndicatorRenderHandle, values: Record<string, InputValue>): void;
|
|
667
|
+
setIndicatorInputs(handle: IndicatorRenderHandle, values: Record<string, InputValue>, props?: Record<string, InputValue>): void;
|
|
664
668
|
setSymbolPicker(picker: SymbolPickerFn | null): void;
|
|
665
669
|
setLegendActions(provider: ((indicatorId: string) => LegendActionView[]) | null): void;
|
|
670
|
+
setLegendCallouts(provider: ((indicatorId: string) => LegendCalloutView[]) | null): void;
|
|
666
671
|
setLegendOverviewAction(action: (() => void) | null): void;
|
|
667
672
|
openIndicatorSettings(indicatorId: string): void;
|
|
668
673
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { stableSeriesId } from './chunk-AOGZBKUE.js';
|
|
2
|
-
export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-
|
|
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, inputVisible, legendActions, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerStatePersistence, registerSymbolRanking, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, settingsRowValueKeys, sidePanels, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-
|
|
4
|
-
import './chunk-
|
|
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-
|
|
2
|
+
export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-6WDDVMBJ.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, 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-EQCHJZOT.js';
|
|
4
|
+
import './chunk-FCVIG7JG.js';
|
|
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-WFSZBX3R.js';
|
|
@@ -73,6 +73,8 @@ interface SeriesBase {
|
|
|
73
73
|
/** Declared draw-order intent; the renderer owns final z-ordering. */
|
|
74
74
|
zOrder?: number;
|
|
75
75
|
visible?: boolean;
|
|
76
|
+
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
77
|
+
overlay?: boolean;
|
|
76
78
|
}
|
|
77
79
|
interface LineLikeSeries extends SeriesBase {
|
|
78
80
|
kind: LineLikeKind;
|
|
@@ -187,6 +189,9 @@ interface DrawingLabel {
|
|
|
187
189
|
textAlign: BoxHAlign;
|
|
188
190
|
tooltip?: string;
|
|
189
191
|
fontFamily: BoxFontFamily;
|
|
192
|
+
/** Pine `text_formatting` — bold/italic text, matching the box text options. */
|
|
193
|
+
bold?: boolean;
|
|
194
|
+
italic?: boolean;
|
|
190
195
|
/** na bubble/marker color → render text only (no bubble/shape fill). */
|
|
191
196
|
noFill?: boolean;
|
|
192
197
|
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
@@ -237,12 +242,19 @@ interface TableCell {
|
|
|
237
242
|
bgColor?: string;
|
|
238
243
|
hAlign: BoxHAlign;
|
|
239
244
|
vAlign: BoxVAlign;
|
|
240
|
-
|
|
245
|
+
/** A named size, or Pine's integer `text_size` as a raw pixel value. */
|
|
246
|
+
textSize: BoxTextSize | number;
|
|
241
247
|
fontFamily: BoxFontFamily;
|
|
242
248
|
tooltip?: string;
|
|
243
249
|
bold: boolean;
|
|
244
250
|
italic: boolean;
|
|
245
|
-
/**
|
|
251
|
+
/** Cell width as a percent of the pane's width (absent/0 = size to content). */
|
|
252
|
+
width?: number;
|
|
253
|
+
/** Cell height as a percent of the pane's height (absent/0 = size to content). */
|
|
254
|
+
height?: number;
|
|
255
|
+
/** A non-origin cell absorbed by a `table.merge_cells` region → not rendered.
|
|
256
|
+
* Engines may also (spuriously) stamp this on the merge ORIGIN — renderers must
|
|
257
|
+
* resolve visibility against `DrawingTable.merges`, not this flag alone. */
|
|
246
258
|
merged?: boolean;
|
|
247
259
|
}
|
|
248
260
|
/** A `table.merge_cells` region (inclusive, in column/row coordinates). */
|
|
@@ -268,6 +280,8 @@ interface DrawingTable {
|
|
|
268
280
|
cells: Array<Array<TableCell | null>>;
|
|
269
281
|
/** Merged-cell regions (`table.merge_cells`); origin spans, others are dropped. */
|
|
270
282
|
merges: TableMerge[];
|
|
283
|
+
/** `force_overlay` → anchor to the price pane regardless of the indicator's pane. */
|
|
284
|
+
overlay?: boolean;
|
|
271
285
|
}
|
|
272
286
|
|
|
273
287
|
type PaneKind = 'price' | 'study';
|
|
@@ -300,6 +314,8 @@ interface Fill {
|
|
|
300
314
|
colors?: Array<string | null>;
|
|
301
315
|
/** Per-bar vertical gradient (gradient-fill overload), aligned by index. */
|
|
302
316
|
gradient?: Array<FillGradientStop | null>;
|
|
317
|
+
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
318
|
+
overlay?: boolean;
|
|
303
319
|
}
|
|
304
320
|
/** A vertical background tint over a time span (Pine `bgcolor()` / session bands). */
|
|
305
321
|
interface Background {
|
|
@@ -310,6 +326,8 @@ interface Background {
|
|
|
310
326
|
/** Exclusive end, epoch ms. */
|
|
311
327
|
to: Millis;
|
|
312
328
|
color: string;
|
|
329
|
+
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
330
|
+
overlay?: boolean;
|
|
313
331
|
}
|
|
314
332
|
/** A horizontal price line (Pine `hline()`). */
|
|
315
333
|
interface PriceLine {
|
|
@@ -455,8 +473,9 @@ interface IndicatorModel {
|
|
|
455
473
|
/** Full display name (settings dialog, object tree, inspect). */
|
|
456
474
|
title: string;
|
|
457
475
|
/**
|
|
458
|
-
* Compact legend
|
|
459
|
-
* Absent ⇒
|
|
476
|
+
* Compact label the legend chip and the settings dialog show instead of the full
|
|
477
|
+
* {@link title}. Absent ⇒ both use {@link title}. Mirrors Pine
|
|
478
|
+
* `indicator(..., shorttitle=)`.
|
|
460
479
|
*/
|
|
461
480
|
shorttitle?: string;
|
|
462
481
|
overlay: boolean;
|
|
@@ -525,6 +544,10 @@ interface IndicatorModel {
|
|
|
525
544
|
inputs: InputSchema[];
|
|
526
545
|
/** Current input values (defaults merged with any user/add-time overrides). */
|
|
527
546
|
inputValues: Record<string, InputValue>;
|
|
547
|
+
/** Declaration-props schema (the settings dialog's "Properties" tab). Absent ≡ none. */
|
|
548
|
+
props?: InputSchema[];
|
|
549
|
+
/** Current prop values (effective defaults merged with any user/add-time overrides). */
|
|
550
|
+
propValues?: Record<string, InputValue>;
|
|
528
551
|
}
|
|
529
552
|
|
|
530
553
|
interface DirtyRange {
|
|
@@ -1109,6 +1132,45 @@ interface LegendActionView {
|
|
|
1109
1132
|
tooltip: string;
|
|
1110
1133
|
run(): void;
|
|
1111
1134
|
}
|
|
1135
|
+
/** One block of a legend callout's deployed panel — plain text, or an action button. */
|
|
1136
|
+
type LegendCalloutPanelItem = {
|
|
1137
|
+
type: 'text';
|
|
1138
|
+
text: string;
|
|
1139
|
+
} | {
|
|
1140
|
+
type: 'button';
|
|
1141
|
+
label: string;
|
|
1142
|
+
/** Emphasized (selection-colored) button — the panel's main action. */
|
|
1143
|
+
primary?: boolean;
|
|
1144
|
+
/** Close the panel after `run` (default true). */
|
|
1145
|
+
close?: boolean;
|
|
1146
|
+
run(): void;
|
|
1147
|
+
};
|
|
1148
|
+
/** The panel a clickable legend callout deploys: an optional heading over ordered blocks. */
|
|
1149
|
+
interface LegendCalloutPanel {
|
|
1150
|
+
title?: string;
|
|
1151
|
+
items: LegendCalloutPanelItem[];
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* One host-contributed legend CALLOUT, as the renderer consumes it: a small tinted
|
|
1155
|
+
* bubble with a centered icon, always visible beside the indicator's legend title
|
|
1156
|
+
* (trailing the whole row while its controls are out). When `content` is present the
|
|
1157
|
+
* bubble is clickable and deploys that panel — below the bubble, flipping above when
|
|
1158
|
+
* the bottom screen edge is too close. Pure data plus thunks, same rule as
|
|
1159
|
+
* {@link LegendActionView}: the shell resolves the plugin descriptor before it
|
|
1160
|
+
* reaches the renderer.
|
|
1161
|
+
*/
|
|
1162
|
+
interface LegendCalloutView {
|
|
1163
|
+
id: string;
|
|
1164
|
+
/** Icon id in the core icon registry (`registerIcon`). */
|
|
1165
|
+
icon: string;
|
|
1166
|
+
/** Bubble fill — any CSS color. */
|
|
1167
|
+
background: string;
|
|
1168
|
+
/** Icon ink (default: the legend row's text color). */
|
|
1169
|
+
color?: string;
|
|
1170
|
+
tooltip: string;
|
|
1171
|
+
/** Deployed panel — presence makes the bubble clickable. */
|
|
1172
|
+
content?: LegendCalloutPanel;
|
|
1173
|
+
}
|
|
1112
1174
|
/** OHLCV of the price bar under the crosshair (the "data window" source). */
|
|
1113
1175
|
interface CrosshairOHLC {
|
|
1114
1176
|
time: Millis;
|
|
@@ -1183,6 +1245,8 @@ interface InputChangeEvent {
|
|
|
1183
1245
|
indicatorId: string;
|
|
1184
1246
|
key: string;
|
|
1185
1247
|
value: InputValue;
|
|
1248
|
+
/** What was edited: a script input (default) or a declaration prop (the "Properties" tab). */
|
|
1249
|
+
kind?: 'input' | 'prop';
|
|
1186
1250
|
}
|
|
1187
1251
|
interface VisibleRange {
|
|
1188
1252
|
from: Millis;
|
|
@@ -1299,8 +1363,9 @@ interface IChartRenderer {
|
|
|
1299
1363
|
mountIndicator(model: IndicatorModel): IndicatorRenderHandle;
|
|
1300
1364
|
updateIndicator(handle: IndicatorRenderHandle, patch: ScenePatch): void;
|
|
1301
1365
|
removeIndicator(handle: IndicatorRenderHandle): void;
|
|
1302
|
-
/** Reflect a programmatic input change in the renderer's settings UI.
|
|
1303
|
-
|
|
1366
|
+
/** Reflect a programmatic input change in the renderer's settings UI. `props`
|
|
1367
|
+
* (when given) refreshes the declaration-prop values the same way. */
|
|
1368
|
+
setIndicatorInputs(handle: IndicatorRenderHandle, values: Record<string, InputValue>, props?: Record<string, InputValue>): void;
|
|
1304
1369
|
/**
|
|
1305
1370
|
* Supply a symbol picker so the settings dialog's `input.symbol` control opens the host's own
|
|
1306
1371
|
* ticker-selection UI (the host wires this). Optional — without it, `input.symbol` is a plain
|
|
@@ -1315,6 +1380,14 @@ interface IChartRenderer {
|
|
|
1315
1380
|
* renderer without it simply never shows contributed legend actions.
|
|
1316
1381
|
*/
|
|
1317
1382
|
setLegendActions?(provider: ((indicatorId: string) => LegendActionView[]) | null): void;
|
|
1383
|
+
/**
|
|
1384
|
+
* Supply the HOST-CONTRIBUTED callout bubbles of each legend row (the shells wire
|
|
1385
|
+
* the plugin registry through this — see `registerLegendCallout`). Same contract as
|
|
1386
|
+
* {@link setLegendActions}: the provider is called per row, lazily; calling this
|
|
1387
|
+
* again replaces the provider AND re-projects the rows already on screen. Optional —
|
|
1388
|
+
* a renderer without it simply never shows contributed callouts.
|
|
1389
|
+
*/
|
|
1390
|
+
setLegendCallouts?(provider: ((indicatorId: string) => LegendCalloutView[]) | null): void;
|
|
1318
1391
|
/**
|
|
1319
1392
|
* Replace the indicator legend's fold toggle with a HOST action (or restore it with
|
|
1320
1393
|
* null): the chip stays — a list glyph plus the indicator count — but pressing it
|
|
@@ -1675,6 +1748,10 @@ interface AddIndicatorOptions {
|
|
|
1675
1748
|
language?: string;
|
|
1676
1749
|
/** Input overrides, keyed by input title or varId. */
|
|
1677
1750
|
inputs?: Record<string, InputValue>;
|
|
1751
|
+
/** Declaration-property overrides (a strategy's `initial_capital`, an indicator's
|
|
1752
|
+
* `precision`, …), keyed like the engine's props schema. Ignored by engines
|
|
1753
|
+
* without props support. */
|
|
1754
|
+
props?: Record<string, InputValue>;
|
|
1678
1755
|
/** Force overlay-vs-pane placement (default: read from `indicator(overlay=…)`). */
|
|
1679
1756
|
overlay?: boolean;
|
|
1680
1757
|
/** Explicit pane placement. */
|
|
@@ -1683,4 +1760,4 @@ interface AddIndicatorOptions {
|
|
|
1683
1760
|
title?: string;
|
|
1684
1761
|
}
|
|
1685
1762
|
|
|
1686
|
-
export { type
|
|
1763
|
+
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 IChartRenderer 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, inputVisible as aR, type PaneInfo as aS, 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 RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type 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 };
|
|
@@ -73,6 +73,8 @@ interface SeriesBase {
|
|
|
73
73
|
/** Declared draw-order intent; the renderer owns final z-ordering. */
|
|
74
74
|
zOrder?: number;
|
|
75
75
|
visible?: boolean;
|
|
76
|
+
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
77
|
+
overlay?: boolean;
|
|
76
78
|
}
|
|
77
79
|
interface LineLikeSeries extends SeriesBase {
|
|
78
80
|
kind: LineLikeKind;
|
|
@@ -187,6 +189,9 @@ interface DrawingLabel {
|
|
|
187
189
|
textAlign: BoxHAlign;
|
|
188
190
|
tooltip?: string;
|
|
189
191
|
fontFamily: BoxFontFamily;
|
|
192
|
+
/** Pine `text_formatting` — bold/italic text, matching the box text options. */
|
|
193
|
+
bold?: boolean;
|
|
194
|
+
italic?: boolean;
|
|
190
195
|
/** na bubble/marker color → render text only (no bubble/shape fill). */
|
|
191
196
|
noFill?: boolean;
|
|
192
197
|
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
@@ -237,12 +242,19 @@ interface TableCell {
|
|
|
237
242
|
bgColor?: string;
|
|
238
243
|
hAlign: BoxHAlign;
|
|
239
244
|
vAlign: BoxVAlign;
|
|
240
|
-
|
|
245
|
+
/** A named size, or Pine's integer `text_size` as a raw pixel value. */
|
|
246
|
+
textSize: BoxTextSize | number;
|
|
241
247
|
fontFamily: BoxFontFamily;
|
|
242
248
|
tooltip?: string;
|
|
243
249
|
bold: boolean;
|
|
244
250
|
italic: boolean;
|
|
245
|
-
/**
|
|
251
|
+
/** Cell width as a percent of the pane's width (absent/0 = size to content). */
|
|
252
|
+
width?: number;
|
|
253
|
+
/** Cell height as a percent of the pane's height (absent/0 = size to content). */
|
|
254
|
+
height?: number;
|
|
255
|
+
/** A non-origin cell absorbed by a `table.merge_cells` region → not rendered.
|
|
256
|
+
* Engines may also (spuriously) stamp this on the merge ORIGIN — renderers must
|
|
257
|
+
* resolve visibility against `DrawingTable.merges`, not this flag alone. */
|
|
246
258
|
merged?: boolean;
|
|
247
259
|
}
|
|
248
260
|
/** A `table.merge_cells` region (inclusive, in column/row coordinates). */
|
|
@@ -268,6 +280,8 @@ interface DrawingTable {
|
|
|
268
280
|
cells: Array<Array<TableCell | null>>;
|
|
269
281
|
/** Merged-cell regions (`table.merge_cells`); origin spans, others are dropped. */
|
|
270
282
|
merges: TableMerge[];
|
|
283
|
+
/** `force_overlay` → anchor to the price pane regardless of the indicator's pane. */
|
|
284
|
+
overlay?: boolean;
|
|
271
285
|
}
|
|
272
286
|
|
|
273
287
|
type PaneKind = 'price' | 'study';
|
|
@@ -300,6 +314,8 @@ interface Fill {
|
|
|
300
314
|
colors?: Array<string | null>;
|
|
301
315
|
/** Per-bar vertical gradient (gradient-fill overload), aligned by index. */
|
|
302
316
|
gradient?: Array<FillGradientStop | null>;
|
|
317
|
+
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
318
|
+
overlay?: boolean;
|
|
303
319
|
}
|
|
304
320
|
/** A vertical background tint over a time span (Pine `bgcolor()` / session bands). */
|
|
305
321
|
interface Background {
|
|
@@ -310,6 +326,8 @@ interface Background {
|
|
|
310
326
|
/** Exclusive end, epoch ms. */
|
|
311
327
|
to: Millis;
|
|
312
328
|
color: string;
|
|
329
|
+
/** `force_overlay` → render on the price pane regardless of the indicator's pane. */
|
|
330
|
+
overlay?: boolean;
|
|
313
331
|
}
|
|
314
332
|
/** A horizontal price line (Pine `hline()`). */
|
|
315
333
|
interface PriceLine {
|
|
@@ -455,8 +473,9 @@ interface IndicatorModel {
|
|
|
455
473
|
/** Full display name (settings dialog, object tree, inspect). */
|
|
456
474
|
title: string;
|
|
457
475
|
/**
|
|
458
|
-
* Compact legend
|
|
459
|
-
* Absent ⇒
|
|
476
|
+
* Compact label the legend chip and the settings dialog show instead of the full
|
|
477
|
+
* {@link title}. Absent ⇒ both use {@link title}. Mirrors Pine
|
|
478
|
+
* `indicator(..., shorttitle=)`.
|
|
460
479
|
*/
|
|
461
480
|
shorttitle?: string;
|
|
462
481
|
overlay: boolean;
|
|
@@ -525,6 +544,10 @@ interface IndicatorModel {
|
|
|
525
544
|
inputs: InputSchema[];
|
|
526
545
|
/** Current input values (defaults merged with any user/add-time overrides). */
|
|
527
546
|
inputValues: Record<string, InputValue>;
|
|
547
|
+
/** Declaration-props schema (the settings dialog's "Properties" tab). Absent ≡ none. */
|
|
548
|
+
props?: InputSchema[];
|
|
549
|
+
/** Current prop values (effective defaults merged with any user/add-time overrides). */
|
|
550
|
+
propValues?: Record<string, InputValue>;
|
|
528
551
|
}
|
|
529
552
|
|
|
530
553
|
interface DirtyRange {
|
|
@@ -1109,6 +1132,45 @@ interface LegendActionView {
|
|
|
1109
1132
|
tooltip: string;
|
|
1110
1133
|
run(): void;
|
|
1111
1134
|
}
|
|
1135
|
+
/** One block of a legend callout's deployed panel — plain text, or an action button. */
|
|
1136
|
+
type LegendCalloutPanelItem = {
|
|
1137
|
+
type: 'text';
|
|
1138
|
+
text: string;
|
|
1139
|
+
} | {
|
|
1140
|
+
type: 'button';
|
|
1141
|
+
label: string;
|
|
1142
|
+
/** Emphasized (selection-colored) button — the panel's main action. */
|
|
1143
|
+
primary?: boolean;
|
|
1144
|
+
/** Close the panel after `run` (default true). */
|
|
1145
|
+
close?: boolean;
|
|
1146
|
+
run(): void;
|
|
1147
|
+
};
|
|
1148
|
+
/** The panel a clickable legend callout deploys: an optional heading over ordered blocks. */
|
|
1149
|
+
interface LegendCalloutPanel {
|
|
1150
|
+
title?: string;
|
|
1151
|
+
items: LegendCalloutPanelItem[];
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* One host-contributed legend CALLOUT, as the renderer consumes it: a small tinted
|
|
1155
|
+
* bubble with a centered icon, always visible beside the indicator's legend title
|
|
1156
|
+
* (trailing the whole row while its controls are out). When `content` is present the
|
|
1157
|
+
* bubble is clickable and deploys that panel — below the bubble, flipping above when
|
|
1158
|
+
* the bottom screen edge is too close. Pure data plus thunks, same rule as
|
|
1159
|
+
* {@link LegendActionView}: the shell resolves the plugin descriptor before it
|
|
1160
|
+
* reaches the renderer.
|
|
1161
|
+
*/
|
|
1162
|
+
interface LegendCalloutView {
|
|
1163
|
+
id: string;
|
|
1164
|
+
/** Icon id in the core icon registry (`registerIcon`). */
|
|
1165
|
+
icon: string;
|
|
1166
|
+
/** Bubble fill — any CSS color. */
|
|
1167
|
+
background: string;
|
|
1168
|
+
/** Icon ink (default: the legend row's text color). */
|
|
1169
|
+
color?: string;
|
|
1170
|
+
tooltip: string;
|
|
1171
|
+
/** Deployed panel — presence makes the bubble clickable. */
|
|
1172
|
+
content?: LegendCalloutPanel;
|
|
1173
|
+
}
|
|
1112
1174
|
/** OHLCV of the price bar under the crosshair (the "data window" source). */
|
|
1113
1175
|
interface CrosshairOHLC {
|
|
1114
1176
|
time: Millis;
|
|
@@ -1183,6 +1245,8 @@ interface InputChangeEvent {
|
|
|
1183
1245
|
indicatorId: string;
|
|
1184
1246
|
key: string;
|
|
1185
1247
|
value: InputValue;
|
|
1248
|
+
/** What was edited: a script input (default) or a declaration prop (the "Properties" tab). */
|
|
1249
|
+
kind?: 'input' | 'prop';
|
|
1186
1250
|
}
|
|
1187
1251
|
interface VisibleRange {
|
|
1188
1252
|
from: Millis;
|
|
@@ -1299,8 +1363,9 @@ interface IChartRenderer {
|
|
|
1299
1363
|
mountIndicator(model: IndicatorModel): IndicatorRenderHandle;
|
|
1300
1364
|
updateIndicator(handle: IndicatorRenderHandle, patch: ScenePatch): void;
|
|
1301
1365
|
removeIndicator(handle: IndicatorRenderHandle): void;
|
|
1302
|
-
/** Reflect a programmatic input change in the renderer's settings UI.
|
|
1303
|
-
|
|
1366
|
+
/** Reflect a programmatic input change in the renderer's settings UI. `props`
|
|
1367
|
+
* (when given) refreshes the declaration-prop values the same way. */
|
|
1368
|
+
setIndicatorInputs(handle: IndicatorRenderHandle, values: Record<string, InputValue>, props?: Record<string, InputValue>): void;
|
|
1304
1369
|
/**
|
|
1305
1370
|
* Supply a symbol picker so the settings dialog's `input.symbol` control opens the host's own
|
|
1306
1371
|
* ticker-selection UI (the host wires this). Optional — without it, `input.symbol` is a plain
|
|
@@ -1315,6 +1380,14 @@ interface IChartRenderer {
|
|
|
1315
1380
|
* renderer without it simply never shows contributed legend actions.
|
|
1316
1381
|
*/
|
|
1317
1382
|
setLegendActions?(provider: ((indicatorId: string) => LegendActionView[]) | null): void;
|
|
1383
|
+
/**
|
|
1384
|
+
* Supply the HOST-CONTRIBUTED callout bubbles of each legend row (the shells wire
|
|
1385
|
+
* the plugin registry through this — see `registerLegendCallout`). Same contract as
|
|
1386
|
+
* {@link setLegendActions}: the provider is called per row, lazily; calling this
|
|
1387
|
+
* again replaces the provider AND re-projects the rows already on screen. Optional —
|
|
1388
|
+
* a renderer without it simply never shows contributed callouts.
|
|
1389
|
+
*/
|
|
1390
|
+
setLegendCallouts?(provider: ((indicatorId: string) => LegendCalloutView[]) | null): void;
|
|
1318
1391
|
/**
|
|
1319
1392
|
* Replace the indicator legend's fold toggle with a HOST action (or restore it with
|
|
1320
1393
|
* null): the chip stays — a list glyph plus the indicator count — but pressing it
|
|
@@ -1675,6 +1748,10 @@ interface AddIndicatorOptions {
|
|
|
1675
1748
|
language?: string;
|
|
1676
1749
|
/** Input overrides, keyed by input title or varId. */
|
|
1677
1750
|
inputs?: Record<string, InputValue>;
|
|
1751
|
+
/** Declaration-property overrides (a strategy's `initial_capital`, an indicator's
|
|
1752
|
+
* `precision`, …), keyed like the engine's props schema. Ignored by engines
|
|
1753
|
+
* without props support. */
|
|
1754
|
+
props?: Record<string, InputValue>;
|
|
1678
1755
|
/** Force overlay-vs-pane placement (default: read from `indicator(overlay=…)`). */
|
|
1679
1756
|
overlay?: boolean;
|
|
1680
1757
|
/** Explicit pane placement. */
|
|
@@ -1683,4 +1760,4 @@ interface AddIndicatorOptions {
|
|
|
1683
1760
|
title?: string;
|
|
1684
1761
|
}
|
|
1685
1762
|
|
|
1686
|
-
export { type
|
|
1763
|
+
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 IChartRenderer 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, inputVisible as aR, type PaneInfo as aS, 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 RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type 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 {
|
|
2
|
-
import { c as DataControl } from './contributions-
|
|
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-FM0peknS.js';
|
|
2
|
+
import { c as DataControl } from './contributions-D7PVZO2i.js';
|
|
3
3
|
import './side-panel-CT9ZwIGz.js';
|
|
4
4
|
import './icons-BZYbJXSV.js';
|
|
5
5
|
import './keymap-CGOz5F5f.js';
|
|
6
|
-
import './DataProvider-
|
|
6
|
+
import './DataProvider-DExJrfut.js';
|
|
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 {
|
|
2
|
-
import { c as DataControl } from './contributions-
|
|
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-FM0peknS.cjs';
|
|
2
|
+
import { c as DataControl } from './contributions-C1U2Krwg.cjs';
|
|
3
3
|
import './side-panel-CT9ZwIGz.cjs';
|
|
4
4
|
import './icons-BZYbJXSV.cjs';
|
|
5
5
|
import './keymap-CGOz5F5f.cjs';
|
|
6
|
-
import './DataProvider-
|
|
6
|
+
import './DataProvider-8Z95Q-RJ.cjs';
|
|
7
7
|
|
|
8
8
|
/** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
|
|
9
9
|
interface DrawingTypeMeta {
|