@luxalgo/vela 0.6.9 → 0.6.11
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-8Z95Q-RJ.d.cts → DataProvider-BBf-jc6W.d.ts} +49 -1
- package/dist/{DataProvider-DExJrfut.d.ts → DataProvider-p0TEyhlX.d.cts} +49 -1
- package/dist/{chunk-6WDDVMBJ.js → chunk-73PEA4MU.js} +707 -353
- package/dist/{chunk-62SVGONC.js → chunk-G77Y7LK2.js} +2 -2
- package/dist/{chunk-STHSKXOR.js → chunk-IO3NYSQV.js} +650 -157
- package/dist/{chunk-WFSZBX3R.js → chunk-KG4YT3TI.js} +3 -1
- package/dist/{chunk-FCVIG7JG.js → chunk-MHY7MVXH.js} +5 -1
- package/dist/{chunk-EQCHJZOT.js → chunk-MTLJKZDZ.js} +10 -2
- package/dist/{contributions-D7PVZO2i.d.ts → contributions-Bbe2R-mQ.d.ts} +20 -6
- package/dist/{contributions-C1U2Krwg.d.cts → contributions-CO01zWve.d.cts} +20 -6
- package/dist/index.cjs +719 -350
- package/dist/index.d.cts +37 -10
- package/dist/index.d.ts +37 -10
- package/dist/index.js +5 -5
- package/dist/{options-FM0peknS.d.ts → options-yp7sA96q.d.cts} +14 -7
- package/dist/{options-FM0peknS.d.cts → options-yp7sA96q.d.ts} +14 -7
- package/dist/{plugin-DfVqBz9p.d.cts → plugin-CkkH8QnX.d.cts} +3 -3
- package/dist/{plugin-7bkF32Rk.d.ts → plugin-DwxjM3Ni.d.ts} +3 -3
- package/dist/plugin.cjs +12 -1
- package/dist/plugin.d.cts +4 -4
- package/dist/plugin.d.ts +4 -4
- package/dist/plugin.js +3 -3
- 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/{statusline-DOPiT6I6.d.cts → statusline-CHPDuKNp.d.ts} +13 -5
- package/dist/{statusline-zdF4eZLr.d.ts → statusline-DTHZUFqK.d.cts} +13 -5
- package/dist/ui.cjs +7 -1
- package/dist/ui.d.cts +3 -1
- package/dist/ui.d.ts +3 -1
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +719 -350
- package/dist/vela.global.min.js +51 -49
- package/dist/widget.cjs +1249 -388
- package/dist/widget.d.cts +17 -6
- package/dist/widget.d.ts +17 -6
- package/dist/widget.js +7 -7
- package/dist/workspace.cjs +1249 -388
- package/dist/workspace.d.cts +103 -10
- package/dist/workspace.d.ts +103 -10
- package/dist/workspace.js +6 -6
- package/package.json +1 -1
- /package/dist/{chunk-AOGZBKUE.js → chunk-H26BEHF4.js} +0 -0
|
@@ -135,6 +135,8 @@ registerIcon("folder-plus", S('<path d="M1.6 4.4a1 1 0 0 1 1-1h2.7l1.3 1.7h6.8a1
|
|
|
135
135
|
registerIcon("folder-minus", S('<path d="M1.6 4.4a1 1 0 0 1 1-1h2.7l1.3 1.7h6.8a1 1 0 0 1 1 1v6.5a1 1 0 0 1-1 1h-10.8a1 1 0 0 1-1-1z"/><path d="M6.2 9.4h3.6"/>'));
|
|
136
136
|
registerIcon("collapse", S('<path d="M3 8h10"/>'));
|
|
137
137
|
registerIcon("expand", S('<rect x="2.2" y="2.2" width="11.6" height="11.6" rx="1.4"/><path d="M8 5.4v5.2M5.4 8h5.2"/>'));
|
|
138
|
+
registerIcon("plus", S('<path d="M8 2.8v10.4M2.8 8h10.4"/>'));
|
|
139
|
+
registerIcon("minus", S('<path d="M2.8 8h10.4"/>'));
|
|
138
140
|
registerIcon("maximize", S('<path d="M2.5 6V3a.5.5 0 0 1 .5-.5h3M10 2.5h3a.5.5 0 0 1 .5.5v3M13.5 10v3a.5.5 0 0 1-.5.5h-3M6 13.5H3a.5.5 0 0 1-.5-.5v-3"/>'));
|
|
139
141
|
registerIcon("restore", S('<path d="M6.2 2.5v3.7H2.5M9.8 13.5V9.8h3.7M13.5 6.2H9.8V2.5M2.5 9.8h3.7v3.7"/>'));
|
|
140
142
|
registerIcon("star", S('<path d="M8 2.2l1.75 3.55 3.9.55-2.8 2.75.65 3.9L8 11.1l-3.5 1.85.65-3.9-2.8-2.75 3.9-.55z"/>'));
|
|
@@ -142,7 +144,7 @@ registerIcon("star-filled", S('<path d="M8 2.2l1.75 3.55 3.9.55-2.8 2.75.65 3.9L
|
|
|
142
144
|
registerIcon("grip", S('<circle cx="6" cy="3.5" r="1"/><circle cx="10" cy="3.5" r="1"/><circle cx="6" cy="8" r="1"/><circle cx="10" cy="8" r="1"/><circle cx="6" cy="12.5" r="1"/><circle cx="10" cy="12.5" r="1"/>', 'fill="currentColor" stroke="none"'));
|
|
143
145
|
registerIcon("kebab", S('<circle cx="8" cy="3.2" r="1.2"/><circle cx="8" cy="8" r="1.2"/><circle cx="8" cy="12.8" r="1.2"/>', 'fill="currentColor" stroke="none"'));
|
|
144
146
|
registerIcon("burger", S('<path d="M2.5 4.5h11M2.5 8h11M2.5 11.5h11"/>'));
|
|
145
|
-
registerIcon("reset", S('<
|
|
147
|
+
registerIcon("reset", S('<path d="M2 8a6 6 0 1 0 6-6 6.5 6.5 0 0 0-4.5 1.83L2 5.33"/><path d="M2 2v3.33h3.33"/>'));
|
|
146
148
|
registerIcon("pane-collapse", S('<path d="M2.6 9.4h4v4M13.4 6.6h-4v-4"/><path d="m9.4 6.6 4.2-4.2M2.4 13.6l4.2-4.2"/>'));
|
|
147
149
|
registerIcon("pane-expand", S('<path d="M9.8 2.4h3.8v3.8M6.2 13.6H2.4V9.8"/><path d="m13.6 2.4-4.4 4.4M2.4 13.6l4.4-4.4"/>'));
|
|
148
150
|
registerIcon("cursor", svg24('<path d="M5 3l6 16 2-6 6-2z"/>', 'fill="currentColor" stroke="none"'));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { overlayScrollbarCss, injectStyles, isDarkColor, mix, HIGHLIGHT, ACCENT_BRIGHT, ACCENT, withAlpha, iconAt, iconEl, BULLISH, BEARISH, WARNING, NEUTRAL } from './chunk-
|
|
1
|
+
import { overlayScrollbarCss, injectStyles, isDarkColor, mix, HIGHLIGHT, ACCENT_BRIGHT, ACCENT, withAlpha, iconAt, iconEl, BULLISH, BEARISH, WARNING, NEUTRAL } from './chunk-KG4YT3TI.js';
|
|
2
2
|
import { VanillaMachine, normalizeProps, spreadProps } from '@zag-js/vanilla';
|
|
3
3
|
export { normalizeProps, spreadProps } from '@zag-js/vanilla';
|
|
4
4
|
import * as menu from '@zag-js/menu';
|
|
@@ -819,6 +819,10 @@ var CalloutBubble = class {
|
|
|
819
819
|
get open() {
|
|
820
820
|
return this.pop?.open ?? false;
|
|
821
821
|
}
|
|
822
|
+
/** Close the deployed panel, if any. The bubble itself stays. */
|
|
823
|
+
hidePanel() {
|
|
824
|
+
this.pop?.hide();
|
|
825
|
+
}
|
|
822
826
|
destroy() {
|
|
823
827
|
this.pop?.destroy();
|
|
824
828
|
this.pop = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { svg24, NEUTRAL, BEARISH, WARNING, BULLISH, INFO, ACCENT_BRIGHT, VALID, INVALID, MARKER, ACCENT, injectStyles, iconEl } from './chunk-
|
|
1
|
+
import { svg24, NEUTRAL, BEARISH, WARNING, BULLISH, INFO, ACCENT_BRIGHT, VALID, INVALID, MARKER, ACCENT, injectStyles, iconEl } from './chunk-KG4YT3TI.js';
|
|
2
2
|
|
|
3
3
|
// src/core/native-indicators/NativeIndicator.ts
|
|
4
4
|
var REGISTRY = /* @__PURE__ */ new Map();
|
|
@@ -5734,6 +5734,14 @@ function inputVisible(when, values) {
|
|
|
5734
5734
|
const conds = Array.isArray(when) ? when : [when];
|
|
5735
5735
|
return conds.every((c) => c.anyOf ? c.anyOf.some((x) => x === values[c.key]) : values[c.key] === c.equals);
|
|
5736
5736
|
}
|
|
5737
|
+
function inputDeltas(schema, values) {
|
|
5738
|
+
const out = {};
|
|
5739
|
+
for (const s of schema) {
|
|
5740
|
+
const v = values[s.key];
|
|
5741
|
+
if (v !== void 0 && JSON.stringify(v) !== JSON.stringify(s.defval)) out[s.key] = v;
|
|
5742
|
+
}
|
|
5743
|
+
return Object.keys(out).length > 0 ? out : void 0;
|
|
5744
|
+
}
|
|
5737
5745
|
|
|
5738
5746
|
// src/renderers/native/layers.ts
|
|
5739
5747
|
function foldBaseModulation(acc, next) {
|
|
@@ -6160,4 +6168,4 @@ var SidePanel = class {
|
|
|
6160
6168
|
}
|
|
6161
6169
|
};
|
|
6162
6170
|
|
|
6163
|
-
export { AnchoredVwap, ArrowMark, Callout, CalloutBase, Comment, DEDEKIND_CURVATURE_OPTIONS, DEFAULT_DRAWING_COLOR, DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_ORDER, DEFAULT_PANEL_WIDTH, DIRECTION_OPTIONS, DedekindTessellation, Drawing, FibRatios, FibSpiral, FixedRangeVolumeProfile, GANN_SQUARE_ARCS, GLYPH_OPTIONS, GannSquare, GlyphStamp, LINE_STYLE_OPTIONS, MACH_NUMBER_OPTIONS, MACH_WAVE_COUNT_OPTIONS, MachFigure, MeasureBox, Note, OVERRIDABLE_TOPBAR_IDS, PatternDrawing, PositionTool, PriceLabel, PriceNote, RadialFib, RegressionChannel, STAMP_SIZE_OPTIONS, SegmentDrawing, SidePanel, Signpost, TEXT_SIZE_OPTIONS, TOPBAR_BUILTIN_IDS, TOPBAR_DEFAULT_LEFT, TOPBAR_DEFAULT_RIGHT, TextLabel, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, foldBaseModulation, formatDuration, getDrawingType, getNativeIndicator, inputVisible, legendActions, legendActionsProviderFor, legendCallouts, legendCalloutsProviderFor, lineSegmentIntersection, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, pinnedTopbarActionIds, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerLegendCallout, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerStatePersistence, registerSymbolRanking, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resetDrawingSettings, resolveEngines, resolveTopbarComposition, settingsRowValueKeys, settingsRowVisible, sidePanels, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, topbarHas, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments };
|
|
6171
|
+
export { AnchoredVwap, ArrowMark, Callout, CalloutBase, Comment, DEDEKIND_CURVATURE_OPTIONS, DEFAULT_DRAWING_COLOR, DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_ORDER, DEFAULT_PANEL_WIDTH, DIRECTION_OPTIONS, DedekindTessellation, Drawing, FibRatios, FibSpiral, FixedRangeVolumeProfile, GANN_SQUARE_ARCS, GLYPH_OPTIONS, GannSquare, GlyphStamp, LINE_STYLE_OPTIONS, MACH_NUMBER_OPTIONS, MACH_WAVE_COUNT_OPTIONS, MachFigure, MeasureBox, Note, OVERRIDABLE_TOPBAR_IDS, PatternDrawing, PositionTool, PriceLabel, PriceNote, RadialFib, RegressionChannel, STAMP_SIZE_OPTIONS, SegmentDrawing, SidePanel, Signpost, TEXT_SIZE_OPTIONS, TOPBAR_BUILTIN_IDS, TOPBAR_DEFAULT_LEFT, TOPBAR_DEFAULT_RIGHT, TextLabel, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, foldBaseModulation, formatDuration, getDrawingType, getNativeIndicator, inputDeltas, inputVisible, legendActions, legendActionsProviderFor, legendCallouts, legendCalloutsProviderFor, lineSegmentIntersection, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, pinnedTopbarActionIds, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerLegendCallout, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerStatePersistence, registerSymbolRanking, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resetDrawingSettings, resolveEngines, resolveTopbarComposition, settingsRowValueKeys, settingsRowVisible, sidePanels, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, topbarHas, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as Millis, af as InputSchema, ad as IndicatorMeta, P as PriceStyle, O as OHLCV,
|
|
2
|
-
import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-
|
|
1
|
+
import { u as Millis, af as InputSchema, ad as IndicatorMeta, P as PriceStyle, O as OHLCV, I as InputValue, l as IndicatorModel, k as MoveTarget, ar as PaneAxis, aE as SeriesSpec, ab as Fill, B as Background, aw as PriceLine, a1 as DrawingLine, Z as DrawingBox, a0 as DrawingLabel, a5 as DrawingPolyline, a2 as DrawingLinefill, a7 as DrawingTable, h as IndicatorStatus, a as VisibleRange, c as VelaTheme, S as SerializedDrawing, w as DrawingTypeKey, v as SnapMode, a3 as DrawingMode, e as IChartRenderer, R as RendererCapabilities, o as LegendActionView, p as LegendCalloutView, U as Unsubscribe, C as CrosshairEvent, A as AxisLongPressEvent, s as DataWindowReadout, n as SymbolPickerFn, aT as PaneInfo, aa as DrawingsOption, D as Drawing, b as VelaOptions, y as AddIndicatorOptions, aq as MarketSwitch, ap as MarketSnapshot, V as VisibleRangePreset, T as ThemeName } from './options-yp7sA96q.js';
|
|
2
|
+
import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-BBf-jc6W.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A strategy's broker state at ONE bar — the flat summary a host reads while a script
|
|
@@ -294,6 +294,12 @@ interface IndicatorHandle {
|
|
|
294
294
|
readonly props: readonly InputSchema[];
|
|
295
295
|
/** Whether the indicator is currently shown (vs hidden). Hidden indicators stop computing. */
|
|
296
296
|
readonly visible: boolean;
|
|
297
|
+
/** The CURRENT stored input values (declaration defaults merged with every edit so
|
|
298
|
+
* far) — what state persistence diffs against the schema's `defval`s. */
|
|
299
|
+
inputValues(): Record<string, InputValue>;
|
|
300
|
+
/** The CURRENT stored declaration-prop values (overrides only — props keep no
|
|
301
|
+
* merged defaults; absent keys mean the declaration value). */
|
|
302
|
+
propValues(): Record<string, InputValue>;
|
|
297
303
|
setInput(key: string, value: InputValue): void;
|
|
298
304
|
setInputs(values: Record<string, InputValue>): void;
|
|
299
305
|
/** Override one declaration prop and re-run (a prop change replays the whole script). */
|
|
@@ -661,6 +667,10 @@ interface VelaEventMap extends Record<string, unknown> {
|
|
|
661
667
|
"indicator:removed": {
|
|
662
668
|
id: string;
|
|
663
669
|
};
|
|
670
|
+
/** An indicator's stored input/prop VALUES changed (settings dialog, `setInputs`) — what state persistence listens to. */
|
|
671
|
+
"indicator:inputs": {
|
|
672
|
+
id: string;
|
|
673
|
+
};
|
|
664
674
|
"indicator:error": {
|
|
665
675
|
id: string;
|
|
666
676
|
error: Error;
|
|
@@ -1516,6 +1526,10 @@ interface ExternalIndicatorEntry {
|
|
|
1516
1526
|
script: string;
|
|
1517
1527
|
/** Engine language (default: the chart's default engine). */
|
|
1518
1528
|
language?: string;
|
|
1529
|
+
/** Input-value overrides applied at add time (what a persistence handler restores). */
|
|
1530
|
+
inputs?: Record<string, InputValue>;
|
|
1531
|
+
/** Declaration-prop overrides applied at add time. */
|
|
1532
|
+
props?: Record<string, InputValue>;
|
|
1519
1533
|
}
|
|
1520
1534
|
/** Where an action is projected. */
|
|
1521
1535
|
type WidgetActionTarget = 'topbar' | 'context:body' | 'context:price-axis' | 'context:time-axis';
|
|
@@ -1716,10 +1730,10 @@ interface LegendCalloutSpec {
|
|
|
1716
1730
|
content?: LegendCalloutContent;
|
|
1717
1731
|
}
|
|
1718
1732
|
/**
|
|
1719
|
-
* A contributed LEGEND CALLOUT: a small tinted bubble with a centered icon,
|
|
1720
|
-
*
|
|
1721
|
-
* hover controls are out). When the spec carries `content`, clicking the
|
|
1722
|
-
* deploys that panel — below it, flipping above near the bottom screen edge.
|
|
1733
|
+
* A contributed LEGEND CALLOUT: a small tinted bubble with a centered icon, visible
|
|
1734
|
+
* right of the indicator's legend title while the row is idle (hidden while its
|
|
1735
|
+
* hover/selection controls are out). When the spec carries `content`, clicking the
|
|
1736
|
+
* bubble deploys that panel — below it, flipping above near the bottom screen edge.
|
|
1723
1737
|
*
|
|
1724
1738
|
* Unlike a legend action's static icon, a callout's whole presentation is resolved
|
|
1725
1739
|
* per row through `callout` — return `null` to show none (the per-indicator gate),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as Millis, af as InputSchema, ad as IndicatorMeta, P as PriceStyle, O as OHLCV,
|
|
2
|
-
import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-
|
|
1
|
+
import { u as Millis, af as InputSchema, ad as IndicatorMeta, P as PriceStyle, O as OHLCV, I as InputValue, l as IndicatorModel, k as MoveTarget, ar as PaneAxis, aE as SeriesSpec, ab as Fill, B as Background, aw as PriceLine, a1 as DrawingLine, Z as DrawingBox, a0 as DrawingLabel, a5 as DrawingPolyline, a2 as DrawingLinefill, a7 as DrawingTable, h as IndicatorStatus, a as VisibleRange, c as VelaTheme, S as SerializedDrawing, w as DrawingTypeKey, v as SnapMode, a3 as DrawingMode, e as IChartRenderer, R as RendererCapabilities, o as LegendActionView, p as LegendCalloutView, U as Unsubscribe, C as CrosshairEvent, A as AxisLongPressEvent, s as DataWindowReadout, n as SymbolPickerFn, aT as PaneInfo, aa as DrawingsOption, D as Drawing, b as VelaOptions, y as AddIndicatorOptions, aq as MarketSwitch, ap as MarketSnapshot, V as VisibleRangePreset, T as ThemeName } from './options-yp7sA96q.cjs';
|
|
2
|
+
import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-p0TEyhlX.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A strategy's broker state at ONE bar — the flat summary a host reads while a script
|
|
@@ -294,6 +294,12 @@ interface IndicatorHandle {
|
|
|
294
294
|
readonly props: readonly InputSchema[];
|
|
295
295
|
/** Whether the indicator is currently shown (vs hidden). Hidden indicators stop computing. */
|
|
296
296
|
readonly visible: boolean;
|
|
297
|
+
/** The CURRENT stored input values (declaration defaults merged with every edit so
|
|
298
|
+
* far) — what state persistence diffs against the schema's `defval`s. */
|
|
299
|
+
inputValues(): Record<string, InputValue>;
|
|
300
|
+
/** The CURRENT stored declaration-prop values (overrides only — props keep no
|
|
301
|
+
* merged defaults; absent keys mean the declaration value). */
|
|
302
|
+
propValues(): Record<string, InputValue>;
|
|
297
303
|
setInput(key: string, value: InputValue): void;
|
|
298
304
|
setInputs(values: Record<string, InputValue>): void;
|
|
299
305
|
/** Override one declaration prop and re-run (a prop change replays the whole script). */
|
|
@@ -661,6 +667,10 @@ interface VelaEventMap extends Record<string, unknown> {
|
|
|
661
667
|
"indicator:removed": {
|
|
662
668
|
id: string;
|
|
663
669
|
};
|
|
670
|
+
/** An indicator's stored input/prop VALUES changed (settings dialog, `setInputs`) — what state persistence listens to. */
|
|
671
|
+
"indicator:inputs": {
|
|
672
|
+
id: string;
|
|
673
|
+
};
|
|
664
674
|
"indicator:error": {
|
|
665
675
|
id: string;
|
|
666
676
|
error: Error;
|
|
@@ -1516,6 +1526,10 @@ interface ExternalIndicatorEntry {
|
|
|
1516
1526
|
script: string;
|
|
1517
1527
|
/** Engine language (default: the chart's default engine). */
|
|
1518
1528
|
language?: string;
|
|
1529
|
+
/** Input-value overrides applied at add time (what a persistence handler restores). */
|
|
1530
|
+
inputs?: Record<string, InputValue>;
|
|
1531
|
+
/** Declaration-prop overrides applied at add time. */
|
|
1532
|
+
props?: Record<string, InputValue>;
|
|
1519
1533
|
}
|
|
1520
1534
|
/** Where an action is projected. */
|
|
1521
1535
|
type WidgetActionTarget = 'topbar' | 'context:body' | 'context:price-axis' | 'context:time-axis';
|
|
@@ -1716,10 +1730,10 @@ interface LegendCalloutSpec {
|
|
|
1716
1730
|
content?: LegendCalloutContent;
|
|
1717
1731
|
}
|
|
1718
1732
|
/**
|
|
1719
|
-
* A contributed LEGEND CALLOUT: a small tinted bubble with a centered icon,
|
|
1720
|
-
*
|
|
1721
|
-
* hover controls are out). When the spec carries `content`, clicking the
|
|
1722
|
-
* deploys that panel — below it, flipping above near the bottom screen edge.
|
|
1733
|
+
* A contributed LEGEND CALLOUT: a small tinted bubble with a centered icon, visible
|
|
1734
|
+
* right of the indicator's legend title while the row is idle (hidden while its
|
|
1735
|
+
* hover/selection controls are out). When the spec carries `content`, clicking the
|
|
1736
|
+
* bubble deploys that panel — below it, flipping above near the bottom screen edge.
|
|
1723
1737
|
*
|
|
1724
1738
|
* Unlike a legend action's static icon, a callout's whole presentation is resolved
|
|
1725
1739
|
* per row through `callout` — return `null` to show none (the per-indicator gate),
|