@luxalgo/vela 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DataProvider-zJGp58kb.d.cts → DataProvider-B5i0_yY4.d.cts} +1 -1
- package/dist/{DataProvider-BGlB1zSc.d.ts → DataProvider-CPFgSyAm.d.ts} +1 -1
- package/dist/{chunk-4WAHYL7Y.js → chunk-4AMWSBOW.js} +33 -2
- package/dist/{chunk-YRCL3WMD.js → chunk-Q7POFYNE.js} +7 -1
- package/dist/{chunk-XIRSR3D6.js → chunk-W4WTHJFA.js} +50 -31
- package/dist/{contributions-BjefWpxQ.d.ts → contributions-BDx47Vk0.d.ts} +11 -3
- package/dist/{contributions-CpCJisTC.d.cts → contributions-BiF6lVvJ.d.cts} +11 -3
- package/dist/index.cjs +42 -22
- package/dist/index.d.cts +13 -11
- package/dist/index.d.ts +13 -11
- package/dist/index.js +2 -2
- package/dist/{keymap-UolhuXH1.d.ts → keymap-C48ughm6.d.ts} +1 -1
- package/dist/{keymap-B9_FLhfJ.d.cts → keymap-W0hiajU6.d.cts} +1 -1
- package/dist/locales/ar.cjs +2 -0
- package/dist/locales/ar.d.cts +1 -1
- package/dist/locales/ar.d.ts +1 -1
- package/dist/locales/ar.js +2 -0
- package/dist/locales/de.cjs +2 -0
- package/dist/locales/de.d.cts +1 -1
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/de.js +2 -0
- package/dist/locales/en.cjs +2 -0
- package/dist/locales/en.d.cts +1 -1
- package/dist/locales/en.d.ts +1 -1
- package/dist/locales/en.js +2 -0
- package/dist/locales/es.cjs +2 -0
- package/dist/locales/es.d.cts +1 -1
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/es.js +2 -0
- package/dist/locales/fr.cjs +2 -0
- package/dist/locales/fr.d.cts +1 -1
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/fr.js +2 -0
- package/dist/locales/he.cjs +2 -0
- package/dist/locales/he.d.cts +1 -1
- package/dist/locales/he.d.ts +1 -1
- package/dist/locales/he.js +2 -0
- package/dist/locales/hi.cjs +2 -0
- package/dist/locales/hi.d.cts +1 -1
- package/dist/locales/hi.d.ts +1 -1
- package/dist/locales/hi.js +2 -0
- package/dist/locales/id.cjs +2 -0
- package/dist/locales/id.d.cts +1 -1
- package/dist/locales/id.d.ts +1 -1
- package/dist/locales/id.js +2 -0
- package/dist/locales/it.cjs +2 -0
- package/dist/locales/it.d.cts +1 -1
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/it.js +2 -0
- package/dist/locales/ja.cjs +2 -0
- package/dist/locales/ja.d.cts +1 -1
- package/dist/locales/ja.d.ts +1 -1
- package/dist/locales/ja.js +2 -0
- package/dist/locales/ko.cjs +2 -0
- package/dist/locales/ko.d.cts +1 -1
- package/dist/locales/ko.d.ts +1 -1
- package/dist/locales/ko.js +2 -0
- package/dist/locales/ms.cjs +2 -0
- package/dist/locales/ms.d.cts +1 -1
- package/dist/locales/ms.d.ts +1 -1
- package/dist/locales/ms.js +2 -0
- package/dist/locales/pl.cjs +2 -0
- package/dist/locales/pl.d.cts +1 -1
- package/dist/locales/pl.d.ts +1 -1
- package/dist/locales/pl.js +2 -0
- package/dist/locales/pt-BR.cjs +2 -0
- package/dist/locales/pt-BR.d.cts +1 -1
- package/dist/locales/pt-BR.d.ts +1 -1
- package/dist/locales/pt-BR.js +2 -0
- package/dist/locales/ru.cjs +2 -0
- package/dist/locales/ru.d.cts +1 -1
- package/dist/locales/ru.d.ts +1 -1
- package/dist/locales/ru.js +2 -0
- package/dist/locales/th.cjs +2 -0
- package/dist/locales/th.d.cts +1 -1
- package/dist/locales/th.d.ts +1 -1
- package/dist/locales/th.js +2 -0
- package/dist/locales/tr.cjs +2 -0
- package/dist/locales/tr.d.cts +1 -1
- package/dist/locales/tr.d.ts +1 -1
- package/dist/locales/tr.js +2 -0
- package/dist/locales/vi.cjs +2 -0
- package/dist/locales/vi.d.cts +1 -1
- package/dist/locales/vi.d.ts +1 -1
- package/dist/locales/vi.js +2 -0
- package/dist/locales/zh-Hans.cjs +2 -0
- package/dist/locales/zh-Hans.d.cts +1 -1
- package/dist/locales/zh-Hans.d.ts +1 -1
- package/dist/locales/zh-Hans.js +2 -0
- package/dist/locales/zh-Hant.cjs +2 -0
- package/dist/locales/zh-Hant.d.cts +1 -1
- package/dist/locales/zh-Hant.d.ts +1 -1
- package/dist/locales/zh-Hant.js +2 -0
- package/dist/{options-D4L3_hv_.d.ts → options-B7aL1pbf.d.ts} +1 -1
- package/dist/{options-CpegHml_.d.cts → options-I1H2HDWw.d.cts} +1 -1
- package/dist/{plugin-DTmulpKM.d.ts → plugin-CbSGKQLB.d.ts} +6 -6
- package/dist/{plugin-DpNp4aBi.d.cts → plugin-ZknmqQqo.d.cts} +6 -6
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.d.cts +7 -7
- package/dist/plugin.d.ts +7 -7
- package/dist/plugin.js +1 -1
- package/dist/providers/binance.d.cts +3 -3
- package/dist/providers/binance.d.ts +3 -3
- package/dist/providers/coinbase.d.cts +3 -3
- package/dist/providers/coinbase.d.ts +3 -3
- package/dist/providers/hyperliquid.d.cts +3 -3
- package/dist/providers/hyperliquid.d.ts +3 -3
- package/dist/{side-panel-CYmH1Opm.d.ts → side-panel-BEQJqSjR.d.cts} +2 -1
- package/dist/{side-panel-BqUnpfev.d.cts → side-panel-Ud0SBAnE.d.ts} +2 -1
- package/dist/{statusline-model-pGs3Xvp-.d.cts → statusline-model-CwYMw_Yl.d.cts} +7 -4
- package/dist/{statusline-model-C3yIY9WE.d.ts → statusline-model-ny7GXRuS.d.ts} +7 -4
- package/dist/{types-BlrXRLIR.d.cts → types-Bwf63xGI.d.cts} +4 -1
- package/dist/{types-BlrXRLIR.d.ts → types-Bwf63xGI.d.ts} +4 -1
- package/dist/ui.d.cts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/vela.global.js +42 -22
- package/dist/vela.global.min.js +55 -55
- package/dist/widget.cjs +82 -26
- package/dist/widget.d.cts +10 -10
- package/dist/widget.d.ts +10 -10
- package/dist/widget.js +4 -4
- package/dist/workspace.cjs +82 -26
- package/dist/workspace.d.cts +7 -7
- package/dist/workspace.d.ts +7 -7
- package/dist/workspace.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9871,7 +9871,8 @@ var EngineOrchestrator = class _EngineOrchestrator {
|
|
|
9871
9871
|
symbol: this.config.market.symbol ?? "TEST",
|
|
9872
9872
|
timeframe: this.config.market.timeframe ?? "60",
|
|
9873
9873
|
symbolInfo: this.feed.symbolInfo?.(this.config.market),
|
|
9874
|
-
chartStyle: this.priceStyle
|
|
9874
|
+
chartStyle: this.priceStyle,
|
|
9875
|
+
session: this.config.market.session
|
|
9875
9876
|
};
|
|
9876
9877
|
}
|
|
9877
9878
|
/**
|
|
@@ -19597,6 +19598,7 @@ function mergeConfig(base, patch) {
|
|
|
19597
19598
|
mode: isScaleMode(ps.mode) ? ps.mode : base.priceScale.mode,
|
|
19598
19599
|
log: isBool(ps.log) ? ps.log : base.priceScale.log,
|
|
19599
19600
|
invert: isBool(ps.invert) ? ps.invert : base.priceScale.invert,
|
|
19601
|
+
priceOnly: isBool(ps.priceOnly) ? ps.priceOnly : base.priceScale.priceOnly,
|
|
19600
19602
|
borderColor: isColor(ps.borderColor) ? ps.borderColor : base.priceScale.borderColor,
|
|
19601
19603
|
labelsVisible: isBool(ps.labelsVisible) ? ps.labelsVisible : base.priceScale.labelsVisible,
|
|
19602
19604
|
currentPriceLine: isBool(ps.currentPriceLine) ? ps.currentPriceLine : base.priceScale.currentPriceLine,
|
|
@@ -22005,6 +22007,9 @@ var SceneGraph = class {
|
|
|
22005
22007
|
this.logScale = false;
|
|
22006
22008
|
/** Inverted price axis on the price pane (high at the bottom). Study panes carry their own. */
|
|
22007
22009
|
this.invertScale = false;
|
|
22010
|
+
/** The price pane's autoscale fits the bars alone: indicator plots, their price lines
|
|
22011
|
+
* and Pine drawings paint where they fall instead of widening the window. */
|
|
22012
|
+
this.scalePriceOnly = false;
|
|
22008
22013
|
/** Exchange tick size for the active symbol (e.g. 0.01), when known. Drives the
|
|
22009
22014
|
* price-axis decimals — the instrument's true precision instead of the zoom-derived
|
|
22010
22015
|
* formula. Undefined until symbol metadata loads (the formula is the fallback). */
|
|
@@ -23703,6 +23708,18 @@ var DrawingSceneRenderer = class {
|
|
|
23703
23708
|
}
|
|
23704
23709
|
};
|
|
23705
23710
|
|
|
23711
|
+
// src/renderers/native/chrome/tz.ts
|
|
23712
|
+
var DAY_MS3 = 864e5;
|
|
23713
|
+
function displayZone(timeZone, barIntervalMs) {
|
|
23714
|
+
return barIntervalMs >= DAY_MS3 ? "UTC" : timeZone;
|
|
23715
|
+
}
|
|
23716
|
+
function tzOffsetMs(ms, timeZone) {
|
|
23717
|
+
return zoneOffsetMs(ms, timeZone);
|
|
23718
|
+
}
|
|
23719
|
+
function zonedDate(ms, timeZone) {
|
|
23720
|
+
return new Date(ms + tzOffsetMs(ms, timeZone));
|
|
23721
|
+
}
|
|
23722
|
+
|
|
23706
23723
|
// src/renderers/native/chrome/ticks.ts
|
|
23707
23724
|
function priceTicks(min, max, target = 6) {
|
|
23708
23725
|
if (!(max > min) || !Number.isFinite(min) || !Number.isFinite(max)) return [];
|
|
@@ -23843,7 +23860,7 @@ var STEP_LADDER = [
|
|
|
23843
23860
|
YEAR
|
|
23844
23861
|
];
|
|
23845
23862
|
function formatTimeStamp2(ms, timeZone, barIntervalMs, fmt = ENGLISH_FORMAT, surface = "crosshair") {
|
|
23846
|
-
return fmt.timeStamp(ms, { timeZone, withTime: barIntervalMs < DAY2, surface });
|
|
23863
|
+
return fmt.timeStamp(ms, { timeZone: displayZone(timeZone, barIntervalMs), withTime: barIntervalMs < DAY2, surface });
|
|
23847
23864
|
}
|
|
23848
23865
|
function pickStep(targetMs) {
|
|
23849
23866
|
for (const step of STEP_LADDER) if (step >= targetMs) return step;
|
|
@@ -23987,14 +24004,6 @@ var PriceAxisTickSource = class {
|
|
|
23987
24004
|
}
|
|
23988
24005
|
};
|
|
23989
24006
|
|
|
23990
|
-
// src/renderers/native/chrome/tz.ts
|
|
23991
|
-
function tzOffsetMs(ms, timeZone) {
|
|
23992
|
-
return zoneOffsetMs(ms, timeZone);
|
|
23993
|
-
}
|
|
23994
|
-
function zonedDate(ms, timeZone) {
|
|
23995
|
-
return new Date(ms + tzOffsetMs(ms, timeZone));
|
|
23996
|
-
}
|
|
23997
|
-
|
|
23998
24007
|
// src/renderers/native/chrome/countdown.ts
|
|
23999
24008
|
function countdownText2(barOpen, barMs, now2, fmt = ENGLISH_FORMAT) {
|
|
24000
24009
|
if (!(barMs > 0)) return null;
|
|
@@ -24708,7 +24717,7 @@ var ChromeRenderer = class {
|
|
|
24708
24717
|
ctx.textAlign = "center";
|
|
24709
24718
|
const y = dataH + (fullH - dataH) / 2;
|
|
24710
24719
|
const tr = coords.visibleTimeRange();
|
|
24711
|
-
const offset = tzOffsetMs((tr.from + tr.to) / 2, scene.timezone);
|
|
24720
|
+
const offset = tzOffsetMs((tr.from + tr.to) / 2, displayZone(scene.timezone, coords.barInterval));
|
|
24712
24721
|
const target = Math.max(3, Math.min(8, Math.floor(dataW / 64)));
|
|
24713
24722
|
const ticks = timeTicks(tr.from, tr.to, target, offset, scene.format).map((tick) => ({ ...tick, x: coords.timeToX(tick.time), half: ctx.measureText(tick.label).width / 2 })).filter((tick) => tick.x >= 20 && tick.x <= dataW - 20);
|
|
24714
24723
|
const GAP = 12;
|
|
@@ -25289,6 +25298,7 @@ var TEXT8 = {
|
|
|
25289
25298
|
indexedTo100: msg("chart.settings.indexedTo100", "Indexed to 100"),
|
|
25290
25299
|
logarithmic: msg("chart.settings.logarithmic", "Logarithmic"),
|
|
25291
25300
|
invertScale: msg("chart.settings.invertScale", "Invert scale"),
|
|
25301
|
+
scalePriceOnly: msg("chart.settings.scalePriceOnly", "Scale price chart only"),
|
|
25292
25302
|
lastPriceLine: msg("chart.settings.lastPriceLine", "Last price line"),
|
|
25293
25303
|
lastPriceLabel: msg("chart.settings.lastPriceLabel", "Last price label"),
|
|
25294
25304
|
countdownToBarClose: msg("chart.settings.countdownToBarClose", "Countdown to bar close"),
|
|
@@ -25797,6 +25807,7 @@ var SettingsDialog = class {
|
|
|
25797
25807
|
), "scales.price-scale.mode")
|
|
25798
25808
|
);
|
|
25799
25809
|
body.append(sid(this.boolRow(TEXT8.invertScale, config.priceScale.invert, (v) => this.emit({ priceScale: { invert: v } })), "scales.price-scale.invert"));
|
|
25810
|
+
body.append(sid(this.boolRow(TEXT8.scalePriceOnly, config.priceScale.priceOnly, (v) => this.emit({ priceScale: { priceOnly: v } })), "scales.price-scale.price-only"));
|
|
25800
25811
|
body.append(sid(this.separator(), "scales.price-scale"));
|
|
25801
25812
|
body.append(sid(this.boolRow(TEXT8.lastPriceLine, config.priceScale.currentPriceLine, (v) => this.emit({ priceScale: { currentPriceLine: v } })), "scales.price-scale.last-price-line"));
|
|
25802
25813
|
body.append(sid(this.boolRow(TEXT8.lastPriceLabel, config.priceScale.priceLabel, (v) => this.emit({ priceScale: { priceLabel: v } })), "scales.price-scale.last-price-label"));
|
|
@@ -33931,7 +33942,7 @@ var BackdropRenderer = class {
|
|
|
33931
33942
|
ctx.globalAlpha = gridAlpha;
|
|
33932
33943
|
ctx.strokeStyle = vertColor;
|
|
33933
33944
|
const tr = coords.visibleTimeRange();
|
|
33934
|
-
const offset = tzOffsetMs((tr.from + tr.to) / 2, scene.timezone);
|
|
33945
|
+
const offset = tzOffsetMs((tr.from + tr.to) / 2, displayZone(scene.timezone, coords.barInterval));
|
|
33935
33946
|
ctx.beginPath();
|
|
33936
33947
|
for (const tick of timeTicks(tr.from, tr.to, 8, offset)) {
|
|
33937
33948
|
const x = Math.round(coords.timeToX(tick.time)) + 0.5;
|
|
@@ -34854,7 +34865,7 @@ var NativeRenderer = class {
|
|
|
34854
34865
|
this.priceStyleCbs = /* @__PURE__ */ new Set();
|
|
34855
34866
|
this.priceStyleWillChangeCbs = /* @__PURE__ */ new Set();
|
|
34856
34867
|
this.name = "native";
|
|
34857
|
-
this.features = ["logScale", "currentPriceLine", "priceLabel", "countdown", "upColor", "downColor", "glow", "animZoom", "animPan", "animScroll", "animAutoscale", "animLiveBar", "intro", "zoomAnchor", "axisDrag", "paneResize", "candleZOrder", "candleVisible", "seriesOrder", "highlights", "sessionZones", "gridlines", "axisLabels", "scaleMode", "invertScale", "paneScales", "autoScale", "timezone", "keyboard", "historyChords", "priceStyle", "priceBaseline", "baselinePrice", "settings", "attribution", "dialogHost", "tradeMarkers", "marks", "indicatorTitles", "indicatorValues", "crosshairOverride", "drawingsInteractive", "priceAxisTicks"];
|
|
34868
|
+
this.features = ["logScale", "currentPriceLine", "priceLabel", "countdown", "upColor", "downColor", "glow", "animZoom", "animPan", "animScroll", "animAutoscale", "animLiveBar", "intro", "zoomAnchor", "axisDrag", "paneResize", "candleZOrder", "candleVisible", "seriesOrder", "highlights", "sessionZones", "gridlines", "axisLabels", "scaleMode", "invertScale", "scalePriceOnly", "paneScales", "autoScale", "timezone", "keyboard", "historyChords", "priceStyle", "priceBaseline", "baselinePrice", "settings", "attribution", "dialogHost", "tradeMarkers", "marks", "indicatorTitles", "indicatorValues", "crosshairOverride", "drawingsInteractive", "priceAxisTicks"];
|
|
34858
34869
|
/** Track cursor proximity to the scroll button on the plot (bubbles from the button too,
|
|
34859
34870
|
* so moving onto the button doesn't count as leaving). */
|
|
34860
34871
|
this.onScrollProximityMove = (e) => {
|
|
@@ -35013,6 +35024,9 @@ var NativeRenderer = class {
|
|
|
35013
35024
|
}
|
|
35014
35025
|
this.scene.invertScale = Boolean(value);
|
|
35015
35026
|
break;
|
|
35027
|
+
case "scalePriceOnly":
|
|
35028
|
+
this.scene.scalePriceOnly = Boolean(value);
|
|
35029
|
+
break;
|
|
35016
35030
|
case "autoScale":
|
|
35017
35031
|
for (const pane of this.scene.panes.values()) {
|
|
35018
35032
|
pane.manualScale = value ? null : { ...pane.scale };
|
|
@@ -35139,6 +35153,8 @@ var NativeRenderer = class {
|
|
|
35139
35153
|
return this.scene.scaleMode;
|
|
35140
35154
|
case "invertScale":
|
|
35141
35155
|
return this.scene.invertScale;
|
|
35156
|
+
case "scalePriceOnly":
|
|
35157
|
+
return this.scene.scalePriceOnly;
|
|
35142
35158
|
case "paneScales":
|
|
35143
35159
|
return this.paneScaleInfos();
|
|
35144
35160
|
case "autoScale": {
|
|
@@ -35285,6 +35301,7 @@ var NativeRenderer = class {
|
|
|
35285
35301
|
mode: this.scene.scaleMode,
|
|
35286
35302
|
log: this.scene.logScale,
|
|
35287
35303
|
invert: this.scene.invertScale,
|
|
35304
|
+
priceOnly: this.scene.scalePriceOnly,
|
|
35288
35305
|
borderColor: s.borderColor ?? t.borderColor,
|
|
35289
35306
|
labelsVisible: this.scene.showAxisLabels,
|
|
35290
35307
|
currentPriceLine: this.scene.showPriceLine,
|
|
@@ -35399,6 +35416,7 @@ var NativeRenderer = class {
|
|
|
35399
35416
|
this.scene.scaleMode = next.priceScale.mode;
|
|
35400
35417
|
this.scene.logScale = next.priceScale.log;
|
|
35401
35418
|
this.scene.invertScale = next.priceScale.invert;
|
|
35419
|
+
this.scene.scalePriceOnly = next.priceScale.priceOnly;
|
|
35402
35420
|
s.borderColor = keepInherit(s.borderColor, next.priceScale.borderColor, prevTheme.borderColor);
|
|
35403
35421
|
this.scene.showAxisLabels = next.priceScale.labelsVisible;
|
|
35404
35422
|
this.scene.showPriceLine = next.priceScale.currentPriceLine;
|
|
@@ -37380,7 +37398,7 @@ var NativeRenderer = class {
|
|
|
37380
37398
|
const pricePane = this.dataWindowPricePane();
|
|
37381
37399
|
const ohlc = this.dataWindowOHLC(bar, pricePane);
|
|
37382
37400
|
const parts = [];
|
|
37383
|
-
if (bar) parts.push(formatStamp(bar.time, this.scene.timezone));
|
|
37401
|
+
if (bar) parts.push(formatStamp(bar.time, displayZone(this.scene.timezone, this.coords.barInterval)));
|
|
37384
37402
|
if (ohlc) parts.push(this.t(TEXT16.barSummary, { open: ohlc.o, high: ohlc.h, low: ohlc.l, close: ohlc.c }));
|
|
37385
37403
|
for (const group of this.dataWindowGroups(idx, pricePane)) {
|
|
37386
37404
|
for (const row2 of group.rows) parts.push(this.t(TEXT16.valueSummary, { name: row2.label, value: row2.value }));
|
|
@@ -37397,7 +37415,7 @@ var NativeRenderer = class {
|
|
|
37397
37415
|
const idx = this.hoverLogical != null ? this.hoverLogical : n - 1;
|
|
37398
37416
|
const bar = this.bars[idx];
|
|
37399
37417
|
const pricePane = this.dataWindowPricePane();
|
|
37400
|
-
const parts = bar ? formatStampParts(bar.time, this.scene.timezone) : { date: "", time: "" };
|
|
37418
|
+
const parts = bar ? formatStampParts(bar.time, displayZone(this.scene.timezone, this.coords.barInterval)) : { date: "", time: "" };
|
|
37401
37419
|
return { date: parts.date, time: parts.time, ohlc: this.dataWindowOHLC(bar, pricePane), groups: this.dataWindowGroups(idx, pricePane) };
|
|
37402
37420
|
}
|
|
37403
37421
|
dataWindowPricePane() {
|
|
@@ -37764,7 +37782,8 @@ var NativeRenderer = class {
|
|
|
37764
37782
|
if (or) dr = dr ? { min: Math.min(dr.min, or.min), max: Math.max(dr.max, or.max) } : or;
|
|
37765
37783
|
}
|
|
37766
37784
|
const includeCandles = pane.kind === "price" && (!this.scene.candlesHidden || this.priceLayersAnchoredToBars(masterModels) || !this.paneHasMeasurableContent(masterModels, dr));
|
|
37767
|
-
|
|
37785
|
+
const priceOnly = pane === pricePane && this.scene.scalePriceOnly && includeCandles;
|
|
37786
|
+
pane.scaleTarget = priceOnly ? computePaneScale([], this.bars, true, i0, s1, null, paneLogScale(this.scene, pane), (id) => this.scene.offsetOf(id), margins) : computePaneScale(masterModels, this.bars, includeCandles, i0, s1, dr, paneLogScale(this.scene, pane), (id) => this.scene.offsetOf(id), margins);
|
|
37768
37787
|
pane.percentBaseline = pane.kind === "price" ? this.bars[i0]?.close ?? 0 : this.firstVisibleValue(masterModels, i0);
|
|
37769
37788
|
pane.axisFormat = void 0;
|
|
37770
37789
|
pane.axisBands = void 0;
|
|
@@ -42089,16 +42108,16 @@ var volumeSpecs = [
|
|
|
42089
42108
|
];
|
|
42090
42109
|
|
|
42091
42110
|
// src/core/native-indicators/classics/overlays.ts
|
|
42092
|
-
var
|
|
42111
|
+
var DAY_MS4 = 864e5;
|
|
42093
42112
|
function periodKey(anchor, time) {
|
|
42094
|
-
if (anchor === "Week") return Math.floor((Math.floor(time /
|
|
42113
|
+
if (anchor === "Week") return Math.floor((Math.floor(time / DAY_MS4) + 3) / 7);
|
|
42095
42114
|
if (anchor === "Month" || anchor === "Quarter" || anchor === "Year") {
|
|
42096
42115
|
const d = new Date(time);
|
|
42097
42116
|
if (anchor === "Year") return d.getUTCFullYear();
|
|
42098
42117
|
if (anchor === "Quarter") return d.getUTCFullYear() * 4 + Math.floor(d.getUTCMonth() / 3);
|
|
42099
42118
|
return d.getUTCFullYear() * 12 + d.getUTCMonth();
|
|
42100
42119
|
}
|
|
42101
|
-
return Math.floor(time /
|
|
42120
|
+
return Math.floor(time / DAY_MS4);
|
|
42102
42121
|
}
|
|
42103
42122
|
function barInterval(bars) {
|
|
42104
42123
|
if (bars.length < 2) return 0;
|
|
@@ -42200,7 +42219,7 @@ var vwap = {
|
|
|
42200
42219
|
const anchor = str3(inputs, "anchor", "Session");
|
|
42201
42220
|
const src = sourceValues(bars, str3(inputs, "source", "HLC3"));
|
|
42202
42221
|
const n = bars.length;
|
|
42203
|
-
const hidden = bool(inputs, "hideDwm", true) && barInterval(bars) >=
|
|
42222
|
+
const hidden = bool(inputs, "hideDwm", true) && barInterval(bars) >= DAY_MS4;
|
|
42204
42223
|
const values = new Array(n).fill(Number.NaN);
|
|
42205
42224
|
const bands = VWAP_BANDS.filter((b) => bool(inputs, b.show, b.defOn)).map((b) => ({
|
|
42206
42225
|
mult: Math.max(0, num3(inputs, b.mult, b.defMult)),
|
|
@@ -42274,7 +42293,7 @@ var pivotPoints = {
|
|
|
42274
42293
|
compute: (bars, inputs) => {
|
|
42275
42294
|
const interval = barInterval(bars);
|
|
42276
42295
|
const requested = str3(inputs, "anchor", PIVOT_AUTO);
|
|
42277
|
-
const auto = interval <= 15 * 6e4 ? "Session" : interval <
|
|
42296
|
+
const auto = interval <= 15 * 6e4 ? "Session" : interval < DAY_MS4 ? "Week" : interval <= DAY_MS4 ? "Month" : "Year";
|
|
42278
42297
|
const anchor = requested === "Daily" ? "Session" : requested === "Weekly" ? "Week" : requested === "Monthly" ? "Month" : requested === "Yearly" ? "Year" : auto;
|
|
42279
42298
|
const kind = str3(inputs, "kind", PIVOT_TRADITIONAL);
|
|
42280
42299
|
const aggs = /* @__PURE__ */ new Map();
|
|
@@ -42360,7 +42379,7 @@ var fiftyTwoWeek = {
|
|
|
42360
42379
|
colorInput(NEUTRAL, msg("indicator.n52WeekHighLow.allTimeColor", "All-Time High/Low"), "allTimeColor", msg("indicator.n52WeekHighLow.allTimeColor.tooltip", "Color of the all-time high and all-time low levels."))
|
|
42361
42380
|
],
|
|
42362
42381
|
compute: (bars, inputs) => {
|
|
42363
|
-
const span = num3(inputs, "weeks", 52) * 7 *
|
|
42382
|
+
const span = num3(inputs, "weeks", 52) * 7 * DAY_MS4;
|
|
42364
42383
|
const n = bars.length;
|
|
42365
42384
|
const hi = new Array(n).fill(Number.NaN);
|
|
42366
42385
|
const lo = new Array(n).fill(Number.NaN);
|
|
@@ -43047,6 +43066,7 @@ var CONTEXT_MENU_BUILTIN_ORDER = {
|
|
|
43047
43066
|
body: { "reset-view": -30, "remove-drawings": -20, "remove-indicators": -10, settings: 1e3 },
|
|
43048
43067
|
"price-axis": {
|
|
43049
43068
|
auto: -80,
|
|
43069
|
+
"price-only": -75,
|
|
43050
43070
|
invert: -70,
|
|
43051
43071
|
"scale:regular": -60,
|
|
43052
43072
|
"scale:percent": -50,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-
|
|
2
|
-
export { B as BarsChangeReason, C as CellStateContext, h as CodeUpdateResult, i as ContextMenuPointer, j as ContextSelect, k as DrawingsControl, l as EngineAlert, m as EngineCapabilities, n as EngineContextSnapshot, o as EngineFactory, p as EngineWarning, q as ExecutionHandlers, r as ExecutionMarket, s as ExecutionRequest, t as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, u as IndicatorEventMap, I as IndicatorHandle, v as IndicatorSummary, L as LegendActionDescriptor, w as LegendCalloutContent, x as LegendCalloutDescriptor, y as LegendCalloutItem, z as LegendCalloutSpec, A as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, G as NativeIndicatorContext, H as NativeIndicatorDescriptor, J as NativeIndicatorInfo, K as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, Q as PreparedScript, T as RendererControl, a as ReplayBounds, U as ReplayControl, X as ReplayEndReason, Y as ReplayStartOptions, R as ReplayState, Z as RunIndicatorResult, _ as SceneInspection, c as ScriptRun, $ as ScriptRunCause, a0 as ScriptRunResult, S as ScriptingEngine, a1 as SidePanelButton, a2 as SidePanelDescriptor, a3 as SidePanelHandle, a4 as SidePanelHeader, a5 as StatePersistenceHandler, a6 as StrategyFill, a7 as StrategyState, a8 as StrategyTrade, a9 as SymbolRankingHook, aa as TypedEventBus, V as Vela, ab as VelaDeps, b as VelaEventMap, ac as VisibleBarRange, ad as WidgetActionDescriptor, ae as WidgetActionTarget, af as WidgetAttachment, W as WidgetContext, ag as getNativeIndicator, ah as legendActions, ai as legendCallouts, aj as nativeIndicatorDescriptors, ak as nativeIndicatorTypes, al as registerDefaultEngine, am as registerLegendAction, an as registerLegendCallout, ao as registerNativeIndicator, ap as registerSidePanel, aq as registerStatePersistence, ar as registerSymbolRanking, as as registerWidgetAction, at as registerWidgetAttachment, au as resolveEngines, av as sidePanels, aw as statePersistenceHandlers, ax as symbolRanking, ay as topbarActionOverride, az as unregisterDefaultEngine, aA as unregisterLegendAction, aB as unregisterLegendCallout, aC as unregisterNativeIndicator, aD as unregisterSidePanel, aE as unregisterStatePersistence, aF as unregisterWidgetAction, aG as unregisterWidgetAttachment, aH as widgetActions, aI as widgetAttachments } from './contributions-
|
|
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, i as RendererRootAttributes, W as WallClock, O as OHLCV, j as Pane, k as PaneAction, l as MoveTarget, m as IndicatorModel, n as ScenePatch, I as InputValue, o as SymbolPickerFn, p as LegendActionView, q as LegendCalloutView, r as InputChangeEvent, T as ThemeName, C as CrosshairEvent, s as ClickEvent, A as AxisLongPressEvent, t as TimelineMark, u as MarkGroup, v as MarkClickEvent, a as VisibleRange, w as DataWindowReadout, x as IDrawingsRendererPort, y as Millis, z as SnapMode, B as DrawingTypeKey, E as ToolbarDefinition, M as MarketConfig, F as MarketSnapshot } from './options-
|
|
4
|
-
export { G as AddIndicatorOptions, H as AnimationConfig, J as Background, K as BoxFontFamily, Q as BoxHAlign, X as BoxTextSize, Y as BoxVAlign, Z as CandleBarColor, _ as CandleSeries, $ as CandleStyle, a0 as DataWindowGroup, a1 as DataWindowOHLC, a2 as DataWindowRow, a3 as DirtyRange, a4 as DrawingBox, a5 as DrawingExtend, a6 as DrawingIntent, a7 as DrawingLabel, a8 as DrawingLine, a9 as DrawingLinefill, aa as DrawingMode, ab as DrawingPoint, ac as DrawingPolyline, ad as DrawingSeriesBar, ae as DrawingSeriesGateway, af as DrawingSeriesState, ag as DrawingStyle, ah as DrawingTable, ai as DrawingText, aj as DrawingXLoc, ak as DrawingsOption, al as Fill, am as FillGradientStop, an as IndicatorMeta, ao as InputCondition, ap as InputDisplay, aq as InputSchema, ar as InputType, as as InputWhen, at as IntroAnimation, au as IntroConfig, av as IntroStyle, aw as LabelStyle, ax as LabelYLoc, ay as LineLikeKind, az as LineLikeSeries, aA as LineLikeStyle, aB as MarkContent, aC as MarkContentSource, aD as MarkGlyph, aE as MarkPanelItem, aF as MarkShape, aG as MarkerPoint, aH as MarkerSeries, aI as MarketSwitch, aJ as PaneAxis, aK as PaneAxisBand, aL as PaneHint, aM as PaneKind, aN as PolylinePoint, aO as PriceAxisOptions, aP as PriceAxisTick, aQ as PriceAxisTickContext, aR as PriceAxisTicksFn, aS as PriceLine, aT as Projector, aU as ProviderName, aV as RendererConstructor, aW as Scene, aX as SchemaPatch, aY as SecondClock, aZ as SeriesDisplay, a_ as SeriesKind, a$ as SeriesPoint, b0 as SeriesSpec, b1 as SeriesSurface, b2 as SeriesValueDelta, b3 as SettingsField, b4 as SettingsSchema, b5 as SettingsVisibilityPolicy, b6 as TableCell, b7 as TableMerge, b8 as TablePosition, b9 as ToolbarGroupConfig, ba as TradeExecution, bb as ValuePatch, b as VelaOptions, V as VisibleRangePreset, bc as buildToolbar, bd as defaultToolbar, be as inputDeltas, bf as inputVisible, bg as seriesInScale, bh as seriesShownOn } from './options-
|
|
5
|
-
import { M as MessageLike, T as Translator } from './types-
|
|
6
|
-
export { C as ClockFormatContext, d as ClockFormatOptions, e as CompactFormatContext, f as CompactFormatOptions, D as DurationFormatContext, g as DurationFormatOptions, F as FormatContext, h as FormatSurface, c as LocaleChangedEvent, L as LocalePack, b as LocalizationOptions, a as MessageArgs, i as MessageDescriptor, P as PercentFormatContext, j as PercentFormatOptions, k as PriceFormatContext, l as PriceFormatOptions, R as ResolvedFormatters, m as TextDirection, n as TimeStampFormatContext, o as TimeStampFormatOptions, p as TimeTickFormatContext, q as TimeTickFormatOptions, r as TimeTickUnit, V as VelaFormatters, s as VelaMessageCatalog, t as VelaMessageId } from './types-
|
|
7
|
-
import { S as SettingsSelectOption } from './plugin-
|
|
8
|
-
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, m as MessageValues, N as NEUTRAL, n as NormalizedSettingsRow, R as RendererLayerArgs, o as RendererLayerDefinition, p as RendererLayerInstance, q as SERIES_LINE, r as SESSION_OFF, s as SESSION_POST, t as SESSION_PRE, u as SLATE, v as SLATE_DEEP, w as SeriesDataEngine, x as SeriesDataEngineHost, y as SettingsInlineControl, z as SettingsRowCondition, E as SettingsRowDescriptor, F as SettingsRowInlineNumber, G as SettingsRowSwatch, J as SettingsRowValueKey, K as SettingsRowWhen, L as SettingsRowWidth, O as SettingsValueRow, T as TRADE_EXIT, P as TRADE_LONG, Q as TRADE_SHORT, V as VALID, W as WARNING, U as categoricalColor, X as chartType, Y as chartTypes, Z as createDrawing, _ as createTranslator, $ as deserializeDrawing, a0 as drawingTypes, a1 as getDrawingType, a2 as msg, a3 as normalizeSettingsRow, a4 as registerChartType, a5 as registerDrawingType, a6 as registerLocale, a7 as registerRendererDefaults, a8 as registerRendererLayer, a9 as registeredLocales, aa as rendererDefaults, ab as rendererLayers, ac as settingsRowValueKeys, ad as stableSeriesId, ae as tickerModifierIds, af as unregisterChartType, ag as unregisterRendererDefaults, ah as unregisterRendererLayer, ai as withValues } from './plugin-
|
|
9
|
-
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-
|
|
10
|
-
export { C as CONTEXT_MENU_BUILTIN_ORDER, D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-
|
|
1
|
+
import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-BiF6lVvJ.cjs';
|
|
2
|
+
export { B as BarsChangeReason, C as CellStateContext, h as CodeUpdateResult, i as ContextMenuPointer, j as ContextSelect, k as DrawingsControl, l as EngineAlert, m as EngineCapabilities, n as EngineContextSnapshot, o as EngineFactory, p as EngineWarning, q as ExecutionHandlers, r as ExecutionMarket, s as ExecutionRequest, t as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, u as IndicatorEventMap, I as IndicatorHandle, v as IndicatorSummary, L as LegendActionDescriptor, w as LegendCalloutContent, x as LegendCalloutDescriptor, y as LegendCalloutItem, z as LegendCalloutSpec, A as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, G as NativeIndicatorContext, H as NativeIndicatorDescriptor, J as NativeIndicatorInfo, K as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, Q as PreparedScript, T as RendererControl, a as ReplayBounds, U as ReplayControl, X as ReplayEndReason, Y as ReplayStartOptions, R as ReplayState, Z as RunIndicatorResult, _ as SceneInspection, c as ScriptRun, $ as ScriptRunCause, a0 as ScriptRunResult, S as ScriptingEngine, a1 as SidePanelButton, a2 as SidePanelDescriptor, a3 as SidePanelHandle, a4 as SidePanelHeader, a5 as StatePersistenceHandler, a6 as StrategyFill, a7 as StrategyState, a8 as StrategyTrade, a9 as SymbolRankingHook, aa as TypedEventBus, V as Vela, ab as VelaDeps, b as VelaEventMap, ac as VisibleBarRange, ad as WidgetActionDescriptor, ae as WidgetActionTarget, af as WidgetAttachment, W as WidgetContext, ag as getNativeIndicator, ah as legendActions, ai as legendCallouts, aj as nativeIndicatorDescriptors, ak as nativeIndicatorTypes, al as registerDefaultEngine, am as registerLegendAction, an as registerLegendCallout, ao as registerNativeIndicator, ap as registerSidePanel, aq as registerStatePersistence, ar as registerSymbolRanking, as as registerWidgetAction, at as registerWidgetAttachment, au as resolveEngines, av as sidePanels, aw as statePersistenceHandlers, ax as symbolRanking, ay as topbarActionOverride, az as unregisterDefaultEngine, aA as unregisterLegendAction, aB as unregisterLegendCallout, aC as unregisterNativeIndicator, aD as unregisterSidePanel, aE as unregisterStatePersistence, aF as unregisterWidgetAction, aG as unregisterWidgetAttachment, aH as widgetActions, aI as widgetAttachments } from './contributions-BiF6lVvJ.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, i as RendererRootAttributes, W as WallClock, O as OHLCV, j as Pane, k as PaneAction, l as MoveTarget, m as IndicatorModel, n as ScenePatch, I as InputValue, o as SymbolPickerFn, p as LegendActionView, q as LegendCalloutView, r as InputChangeEvent, T as ThemeName, C as CrosshairEvent, s as ClickEvent, A as AxisLongPressEvent, t as TimelineMark, u as MarkGroup, v as MarkClickEvent, a as VisibleRange, w as DataWindowReadout, x as IDrawingsRendererPort, y as Millis, z as SnapMode, B as DrawingTypeKey, E as ToolbarDefinition, M as MarketConfig, F as MarketSnapshot } from './options-I1H2HDWw.cjs';
|
|
4
|
+
export { G as AddIndicatorOptions, H as AnimationConfig, J as Background, K as BoxFontFamily, Q as BoxHAlign, X as BoxTextSize, Y as BoxVAlign, Z as CandleBarColor, _ as CandleSeries, $ as CandleStyle, a0 as DataWindowGroup, a1 as DataWindowOHLC, a2 as DataWindowRow, a3 as DirtyRange, a4 as DrawingBox, a5 as DrawingExtend, a6 as DrawingIntent, a7 as DrawingLabel, a8 as DrawingLine, a9 as DrawingLinefill, aa as DrawingMode, ab as DrawingPoint, ac as DrawingPolyline, ad as DrawingSeriesBar, ae as DrawingSeriesGateway, af as DrawingSeriesState, ag as DrawingStyle, ah as DrawingTable, ai as DrawingText, aj as DrawingXLoc, ak as DrawingsOption, al as Fill, am as FillGradientStop, an as IndicatorMeta, ao as InputCondition, ap as InputDisplay, aq as InputSchema, ar as InputType, as as InputWhen, at as IntroAnimation, au as IntroConfig, av as IntroStyle, aw as LabelStyle, ax as LabelYLoc, ay as LineLikeKind, az as LineLikeSeries, aA as LineLikeStyle, aB as MarkContent, aC as MarkContentSource, aD as MarkGlyph, aE as MarkPanelItem, aF as MarkShape, aG as MarkerPoint, aH as MarkerSeries, aI as MarketSwitch, aJ as PaneAxis, aK as PaneAxisBand, aL as PaneHint, aM as PaneKind, aN as PolylinePoint, aO as PriceAxisOptions, aP as PriceAxisTick, aQ as PriceAxisTickContext, aR as PriceAxisTicksFn, aS as PriceLine, aT as Projector, aU as ProviderName, aV as RendererConstructor, aW as Scene, aX as SchemaPatch, aY as SecondClock, aZ as SeriesDisplay, a_ as SeriesKind, a$ as SeriesPoint, b0 as SeriesSpec, b1 as SeriesSurface, b2 as SeriesValueDelta, b3 as SettingsField, b4 as SettingsSchema, b5 as SettingsVisibilityPolicy, b6 as TableCell, b7 as TableMerge, b8 as TablePosition, b9 as ToolbarGroupConfig, ba as TradeExecution, bb as ValuePatch, b as VelaOptions, V as VisibleRangePreset, bc as buildToolbar, bd as defaultToolbar, be as inputDeltas, bf as inputVisible, bg as seriesInScale, bh as seriesShownOn } from './options-I1H2HDWw.cjs';
|
|
5
|
+
import { M as MessageLike, T as Translator } from './types-Bwf63xGI.cjs';
|
|
6
|
+
export { C as ClockFormatContext, d as ClockFormatOptions, e as CompactFormatContext, f as CompactFormatOptions, D as DurationFormatContext, g as DurationFormatOptions, F as FormatContext, h as FormatSurface, c as LocaleChangedEvent, L as LocalePack, b as LocalizationOptions, a as MessageArgs, i as MessageDescriptor, P as PercentFormatContext, j as PercentFormatOptions, k as PriceFormatContext, l as PriceFormatOptions, R as ResolvedFormatters, m as TextDirection, n as TimeStampFormatContext, o as TimeStampFormatOptions, p as TimeTickFormatContext, q as TimeTickFormatOptions, r as TimeTickUnit, V as VelaFormatters, s as VelaMessageCatalog, t as VelaMessageId } from './types-Bwf63xGI.cjs';
|
|
7
|
+
import { S as SettingsSelectOption } from './plugin-ZknmqQqo.cjs';
|
|
8
|
+
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, m as MessageValues, N as NEUTRAL, n as NormalizedSettingsRow, R as RendererLayerArgs, o as RendererLayerDefinition, p as RendererLayerInstance, q as SERIES_LINE, r as SESSION_OFF, s as SESSION_POST, t as SESSION_PRE, u as SLATE, v as SLATE_DEEP, w as SeriesDataEngine, x as SeriesDataEngineHost, y as SettingsInlineControl, z as SettingsRowCondition, E as SettingsRowDescriptor, F as SettingsRowInlineNumber, G as SettingsRowSwatch, J as SettingsRowValueKey, K as SettingsRowWhen, L as SettingsRowWidth, O as SettingsValueRow, T as TRADE_EXIT, P as TRADE_LONG, Q as TRADE_SHORT, V as VALID, W as WARNING, U as categoricalColor, X as chartType, Y as chartTypes, Z as createDrawing, _ as createTranslator, $ as deserializeDrawing, a0 as drawingTypes, a1 as getDrawingType, a2 as msg, a3 as normalizeSettingsRow, a4 as registerChartType, a5 as registerDrawingType, a6 as registerLocale, a7 as registerRendererDefaults, a8 as registerRendererLayer, a9 as registeredLocales, aa as rendererDefaults, ab as rendererLayers, ac as settingsRowValueKeys, ad as stableSeriesId, ae as tickerModifierIds, af as unregisterChartType, ag as unregisterRendererDefaults, ah as unregisterRendererLayer, ai as withValues } from './plugin-ZknmqQqo.cjs';
|
|
9
|
+
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-B5i0_yY4.cjs';
|
|
10
|
+
export { C as CONTEXT_MENU_BUILTIN_ORDER, D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-BEQJqSjR.cjs';
|
|
11
11
|
export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.cjs';
|
|
12
|
-
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-
|
|
12
|
+
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-W0hiajU6.cjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* The single source of truth for a chart's user drawings. Owns identity + paint
|
|
@@ -202,6 +202,8 @@ interface ChartConfig {
|
|
|
202
202
|
log: boolean;
|
|
203
203
|
/** Inverted price axis (high at the bottom). */
|
|
204
204
|
invert: boolean;
|
|
205
|
+
/** Autoscale fits the price bars only; indicators no longer widen the window. */
|
|
206
|
+
priceOnly: boolean;
|
|
205
207
|
borderColor: string;
|
|
206
208
|
labelsVisible: boolean;
|
|
207
209
|
currentPriceLine: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-
|
|
2
|
-
export { B as BarsChangeReason, C as CellStateContext, h as CodeUpdateResult, i as ContextMenuPointer, j as ContextSelect, k as DrawingsControl, l as EngineAlert, m as EngineCapabilities, n as EngineContextSnapshot, o as EngineFactory, p as EngineWarning, q as ExecutionHandlers, r as ExecutionMarket, s as ExecutionRequest, t as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, u as IndicatorEventMap, I as IndicatorHandle, v as IndicatorSummary, L as LegendActionDescriptor, w as LegendCalloutContent, x as LegendCalloutDescriptor, y as LegendCalloutItem, z as LegendCalloutSpec, A as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, G as NativeIndicatorContext, H as NativeIndicatorDescriptor, J as NativeIndicatorInfo, K as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, Q as PreparedScript, T as RendererControl, a as ReplayBounds, U as ReplayControl, X as ReplayEndReason, Y as ReplayStartOptions, R as ReplayState, Z as RunIndicatorResult, _ as SceneInspection, c as ScriptRun, $ as ScriptRunCause, a0 as ScriptRunResult, S as ScriptingEngine, a1 as SidePanelButton, a2 as SidePanelDescriptor, a3 as SidePanelHandle, a4 as SidePanelHeader, a5 as StatePersistenceHandler, a6 as StrategyFill, a7 as StrategyState, a8 as StrategyTrade, a9 as SymbolRankingHook, aa as TypedEventBus, V as Vela, ab as VelaDeps, b as VelaEventMap, ac as VisibleBarRange, ad as WidgetActionDescriptor, ae as WidgetActionTarget, af as WidgetAttachment, W as WidgetContext, ag as getNativeIndicator, ah as legendActions, ai as legendCallouts, aj as nativeIndicatorDescriptors, ak as nativeIndicatorTypes, al as registerDefaultEngine, am as registerLegendAction, an as registerLegendCallout, ao as registerNativeIndicator, ap as registerSidePanel, aq as registerStatePersistence, ar as registerSymbolRanking, as as registerWidgetAction, at as registerWidgetAttachment, au as resolveEngines, av as sidePanels, aw as statePersistenceHandlers, ax as symbolRanking, ay as topbarActionOverride, az as unregisterDefaultEngine, aA as unregisterLegendAction, aB as unregisterLegendCallout, aC as unregisterNativeIndicator, aD as unregisterSidePanel, aE as unregisterStatePersistence, aF as unregisterWidgetAction, aG as unregisterWidgetAttachment, aH as widgetActions, aI as widgetAttachments } from './contributions-
|
|
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, i as RendererRootAttributes, W as WallClock, O as OHLCV, j as Pane, k as PaneAction, l as MoveTarget, m as IndicatorModel, n as ScenePatch, I as InputValue, o as SymbolPickerFn, p as LegendActionView, q as LegendCalloutView, r as InputChangeEvent, T as ThemeName, C as CrosshairEvent, s as ClickEvent, A as AxisLongPressEvent, t as TimelineMark, u as MarkGroup, v as MarkClickEvent, a as VisibleRange, w as DataWindowReadout, x as IDrawingsRendererPort, y as Millis, z as SnapMode, B as DrawingTypeKey, E as ToolbarDefinition, M as MarketConfig, F as MarketSnapshot } from './options-
|
|
4
|
-
export { G as AddIndicatorOptions, H as AnimationConfig, J as Background, K as BoxFontFamily, Q as BoxHAlign, X as BoxTextSize, Y as BoxVAlign, Z as CandleBarColor, _ as CandleSeries, $ as CandleStyle, a0 as DataWindowGroup, a1 as DataWindowOHLC, a2 as DataWindowRow, a3 as DirtyRange, a4 as DrawingBox, a5 as DrawingExtend, a6 as DrawingIntent, a7 as DrawingLabel, a8 as DrawingLine, a9 as DrawingLinefill, aa as DrawingMode, ab as DrawingPoint, ac as DrawingPolyline, ad as DrawingSeriesBar, ae as DrawingSeriesGateway, af as DrawingSeriesState, ag as DrawingStyle, ah as DrawingTable, ai as DrawingText, aj as DrawingXLoc, ak as DrawingsOption, al as Fill, am as FillGradientStop, an as IndicatorMeta, ao as InputCondition, ap as InputDisplay, aq as InputSchema, ar as InputType, as as InputWhen, at as IntroAnimation, au as IntroConfig, av as IntroStyle, aw as LabelStyle, ax as LabelYLoc, ay as LineLikeKind, az as LineLikeSeries, aA as LineLikeStyle, aB as MarkContent, aC as MarkContentSource, aD as MarkGlyph, aE as MarkPanelItem, aF as MarkShape, aG as MarkerPoint, aH as MarkerSeries, aI as MarketSwitch, aJ as PaneAxis, aK as PaneAxisBand, aL as PaneHint, aM as PaneKind, aN as PolylinePoint, aO as PriceAxisOptions, aP as PriceAxisTick, aQ as PriceAxisTickContext, aR as PriceAxisTicksFn, aS as PriceLine, aT as Projector, aU as ProviderName, aV as RendererConstructor, aW as Scene, aX as SchemaPatch, aY as SecondClock, aZ as SeriesDisplay, a_ as SeriesKind, a$ as SeriesPoint, b0 as SeriesSpec, b1 as SeriesSurface, b2 as SeriesValueDelta, b3 as SettingsField, b4 as SettingsSchema, b5 as SettingsVisibilityPolicy, b6 as TableCell, b7 as TableMerge, b8 as TablePosition, b9 as ToolbarGroupConfig, ba as TradeExecution, bb as ValuePatch, b as VelaOptions, V as VisibleRangePreset, bc as buildToolbar, bd as defaultToolbar, be as inputDeltas, bf as inputVisible, bg as seriesInScale, bh as seriesShownOn } from './options-
|
|
5
|
-
import { M as MessageLike, T as Translator } from './types-
|
|
6
|
-
export { C as ClockFormatContext, d as ClockFormatOptions, e as CompactFormatContext, f as CompactFormatOptions, D as DurationFormatContext, g as DurationFormatOptions, F as FormatContext, h as FormatSurface, c as LocaleChangedEvent, L as LocalePack, b as LocalizationOptions, a as MessageArgs, i as MessageDescriptor, P as PercentFormatContext, j as PercentFormatOptions, k as PriceFormatContext, l as PriceFormatOptions, R as ResolvedFormatters, m as TextDirection, n as TimeStampFormatContext, o as TimeStampFormatOptions, p as TimeTickFormatContext, q as TimeTickFormatOptions, r as TimeTickUnit, V as VelaFormatters, s as VelaMessageCatalog, t as VelaMessageId } from './types-
|
|
7
|
-
import { S as SettingsSelectOption } from './plugin-
|
|
8
|
-
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, m as MessageValues, N as NEUTRAL, n as NormalizedSettingsRow, R as RendererLayerArgs, o as RendererLayerDefinition, p as RendererLayerInstance, q as SERIES_LINE, r as SESSION_OFF, s as SESSION_POST, t as SESSION_PRE, u as SLATE, v as SLATE_DEEP, w as SeriesDataEngine, x as SeriesDataEngineHost, y as SettingsInlineControl, z as SettingsRowCondition, E as SettingsRowDescriptor, F as SettingsRowInlineNumber, G as SettingsRowSwatch, J as SettingsRowValueKey, K as SettingsRowWhen, L as SettingsRowWidth, O as SettingsValueRow, T as TRADE_EXIT, P as TRADE_LONG, Q as TRADE_SHORT, V as VALID, W as WARNING, U as categoricalColor, X as chartType, Y as chartTypes, Z as createDrawing, _ as createTranslator, $ as deserializeDrawing, a0 as drawingTypes, a1 as getDrawingType, a2 as msg, a3 as normalizeSettingsRow, a4 as registerChartType, a5 as registerDrawingType, a6 as registerLocale, a7 as registerRendererDefaults, a8 as registerRendererLayer, a9 as registeredLocales, aa as rendererDefaults, ab as rendererLayers, ac as settingsRowValueKeys, ad as stableSeriesId, ae as tickerModifierIds, af as unregisterChartType, ag as unregisterRendererDefaults, ah as unregisterRendererLayer, ai as withValues } from './plugin-
|
|
9
|
-
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-
|
|
10
|
-
export { C as CONTEXT_MENU_BUILTIN_ORDER, D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-
|
|
1
|
+
import { D as DrawingsDocument, d as Resolved, e as ReplayTick, f as DataControl, g as ReplayTickSource } from './contributions-BDx47Vk0.js';
|
|
2
|
+
export { B as BarsChangeReason, C as CellStateContext, h as CodeUpdateResult, i as ContextMenuPointer, j as ContextSelect, k as DrawingsControl, l as EngineAlert, m as EngineCapabilities, n as EngineContextSnapshot, o as EngineFactory, p as EngineWarning, q as ExecutionHandlers, r as ExecutionMarket, s as ExecutionRequest, t as ExecutionSession, E as ExternalIndicatorEntry, F as FetchSeries, u as IndicatorEventMap, I as IndicatorHandle, v as IndicatorSummary, L as LegendActionDescriptor, w as LegendCalloutContent, x as LegendCalloutDescriptor, y as LegendCalloutItem, z as LegendCalloutSpec, A as LegendIndicatorInfo, M as MarksControl, N as NativeIndicator, G as NativeIndicatorContext, H as NativeIndicatorDescriptor, J as NativeIndicatorInfo, K as NativeIndicatorOutput, O as OVERRIDABLE_TOPBAR_IDS, P as ParsedSymbol, Q as PreparedScript, T as RendererControl, a as ReplayBounds, U as ReplayControl, X as ReplayEndReason, Y as ReplayStartOptions, R as ReplayState, Z as RunIndicatorResult, _ as SceneInspection, c as ScriptRun, $ as ScriptRunCause, a0 as ScriptRunResult, S as ScriptingEngine, a1 as SidePanelButton, a2 as SidePanelDescriptor, a3 as SidePanelHandle, a4 as SidePanelHeader, a5 as StatePersistenceHandler, a6 as StrategyFill, a7 as StrategyState, a8 as StrategyTrade, a9 as SymbolRankingHook, aa as TypedEventBus, V as Vela, ab as VelaDeps, b as VelaEventMap, ac as VisibleBarRange, ad as WidgetActionDescriptor, ae as WidgetActionTarget, af as WidgetAttachment, W as WidgetContext, ag as getNativeIndicator, ah as legendActions, ai as legendCallouts, aj as nativeIndicatorDescriptors, ak as nativeIndicatorTypes, al as registerDefaultEngine, am as registerLegendAction, an as registerLegendCallout, ao as registerNativeIndicator, ap as registerSidePanel, aq as registerStatePersistence, ar as registerSymbolRanking, as as registerWidgetAction, at as registerWidgetAttachment, au as resolveEngines, av as sidePanels, aw as statePersistenceHandlers, ax as symbolRanking, ay as topbarActionOverride, az as unregisterDefaultEngine, aA as unregisterLegendAction, aB as unregisterLegendCallout, aC as unregisterNativeIndicator, aD as unregisterSidePanel, aE as unregisterStatePersistence, aF as unregisterWidgetAction, aG as unregisterWidgetAttachment, aH as widgetActions, aI as widgetAttachments } from './contributions-BDx47Vk0.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, i as RendererRootAttributes, W as WallClock, O as OHLCV, j as Pane, k as PaneAction, l as MoveTarget, m as IndicatorModel, n as ScenePatch, I as InputValue, o as SymbolPickerFn, p as LegendActionView, q as LegendCalloutView, r as InputChangeEvent, T as ThemeName, C as CrosshairEvent, s as ClickEvent, A as AxisLongPressEvent, t as TimelineMark, u as MarkGroup, v as MarkClickEvent, a as VisibleRange, w as DataWindowReadout, x as IDrawingsRendererPort, y as Millis, z as SnapMode, B as DrawingTypeKey, E as ToolbarDefinition, M as MarketConfig, F as MarketSnapshot } from './options-B7aL1pbf.js';
|
|
4
|
+
export { G as AddIndicatorOptions, H as AnimationConfig, J as Background, K as BoxFontFamily, Q as BoxHAlign, X as BoxTextSize, Y as BoxVAlign, Z as CandleBarColor, _ as CandleSeries, $ as CandleStyle, a0 as DataWindowGroup, a1 as DataWindowOHLC, a2 as DataWindowRow, a3 as DirtyRange, a4 as DrawingBox, a5 as DrawingExtend, a6 as DrawingIntent, a7 as DrawingLabel, a8 as DrawingLine, a9 as DrawingLinefill, aa as DrawingMode, ab as DrawingPoint, ac as DrawingPolyline, ad as DrawingSeriesBar, ae as DrawingSeriesGateway, af as DrawingSeriesState, ag as DrawingStyle, ah as DrawingTable, ai as DrawingText, aj as DrawingXLoc, ak as DrawingsOption, al as Fill, am as FillGradientStop, an as IndicatorMeta, ao as InputCondition, ap as InputDisplay, aq as InputSchema, ar as InputType, as as InputWhen, at as IntroAnimation, au as IntroConfig, av as IntroStyle, aw as LabelStyle, ax as LabelYLoc, ay as LineLikeKind, az as LineLikeSeries, aA as LineLikeStyle, aB as MarkContent, aC as MarkContentSource, aD as MarkGlyph, aE as MarkPanelItem, aF as MarkShape, aG as MarkerPoint, aH as MarkerSeries, aI as MarketSwitch, aJ as PaneAxis, aK as PaneAxisBand, aL as PaneHint, aM as PaneKind, aN as PolylinePoint, aO as PriceAxisOptions, aP as PriceAxisTick, aQ as PriceAxisTickContext, aR as PriceAxisTicksFn, aS as PriceLine, aT as Projector, aU as ProviderName, aV as RendererConstructor, aW as Scene, aX as SchemaPatch, aY as SecondClock, aZ as SeriesDisplay, a_ as SeriesKind, a$ as SeriesPoint, b0 as SeriesSpec, b1 as SeriesSurface, b2 as SeriesValueDelta, b3 as SettingsField, b4 as SettingsSchema, b5 as SettingsVisibilityPolicy, b6 as TableCell, b7 as TableMerge, b8 as TablePosition, b9 as ToolbarGroupConfig, ba as TradeExecution, bb as ValuePatch, b as VelaOptions, V as VisibleRangePreset, bc as buildToolbar, bd as defaultToolbar, be as inputDeltas, bf as inputVisible, bg as seriesInScale, bh as seriesShownOn } from './options-B7aL1pbf.js';
|
|
5
|
+
import { M as MessageLike, T as Translator } from './types-Bwf63xGI.js';
|
|
6
|
+
export { C as ClockFormatContext, d as ClockFormatOptions, e as CompactFormatContext, f as CompactFormatOptions, D as DurationFormatContext, g as DurationFormatOptions, F as FormatContext, h as FormatSurface, c as LocaleChangedEvent, L as LocalePack, b as LocalizationOptions, a as MessageArgs, i as MessageDescriptor, P as PercentFormatContext, j as PercentFormatOptions, k as PriceFormatContext, l as PriceFormatOptions, R as ResolvedFormatters, m as TextDirection, n as TimeStampFormatContext, o as TimeStampFormatOptions, p as TimeTickFormatContext, q as TimeTickFormatOptions, r as TimeTickUnit, V as VelaFormatters, s as VelaMessageCatalog, t as VelaMessageId } from './types-Bwf63xGI.js';
|
|
7
|
+
import { S as SettingsSelectOption } from './plugin-CbSGKQLB.js';
|
|
8
|
+
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CHIP_PLATE, f as CROSSHAIR, g as ChartTypeDefinition, h as ChartTypeSettingsInstance, i as ChartTypeSettingsSection, j as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, k as INVALID, l as IdentifiableKind, M as MARKER, m as MessageValues, N as NEUTRAL, n as NormalizedSettingsRow, R as RendererLayerArgs, o as RendererLayerDefinition, p as RendererLayerInstance, q as SERIES_LINE, r as SESSION_OFF, s as SESSION_POST, t as SESSION_PRE, u as SLATE, v as SLATE_DEEP, w as SeriesDataEngine, x as SeriesDataEngineHost, y as SettingsInlineControl, z as SettingsRowCondition, E as SettingsRowDescriptor, F as SettingsRowInlineNumber, G as SettingsRowSwatch, J as SettingsRowValueKey, K as SettingsRowWhen, L as SettingsRowWidth, O as SettingsValueRow, T as TRADE_EXIT, P as TRADE_LONG, Q as TRADE_SHORT, V as VALID, W as WARNING, U as categoricalColor, X as chartType, Y as chartTypes, Z as createDrawing, _ as createTranslator, $ as deserializeDrawing, a0 as drawingTypes, a1 as getDrawingType, a2 as msg, a3 as normalizeSettingsRow, a4 as registerChartType, a5 as registerDrawingType, a6 as registerLocale, a7 as registerRendererDefaults, a8 as registerRendererLayer, a9 as registeredLocales, aa as rendererDefaults, ab as rendererLayers, ac as settingsRowValueKeys, ad as stableSeriesId, ae as tickerModifierIds, af as unregisterChartType, ag as unregisterRendererDefaults, ah as unregisterRendererLayer, ai as withValues } from './plugin-CbSGKQLB.js';
|
|
9
|
+
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-CPFgSyAm.js';
|
|
10
|
+
export { C as CONTEXT_MENU_BUILTIN_ORDER, D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-Ud0SBAnE.js';
|
|
11
11
|
export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.js';
|
|
12
|
-
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-
|
|
12
|
+
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-C48ughm6.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* The single source of truth for a chart's user drawings. Owns identity + paint
|
|
@@ -202,6 +202,8 @@ interface ChartConfig {
|
|
|
202
202
|
log: boolean;
|
|
203
203
|
/** Inverted price axis (high at the bottom). */
|
|
204
204
|
invert: boolean;
|
|
205
|
+
/** Autoscale fits the price bars only; indicators no longer widen the window. */
|
|
206
|
+
priceOnly: boolean;
|
|
205
207
|
borderColor: string;
|
|
206
208
|
labelsVisible: boolean;
|
|
207
209
|
currentPriceLine: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './chunk-3EYCX2L4.js';
|
|
2
|
-
export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MarksControl, MultiProviderFeed, NativeRenderer, RendererControl, ReplayControl, SecondClock, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-
|
|
3
|
-
export { CONTEXT_MENU_BUILTIN_ORDER, DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, OVERRIDABLE_TOPBAR_IDS, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, inputDeltas, inputVisible, legendActions, legendCallouts, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerLegendCallout, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerStatePersistence, registerSymbolRanking, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, seriesInScale, seriesShownOn, settingsRowValueKeys, sidePanels, stableSeriesId, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-
|
|
2
|
+
export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MarksControl, MultiProviderFeed, NativeRenderer, RendererControl, ReplayControl, SecondClock, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-W4WTHJFA.js';
|
|
3
|
+
export { CONTEXT_MENU_BUILTIN_ORDER, DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, OVERRIDABLE_TOPBAR_IDS, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, inputDeltas, inputVisible, legendActions, legendCallouts, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerLegendCallout, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerStatePersistence, registerSymbolRanking, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, seriesInScale, seriesShownOn, settingsRowValueKeys, sidePanels, stableSeriesId, statePersistenceHandlers, symbolRanking, tickerModifierIds, topbarActionOverride, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterLegendCallout, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterStatePersistence, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-Q7POFYNE.js';
|
|
4
4
|
import './chunk-PZN4RS4T.js';
|
|
5
5
|
export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CHIP_PLATE, CROSSHAIR, HIGHLIGHT, INFO, INVALID, MARKER, NEUTRAL, SERIES_LINE, SESSION_OFF, SESSION_POST, SESSION_PRE, SLATE, SLATE_DEEP, TRADE_EXIT, TRADE_LONG, TRADE_SHORT, VALID, WARNING, categoricalColor, createTranslator, iconMarkup, msg, registerIcon, registerLocale, registeredLocales, withValues } from './chunk-O6L27KRB.js';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MessageLike, T as Translator } from './types-
|
|
1
|
+
import { M as MessageLike, T as Translator } from './types-Bwf63xGI.cjs';
|
|
2
2
|
|
|
3
3
|
interface KeyBindingDescriptor {
|
|
4
4
|
/** Stable id, e.g. `'chart.toggle-log-scale'`. Re-registering an id replaces it. */
|
package/dist/locales/ar.cjs
CHANGED
|
@@ -125,6 +125,7 @@ var ar_default = {
|
|
|
125
125
|
"chart.settings.revealOnLoadHint": "تُرسم الشموع تدريجيًا عند أول تحميل للرسم البياني. يسري التغيير عند التحميل التالي.",
|
|
126
126
|
"chart.settings.right": "اليمين",
|
|
127
127
|
"chart.settings.scaleBorderColor": "لون حدود المقياس",
|
|
128
|
+
"chart.settings.scalePriceOnly": "تحجيم مخطط السعر فقط",
|
|
128
129
|
"chart.settings.scalesAndLines": "المقاييس والخطوط",
|
|
129
130
|
"chart.settings.sections": "الأقسام",
|
|
130
131
|
"chart.settings.solid": "متصل",
|
|
@@ -2012,6 +2013,7 @@ var ar_default = {
|
|
|
2012
2013
|
"widget.contextMenu.scale.log": "لوغاريتمي",
|
|
2013
2014
|
"widget.contextMenu.scale.percent": "نسبة مئوية",
|
|
2014
2015
|
"widget.contextMenu.scale.regular": "عادي",
|
|
2016
|
+
"widget.contextMenu.scalePriceOnly": "تحجيم مخطط السعر فقط",
|
|
2015
2017
|
"widget.contextMenu.settings": "الإعدادات…",
|
|
2016
2018
|
"widget.contextMenu.timezone": "المنطقة الزمنية",
|
|
2017
2019
|
"widget.dataWindow.close": "الإغلاق",
|
package/dist/locales/ar.d.cts
CHANGED
package/dist/locales/ar.d.ts
CHANGED
package/dist/locales/ar.js
CHANGED
|
@@ -123,6 +123,7 @@ var ar_default = {
|
|
|
123
123
|
"chart.settings.revealOnLoadHint": "تُرسم الشموع تدريجيًا عند أول تحميل للرسم البياني. يسري التغيير عند التحميل التالي.",
|
|
124
124
|
"chart.settings.right": "اليمين",
|
|
125
125
|
"chart.settings.scaleBorderColor": "لون حدود المقياس",
|
|
126
|
+
"chart.settings.scalePriceOnly": "تحجيم مخطط السعر فقط",
|
|
126
127
|
"chart.settings.scalesAndLines": "المقاييس والخطوط",
|
|
127
128
|
"chart.settings.sections": "الأقسام",
|
|
128
129
|
"chart.settings.solid": "متصل",
|
|
@@ -2010,6 +2011,7 @@ var ar_default = {
|
|
|
2010
2011
|
"widget.contextMenu.scale.log": "لوغاريتمي",
|
|
2011
2012
|
"widget.contextMenu.scale.percent": "نسبة مئوية",
|
|
2012
2013
|
"widget.contextMenu.scale.regular": "عادي",
|
|
2014
|
+
"widget.contextMenu.scalePriceOnly": "تحجيم مخطط السعر فقط",
|
|
2013
2015
|
"widget.contextMenu.settings": "الإعدادات…",
|
|
2014
2016
|
"widget.contextMenu.timezone": "المنطقة الزمنية",
|
|
2015
2017
|
"widget.dataWindow.close": "الإغلاق",
|
package/dist/locales/de.cjs
CHANGED
|
@@ -125,6 +125,7 @@ var de_default = {
|
|
|
125
125
|
"chart.settings.revealOnLoadHint": "Zeichnet die Kerzen beim ersten Laden eines Charts schrittweise ein. Wirkt ab dem nächsten Laden.",
|
|
126
126
|
"chart.settings.right": "Rechts",
|
|
127
127
|
"chart.settings.scaleBorderColor": "Rahmenfarbe der Skala",
|
|
128
|
+
"chart.settings.scalePriceOnly": "Nur Kurschart skalieren",
|
|
128
129
|
"chart.settings.scalesAndLines": "Skalen und Linien",
|
|
129
130
|
"chart.settings.sections": "Abschnitte",
|
|
130
131
|
"chart.settings.solid": "Durchgezogen",
|
|
@@ -2012,6 +2013,7 @@ var de_default = {
|
|
|
2012
2013
|
"widget.contextMenu.scale.log": "Logarithmisch",
|
|
2013
2014
|
"widget.contextMenu.scale.percent": "Prozent",
|
|
2014
2015
|
"widget.contextMenu.scale.regular": "Regulär",
|
|
2016
|
+
"widget.contextMenu.scalePriceOnly": "Nur Kurschart skalieren",
|
|
2015
2017
|
"widget.contextMenu.settings": "Einstellungen…",
|
|
2016
2018
|
"widget.contextMenu.timezone": "Zeitzone",
|
|
2017
2019
|
"widget.dataWindow.close": "Schluss",
|
package/dist/locales/de.d.cts
CHANGED
package/dist/locales/de.d.ts
CHANGED
package/dist/locales/de.js
CHANGED
|
@@ -123,6 +123,7 @@ var de_default = {
|
|
|
123
123
|
"chart.settings.revealOnLoadHint": "Zeichnet die Kerzen beim ersten Laden eines Charts schrittweise ein. Wirkt ab dem nächsten Laden.",
|
|
124
124
|
"chart.settings.right": "Rechts",
|
|
125
125
|
"chart.settings.scaleBorderColor": "Rahmenfarbe der Skala",
|
|
126
|
+
"chart.settings.scalePriceOnly": "Nur Kurschart skalieren",
|
|
126
127
|
"chart.settings.scalesAndLines": "Skalen und Linien",
|
|
127
128
|
"chart.settings.sections": "Abschnitte",
|
|
128
129
|
"chart.settings.solid": "Durchgezogen",
|
|
@@ -2010,6 +2011,7 @@ var de_default = {
|
|
|
2010
2011
|
"widget.contextMenu.scale.log": "Logarithmisch",
|
|
2011
2012
|
"widget.contextMenu.scale.percent": "Prozent",
|
|
2012
2013
|
"widget.contextMenu.scale.regular": "Regulär",
|
|
2014
|
+
"widget.contextMenu.scalePriceOnly": "Nur Kurschart skalieren",
|
|
2013
2015
|
"widget.contextMenu.settings": "Einstellungen…",
|
|
2014
2016
|
"widget.contextMenu.timezone": "Zeitzone",
|
|
2015
2017
|
"widget.dataWindow.close": "Schluss",
|
package/dist/locales/en.cjs
CHANGED
|
@@ -125,6 +125,7 @@ var en_default = {
|
|
|
125
125
|
"chart.settings.revealOnLoadHint": "Draw the candles in when a chart first loads. Takes effect on the next load.",
|
|
126
126
|
"chart.settings.right": "Right",
|
|
127
127
|
"chart.settings.scaleBorderColor": "Scale border color",
|
|
128
|
+
"chart.settings.scalePriceOnly": "Scale price chart only",
|
|
128
129
|
"chart.settings.scalesAndLines": "Scales and lines",
|
|
129
130
|
"chart.settings.sections": "Sections",
|
|
130
131
|
"chart.settings.solid": "Solid",
|
|
@@ -2012,6 +2013,7 @@ var en_default = {
|
|
|
2012
2013
|
"widget.contextMenu.scale.log": "Logarithmic",
|
|
2013
2014
|
"widget.contextMenu.scale.percent": "Percent",
|
|
2014
2015
|
"widget.contextMenu.scale.regular": "Regular",
|
|
2016
|
+
"widget.contextMenu.scalePriceOnly": "Scale price chart only",
|
|
2015
2017
|
"widget.contextMenu.settings": "Settings…",
|
|
2016
2018
|
"widget.contextMenu.timezone": "Time zone",
|
|
2017
2019
|
"widget.dataWindow.close": "Close",
|
package/dist/locales/en.d.cts
CHANGED
package/dist/locales/en.d.ts
CHANGED
package/dist/locales/en.js
CHANGED
|
@@ -123,6 +123,7 @@ var en_default = {
|
|
|
123
123
|
"chart.settings.revealOnLoadHint": "Draw the candles in when a chart first loads. Takes effect on the next load.",
|
|
124
124
|
"chart.settings.right": "Right",
|
|
125
125
|
"chart.settings.scaleBorderColor": "Scale border color",
|
|
126
|
+
"chart.settings.scalePriceOnly": "Scale price chart only",
|
|
126
127
|
"chart.settings.scalesAndLines": "Scales and lines",
|
|
127
128
|
"chart.settings.sections": "Sections",
|
|
128
129
|
"chart.settings.solid": "Solid",
|
|
@@ -2010,6 +2011,7 @@ var en_default = {
|
|
|
2010
2011
|
"widget.contextMenu.scale.log": "Logarithmic",
|
|
2011
2012
|
"widget.contextMenu.scale.percent": "Percent",
|
|
2012
2013
|
"widget.contextMenu.scale.regular": "Regular",
|
|
2014
|
+
"widget.contextMenu.scalePriceOnly": "Scale price chart only",
|
|
2013
2015
|
"widget.contextMenu.settings": "Settings…",
|
|
2014
2016
|
"widget.contextMenu.timezone": "Time zone",
|
|
2015
2017
|
"widget.dataWindow.close": "Close",
|
package/dist/locales/es.cjs
CHANGED
|
@@ -125,6 +125,7 @@ var es_default = {
|
|
|
125
125
|
"chart.settings.revealOnLoadHint": "Dibuja las velas con una animación cuando el gráfico se carga por primera vez. Se aplica en la próxima carga.",
|
|
126
126
|
"chart.settings.right": "Derecha",
|
|
127
127
|
"chart.settings.scaleBorderColor": "Color del borde de la escala",
|
|
128
|
+
"chart.settings.scalePriceOnly": "Escalar solo el gráfico de precios",
|
|
128
129
|
"chart.settings.scalesAndLines": "Escalas y líneas",
|
|
129
130
|
"chart.settings.sections": "Secciones",
|
|
130
131
|
"chart.settings.solid": "Continua",
|
|
@@ -2012,6 +2013,7 @@ var es_default = {
|
|
|
2012
2013
|
"widget.contextMenu.scale.log": "Logarítmica",
|
|
2013
2014
|
"widget.contextMenu.scale.percent": "Porcentaje",
|
|
2014
2015
|
"widget.contextMenu.scale.regular": "Normal",
|
|
2016
|
+
"widget.contextMenu.scalePriceOnly": "Escalar solo el gráfico de precios",
|
|
2015
2017
|
"widget.contextMenu.settings": "Configuración…",
|
|
2016
2018
|
"widget.contextMenu.timezone": "Zona horaria",
|
|
2017
2019
|
"widget.dataWindow.close": "Cierre",
|
package/dist/locales/es.d.cts
CHANGED
package/dist/locales/es.d.ts
CHANGED
package/dist/locales/es.js
CHANGED
|
@@ -123,6 +123,7 @@ var es_default = {
|
|
|
123
123
|
"chart.settings.revealOnLoadHint": "Dibuja las velas con una animación cuando el gráfico se carga por primera vez. Se aplica en la próxima carga.",
|
|
124
124
|
"chart.settings.right": "Derecha",
|
|
125
125
|
"chart.settings.scaleBorderColor": "Color del borde de la escala",
|
|
126
|
+
"chart.settings.scalePriceOnly": "Escalar solo el gráfico de precios",
|
|
126
127
|
"chart.settings.scalesAndLines": "Escalas y líneas",
|
|
127
128
|
"chart.settings.sections": "Secciones",
|
|
128
129
|
"chart.settings.solid": "Continua",
|
|
@@ -2010,6 +2011,7 @@ var es_default = {
|
|
|
2010
2011
|
"widget.contextMenu.scale.log": "Logarítmica",
|
|
2011
2012
|
"widget.contextMenu.scale.percent": "Porcentaje",
|
|
2012
2013
|
"widget.contextMenu.scale.regular": "Normal",
|
|
2014
|
+
"widget.contextMenu.scalePriceOnly": "Escalar solo el gráfico de precios",
|
|
2013
2015
|
"widget.contextMenu.settings": "Configuración…",
|
|
2014
2016
|
"widget.contextMenu.timezone": "Zona horaria",
|
|
2015
2017
|
"widget.dataWindow.close": "Cierre",
|
package/dist/locales/fr.cjs
CHANGED
|
@@ -125,6 +125,7 @@ var fr_default = {
|
|
|
125
125
|
"chart.settings.revealOnLoadHint": "Dessine progressivement les chandeliers au premier chargement d’un graphique. Prend effet au prochain chargement.",
|
|
126
126
|
"chart.settings.right": "Droite",
|
|
127
127
|
"chart.settings.scaleBorderColor": "Couleur de bordure de l’échelle",
|
|
128
|
+
"chart.settings.scalePriceOnly": "Mettre à l’échelle le graphique des prix uniquement",
|
|
128
129
|
"chart.settings.scalesAndLines": "Échelles et lignes",
|
|
129
130
|
"chart.settings.sections": "Sections",
|
|
130
131
|
"chart.settings.solid": "Plein",
|
|
@@ -2012,6 +2013,7 @@ var fr_default = {
|
|
|
2012
2013
|
"widget.contextMenu.scale.log": "Logarithmique",
|
|
2013
2014
|
"widget.contextMenu.scale.percent": "Pourcentage",
|
|
2014
2015
|
"widget.contextMenu.scale.regular": "Normale",
|
|
2016
|
+
"widget.contextMenu.scalePriceOnly": "Mettre à l’échelle le graphique des prix uniquement",
|
|
2015
2017
|
"widget.contextMenu.settings": "Paramètres…",
|
|
2016
2018
|
"widget.contextMenu.timezone": "Fuseau horaire",
|
|
2017
2019
|
"widget.dataWindow.close": "Clôture",
|
package/dist/locales/fr.d.cts
CHANGED