@tradecanvas/chart 1.23.0 → 1.25.0
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/README.md +1 -1
- package/dist/Chart.d.ts +19 -0
- package/dist/Chart.d.ts.map +1 -1
- package/dist/DataManager.d.ts +9 -0
- package/dist/DataManager.d.ts.map +1 -1
- package/dist/{LayoutSession-B7RJJGZJ.js → LayoutSession-BD1CfXIS.js} +381 -346
- package/dist/LayoutSession-BD1CfXIS.js.map +1 -0
- package/dist/LayoutSession-DH9V8bYi.cjs +2 -0
- package/dist/LayoutSession-DH9V8bYi.cjs.map +1 -0
- package/dist/i18n-C040vB8g.cjs +2 -0
- package/dist/i18n-C040vB8g.cjs.map +1 -0
- package/dist/{i18n-fBzhlejv.js → i18n-FG3D2x5m.js} +3 -1
- package/dist/i18n-FG3D2x5m.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -56
- package/dist/io/parseOHLCV.d.ts.map +1 -1
- package/dist/regularHours.d.ts.map +1 -1
- package/dist/widget/ChartWidget.d.ts +17 -0
- package/dist/widget/ChartWidget.d.ts.map +1 -1
- package/dist/widget/WidgetDrawingStyle.d.ts +4 -0
- package/dist/widget/WidgetDrawingStyle.d.ts.map +1 -1
- package/dist/widget/WidgetSelectionToolbar.d.ts +75 -0
- package/dist/widget/WidgetSelectionToolbar.d.ts.map +1 -0
- package/dist/widget/index.cjs +112 -3
- package/dist/widget/index.cjs.map +1 -1
- package/dist/widget/index.js +1052 -794
- package/dist/widget/index.js.map +1 -1
- package/dist/widget/locales/ar.d.ts.map +1 -1
- package/dist/widget/locales/cs.d.ts.map +1 -1
- package/dist/widget/locales/da.d.ts.map +1 -1
- package/dist/widget/locales/de.d.ts.map +1 -1
- package/dist/widget/locales/el.d.ts.map +1 -1
- package/dist/widget/locales/en.d.ts +1 -0
- package/dist/widget/locales/en.d.ts.map +1 -1
- package/dist/widget/locales/es.d.ts.map +1 -1
- package/dist/widget/locales/et.d.ts.map +1 -1
- package/dist/widget/locales/fa.d.ts.map +1 -1
- package/dist/widget/locales/fr.d.ts.map +1 -1
- package/dist/widget/locales/he.d.ts.map +1 -1
- package/dist/widget/locales/hu.d.ts.map +1 -1
- package/dist/widget/locales/id.d.ts.map +1 -1
- package/dist/widget/locales/index.cjs +1 -1
- package/dist/widget/locales/index.cjs.map +1 -1
- package/dist/widget/locales/index.js +29 -1
- package/dist/widget/locales/index.js.map +1 -1
- package/dist/widget/locales/it.d.ts.map +1 -1
- package/dist/widget/locales/ja.d.ts.map +1 -1
- package/dist/widget/locales/ko.d.ts.map +1 -1
- package/dist/widget/locales/ms.d.ts.map +1 -1
- package/dist/widget/locales/nb.d.ts.map +1 -1
- package/dist/widget/locales/nl.d.ts.map +1 -1
- package/dist/widget/locales/pl.d.ts.map +1 -1
- package/dist/widget/locales/pt.d.ts.map +1 -1
- package/dist/widget/locales/ro.d.ts.map +1 -1
- package/dist/widget/locales/ru.d.ts.map +1 -1
- package/dist/widget/locales/sk.d.ts.map +1 -1
- package/dist/widget/locales/sv.d.ts.map +1 -1
- package/dist/widget/locales/th.d.ts.map +1 -1
- package/dist/widget/locales/tr.d.ts.map +1 -1
- package/dist/widget/locales/vi.d.ts.map +1 -1
- package/dist/widget/locales/zh.d.ts.map +1 -1
- package/dist/widget/locales/zhHant.d.ts.map +1 -1
- package/dist/widget/widgetFeatures.d.ts +1 -1
- package/dist/widget/widgetFeatures.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/LayoutSession-B7RJJGZJ.js.map +0 -1
- package/dist/LayoutSession-b3U60maf.cjs +0 -2
- package/dist/LayoutSession-b3U60maf.cjs.map +0 -1
- package/dist/i18n-CIHfGH-4.cjs +0 -2
- package/dist/i18n-CIHfGH-4.cjs.map +0 -1
- package/dist/i18n-fBzhlejv.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as ee, n as te, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce, x as le, y as ue } from "./LayoutSession-
|
|
2
|
-
import { CHART_STYLE_KEYS as de, DARK_TERMINAL as fe, DARK_THEME as pe, DARK_THEME as me, DEFAULT_DRAWING_STYLE as he, DEFAULT_RECONNECT as ge, DEFAULT_SIGNAL_STYLE as _e, DEFAULT_STREAM_CONFIG as ve, DEFAULT_TIMEFRAME_FAVORITES as ye, DEFAULT_TRADE_ZONE_STYLE as be, DEFAULT_TRADING_CONFIG as xe, HNX_SESSIONS as Se, HOSE_SESSIONS as Ce, LIGHT_THEME as d, LIGHT_THEME as f, MARKET_CRYPTO as p, MARKET_HNX as m, MARKET_HOSE as h, MARKET_HOSE_ETF as g, MARKET_NYSE as _, MARKET_UPCOM as v, MARKET_VN30F as y,
|
|
3
|
-
import { AlertManager as
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as ee, n as te, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce, x as le, y as ue } from "./LayoutSession-BD1CfXIS.js";
|
|
2
|
+
import { CHART_STYLE_KEYS as de, DARK_TERMINAL as fe, DARK_THEME as pe, DARK_THEME as me, DEFAULT_DRAWING_STYLE as he, DEFAULT_RECONNECT as ge, DEFAULT_SIGNAL_STYLE as _e, DEFAULT_STREAM_CONFIG as ve, DEFAULT_TIMEFRAME_FAVORITES as ye, DEFAULT_TRADE_ZONE_STYLE as be, DEFAULT_TRADING_CONFIG as xe, HNX_SESSIONS as Se, HOSE_SESSIONS as Ce, LIGHT_THEME as d, LIGHT_THEME as f, MARKET_CRYPTO as p, MARKET_HNX as m, MARKET_HOSE as h, MARKET_HOSE_ETF as g, MARKET_NYSE as _, MARKET_UPCOM as v, MARKET_VN30F as y, MS_TIME_THRESHOLD as b, PRICE_SOURCES as x, TC_PALETTE as S, TC_SERIES_COLORS as C, TIMEFRAMES_CRYPTO as w, TIMEFRAMES_FOREX as T, TIMEFRAMES_STOCK as E, UPCOM_SESSIONS as D, VN30F_SESSIONS as O, VN_COLORS as k, VOLUME_ALPHA as A, barTimeUnit as we, barsAreDaily as Te, computePriceLimits as Ee, createVNTheme as De, formatFraction as Oe, formatNumber as ke, formatVND as Ae, formatVolumeLoc as je, fractionTick as Me, getCurrentSession as Ne, getLocale as Pe, indicatorSource as Fe, isPriceSource as Ie, isTimeFrame as Le, isValidTimeZone as Re, marketStatus as ze, normalizeBar as Be, normalizeBarTime as Ve, offsetAt as He, parseIndicatorSource as Ue, parseTimeframe as We, pickBaseTimeframe as Ge, priceFormatterFor as Ke, priceStepAt as qe, rankSymbols as Je, readNews as Ye, readQuote as Xe, registerLocale as Ze, resampleBars as Qe, roundToPriceStep as $e, scaleMarketPrices as et, setLocale as tt, sourcePrice as nt, stepDecimals as rt, t as it, tickBarCount as at, timeframeBucketStart as ot, timeframeToMs as st, vn30fContracts as ct, vn30fLastTradingDay as lt, volumeColor as ut, wallToUtc as dt, zoneOffsetMinutes as ft } from "@tradecanvas/commons";
|
|
3
|
+
import { AlertManager as pt, Animator as mt, BarCountdown as ht, BaseFinanceChart as j, BinanceAdapter as gt, BybitAdapter as _t, CANDLE_PATTERNS as vt, ChartLegend as yt, ChartStateManager as bt, CoinbaseAdapter as xt, CompareRenderer as St, CrosshairTooltip as Ct, CurrentPriceLine as wt, DEFAULT_LEGEND_CONFIG as Tt, DEFAULT_MAX_WEBGL_CHARTS as Et, DEFAULT_SESSION_HOURS as Dt, DataExporter as Ot, DrawingBase as kt, Easing as At, FinanceCrosshair as M, GROUP_HEADER as jt, IndicatorBase as Mt, IndicatorValueMap as Nt, KeyboardHandler as Pt, KrakenAdapter as Ft, MAX_ALERT_BARS as It, MIN_ALERT_BARS as Lt, MockAdapter as Rt, PaperExecutionAdapter as zt, PollingAdapter as Bt, RANGE_PRESETS as Vt, ReplayManager as Ht, ResamplingAdapter as Ut, Screenshot as Wt, SessionBreaks as N, SessionShading as Gt, SignalMarkerManager as Kt, StreamManager as qt, TickAggregator as Jt, TickBarAdapter as Yt, TickBarBuilder as Xt, TradeZoneManager as Zt, UndoRedoManager as Qt, VolumeRenderer as $t, Watermark as en, WebSocketAdapter as tn, barIndexToTime as nn, barIndexToX as rn, barIndexToX as P, canvasMeasure as an, computeBarLayout as on, computeCalendarLayout as sn, computeCounterClockLayout as cn, computeDonutLayout as ln, computeHistogramLayout as un, computeMatrixLayout as dn, computeScatterLayout as fn, correlationMatrix as pn, counterClockPhase as mn, counterClockPhase as hn, counterClockPoints as gn, counterClockPoints as _n, detectCandlePatterns as vn, formatTooltipTime as yn, histogramBins as bn, hitBar as F, hitDay as I, hitMatrixCell as L, hitSlice as R, isPriceLevelAlert as xn, layoutGroupedTreemap as Sn, layoutSquarifiedTreemap as Cn, layoutUniformGrid as wn, lttbDownsample as Tn, lttbVisibleIndices as En, nearestCounterClockPoint as z, nearestPoint as B, niceScale as Dn, priceToY as On, priceToYMapper as kn, priceToYMapper as An, rangePresetStart as jn, renderBarChart as Mn, renderCalendar as Nn, renderCounterClock as Pn, renderDepthChart as Fn, renderDonut as In, renderEquityCurve as Ln, renderGauge as Rn, renderHeatmap as zn, renderHistogram as Bn, renderMatrix as Vn, renderScatter as Hn, renderSparkline as Un, renderWaterfall as Wn, servesTimeframe as Gn, setMaxWebGLCharts as Kn, shownCount as qn, timeToX as Jn, timestampToBarIndex as Yn, timestampToBarIndex as Xn, toHeikinAshi as Zn, toKagi as Qn, toLineBreak as $n, toPointAndFigure as er, toRangeBars as tr, toRenko as nr, withResampling as rr, withTickBars as ir, xToBarIndex as ar, xToBarIndex as V, xToTime as or, yToPrice as sr, yToPrice as cr } from "@tradecanvas/core";
|
|
4
4
|
//#region src/frameworks/syncIndicators.ts
|
|
5
|
-
function
|
|
5
|
+
function lr(e) {
|
|
6
6
|
let { id: t, params: n = {}, position: r = null } = typeof e == "string" ? { id: e } : e;
|
|
7
7
|
return JSON.stringify([
|
|
8
8
|
t,
|
|
@@ -10,9 +10,9 @@ function sr(e) {
|
|
|
10
10
|
r
|
|
11
11
|
]);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function ur(e, t, n) {
|
|
14
14
|
let r = /* @__PURE__ */ new Map(), i = t.map((e) => {
|
|
15
|
-
let t =
|
|
15
|
+
let t = lr(e), n = r.get(t) ?? 0;
|
|
16
16
|
return r.set(t, n + 1), {
|
|
17
17
|
spec: e,
|
|
18
18
|
key: `${t}#${n}`
|
|
@@ -27,18 +27,18 @@ function cr(e, t, n) {
|
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/plugins/overlayScale.ts
|
|
30
|
-
function
|
|
31
|
-
let { viewport: t, data: n } = e, r =
|
|
30
|
+
function dr(e) {
|
|
31
|
+
let { viewport: t, data: n } = e, r = An(t), i = n.length - 1, a = Math.max(0, Math.floor(t.visibleRange.from)), o = Math.min(i, Math.ceil(t.visibleRange.to)), s = (e) => n.length > 0 ? Xn(e, n) : e;
|
|
32
32
|
return {
|
|
33
33
|
timeToX: (e) => P(s(e), t),
|
|
34
34
|
xToTime: (e) => {
|
|
35
35
|
let r = V(e, t);
|
|
36
|
-
return n.length > 0 ?
|
|
36
|
+
return n.length > 0 ? nn(r, n) : r;
|
|
37
37
|
},
|
|
38
38
|
indexToX: (e) => P(e, t),
|
|
39
39
|
xToIndex: (e) => V(e, t),
|
|
40
40
|
priceToY: r,
|
|
41
|
-
yToPrice: (e) =>
|
|
41
|
+
yToPrice: (e) => cr(e, t),
|
|
42
42
|
barWidth: t.barWidth,
|
|
43
43
|
visible: o < a ? {
|
|
44
44
|
from: 0,
|
|
@@ -84,7 +84,7 @@ var H = {
|
|
|
84
84
|
cols: 2,
|
|
85
85
|
rows: 3
|
|
86
86
|
}
|
|
87
|
-
},
|
|
87
|
+
}, fr = class {
|
|
88
88
|
root;
|
|
89
89
|
cells = [];
|
|
90
90
|
layout;
|
|
@@ -191,13 +191,13 @@ var H = {
|
|
|
191
191
|
this.cells = [], this.root.remove();
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
},
|
|
194
|
+
}, pr = class extends j {
|
|
195
195
|
options;
|
|
196
196
|
constructor(e, t) {
|
|
197
197
|
super(e, t.theme), this.options = t, this.requestRender();
|
|
198
198
|
}
|
|
199
199
|
renderChart(e, t, n, r) {
|
|
200
|
-
|
|
200
|
+
Un(e, t, n, this.options, r);
|
|
201
201
|
}
|
|
202
202
|
update(e) {
|
|
203
203
|
this.options = {
|
|
@@ -211,7 +211,7 @@ var H = {
|
|
|
211
211
|
...e
|
|
212
212
|
}, this.requestRender();
|
|
213
213
|
}
|
|
214
|
-
},
|
|
214
|
+
}, mr = class extends j {
|
|
215
215
|
options;
|
|
216
216
|
crosshair = null;
|
|
217
217
|
constructor(e, t) {
|
|
@@ -219,7 +219,7 @@ var H = {
|
|
|
219
219
|
}
|
|
220
220
|
renderChart(e, t, n, r) {
|
|
221
221
|
let i = this.crosshair?.getPosition() ?? null;
|
|
222
|
-
|
|
222
|
+
Fn(e, t, n, this.options, r, i);
|
|
223
223
|
}
|
|
224
224
|
update(e) {
|
|
225
225
|
this.options = {
|
|
@@ -244,7 +244,7 @@ var H = {
|
|
|
244
244
|
}
|
|
245
245
|
renderChart(e, t, n, r) {
|
|
246
246
|
let i = this.crosshair?.getPosition() ?? null;
|
|
247
|
-
|
|
247
|
+
Ln(e, t, n, this.options, r, i);
|
|
248
248
|
}
|
|
249
249
|
update(e, t) {
|
|
250
250
|
this.options = {
|
|
@@ -291,20 +291,20 @@ var H = {
|
|
|
291
291
|
height: this.height
|
|
292
292
|
}, t = this.options.cellPadding ?? 2;
|
|
293
293
|
if (this.lastLayoutWidth = this.width, this.lastLayoutHeight = this.height, this.cachedGroups = [], this.options.grouped) {
|
|
294
|
-
let { groups: n, cells: r } =
|
|
294
|
+
let { groups: n, cells: r } = Sn(this.currentData.map((e) => ({
|
|
295
295
|
id: e.id,
|
|
296
296
|
weight: e.weight ?? (Math.abs(e.value) || 1),
|
|
297
297
|
group: e.group,
|
|
298
298
|
value: e.value
|
|
299
|
-
})), e, t,
|
|
299
|
+
})), e, t, jt);
|
|
300
300
|
this.cachedRects = r, this.cachedGroups = n;
|
|
301
301
|
} else if (this.options.weighted) {
|
|
302
302
|
let n = this.currentData.map((e) => ({
|
|
303
303
|
id: e.id,
|
|
304
304
|
weight: e.weight ?? (Math.abs(e.value) || 1)
|
|
305
305
|
}));
|
|
306
|
-
this.cachedRects =
|
|
307
|
-
} else this.cachedRects =
|
|
306
|
+
this.cachedRects = Cn(n, e, t);
|
|
307
|
+
} else this.cachedRects = wn(this.currentData.map((e) => ({ id: e.id })), e, t);
|
|
308
308
|
}
|
|
309
309
|
onCanvasClick(e, t) {
|
|
310
310
|
if (this.options.onCellClick) for (let n of this.cachedRects) {
|
|
@@ -319,7 +319,7 @@ var H = {
|
|
|
319
319
|
renderChart(e, t, n, r) {
|
|
320
320
|
(t !== this.lastLayoutWidth || n !== this.lastLayoutHeight) && this.recomputeLayout();
|
|
321
321
|
let i = this.crosshair?.getPosition() ?? null;
|
|
322
|
-
|
|
322
|
+
zn(e, t, n, this.currentData, this.cachedRects, this.options, r, i, this.cachedGroups);
|
|
323
323
|
}
|
|
324
324
|
update(e) {
|
|
325
325
|
this.currentData = e, this.options = {
|
|
@@ -336,7 +336,7 @@ var H = {
|
|
|
336
336
|
destroy() {
|
|
337
337
|
this.crosshair?.destroy(), this.handleClick && this.canvas.removeEventListener("click", this.handleClick), super.destroy();
|
|
338
338
|
}
|
|
339
|
-
},
|
|
339
|
+
}, hr = class extends j {
|
|
340
340
|
options;
|
|
341
341
|
crosshair = null;
|
|
342
342
|
constructor(e, t) {
|
|
@@ -344,7 +344,7 @@ var H = {
|
|
|
344
344
|
}
|
|
345
345
|
renderChart(e, t, n, r) {
|
|
346
346
|
let i = this.crosshair?.getPosition() ?? null;
|
|
347
|
-
|
|
347
|
+
Wn(e, t, n, this.options, r, i);
|
|
348
348
|
}
|
|
349
349
|
update(e) {
|
|
350
350
|
this.options = {
|
|
@@ -361,12 +361,12 @@ var H = {
|
|
|
361
361
|
destroy() {
|
|
362
362
|
this.crosshair?.destroy(), super.destroy();
|
|
363
363
|
}
|
|
364
|
-
},
|
|
365
|
-
function
|
|
364
|
+
}, gr = 500;
|
|
365
|
+
function _r(e) {
|
|
366
366
|
let t = 1 - e;
|
|
367
367
|
return 1 - t * t * t;
|
|
368
368
|
}
|
|
369
|
-
var
|
|
369
|
+
var vr = class extends j {
|
|
370
370
|
options;
|
|
371
371
|
currentValue;
|
|
372
372
|
targetValue;
|
|
@@ -377,7 +377,7 @@ var gr = class extends j {
|
|
|
377
377
|
super(e, t.theme), this.options = t, this.currentValue = t.value, this.targetValue = t.value, this.requestRender();
|
|
378
378
|
}
|
|
379
379
|
renderChart(e, t, n, r) {
|
|
380
|
-
|
|
380
|
+
Rn(e, t, n, this.options, r, this.currentValue);
|
|
381
381
|
}
|
|
382
382
|
setValue(e) {
|
|
383
383
|
if (this.options.animate === !1) {
|
|
@@ -407,7 +407,7 @@ var gr = class extends j {
|
|
|
407
407
|
if (this.animationFrameId !== null) return;
|
|
408
408
|
let e = () => {
|
|
409
409
|
if (this.animationFrameId = null, this.animationStart === null) return;
|
|
410
|
-
let t = this.options.animationDuration ??
|
|
410
|
+
let t = this.options.animationDuration ?? gr, n = performance.now() - this.animationStart, r = Math.min(1, n / Math.max(1, t)), i = _r(r);
|
|
411
411
|
this.currentValue = this.animationFrom + (this.targetValue - this.animationFrom) * i, this.requestRender(), r < 1 ? this.animationFrameId = requestAnimationFrame(e) : (this.currentValue = this.targetValue, this.animationStart = null);
|
|
412
412
|
};
|
|
413
413
|
this.animationFrameId = requestAnimationFrame(e);
|
|
@@ -437,7 +437,7 @@ var gr = class extends j {
|
|
|
437
437
|
}
|
|
438
438
|
renderChart(e, t, n, r) {
|
|
439
439
|
let i = this.options.crosshair === !1 ? null : this.crosshair.getPosition(), a = this.layoutFor;
|
|
440
|
-
(!this.layout || !a || a.options !== this.options || a.width !== t || a.height !== n || a.theme !== r) && (this.layout = this.compute(t, n, r,
|
|
440
|
+
(!this.layout || !a || a.options !== this.options || a.width !== t || a.height !== n || a.theme !== r) && (this.layout = this.compute(t, n, r, an(e, r)), this.layoutFor = {
|
|
441
441
|
options: this.options,
|
|
442
442
|
width: t,
|
|
443
443
|
height: n,
|
|
@@ -456,12 +456,12 @@ var gr = class extends j {
|
|
|
456
456
|
destroy() {
|
|
457
457
|
this.crosshair.destroy(), this.canvas.removeEventListener("click", this.onClick), this.canvas.removeEventListener("pointermove", this.onMove), super.destroy();
|
|
458
458
|
}
|
|
459
|
-
},
|
|
459
|
+
}, yr = class extends G {
|
|
460
460
|
compute(e, t, n, r) {
|
|
461
|
-
return
|
|
461
|
+
return on(this.options, e, t, n, r);
|
|
462
462
|
}
|
|
463
463
|
draw(e, t, n, r, i, a) {
|
|
464
|
-
|
|
464
|
+
Mn(e, t, n, this.options, r, i, a);
|
|
465
465
|
}
|
|
466
466
|
describe() {
|
|
467
467
|
return `Bar chart of ${this.options.series.map((e) => e.name).join(", ")}, ${this.options.categories.length} categories`;
|
|
@@ -487,12 +487,12 @@ var gr = class extends j {
|
|
|
487
487
|
series: t
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
},
|
|
490
|
+
}, br = class extends G {
|
|
491
491
|
compute(e, t, n, r) {
|
|
492
|
-
return
|
|
492
|
+
return ln(this.options, e, t, n, r);
|
|
493
493
|
}
|
|
494
494
|
draw(e, t, n, r, i, a) {
|
|
495
|
-
|
|
495
|
+
In(e, t, n, this.options, r, i, a);
|
|
496
496
|
}
|
|
497
497
|
describe() {
|
|
498
498
|
let e = this.options.data.filter((e) => Number.isFinite(e.value) && e.value > 0).map((e) => e.label).join(", ");
|
|
@@ -511,12 +511,12 @@ var gr = class extends j {
|
|
|
511
511
|
update(e) {
|
|
512
512
|
this.setOptions({ data: e });
|
|
513
513
|
}
|
|
514
|
-
},
|
|
514
|
+
}, xr = class extends G {
|
|
515
515
|
compute(e, t, n, r) {
|
|
516
|
-
return
|
|
516
|
+
return fn(this.options, e, t, n, r);
|
|
517
517
|
}
|
|
518
518
|
draw(e, t, n, r, i, a) {
|
|
519
|
-
|
|
519
|
+
Hn(e, t, n, this.options, r, i, a);
|
|
520
520
|
}
|
|
521
521
|
describe() {
|
|
522
522
|
let e = this.options.series.reduce((e, t) => e + t.points.length, 0);
|
|
@@ -535,12 +535,12 @@ var gr = class extends j {
|
|
|
535
535
|
update(e) {
|
|
536
536
|
this.setOptions({ series: e });
|
|
537
537
|
}
|
|
538
|
-
},
|
|
538
|
+
}, Sr = class extends G {
|
|
539
539
|
compute(e, t, n, r) {
|
|
540
|
-
return
|
|
540
|
+
return un(this.options, e, t, n, r);
|
|
541
541
|
}
|
|
542
542
|
draw(e, t, n, r, i, a) {
|
|
543
|
-
|
|
543
|
+
Bn(e, t, n, this.options, r, i, a);
|
|
544
544
|
}
|
|
545
545
|
describe() {
|
|
546
546
|
return `Histogram of ${this.options.values.length} values`;
|
|
@@ -555,12 +555,12 @@ var gr = class extends j {
|
|
|
555
555
|
update(e) {
|
|
556
556
|
this.setOptions({ values: e });
|
|
557
557
|
}
|
|
558
|
-
},
|
|
558
|
+
}, Cr = class extends G {
|
|
559
559
|
compute(e, t, n, r) {
|
|
560
|
-
return
|
|
560
|
+
return sn(this.options, e, t, n, r);
|
|
561
561
|
}
|
|
562
562
|
draw(e, t, n, r, i, a) {
|
|
563
|
-
|
|
563
|
+
Nn(e, t, n, this.options, r, i, a);
|
|
564
564
|
}
|
|
565
565
|
describe() {
|
|
566
566
|
let e = this.options.data.map((e) => e.date).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e)).sort(), t = this.options.from ?? e[0], n = this.options.to ?? e[e.length - 1];
|
|
@@ -579,12 +579,12 @@ var gr = class extends j {
|
|
|
579
579
|
update(e) {
|
|
580
580
|
this.setOptions({ data: e });
|
|
581
581
|
}
|
|
582
|
-
}, K = 12,
|
|
582
|
+
}, K = 12, wr = class extends G {
|
|
583
583
|
compute(e, t, n, r) {
|
|
584
|
-
return
|
|
584
|
+
return dn(this.options, e, t, n, r);
|
|
585
585
|
}
|
|
586
586
|
draw(e, t, n, r, i, a) {
|
|
587
|
-
|
|
587
|
+
Vn(e, t, n, this.options, r, i, a);
|
|
588
588
|
}
|
|
589
589
|
describe() {
|
|
590
590
|
let { rows: e, columns: t } = this.options;
|
|
@@ -603,12 +603,12 @@ var gr = class extends j {
|
|
|
603
603
|
update(e) {
|
|
604
604
|
this.setOptions({ values: e });
|
|
605
605
|
}
|
|
606
|
-
},
|
|
606
|
+
}, Tr = class extends G {
|
|
607
607
|
compute(e, t, n, r) {
|
|
608
|
-
return
|
|
608
|
+
return cn(this.options, e, t, n, r);
|
|
609
609
|
}
|
|
610
610
|
draw(e, t, n, r, i, a) {
|
|
611
|
-
|
|
611
|
+
Pn(e, t, n, this.options, r, i, a);
|
|
612
612
|
}
|
|
613
613
|
describe() {
|
|
614
614
|
return `Counter-clock chart of price against volume, ${this.options.period ?? 25}-bar averages`;
|
|
@@ -624,12 +624,12 @@ var gr = class extends j {
|
|
|
624
624
|
r && this.options.onPointClick?.(r.point);
|
|
625
625
|
}
|
|
626
626
|
getPhase() {
|
|
627
|
-
return
|
|
627
|
+
return hn(_n(this.options.data, this.options.period ?? 25, qn(this.options)));
|
|
628
628
|
}
|
|
629
629
|
update(e) {
|
|
630
630
|
this.setOptions({ data: e });
|
|
631
631
|
}
|
|
632
|
-
},
|
|
632
|
+
}, Er = [
|
|
633
633
|
"Jan",
|
|
634
634
|
"Feb",
|
|
635
635
|
"Mar",
|
|
@@ -664,7 +664,7 @@ function Y(e) {
|
|
|
664
664
|
if (e.length === 0) return [];
|
|
665
665
|
let t = [];
|
|
666
666
|
for (let n of e) {
|
|
667
|
-
let e =
|
|
667
|
+
let e = ot(n.time, "1M"), r = t[t.length - 1];
|
|
668
668
|
r && r.key === e ? r.close = n.equity : t.push({
|
|
669
669
|
key: e,
|
|
670
670
|
close: n.equity
|
|
@@ -677,7 +677,7 @@ function Y(e) {
|
|
|
677
677
|
let a = new Date(e.key), o = a.getUTCFullYear(), s = a.getUTCMonth();
|
|
678
678
|
r.push({
|
|
679
679
|
id: `${o}-${String(s + 1).padStart(2, "0")}`,
|
|
680
|
-
label:
|
|
680
|
+
label: Er[s],
|
|
681
681
|
group: String(o),
|
|
682
682
|
value: i
|
|
683
683
|
});
|
|
@@ -739,7 +739,7 @@ function Q(e) {
|
|
|
739
739
|
function $(e) {
|
|
740
740
|
return !e || e === "dark" ? me : e === "light" ? f : e;
|
|
741
741
|
}
|
|
742
|
-
var
|
|
742
|
+
var Dr = class {
|
|
743
743
|
options;
|
|
744
744
|
theme;
|
|
745
745
|
root;
|
|
@@ -888,6 +888,6 @@ var Tr = class {
|
|
|
888
888
|
}
|
|
889
889
|
};
|
|
890
890
|
//#endregion
|
|
891
|
-
export {
|
|
891
|
+
export { pt as AlertManager, mt as Animator, yr as BarChart, ht as BarCountdown, gt as BinanceAdapter, _t as BybitAdapter, vt as CANDLE_PATTERNS, de as CHART_STYLE_KEYS, Cr as CalendarChart, i as Chart, fr as ChartGrid, yt as ChartLegend, bt as ChartStateManager, xt as CoinbaseAdapter, St as CompareRenderer, Tr as CounterClockChart, Ct as CrosshairTooltip, wt as CurrentPriceLine, fe as DARK_TERMINAL, pe as DARK_THEME, he as DEFAULT_DRAWING_STYLE, r as DEFAULT_HISTORY_PAGE_SIZE, Tt as DEFAULT_LEGEND_CONFIG, Et as DEFAULT_MAX_WEBGL_CHARTS, ge as DEFAULT_RECONNECT, Dt as DEFAULT_SESSION_HOURS, _e as DEFAULT_SIGNAL_STYLE, ve as DEFAULT_STREAM_CONFIG, ye as DEFAULT_TIMEFRAME_FAVORITES, be as DEFAULT_TRADE_ZONE_STYLE, xe as DEFAULT_TRADING_CONFIG, Ot as DataExporter, e as DataManager, mr as DepthChart, br as DonutChart, ne as DragDropImporter, kt as DrawingBase, u as EXCHANGE_TIMEZONE, At as Easing, U as EquityCurveChart, vr as GaugeChart, le as HISTORY_RETRY_MS, Se as HNX_SESSIONS, Ce as HOSE_SESSIONS, W as HeatmapChart, Sr as HistogramChart, Mt as IndicatorBase, Nt as IndicatorValueMap, Pt as KeyboardHandler, Ft as KrakenAdapter, d as LIGHT_THEME, ce as LayoutManager, oe as LayoutSession, p as MARKET_CRYPTO, m as MARKET_HNX, h as MARKET_HOSE, g as MARKET_HOSE_ETF, _ as MARKET_NYSE, v as MARKET_UPCOM, y as MARKET_VN30F, It as MAX_ALERT_BARS, te as MAX_LAYOUT_NAME, Lt as MIN_ALERT_BARS, b as MS_TIME_THRESHOLD, wr as MatrixChart, Rt as MockAdapter, c as PLUGIN_API_VERSION, x as PRICE_SOURCES, zt as PaperExecutionAdapter, Dr as PerformanceDashboard, se as PluginManager, Bt as PollingAdapter, Vt as RANGE_PRESETS, Ht as ReplayManager, Ut as ResamplingAdapter, xr as ScatterChart, Wt as Screenshot, N as SessionBreaks, Gt as SessionShading, Kt as SignalMarkerManager, pr as SparklineChart, qt as StreamManager, S as TC_PALETTE, C as TC_SERIES_COLORS, w as TIMEFRAMES_CRYPTO, T as TIMEFRAMES_FOREX, E as TIMEFRAMES_STOCK, ue as ThemeManager, Jt as TickAggregator, Yt as TickBarAdapter, Xt as TickBarBuilder, Zt as TradeZoneManager, D as UPCOM_SESSIONS, Qt as UndoRedoManager, O as VN30F_SESSIONS, k as VN_COLORS, A as VOLUME_ALPHA, $t as VolumeRenderer, hr as WaterfallChart, en as Watermark, tn as WebSocketAdapter, rn as barIndexToX, we as barTimeUnit, Te as barsAreDaily, ie as cleanLayoutName, a as clearGlobalPlugins, J as computeDrawdownCurve, Y as computeMonthlyReturns, Ee as computePriceLimits, pn as correlationMatrix, mn as counterClockPhase, gn as counterClockPoints, De as createVNTheme, vn as detectCandlePatterns, Oe as formatFraction, ke as formatNumber, yn as formatTooltipTime, Ae as formatVND, je as formatVolumeLoc, Me as fractionTick, Ne as getCurrentSession, o as getGlobalPlugins, Pe as getLocale, bn as histogramBins, Fe as indicatorSource, xn as isPriceLevelAlert, Ie as isPriceSource, Le as isTimeFrame, Re as isValidTimeZone, l as localStorageLayouts, Tn as lttbDownsample, En as lttbVisibleIndices, ze as marketStatus, n as memoryLayouts, Dn as niceScale, Be as normalizeBar, Ve as normalizeBarTime, He as offsetAt, dr as overlayScale, s as overlaysForLayer, Ue as parseIndicatorSource, ae as parseOHLCV, We as parseTimeframe, Ge as pickBaseTimeframe, t as pluginKey, Ke as priceFormatterFor, qe as priceStepAt, On as priceToY, kn as priceToYMapper, jn as rangePresetStart, Je as rankSymbols, Ye as readNews, Xe as readQuote, Ze as registerLocale, re as registerPlugin, Qe as resampleBars, $e as roundToPriceStep, et as scaleMarketPrices, Q as selectKeyStats, Gn as servesTimeframe, tt as setLocale, Kn as setMaxWebGLCharts, nt as sourcePrice, rt as stepDecimals, ur as syncIndicators, it as t, at as tickBarCount, Jn as timeToX, st as timeframeToMs, Yn as timestampToBarIndex, q as toEquityPoints, Zn as toHeikinAshi, Qn as toKagi, $n as toLineBreak, er as toPointAndFigure, tr as toRangeBars, nr as toRenko, ee as unregisterPlugin, ct as vn30fContracts, lt as vn30fLastTradingDay, ut as volumeColor, dt as wallToUtc, rr as withResampling, ir as withTickBars, ar as xToBarIndex, or as xToTime, sr as yToPrice, ft as zoneOffsetMinutes };
|
|
892
892
|
|
|
893
893
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseOHLCV.d.ts","sourceRoot":"","sources":["../../src/io/parseOHLCV.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"parseOHLCV.d.ts","sourceRoot":"","sources":["../../src/io/parseOHLCV.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGhE;;;;;;;;;;GAUG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;CACjB;AASD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAQpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regularHours.d.ts","sourceRoot":"","sources":["../src/regularHours.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQvD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,IAAI,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,GAChC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"regularHours.d.ts","sourceRoot":"","sources":["../src/regularHours.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQvD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,IAAI,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,GAChC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,IAAI,CAkBpC"}
|
|
@@ -8,6 +8,7 @@ import { ResolvedWidgetUI, WidgetUIPreset, WidgetUITheme } from './widgetUI.js';
|
|
|
8
8
|
import { WidgetLayoutContent } from './widgetLayout.js';
|
|
9
9
|
import { LayoutSession } from '../state/LayoutSession.js';
|
|
10
10
|
import { WidgetFeature, WidgetFeatures } from './widgetFeatures.js';
|
|
11
|
+
/** The widget pressed last: with several on a page, Alt+ shortcuts act on that one. */
|
|
11
12
|
export declare class ChartWidget {
|
|
12
13
|
private chart;
|
|
13
14
|
private state;
|
|
@@ -42,6 +43,8 @@ export declare class ChartWidget {
|
|
|
42
43
|
private drawingStyle;
|
|
43
44
|
private drawingSettings;
|
|
44
45
|
private drawingMenu;
|
|
46
|
+
private selectionToolbar;
|
|
47
|
+
private selectionToolbarFrame;
|
|
45
48
|
private chartMenu;
|
|
46
49
|
/** The pane a chart menu was opened on (its scale switches act on it). */
|
|
47
50
|
private menuPane;
|
|
@@ -205,6 +208,11 @@ export declare class ChartWidget {
|
|
|
205
208
|
setUI(theme: WidgetUIPreset | WidgetUITheme): void;
|
|
206
209
|
/** The widget's look, every token set. */
|
|
207
210
|
getUI(): ResolvedWidgetUI;
|
|
211
|
+
/**
|
|
212
|
+
* The OHLCV legend on the chart takes the look's font, at the size of the
|
|
213
|
+
* indicator rows the widget lists under it, so the two read as one block.
|
|
214
|
+
*/
|
|
215
|
+
private applyLegendFont;
|
|
208
216
|
/** The chart's own tags and pills take the look's corners. */
|
|
209
217
|
private applyChartShapes;
|
|
210
218
|
destroy(): void;
|
|
@@ -216,6 +224,15 @@ export declare class ChartWidget {
|
|
|
216
224
|
toggleFullscreen(): void;
|
|
217
225
|
/** A drawing tool's name in the widget's language. */
|
|
218
226
|
private drawingToolName;
|
|
227
|
+
/** The chart container's top-left in the widget root's coordinates. */
|
|
228
|
+
private chartOffset;
|
|
229
|
+
/** `updateSelectionToolbar` on the next frame, once, while the toolbar shows. */
|
|
230
|
+
private scheduleSelectionToolbar;
|
|
231
|
+
/**
|
|
232
|
+
* Show the selection toolbar over the selected drawings, or hide it: when
|
|
233
|
+
* nothing is selected, or while a tool, the eraser or the zoom area is on.
|
|
234
|
+
*/
|
|
235
|
+
private updateSelectionToolbar;
|
|
219
236
|
/** Open a drawing's settings (double-click on it, or the object tree's settings button). */
|
|
220
237
|
private openDrawingSettings;
|
|
221
238
|
/** Add a "price crosses this drawing" alert and say so. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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aAAa;IASrB,2FAA2F;IAC3F,OAAO,CAAC,eAAe;YAST,aAAa;IAkE3B,wEAAwE;IACxE,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,YAAY;IAqDpB,oCAAoC;IACpC,OAAO,CAAC,aAAa;IAOrB;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAyCtB,OAAO,CAAC,QAAQ;IAYhB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,WAAW;CAUpB;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,KAAK,eAAe,GAAG,UAAU,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,gHAAgH;AAChH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAE9G;;;GAGG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,eAAe,EAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CA0BzH"}
|
|
@@ -7,6 +7,10 @@ export interface DrawingStyleCallbacks {
|
|
|
7
7
|
/** Current active drawing style, for seeding controls and saving templates. */
|
|
8
8
|
getStyle: () => DrawingStyle;
|
|
9
9
|
}
|
|
10
|
+
/** The drawing colours offered here and on the selection toolbar. */
|
|
11
|
+
export declare const SWATCHES: string[];
|
|
12
|
+
export declare const WIDTHS: number[];
|
|
13
|
+
export declare const LINE_STYLES: DrawingStyle['lineStyle'][];
|
|
10
14
|
/**
|
|
11
15
|
* Drawing style popover — pick colour, line width, and line style for the next
|
|
12
16
|
* drawing (and the selected one), plus save/apply named style templates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDrawingStyle.d.ts","sourceRoot":"","sources":["../../src/widget/Widg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C,IAAI,CAAS;gBAGnB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,qBAAqB,EAChC,KAAK,EAAE,oBAAoB,EACV,CAAC,GAAE,UAA0B;IAwDhD,MAAM,IAAI,OAAO;IAIjB,MAAM,IAAI,IAAI;IAId,SAAS,IAAI,IAAI;IAOjB,KAAK,IAAI,IAAI;IAKb,OAAO,IAAI,IAAI;IAIf,OAAO,CAAC,QAAQ;IAqBhB,OAAO,CAAC,QAAQ;IAiBhB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,UAAU;IAKlB,2DAA2D;IAC3D,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,eAAe;CA4CxB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { DrawingStyle } from '@tradecanvas/commons';
|
|
2
|
+
import { Translator } from './i18n.js';
|
|
3
|
+
/** Where the selection is and what can be done to it. */
|
|
4
|
+
export interface SelectionToolbarTarget {
|
|
5
|
+
/** The selection's box, in px from the widget root's top-left. */
|
|
6
|
+
rect: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
/** The area the toolbar has to stay inside, same coordinates. */
|
|
13
|
+
bounds: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
/** The primary drawing's style, shown on the buttons. */
|
|
20
|
+
style: DrawingStyle;
|
|
21
|
+
/** All of the selection is locked: the lock button shows it, and unlocks. */
|
|
22
|
+
locked: boolean;
|
|
23
|
+
/** Some of the selection can be deleted (is not locked). */
|
|
24
|
+
canDelete: boolean;
|
|
25
|
+
canSettings: boolean;
|
|
26
|
+
canAlert: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface SelectionToolbarCallbacks {
|
|
29
|
+
onStyle: (patch: Partial<Pick<DrawingStyle, 'color' | 'lineWidth' | 'lineStyle'>>) => void;
|
|
30
|
+
onSettings: () => void;
|
|
31
|
+
onAlert: () => void;
|
|
32
|
+
onLock: (locked: boolean) => void;
|
|
33
|
+
/** The full drawing menu, opened under the given point (root px). */
|
|
34
|
+
onMore: (x: number, y: number) => void;
|
|
35
|
+
onDelete: () => void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A small toolbar that appears over the drawing a user selects, so its
|
|
39
|
+
* colour, width and line style, its settings, lock and delete are one click
|
|
40
|
+
* away instead of behind a right-click.
|
|
41
|
+
*/
|
|
42
|
+
export declare class WidgetSelectionToolbar {
|
|
43
|
+
private readonly host;
|
|
44
|
+
private readonly callbacks;
|
|
45
|
+
private readonly t;
|
|
46
|
+
private el;
|
|
47
|
+
private pop;
|
|
48
|
+
private target;
|
|
49
|
+
/** What the buttons were last built from. */
|
|
50
|
+
private built;
|
|
51
|
+
private size;
|
|
52
|
+
private openPop;
|
|
53
|
+
private readonly onDocDown;
|
|
54
|
+
constructor(host: HTMLElement, callbacks: SelectionToolbarCallbacks, t?: Translator);
|
|
55
|
+
isOpen(): boolean;
|
|
56
|
+
show(target: SelectionToolbarTarget): void;
|
|
57
|
+
hide(): void;
|
|
58
|
+
destroy(): void;
|
|
59
|
+
private render;
|
|
60
|
+
private buttons;
|
|
61
|
+
/** Make `button` the toolbar's one tab stop, focusing it when asked. */
|
|
62
|
+
private rove;
|
|
63
|
+
/** Over the selection, centred on it; under it when there is no room above. */
|
|
64
|
+
private place;
|
|
65
|
+
private onClick;
|
|
66
|
+
/** Arrow keys, Home and End move along the toolbar, as a toolbar's should. */
|
|
67
|
+
private onKey;
|
|
68
|
+
private openPopover;
|
|
69
|
+
/** Arrow keys move through the choices (by a row in the colours); Escape goes back to the toolbar. */
|
|
70
|
+
private onPopKey;
|
|
71
|
+
private placePop;
|
|
72
|
+
private onPick;
|
|
73
|
+
private closePop;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=WidgetS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