@guihz/trading-vue-editor-tes 0.1.23 → 0.1.25
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-C3j7GaiS.js → parserTccWorker-B6TDhYXx.js} +2419 -2422
- package/lib/assets/{scriptsRunWorker-BBT4QHtH.js → scriptsRunWorker-Dpg-1H14.js} +983 -962
- package/lib/components/editor/v6/parseScript/buildInConstants.d.ts +3 -3
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/box.d.ts +2 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/label.d.ts +2 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/table.d.ts +2 -0
- package/lib/trading-vue-editor.es.packages.js +2 -2
- package/lib/trading-vue-editor.umd.packages.mjs +19 -19
- package/package.json +1 -1
@@ -291,9 +291,9 @@ export declare class BuildInConstants {
|
|
291
291
|
align_top: VText;
|
292
292
|
wrap_auto: VText;
|
293
293
|
wrap_none: VText;
|
294
|
-
format_bold: VTextFormat;
|
295
|
-
format_italic: VTextFormat;
|
296
|
-
format_none:
|
294
|
+
format_bold: VTextFormat[];
|
295
|
+
format_italic: VTextFormat[];
|
296
|
+
format_none: never[];
|
297
297
|
};
|
298
298
|
xloc: {
|
299
299
|
bar_index: VXloc;
|
@@ -29,6 +29,7 @@ export interface IBoxArgs {
|
|
29
29
|
point?: Point;
|
30
30
|
width?: number;
|
31
31
|
bar_index?: number;
|
32
|
+
text_formatting?: string[];
|
32
33
|
}
|
33
34
|
type VBoxArgs = Omit<IBoxArgs, 'id'> & {
|
34
35
|
id: IDrawComponent;
|
@@ -77,6 +78,7 @@ export default class BuildInBox {
|
|
77
78
|
set_bottom_right_point({ id, point }: VBoxArgs, posStr: string): void;
|
78
79
|
set_text_font_family({ id, text_font_family }: VBoxArgs, posStr: string): void;
|
79
80
|
set_xloc({ id, left, right, xloc }: VBoxArgs, posStr: string): void;
|
81
|
+
set_text_formatting({ id, text_formatting }: VBoxArgs, posStr: string): void;
|
80
82
|
private _getBox;
|
81
83
|
}
|
82
84
|
export declare function createBox(key: string, data: IKeyObjectValue): IDrawComponent;
|
@@ -19,6 +19,7 @@ interface ILabelArgs {
|
|
19
19
|
tooltip: string;
|
20
20
|
text_font_family: string;
|
21
21
|
force_overlay: boolean;
|
22
|
+
text_formatting: string[];
|
22
23
|
}
|
23
24
|
export type PartialLabelArgs = Partial<ILabelArgs>;
|
24
25
|
type TLabelArgs = Omit<PartialLabelArgs, 'id'> & {
|
@@ -60,6 +61,7 @@ export default class BuildInLabel {
|
|
60
61
|
set_textcolor({ id, ...args }: TLabelArgs, posStr: string): void;
|
61
62
|
set_textalign({ id, textalign }: TLabelArgs, posStr: string): void;
|
62
63
|
set_text_font_family({ id, text_font_family }: TLabelArgs, posStr: string): void;
|
64
|
+
set_text_formatting({ id, text_formatting }: TLabelArgs, posStr: string): void;
|
63
65
|
private _getLabel;
|
64
66
|
}
|
65
67
|
export declare function createLabel(key: string, data: IKeyObjectValue): IDrawComponent;
|
@@ -45,6 +45,7 @@ interface ITableCellArgs {
|
|
45
45
|
isMerge?: boolean;
|
46
46
|
merge_columns?: number;
|
47
47
|
merge_rows?: number;
|
48
|
+
text_formatting?: string[];
|
48
49
|
}
|
49
50
|
export default class BuildInTable {
|
50
51
|
private _variables;
|
@@ -71,6 +72,7 @@ export default class BuildInTable {
|
|
71
72
|
cell_set_text_size({ table_id, column, row, text_size }: ITableCellArgs, posStr: string): void;
|
72
73
|
cell_set_tooltip({ table_id, column, row, tooltip }: ITableCellArgs, posStr: string): void;
|
73
74
|
cell_set_width({ table_id, column, row, width }: ITableCellArgs, posStr: string): void;
|
75
|
+
cell_set_text_formatting({ table_id, column, row, text_formatting }: ITableCellArgs, posStr: string): void;
|
74
76
|
clear({ table_id, start_column, start_row, end_column, end_row }: ITableArgs, posStr: string): void;
|
75
77
|
delete({ table_id }: ITableArgs, posStr: string): void;
|
76
78
|
merge_cells({ table_id, start_column, start_row, end_column, end_row }: ITableArgs, posStr: string): void;
|
@@ -9170,14 +9170,14 @@ function mr(i, n, r) {
|
|
9170
9170
|
function I1() {
|
9171
9171
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
9172
9172
|
}
|
9173
|
-
const Lf = new Worker(new URL("" + new URL("assets/scriptsRunWorker-
|
9173
|
+
const Lf = new Worker(new URL("" + new URL("assets/scriptsRunWorker-Dpg-1H14.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
|
9174
9174
|
Lf.onerror = (i) => {
|
9175
9175
|
console.error(i);
|
9176
9176
|
};
|
9177
9177
|
async function Tf(i) {
|
9178
9178
|
return await bo.setInlayHints(i);
|
9179
9179
|
}
|
9180
|
-
const Nf = ma(Lf), Rf = ma(new Worker(new URL("" + new URL("assets/parserTccWorker-
|
9180
|
+
const Nf = ma(Lf), Rf = ma(new Worker(new URL("" + new URL("assets/parserTccWorker-B6TDhYXx.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser MineScript Server" }));
|
9181
9181
|
async function A1(i, n = !1, r = Xt) {
|
9182
9182
|
const s = i.match(/\s*\/\/\s*@version\s*=\s*([0-9])/)?.[1];
|
9183
9183
|
s && (r = parseInt(s), r = r < 3 ? 3 : r > 6 ? 6 : r);
|