@tradecanvas/core 2.0.0-beta.5 → 2.0.0-beta.7
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/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, C as t, D as n, E as r, F as i, I as a, M as o, N as s, O as c, P as l, S as u, T as d, _ as f, a as p, b as m, d as h, f as g, g as _, h as v, i as y, j as b, k as x, n as S, o as C, p as w, r as T, s as E, t as D, u as ee, v as O, w as k, x as A, y as te } from "./gpuContexts-vx7rTajy.js";
|
|
2
|
-
import { CHART_SPACING as ne, DARK_PRICE_LIMITS as re, DARK_THEME as ie, DEFAULT_BAR_SPACING as ae, DEFAULT_BAR_WIDTH as oe, DEFAULT_CHART_DENSITY as se, DEFAULT_DRAWING_STYLE as ce,
|
|
2
|
+
import { CHART_SPACING as ne, DARK_PRICE_LIMITS as re, DARK_THEME as ie, DEFAULT_BAR_SPACING as ae, DEFAULT_BAR_WIDTH as oe, DEFAULT_CHART_DENSITY as se, DEFAULT_DRAWING_STYLE as ce, DEFAULT_RECONNECT as le, DEFAULT_SIGNAL_STYLE as ue, DEFAULT_STREAM_CONFIG as de, DEFAULT_TRADE_ZONE_STYLE as fe, DEFAULT_TRADING_CONFIG as pe, FIGURES_FONT_FAMILY as me, ICON_DOT_RADIUS as he, ICON_SOFT_OPACITY as ge, LIGHT_PRICE_LIMITS as _e, LIGHT_THEME as ve, LINE_TINT_FILL as ye, LayerType as be, PHI as xe, PRICE_AXIS_WIDTH as Se, SANS_FONT_FAMILY as Ce, TC_PALETTE as we, TC_SERIES_COLORS as Te, TIME_AXIS_HEIGHT as Ee, UI_ICONS as De, autoPricePrecision as Oe, barDateParts as ke, barDateZone as Ae, barTimeUnit as j, barsAreDaily as je, clamp as Me, computePriceRange as Ne, computeTickStep as Pe, fitPriceRange as Fe, formatPrice as M, formatPriceScaleLabel as Ie, formatVolumeLoc as Le, iconSvg as Re, inkOn as ze, isDateOnly as Be, isPriceSource as Ve, isUtcTimeZone as He, isValidTimeZone as Ue, lerpColor as We, lineDash as Ge, normalizeBarTime as N, offsetAt as Ke, ownFillColor as qe, parseIndicatorSource as Je, parseTimeframe as Ye, pickBaseTimeframe as Xe, priceTagText as Ze, rankSymbols as Qe, readChartStyleOverrides as $e, readChartTypeOptions as et, readIndicatorPlotStyles as tt, readPaneStyle as nt, readQuote as rt, readableOn as it, resampleBars as at, resolveDrawingOptions as ot, resolveVolumeColors as st, sanitizeDrawingOptions as ct, sanitizeDrawingStyle as lt, sliceVisibleData as ut, sourcePrice as dt, stepDecimals as ft, symbolTimeZone as pt, tickBarCount as mt, tickerOf as ht, timeParts as gt, timeframeBucketStart as _t, timeframeFollowsDays as vt, timeframeSpansDays as yt, timeframeToMs as bt, tzLabel as xt, usesKoreanUnits as St, wallToUtc as Ct, withAlpha as P, zoneOffsetMinutes as wt, zonedDateFormatter as Tt } from "@tradecanvas/commons";
|
|
3
3
|
//#region src/engine/DPRManager.ts
|
|
4
4
|
var Et = 2;
|
|
5
5
|
function Dt(e = 2) {
|
|
@@ -2425,7 +2425,7 @@ function hi(e) {
|
|
|
2425
2425
|
letter: r("letter"),
|
|
2426
2426
|
text: r("text")
|
|
2427
2427
|
},
|
|
2428
|
-
figures: t?.family ||
|
|
2428
|
+
figures: t?.family || me,
|
|
2429
2429
|
prose: t?.textFamily || Ce,
|
|
2430
2430
|
background: i,
|
|
2431
2431
|
ink: e?.text ?? mi,
|
|
@@ -22080,7 +22080,7 @@ var fw = 1e3, pw = class {
|
|
|
22080
22080
|
container = null;
|
|
22081
22081
|
constructor(e) {
|
|
22082
22082
|
this.config = {
|
|
22083
|
-
...
|
|
22083
|
+
...pe,
|
|
22084
22084
|
...e
|
|
22085
22085
|
}, this.dragHandler = new RC(this.config.dragThreshold), this.contextMenu.onItemSelect = (e) => {
|
|
22086
22086
|
this.eventCallback?.("orderPlace", e);
|
|
@@ -22670,7 +22670,7 @@ var vw = class {
|
|
|
22670
22670
|
active = !1;
|
|
22671
22671
|
constructor(e) {
|
|
22672
22672
|
super(), this.config = {
|
|
22673
|
-
...
|
|
22673
|
+
...le,
|
|
22674
22674
|
...e
|
|
22675
22675
|
};
|
|
22676
22676
|
}
|
|
@@ -23487,9 +23487,9 @@ var vT = class extends vw {
|
|
|
23487
23487
|
this.disconnect();
|
|
23488
23488
|
let t = cT(e);
|
|
23489
23489
|
t.resampler?.renewZone(e.symbol), this.config = {
|
|
23490
|
-
...
|
|
23490
|
+
...de,
|
|
23491
23491
|
...e
|
|
23492
|
-
}, this.source = t, this.aggregator = new xw(e.timeframe), this.historyEnd = null, this.applyTickZone(), this.reconnector.removeAllListeners(), this.reconnector.stop(), this.reconnector = new Sw(e.reconnect ??
|
|
23492
|
+
}, this.source = t, this.aggregator = new xw(e.timeframe), this.historyEnd = null, this.applyTickZone(), this.reconnector.removeAllListeners(), this.reconnector.stop(), this.reconnector = new Sw(e.reconnect ?? le), this.wireReconnector(), this.aggregator.on("bar", (e) => {
|
|
23493
23493
|
this.emit("barUpdate", e), this.updatePrice(e.close);
|
|
23494
23494
|
}), this.aggregator.on("barClose", (e) => {
|
|
23495
23495
|
this.setPreviousClose(e), this.emit("barClose", e);
|
|
@@ -26366,7 +26366,7 @@ function eO(e, t, n = -Infinity) {
|
|
|
26366
26366
|
//#region src/features/SignalMarkerManager.ts
|
|
26367
26367
|
var tO = 1, nO = 3, rO = class extends vw {
|
|
26368
26368
|
markers = [];
|
|
26369
|
-
style = { ...
|
|
26369
|
+
style = { ...ue };
|
|
26370
26370
|
requestRender = null;
|
|
26371
26371
|
dataGetter = null;
|
|
26372
26372
|
revealUntil = null;
|
|
@@ -26459,7 +26459,7 @@ var tO = 1, nO = 3, rO = class extends vw {
|
|
|
26459
26459
|
}
|
|
26460
26460
|
}, iO = 12, aO = 2, oO = 1, sO = class extends vw {
|
|
26461
26461
|
zones = [];
|
|
26462
|
-
style = { ...
|
|
26462
|
+
style = { ...fe };
|
|
26463
26463
|
requestRender = null;
|
|
26464
26464
|
dataGetter = null;
|
|
26465
26465
|
revealUntil = null;
|
|
@@ -26708,13 +26708,12 @@ function wO(e) {
|
|
|
26708
26708
|
return !e || e === "dark" ? ie : e === "light" ? ve : e;
|
|
26709
26709
|
}
|
|
26710
26710
|
function TO(e, t) {
|
|
26711
|
-
let n = wO(e), r = Object.fromEntries(Object.entries(t ?? {}).filter(([, e]) => e !== void 0))
|
|
26711
|
+
let n = wO(e), r = Object.fromEntries(Object.entries(t ?? {}).filter(([, e]) => e !== void 0));
|
|
26712
26712
|
return {
|
|
26713
26713
|
...n,
|
|
26714
26714
|
font: {
|
|
26715
26715
|
...n.font,
|
|
26716
|
-
...r
|
|
26717
|
-
family: i
|
|
26716
|
+
...r
|
|
26718
26717
|
}
|
|
26719
26718
|
};
|
|
26720
26719
|
}
|