@guihz/trading-vue-editor-tes 0.0.285 → 0.0.287

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.
Files changed (21) hide show
  1. package/lib/assets/{parserTccWorker-COjudqMh.js → parserTccWorker-BLvyJFUz.js} +38 -47
  2. package/lib/assets/{scriptsRunWorker-B3YGZcpj.js → scriptsRunWorker-Ct4teHQd.js} +36 -36
  3. package/lib/components/editor/parseScript/buildInFuncNamespace/box.d.ts +4 -49
  4. package/lib/components/editor/parseScript/buildInFuncNamespace/chartPoint.d.ts +5 -18
  5. package/lib/components/editor/parseScript/buildInFuncNamespace/index.d.ts +7 -7
  6. package/lib/components/editor/parseScript/buildInFuncNamespace/input.d.ts +1 -0
  7. package/lib/components/editor/parseScript/buildInFuncNamespace/label.d.ts +3 -39
  8. package/lib/components/editor/parseScript/buildInFuncNamespace/line.d.ts +3 -45
  9. package/lib/components/editor/parseScript/buildInFuncNamespace/linefill.d.ts +1 -25
  10. package/lib/components/editor/parseScript/buildInFuncNamespace/log.d.ts +8 -0
  11. package/lib/components/editor/parseScript/buildInFuncNamespace/math.d.ts +4 -2
  12. package/lib/components/editor/parseScript/buildInFuncNamespace/polyline.d.ts +2 -17
  13. package/lib/components/editor/parseScript/buildInFuncNamespace/strategy.d.ts +1 -0
  14. package/lib/components/editor/parseScript/buildInFuncNamespace/table.d.ts +3 -43
  15. package/lib/components/editor/parseScript/buildInVarNamespace/barstate.d.ts +3 -0
  16. package/lib/components/editor/utils/scriptsRunWorker.d.ts +8 -10
  17. package/lib/trading-vue-editor.es.packages.js +2 -2
  18. package/lib/trading-vue-editor.umd.packages.mjs +1 -1
  19. package/package.json +65 -64
  20. package/lib/components/editor/parseScript/buildInFuncNamespace/request.d.ts +0 -44
  21. package/lib/components/editor/utils/parserTcc.d.ts +0 -46
@@ -1,6 +1,6 @@
1
1
  import { IKeyObjectValue } from "../../type";
2
2
  import { BuiltInVariables } from "../buildInVariables";
3
- import { VExtend, VLineStyle, VSize, VText, VType, VXloc } from "../enum";
3
+ import { VExtend, VLineStyle, VSize, VText, VXloc } from "../enum";
4
4
  import { IDrawComponent } from "../type";
5
5
  import { IPoint as Point, TccErrorListener } from "./index";
6
6
  export interface IBoxArgs {
@@ -39,15 +39,15 @@ export default class BuildInBox {
39
39
  private _defaultBox;
40
40
  constructor(variables: BuiltInVariables, errorListener: TccErrorListener);
41
41
  box({ x }: {
42
- x?: Box;
43
- }): Box | undefined;
42
+ x?: IDrawComponent;
43
+ }): IDrawComponent | undefined;
44
44
  new(args: IBoxArgs, posStr: string, paramNames: string[]): IDrawComponent;
45
45
  private _parameterHandle;
46
46
  private _preVerfiyArgs;
47
47
  private _paramVerfiyHandle;
48
48
  private _verfiyArgs;
49
49
  private _paramVerfiy;
50
- updateId(box: Box): string;
50
+ updateId(box: IDrawComponent): string;
51
51
  copy({ id }: VBoxArgs, posStr: string): IDrawComponent | undefined;
52
52
  delete({ id }: VBoxArgs, posStr: string): void;
53
53
  get_top({ id }: VBoxArgs, posStr: string): any;
@@ -77,49 +77,4 @@ export default class BuildInBox {
77
77
  private _getBox;
78
78
  }
79
79
  export declare function createBox(key: string, data: IKeyObjectValue): IDrawComponent;
80
- export declare class Box {
81
- private _id;
82
- private _variables;
83
- private _errorListener;
84
- _suffix: string;
85
- _preId: string;
86
- private _data;
87
- constructor(variables: BuiltInVariables, key: string, errorListener: TccErrorListener, data: IKeyObjectValue);
88
- get type(): VType;
89
- get id(): string;
90
- set id(key: string);
91
- get preId(): string;
92
- set preId(key: string);
93
- updateId(): string;
94
- set data(data: IKeyObjectValue);
95
- get data(): IKeyObjectValue;
96
- copy(posStr: string): IDrawComponent;
97
- delete(posStr: string): void;
98
- get_top(posStr: string): any;
99
- set_top({ top }: IBoxArgs, posStr: string): void;
100
- get_left(posStr: string): any;
101
- set_left({ left }: IBoxArgs, posStr: string): void;
102
- set_text({ text }: IBoxArgs, posStr: string): void;
103
- get_right(posStr: string): any;
104
- set_right({ right }: IBoxArgs, posStr: string): void;
105
- get_bottom(posStr: string): any;
106
- set_bottom({ bottom }: IBoxArgs, posStr: string): void;
107
- set_extend({ extend }: IBoxArgs, posStr: string): void;
108
- set_bgcolor({ color }: IBoxArgs, posStr: string): void;
109
- set_lefttop({ left, top }: IBoxArgs, posStr: string): void;
110
- set_text_size({ text_size }: IBoxArgs, posStr: string): void;
111
- set_text_wrap({ text_wrap }: IBoxArgs, posStr: string): void;
112
- set_text_color({ text_color }: IBoxArgs, posStr: string): void;
113
- set_rightbottom({ right, bottom }: IBoxArgs, posStr: string): void;
114
- set_text_halign({ text_halign }: IBoxArgs, posStr: string): void;
115
- set_text_valign({ text_valign }: IBoxArgs, posStr: string): void;
116
- set_top_left_point({ point }: IBoxArgs, posStr: string): void;
117
- set_border_color({ color }: IBoxArgs, posStr: string): void;
118
- set_border_style({ style }: IBoxArgs, posStr: string): void;
119
- set_border_width({ width }: IBoxArgs, posStr: string): void;
120
- set_bottom_right_point({ point }: IBoxArgs, posStr: string): void;
121
- set_text_font_family({ text_font_family }: IBoxArgs, posStr: string): void;
122
- private _paramVerfiy;
123
- private _getBox;
124
- }
125
80
  export {};
@@ -1,7 +1,7 @@
1
1
  import { BuiltInVariables } from "../buildInVariables";
2
2
  import { VInsType } from "../enum";
3
3
  interface IChartPointArgs {
4
- id?: Point;
4
+ id?: IPoint;
5
5
  price?: number;
6
6
  time?: number;
7
7
  index?: number;
@@ -9,11 +9,11 @@ interface IChartPointArgs {
9
9
  export default class ChartPoint {
10
10
  private _variables;
11
11
  constructor(variables: BuiltInVariables);
12
- new({ price, time, index }: IChartPointArgs): Point;
13
- now({ price }: IChartPointArgs): Point;
12
+ new({ price, time, index }: IChartPointArgs): IPoint;
13
+ now({ price }: IChartPointArgs): IPoint;
14
14
  copy({ id }: IChartPointArgs): IPoint | undefined;
15
- from_index({ price, index }: IChartPointArgs): Point;
16
- from_time({ price, time }: IChartPointArgs): Point;
15
+ from_index({ price, index }: IChartPointArgs): IPoint;
16
+ from_time({ price, time }: IChartPointArgs): IPoint;
17
17
  }
18
18
  export interface IPoint {
19
19
  price?: number;
@@ -23,17 +23,4 @@ export interface IPoint {
23
23
  typeName: string;
24
24
  }
25
25
  export declare function createPoint(price?: number, index?: number, time?: number): IPoint;
26
- declare class Point {
27
- private _index?;
28
- private _price?;
29
- private _time?;
30
- constructor(price?: number, index?: number, time?: number);
31
- get index(): number | undefined;
32
- set index(index: number | undefined);
33
- get price(): number | undefined;
34
- set price(price: number | undefined);
35
- get time(): number | undefined;
36
- set time(time: number | undefined);
37
- copy(): Point;
38
- }
39
26
  export {};
@@ -8,12 +8,12 @@ import BuildInTimeframe from "./timeframe";
8
8
  import BuildInStr from "./string";
9
9
  import BuildInMap from "./map";
10
10
  import ChartPoint, { createPoint, IPoint } from "./chartPoint";
11
- import BuildInLabel, { PartialLabelArgs, Label } from "./label";
12
- import BuildInPolyline, { IPolyline, Polyline } from "./polyline";
13
- import BuildInLine, { ILineArgs, Line, ILine } from "./line";
14
- import BuildInLinefill, { TLinefill, Linefill, ILinefill } from "./linefill";
15
- import BuildInBox, { IBoxArgs, Box } from "./box";
16
- import BuildInTable, { ITableArgs, Table } from "./table";
11
+ import BuildInLabel, { PartialLabelArgs } from "./label";
12
+ import BuildInPolyline, { IPolyline } from "./polyline";
13
+ import BuildInLine, { ILineArgs, ILine } from "./line";
14
+ import BuildInLinefill, { TLinefill, ILinefill } from "./linefill";
15
+ import BuildInBox, { IBoxArgs } from "./box";
16
+ import BuildInTable, { ITableArgs } from "./table";
17
17
  import Strategy, { IOrder, IStrategy } from './strategy';
18
18
  import Request from './request';
19
19
  import Syminfo from './syminfo';
@@ -21,5 +21,5 @@ import { Log } from './log';
21
21
  import { Runtime } from './runtime';
22
22
  export { TccErrorListener } from './errorListener';
23
23
  export type { IColorArgs } from './color';
24
- export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, createPoint, BuildInTimeframe, BuildInStr, BuildInMap, createPseudoArray, BuildInLabel, BuildInPolyline, BuildInLine, Label, Polyline, Line, BuildInLinefill, Linefill, BuildInBox, Box, BuildInTable, Table, Log, Runtime, Strategy, Request, Syminfo };
24
+ export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, createPoint, BuildInTimeframe, BuildInStr, BuildInMap, createPseudoArray, BuildInLabel, BuildInPolyline, BuildInLine, BuildInLinefill, BuildInBox, BuildInTable, Log, Runtime, Strategy, Request, Syminfo };
25
25
  export type { PartialLabelArgs, IPolyline, ILineArgs, TLinefill, ILinefill, IBoxArgs, ITableArgs, IOrder, IStrategy, IPoint, ILine };
@@ -30,6 +30,7 @@ declare class Input {
30
30
  private _errorListener;
31
31
  private _historyInputs;
32
32
  private _name;
33
+ private _newCacheData;
33
34
  constructor(variables: BuiltInVariables, errorListener: TccErrorListener, id: string);
34
35
  get _inputCacheData(): ICacheData;
35
36
  set _inputCacheData(data: ICacheData);
@@ -1,6 +1,6 @@
1
1
  import { IKeyObjectValue } from "../../type";
2
2
  import { BuiltInVariables } from "../buildInVariables";
3
- import { VLabelStyle, VSize, VText, VType, VXloc, VYloc } from "../enum";
3
+ import { VLabelStyle, VSize, VText, VXloc, VYloc } from "../enum";
4
4
  import { IDrawComponent } from "../type";
5
5
  import { IPoint as Point, TccErrorListener } from "./index";
6
6
  interface ILabelArgs {
@@ -37,8 +37,8 @@ export default class BuildInLabel {
37
37
  private _paramVerfiy;
38
38
  updateId(id: IDrawComponent): string;
39
39
  label(args: {
40
- x?: Label;
41
- }): Label | undefined;
40
+ x?: IDrawComponent;
41
+ }): IDrawComponent | undefined;
42
42
  copy({ id }: TLabelArgs, posStr: string): IDrawComponent | undefined;
43
43
  get_x({ id }: TLabelArgs, posStr: string): any;
44
44
  get_y({ id }: TLabelArgs, posStr: string): any;
@@ -61,40 +61,4 @@ export default class BuildInLabel {
61
61
  private _getLabel;
62
62
  }
63
63
  export declare function createLabel(key: string, data: IKeyObjectValue): IDrawComponent;
64
- export declare class Label {
65
- private _id;
66
- private _variables;
67
- private _errorListener;
68
- private _suffix;
69
- private _preId;
70
- private _data;
71
- constructor(key: string, variables: BuiltInVariables, errorListener: TccErrorListener, data: IKeyObjectValue);
72
- get type(): VType;
73
- get id(): string;
74
- get preId(): string;
75
- updateId(): string;
76
- set data(data: IKeyObjectValue);
77
- get data(): IKeyObjectValue;
78
- copy(posStr: string): IDrawComponent;
79
- get_x(posStr: string): any;
80
- get_y(posStr: string): any;
81
- set_x({ x }: PartialLabelArgs, posStr: string): void;
82
- set_y({ y }: PartialLabelArgs, posStr: string): void;
83
- delete(posStr: string): void;
84
- set_xy({ x, y }: PartialLabelArgs, posStr: string): void;
85
- get_text(posStr: string): any;
86
- set_size({ size }: PartialLabelArgs, posStr: string): void;
87
- set_text({ text }: PartialLabelArgs, posStr: string): void;
88
- set_xloc({ x, xloc }: PartialLabelArgs, posStr: string): void;
89
- set_yloc({ yloc }: PartialLabelArgs, posStr: string): void;
90
- set_color(args: PartialLabelArgs, posStr: string): void;
91
- set_point({ point }: PartialLabelArgs, posStr: string): void;
92
- set_style({ style }: PartialLabelArgs, posStr: string): void;
93
- set_tooltip({ tooltip }: PartialLabelArgs, posStr: string): void;
94
- set_textalign({ textalign }: PartialLabelArgs, posStr: string): void;
95
- set_textcolor(args: PartialLabelArgs, posStr: string): void;
96
- set_text_font_family({ text_font_family }: PartialLabelArgs, posStr: string): void;
97
- private _paramVerfiy;
98
- private _getLabel;
99
- }
100
64
  export {};
@@ -1,6 +1,6 @@
1
1
  import { IKeyObjectValue } from "../../type";
2
2
  import { BuiltInVariables } from "../buildInVariables";
3
- import { VExtend, VLineStyle, VType, VXloc } from "../enum";
3
+ import { VExtend, VLineStyle, VXloc } from "../enum";
4
4
  import { IDrawComponent } from "../type";
5
5
  import { IPoint as Point, TccErrorListener } from "./index";
6
6
  export interface ILineArgs {
@@ -41,8 +41,8 @@ export default class BuildInLine {
41
41
  static __setFillKeys(id: ILine, key: string): void;
42
42
  static __updateFillKeys(id: ILine, oldKey: string, key: string): void;
43
43
  line(args: {
44
- x?: Line;
45
- }): Line | undefined;
44
+ x?: ILine;
45
+ }): ILine | undefined;
46
46
  copy({ id }: LineArgs, posStr: string): ILine | undefined;
47
47
  delete({ id }: LineArgs, posStr: string): void;
48
48
  get_x1({ id }: LineArgs, posStr: string): any;
@@ -69,46 +69,4 @@ export interface ILine extends IDrawComponent {
69
69
  fillKeys: string[];
70
70
  }
71
71
  export declare function createLine(key: string, data: IKeyObjectValue): ILine;
72
- export declare class Line {
73
- private _variables;
74
- private _id;
75
- private _suffix;
76
- private _errorListener;
77
- private _fillKeys;
78
- private _preId;
79
- private _data;
80
- constructor(key: string, variables: BuiltInVariables, errorListener: TccErrorListener, data: IKeyObjectValue);
81
- get id(): string;
82
- get __fillKeys(): string[];
83
- __setFillKeys(key: string): void;
84
- __updateFillKeys(oldKey: string, key: string): void;
85
- get preId(): string;
86
- updateId(): string;
87
- get type(): VType;
88
- set data(data: IKeyObjectValue);
89
- get data(): IKeyObjectValue;
90
- get originData(): IKeyObjectValue;
91
- copy(posStr: string): ILine;
92
- delete(posStr: string): void;
93
- get_price({ x }: ILineArgs, posStr: string): any;
94
- get_x1(posStr: string): any;
95
- get_x2(posStr: string): any;
96
- get_y1(posStr: string): any;
97
- get_y2(posStr: string): any;
98
- set_x1({ x }: ILineArgs, posStr: string): void;
99
- set_x2({ x }: ILineArgs, posStr: string): void;
100
- set_y1({ y }: ILineArgs, posStr: string): void;
101
- set_y2({ y }: ILineArgs, posStr: string): void;
102
- set_xy1({ x, y }: ILineArgs, posStr: string): void;
103
- set_xy2({ x, y }: ILineArgs, posStr: string): void;
104
- set_xloc({ xloc, x1, x2 }: ILineArgs, posStr: string): void;
105
- set_color(args: ILineArgs, posStr: string): void;
106
- set_style({ style }: ILineArgs, posStr: string): void;
107
- set_width({ width }: ILineArgs, posStr: string): void;
108
- set_extend({ extend }: ILineArgs, posStr: string): void;
109
- set_first_point({ point }: ILineArgs, posStr: string): void;
110
- set_second_point({ point }: ILineArgs, posStr: string): void;
111
- private _paramVerfiy;
112
- private _getLine;
113
- }
114
72
  export {};
@@ -1,8 +1,7 @@
1
1
  import { IKeyObjectValue } from "../../type";
2
2
  import { BuiltInVariables } from "../buildInVariables";
3
- import { VType } from "../enum";
4
3
  import { IDrawComponent } from "../type";
5
- import { Line, ILineArgs, ILine } from "./line";
4
+ import { ILineArgs, ILine } from "./line";
6
5
  interface ILinefillArgs {
7
6
  id?: ILinefill;
8
7
  line1?: ILine;
@@ -32,27 +31,4 @@ export interface ILinefill extends IDrawComponent {
32
31
  lineKey: string;
33
32
  }
34
33
  export declare function createLinefill(key: string, data: IKeyObjectValue, lineKey: string, line1?: ILine, line2?: ILine): ILinefill;
35
- export declare class Linefill {
36
- private _id;
37
- private _line1?;
38
- private _line2?;
39
- private _variables;
40
- private _suffix?;
41
- private _preId;
42
- private _data;
43
- constructor(variables: BuiltInVariables, key: string, data: IKeyObjectValue, line1?: Line, line2?: Line);
44
- get type(): VType;
45
- get id(): string;
46
- get preId(): string;
47
- updateId(): string;
48
- set data(data: IKeyObjectValue);
49
- get data(): IKeyObjectValue;
50
- linefill(args: {
51
- x?: Linefill;
52
- }): Linefill | undefined;
53
- delete(): void;
54
- get_line1(): Line | undefined;
55
- get_line2(): Line | undefined;
56
- set_color(args: ILinefillArgs): void;
57
- }
58
34
  export {};
@@ -19,6 +19,14 @@ export declare class Log {
19
19
  private _str;
20
20
  private _preBar;
21
21
  constructor(variables: BuiltInVariables, str: BuildInStr);
22
+ get _logCacheData(): {
23
+ barIndex: number;
24
+ isrealtime: boolean;
25
+ };
26
+ set _logCacheData(data: {
27
+ barIndex: number;
28
+ isrealtime: boolean;
29
+ });
22
30
  get logs(): ILog[];
23
31
  clearLogForIndex(index: number): void;
24
32
  clearLogs(): void;
@@ -1,3 +1,4 @@
1
+ import { IKeyObjectValue } from "../../type";
1
2
  interface IMathArgs {
2
3
  number?: number;
3
4
  angle?: number;
@@ -13,11 +14,12 @@ interface IMathArgs {
13
14
  degrees?: number;
14
15
  }
15
16
  export default class BuildInMath {
16
- private _randomNums;
17
17
  private _mintick;
18
18
  private _cacheData;
19
19
  private _barIndex;
20
20
  constructor(mintick: number);
21
+ get _mathCacheData(): IKeyObjectValue;
22
+ set _mathCacheData(val: IKeyObjectValue);
21
23
  update(barIndex: number): void;
22
24
  abs({ number }: IMathArgs): number;
23
25
  acos({ angle }: IMathArgs): number;
@@ -35,7 +37,7 @@ export default class BuildInMath {
35
37
  max(_: IMathArgs, numbers: number[]): number | undefined;
36
38
  min(_: IMathArgs, numbers: number[]): number | undefined;
37
39
  pow({ base, exponent }: IMathArgs): number;
38
- random({ min, max, seed }: IMathArgs): string | number;
40
+ random({ min, max, seed }: IMathArgs): number;
39
41
  round({ number, precision }: IMathArgs): number;
40
42
  round_to_mintick({ number }: IMathArgs): number;
41
43
  sign({ number }: IMathArgs): number | undefined;
@@ -1,6 +1,6 @@
1
1
  import { TccErrorListener } from "./index";
2
2
  import { BuiltInVariables } from "../buildInVariables";
3
- import { VLineStyle, VType, VXloc } from "../enum";
3
+ import { VLineStyle, VXloc } from "../enum";
4
4
  import { IDrawComponent } from "../type";
5
5
  import { IKeyObjectValue } from "../../type";
6
6
  export interface IPolyline {
@@ -15,7 +15,7 @@ export interface IPolyline {
15
15
  line_width?: number;
16
16
  }
17
17
  type TPolylineArgs = Omit<IPolyline, 'id'> & {
18
- id: Polyline;
18
+ id: IDrawComponent;
19
19
  };
20
20
  export default class BuildInPolyline {
21
21
  private _variables;
@@ -29,19 +29,4 @@ export default class BuildInPolyline {
29
29
  delete({ id }: TPolylineArgs): void;
30
30
  }
31
31
  export declare function createPolyline(key: string, data: IKeyObjectValue): IDrawComponent;
32
- export declare class Polyline {
33
- private _id;
34
- private _variables;
35
- private _suffix?;
36
- private _preId;
37
- private _data;
38
- constructor(key: string, variables: BuiltInVariables, data: IKeyObjectValue);
39
- get type(): VType;
40
- get id(): string;
41
- get preId(): string;
42
- updateId(): string;
43
- set data(data: IKeyObjectValue);
44
- get data(): IKeyObjectValue;
45
- delete(): void;
46
- }
47
32
  export {};
@@ -35,6 +35,7 @@ export interface IStrategy {
35
35
  use_bar_magnifier?: boolean;
36
36
  fill_orders_on_standard_ohlc?: boolean;
37
37
  max_polylines_count?: number;
38
+ scriptType?: string;
38
39
  }
39
40
  interface IArgs {
40
41
  value?: number;
@@ -1,6 +1,6 @@
1
1
  import { IKeyObjectValue } from "../../type";
2
2
  import { BuiltInVariables } from "../buildInVariables";
3
- import { VPosition, VSize, VText, VType } from "../enum";
3
+ import { VPosition, VSize, VText } from "../enum";
4
4
  import { IDrawComponent } from "../type";
5
5
  import { TccErrorListener } from "./errorListener";
6
6
  export interface ITableArgs {
@@ -52,8 +52,8 @@ export default class BuildInTable {
52
52
  private _defaultTable;
53
53
  constructor(variables: BuiltInVariables, errorListener: TccErrorListener);
54
54
  table({ x }: {
55
- x?: Table;
56
- }): Table | undefined;
55
+ x?: IDrawComponent;
56
+ }): IDrawComponent | undefined;
57
57
  new(args: ITableArgs, posStr: string): IDrawComponent;
58
58
  private _paramVerfiy;
59
59
  updateId(id: IDrawComponent): string;
@@ -83,44 +83,4 @@ export default class BuildInTable {
83
83
  private _rowColToInt;
84
84
  }
85
85
  export declare function createTable(key: string, data: IKeyObjectValue): IDrawComponent;
86
- export declare class Table {
87
- private _id;
88
- private _variables;
89
- private _errorListener;
90
- private _suffix;
91
- private _preId;
92
- private _defaultCell;
93
- private _data;
94
- constructor(variables: BuiltInVariables, key: string, errorListener: TccErrorListener, data: IKeyObjectValue);
95
- get type(): VType;
96
- get id(): string;
97
- get preId(): string;
98
- set data(data: IKeyObjectValue);
99
- updateId(): string;
100
- get data(): IKeyObjectValue;
101
- cell(args: ITableCellArgs, posStr: string): void;
102
- cell_set_bgcolor({ column, row, bgcolor }: ITableCellArgs, posStr: string): void;
103
- cell_set_height({ column, row, height }: ITableCellArgs, posStr: string): void;
104
- cell_set_text({ column, row, text }: ITableCellArgs, posStr: string): void;
105
- cell_set_text_color({ column, row, text_color }: ITableCellArgs, posStr: string): void;
106
- cell_set_text_font_family({ column, row, text_font_family }: ITableCellArgs, posStr: string): void;
107
- cell_set_text_halign({ column, row, text_halign }: ITableCellArgs, posStr: string): void;
108
- cell_set_text_valign({ column, row, text_valign }: ITableCellArgs, posStr: string): void;
109
- cell_set_text_size({ column, row, text_size }: ITableCellArgs, posStr: string): void;
110
- cell_set_tooltip({ column, row, tooltip }: ITableCellArgs, posStr: string): void;
111
- cell_set_width({ column, row, width }: ITableCellArgs, posStr: string): void;
112
- clear({ start_column, start_row, end_column, end_row }: ITableArgs, posStr: string): void;
113
- delete(posStr: string): void;
114
- merge_cells({ start_column, start_row, end_column, end_row }: ITableArgs, posStr: string): void;
115
- set_bgcolor({ bgcolor }: ITableArgs, posStr: string): void;
116
- set_border_color({ border_color }: ITableArgs, posStr: string): void;
117
- set_border_width({ border_width }: ITableArgs, posStr: string): void;
118
- set_frame_color({ frame_color }: ITableArgs, posStr: string): void;
119
- set_frame_width({ frame_width }: ITableArgs, posStr: string): void;
120
- set_position({ position }: ITableArgs, posStr: string): void;
121
- private _paramVerfiy;
122
- private _getTableItem;
123
- private _getTable;
124
- private _verfiyRequestFunc;
125
- }
126
86
  export {};
@@ -1,3 +1,4 @@
1
+ import { IKeyObjectValue } from "../../type";
1
2
  export declare class Barstate {
2
3
  private _isMarketOpen;
3
4
  private _currentBarIndex;
@@ -8,6 +9,8 @@ export declare class Barstate {
8
9
  private _isFirstRun;
9
10
  constructor();
10
11
  update(currentBarIndex: number, totalBarIndex: number, isRealTimeBar: boolean, isMarketOpen: boolean): void;
12
+ get _barstateCacheData(): IKeyObjectValue;
13
+ set _barstateCacheData(val: IKeyObjectValue);
11
14
  set isFirstRun(status: boolean);
12
15
  get isnew(): boolean;
13
16
  get islast(): boolean;
@@ -1,17 +1,15 @@
1
1
  import { IKeyObjectValue } from '../type';
2
- export declare function runScript(strJs: string, options: IKeyObjectValue, isNew: boolean): Promise<{
2
+ interface IRunResult {
3
3
  status: number;
4
- errors: any;
5
- requestList?: undefined;
6
- options?: undefined;
7
- } | {
8
- status: number;
9
- requestList: any[];
10
- errors: any;
11
- options: any;
12
- }>;
4
+ errors: any[];
5
+ requestList?: any[];
6
+ cacheData?: any;
7
+ options?: any;
8
+ }
9
+ export declare function runScript(strJs: string, options: IKeyObjectValue, isNew: boolean): Promise<IRunResult>;
13
10
  export declare function removeScript(id: string): void;
14
11
  export interface IScriptWorker {
15
12
  runScript: typeof runScript;
16
13
  removeScript: typeof removeScript;
17
14
  }
15
+ export {};
@@ -69153,14 +69153,14 @@ function br(a, s, r) {
69153
69153
  function zw() {
69154
69154
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
69155
69155
  }
69156
- const Sd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-B3YGZcpj.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
69156
+ const Sd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-Ct4teHQd.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
69157
69157
  Sd.onerror = (a) => {
69158
69158
  console.error(a);
69159
69159
  };
69160
69160
  async function Nd(a) {
69161
69161
  return await wn.setInlayHints(a);
69162
69162
  }
69163
- const zd = xo(Sd), Ed = xo(new Worker(new URL("" + new URL("assets/parserTccWorker-COjudqMh.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
69163
+ const zd = xo(Sd), Ed = xo(new Worker(new URL("" + new URL("assets/parserTccWorker-BLvyJFUz.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
69164
69164
  async function Ew(a, s = !1) {
69165
69165
  const { functions: r, types: n, constants: o, variables: l, methods: c } = dt;
69166
69166
  return await Ed.parseTcc(a, s, ho(Nd), { functions: Object.fromEntries(r), methods: Object.fromEntries(c), types: Object.fromEntries(n), constants: Object.fromEntries(o), variables: Object.fromEntries(l) });