@guihz/trading-vue-editor-tes 0.0.8 → 0.0.10
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/editor.worker-CT5Cb1wO.js +11 -0
- package/lib/assets/{parserTccWorker-Bti5p29_.js → parserTccWorker-cXJaK8VI.js} +18 -17
- package/lib/assets/scriptsRunWorker-Bx4RsHhS.js +66 -0
- package/lib/components/editor/index.d.ts +5 -0
- package/lib/components/editor/parseScript/buildInConstants.d.ts +51 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/box.d.ts +99 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/chartPoint.d.ts +27 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/index.d.ts +11 -1
- package/lib/components/editor/parseScript/buildInFuncNamespace/label.d.ts +77 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/line.d.ts +81 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/linefill.d.ts +37 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/log.d.ts +24 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/polyline.d.ts +31 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/runtime.d.ts +10 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/strategy.d.ts +95 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/ta.d.ts +3 -3
- package/lib/components/editor/parseScript/buildInFuncNamespace/table.d.ts +94 -0
- package/lib/components/editor/parseScript/constants.d.ts +16 -0
- package/lib/components/editor/parseScript/type.d.ts +1 -0
- package/lib/components/editor/parseScript/visitorParser.d.ts +1 -0
- package/lib/components/editor/parseScript/workerStorage.d.ts +0 -4
- package/lib/components/editor/type/index.d.ts +2 -0
- package/lib/components/editor/utils/initEditor.d.ts +4 -0
- package/lib/trading-vue-editor.js +3856 -3519
- package/lib/trading-vue-editor.umd.cjs +39 -39
- package/package.json +1 -1
- package/lib/assets/scriptsRunWorker-DvC1lFMR.js +0 -66
- package/lib/components/editor/parseScript/buildInVariables.d.ts +0 -124
@@ -0,0 +1,94 @@
|
|
1
|
+
import { BuiltInVariables } from "../buildInVariables";
|
2
|
+
import { VPosition, VSize, VText } from "../enum";
|
3
|
+
export interface ITableArgs {
|
4
|
+
id?: string;
|
5
|
+
table_id?: Table;
|
6
|
+
position?: VPosition;
|
7
|
+
columns?: number;
|
8
|
+
rows?: number;
|
9
|
+
bgcolor?: string;
|
10
|
+
frame_color?: string;
|
11
|
+
frame_width?: number;
|
12
|
+
border_color?: string;
|
13
|
+
border_width?: number;
|
14
|
+
cell?: (ITableCellArgs | undefined)[][];
|
15
|
+
start_column?: number;
|
16
|
+
start_row?: number;
|
17
|
+
end_column?: number;
|
18
|
+
end_row?: number;
|
19
|
+
}
|
20
|
+
interface ITableCellArgs {
|
21
|
+
table_id?: Table;
|
22
|
+
column?: number;
|
23
|
+
row?: number;
|
24
|
+
text?: string;
|
25
|
+
width?: number;
|
26
|
+
height?: number;
|
27
|
+
text_color?: string;
|
28
|
+
text_halign?: VText;
|
29
|
+
text_valign?: VText;
|
30
|
+
text_size?: VSize;
|
31
|
+
bgcolor?: string;
|
32
|
+
tooltip?: string;
|
33
|
+
text_font_family?: string;
|
34
|
+
isMerge?: boolean;
|
35
|
+
merge_columns?: number;
|
36
|
+
merge_rows?: number;
|
37
|
+
}
|
38
|
+
export default class BuildInTable {
|
39
|
+
private _variables;
|
40
|
+
private _defaultTable;
|
41
|
+
constructor(variables: BuiltInVariables);
|
42
|
+
table({ x }: {
|
43
|
+
x?: Table;
|
44
|
+
}, posStr: string): Table;
|
45
|
+
new(args: ITableArgs, posStr: string): Table;
|
46
|
+
cell({ table_id, ...args }: ITableCellArgs): void;
|
47
|
+
cell_set_bgcolor({ table_id, ...args }: ITableCellArgs): void;
|
48
|
+
cell_set_height({ table_id, ...args }: ITableCellArgs): void;
|
49
|
+
cell_set_text({ table_id, ...args }: ITableCellArgs): void;
|
50
|
+
cell_set_text_color({ table_id, ...args }: ITableCellArgs): void;
|
51
|
+
cell_set_text_font_family({ table_id, ...args }: ITableCellArgs): void;
|
52
|
+
cell_set_text_halign({ table_id, ...args }: ITableCellArgs): void;
|
53
|
+
cell_set_text_valign({ table_id, ...args }: ITableCellArgs): void;
|
54
|
+
cell_set_text_size({ table_id, ...args }: ITableCellArgs): void;
|
55
|
+
cell_set_tooltip({ table_id, ...args }: ITableCellArgs): void;
|
56
|
+
cell_set_width({ table_id, ...args }: ITableCellArgs): void;
|
57
|
+
clear({ table_id, ...args }: ITableArgs): void;
|
58
|
+
delete({ table_id }: ITableArgs): void;
|
59
|
+
merge_cells({ table_id, ...args }: ITableArgs, posStr: string): void;
|
60
|
+
set_bgcolor({ table_id, ...args }: ITableArgs): void;
|
61
|
+
set_border_color({ table_id, ...args }: ITableArgs): void;
|
62
|
+
set_border_width({ table_id, ...args }: ITableArgs): void;
|
63
|
+
set_frame_color({ table_id, ...args }: ITableArgs): void;
|
64
|
+
set_frame_width({ table_id, ...args }: ITableArgs): void;
|
65
|
+
set_position({ table_id, ...args }: ITableArgs): void;
|
66
|
+
}
|
67
|
+
export declare class Table {
|
68
|
+
private _id;
|
69
|
+
private _variables;
|
70
|
+
private _defaultCell;
|
71
|
+
constructor(variables: BuiltInVariables, key: string);
|
72
|
+
cell(args: ITableCellArgs): void;
|
73
|
+
cell_set_bgcolor({ column, row, bgcolor }: ITableCellArgs): void;
|
74
|
+
cell_set_height({ column, row, height }: ITableCellArgs): void;
|
75
|
+
cell_set_text({ column, row, text }: ITableCellArgs): void;
|
76
|
+
cell_set_text_color({ column, row, text_color }: ITableCellArgs): void;
|
77
|
+
cell_set_text_font_family({ column, row, text_font_family }: ITableCellArgs): void;
|
78
|
+
cell_set_text_halign({ column, row, text_halign }: ITableCellArgs): void;
|
79
|
+
cell_set_text_valign({ column, row, text_valign }: ITableCellArgs): void;
|
80
|
+
cell_set_text_size({ column, row, text_size }: ITableCellArgs): void;
|
81
|
+
cell_set_tooltip({ column, row, tooltip }: ITableCellArgs): void;
|
82
|
+
cell_set_width({ column, row, width }: ITableCellArgs): void;
|
83
|
+
clear({ start_column, start_row, end_column, end_row }: ITableArgs): void;
|
84
|
+
delete(): void;
|
85
|
+
merge_cells({ start_column, start_row, end_column, end_row }: ITableArgs, posStr: string): void;
|
86
|
+
set_bgcolor({ bgcolor }: ITableArgs): void;
|
87
|
+
set_border_color({ border_color }: ITableArgs): void;
|
88
|
+
set_border_width({ border_width }: ITableArgs): void;
|
89
|
+
set_frame_color({ frame_color }: ITableArgs): void;
|
90
|
+
set_frame_width({ frame_width }: ITableArgs): void;
|
91
|
+
set_position({ position }: ITableArgs): void;
|
92
|
+
private _getTableItem;
|
93
|
+
}
|
94
|
+
export {};
|
@@ -40,6 +40,8 @@ export declare const ERRORS_TIPS: {
|
|
40
40
|
globalFuncErr: string;
|
41
41
|
onlyStatementErr: string;
|
42
42
|
modifyGlobalVarErr: string;
|
43
|
+
inputDefvalErr: string;
|
44
|
+
objectIsNaErr: string;
|
43
45
|
};
|
44
46
|
export declare const WARNING_TIPS: {
|
45
47
|
repeatVar: string;
|
@@ -55,3 +57,17 @@ export declare const ONLY_STATEMENTS: string[];
|
|
55
57
|
export declare const GLOBAL_FUNCS: string[];
|
56
58
|
export declare const NAMESPACE_CALL_SELF_FUNCS: string[];
|
57
59
|
export declare const SOURCE_TYPE_BUILTIN: string[];
|
60
|
+
export declare const READY_ONLY_OPTIONS: {
|
61
|
+
domReadOnly: boolean;
|
62
|
+
scrollBeyondLastLine: boolean;
|
63
|
+
readOnly: boolean;
|
64
|
+
minimap: {
|
65
|
+
enabled: boolean;
|
66
|
+
};
|
67
|
+
scrollbar: {
|
68
|
+
vertical: string;
|
69
|
+
horizontal: string;
|
70
|
+
alwaysConsumeMouseWheel: boolean;
|
71
|
+
};
|
72
|
+
contextmenu: boolean;
|
73
|
+
};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { IKeyObjectValue } from "../type";
|
2
2
|
export declare class WorkerStorage {
|
3
3
|
private _cache;
|
4
|
-
private _data;
|
5
4
|
constructor();
|
6
5
|
set(key: string, value: IKeyObjectValue): void;
|
7
6
|
setValue(mapKey: string, valKey: string, value: IKeyObjectValue): void;
|
@@ -10,7 +9,4 @@ export declare class WorkerStorage {
|
|
10
9
|
has(key: string): boolean;
|
11
10
|
delete(key: string): void;
|
12
11
|
clear(): void;
|
13
|
-
setData(data: IKeyObjectValue[]): void;
|
14
|
-
updateData(data: IKeyObjectValue[]): void;
|
15
|
-
getData(startIndex?: number, endIndex?: number): IKeyObjectValue[];
|
16
12
|
}
|
@@ -48,6 +48,7 @@ export interface IDocValue {
|
|
48
48
|
isForVar?: boolean;
|
49
49
|
hasMemberIndex?: boolean;
|
50
50
|
declare?: string;
|
51
|
+
valueType?: string;
|
51
52
|
}
|
52
53
|
export interface IDetailedDesc {
|
53
54
|
desc: string[];
|
@@ -60,6 +61,7 @@ export interface IField {
|
|
60
61
|
originName?: string;
|
61
62
|
isArg?: boolean;
|
62
63
|
isVarip?: boolean;
|
64
|
+
valueType?: string;
|
63
65
|
}
|
64
66
|
export interface IArg {
|
65
67
|
name: string;
|
@@ -11,6 +11,10 @@ export default class InitEditor {
|
|
11
11
|
removeDiffDecorations(): void;
|
12
12
|
setValue(val: string): void;
|
13
13
|
saveScripts(): void;
|
14
|
+
getEditorLayout(): {
|
15
|
+
contentHeight: number;
|
16
|
+
lineCount: number | undefined;
|
17
|
+
};
|
14
18
|
private _init;
|
15
19
|
private _setCursorPosition;
|
16
20
|
private _register;
|