@guihz/trading-vue-editor-tes 0.1.60 → 0.1.61
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/lib/assets/{parserTccWorker-CZR3XWhO.js → parserTccWorker-ITwmyfLs.js} +2397 -2392
- package/lib/assets/{scriptsRunWorker-66u9BfVS.js → scriptsRunWorker-3vkIyQLM.js} +2 -2
- package/lib/trading-vue-editor.es.packages.js +2 -2
- package/lib/trading-vue-editor.umd.packages.mjs +21 -21
- package/package.json +1 -1
|
@@ -38720,7 +38720,7 @@ ${u}`), u;
|
|
|
38720
38720
|
return ["M", "w", "y", "d"].includes(i) ? s.valueOf() : s.startOf("d").valueOf();
|
|
38721
38721
|
}
|
|
38722
38722
|
updateOptions(e) {
|
|
38723
|
-
const { interval: t = "1D", offsetTime: r =
|
|
38723
|
+
const { interval: t = "1D", offsetTime: r = 6, mintick: i, chart: s, syminfo: o } = e, a = i.toString().split(".")[1]?.length || 5;
|
|
38724
38724
|
this._precision = a;
|
|
38725
38725
|
const c = this.customTimeframe || t;
|
|
38726
38726
|
this._period = c, this._mintick = i, this._offsetTime = r, this._timeframe.update(c), this.chart.updateOptions(s), this.syminfo.update(o), this._barstate.isFirstRun = this.__isFirstRun;
|
|
@@ -38906,7 +38906,7 @@ ${u}`), u;
|
|
|
38906
38906
|
const t = String(e);
|
|
38907
38907
|
if (!t.includes(".") && !/[eE]/.test(t))
|
|
38908
38908
|
return e;
|
|
38909
|
-
const [r, i] = e.toFixed(
|
|
38909
|
+
const [r, i] = e.toFixed(10).split(".");
|
|
38910
38910
|
return +`${r}.${i.slice(0, 10)}`;
|
|
38911
38911
|
}
|
|
38912
38912
|
}, On = class {
|
|
@@ -14634,14 +14634,14 @@ function Kn(i, r, t) {
|
|
|
14634
14634
|
function x2() {
|
|
14635
14635
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
|
14636
14636
|
}
|
|
14637
|
-
const vd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-
|
|
14637
|
+
const vd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-3vkIyQLM.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
|
|
14638
14638
|
vd.onerror = (i) => {
|
|
14639
14639
|
console.error(i);
|
|
14640
14640
|
};
|
|
14641
14641
|
async function _d(i) {
|
|
14642
14642
|
return await Lo.setInlayHints(i);
|
|
14643
14643
|
}
|
|
14644
|
-
const bd = h0(vd), yd = h0(new Worker(new URL("" + new URL("assets/parserTccWorker-
|
|
14644
|
+
const bd = h0(vd), yd = h0(new Worker(new URL("" + new URL("assets/parserTccWorker-ITwmyfLs.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser MineScript Server" }));
|
|
14645
14645
|
async function m2(i, r = !1, t = yr) {
|
|
14646
14646
|
const o = i.match(/\s*\/\/\s*@version\s*=\s*([0-9])/)?.[1];
|
|
14647
14647
|
o && (t = parseInt(o), t = t < 3 ? 3 : t > 6 ? 6 : t);
|