@guihz/trading-vue-editor-tes 0.1.18 → 0.1.20

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 (70) hide show
  1. package/lib/assets/{parserTccWorker-CXp94-Z9.js → parserTccWorker-DzdECu81.js} +24919 -43571
  2. package/lib/assets/{scriptsRunWorker-BQFRfD9L.js → scriptsRunWorker-DO_0NAgb.js} +15025 -23483
  3. package/lib/components/editor/utils/parserTccWorker.d.ts +1 -1
  4. package/lib/components/editor/v5/parseScript/buildInConstants.d.ts +0 -2
  5. package/lib/components/editor/v5/parseScript/buildInVarNamespace/strategy.d.ts +3 -0
  6. package/lib/components/editor/v5/parseScript/parseToJs.d.ts +0 -2
  7. package/lib/components/editor/v5/parserTccWorker.d.ts +1 -1
  8. package/lib/{monarchTokens-BNkQaBBZ.js → monarchTokens-D-73EVQs.js} +22 -22
  9. package/lib/packages/index.d.ts +1 -1
  10. package/lib/trading-vue-editor.es.packages.js +843 -856
  11. package/lib/trading-vue-editor.umd.packages.mjs +45 -110
  12. package/package.json +2 -2
  13. package/lib/components/editor/v6/config/monarchTokens.d.ts +0 -205
  14. package/lib/components/editor/v6/constants/contents_zh.d.ts +0 -6
  15. package/lib/components/editor/v6/constants/index.d.ts +0 -41
  16. package/lib/components/editor/v6/parseScript/buildInConstants.d.ts +0 -310
  17. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/array.d.ts +0 -109
  18. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/box.d.ts +0 -83
  19. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/chartPoint.d.ts +0 -26
  20. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/color.d.ts +0 -25
  21. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/errorListener.d.ts +0 -9
  22. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/index.d.ts +0 -25
  23. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/input.d.ts +0 -57
  24. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/label.d.ts +0 -66
  25. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/line.d.ts +0 -74
  26. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/linefill.d.ts +0 -36
  27. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/log.d.ts +0 -39
  28. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/map.d.ts +0 -51
  29. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/math.d.ts +0 -49
  30. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/matrix.d.ts +0 -98
  31. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/polyline.d.ts +0 -32
  32. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/runtime.d.ts +0 -10
  33. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategy.d.ts +0 -278
  34. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategyNew.d.ts +0 -261
  35. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/string.d.ts +0 -55
  36. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/syminfo.d.ts +0 -9
  37. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/ta.d.ts +0 -125
  38. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/table.d.ts +0 -89
  39. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/timeframe.d.ts +0 -22
  40. package/lib/components/editor/v6/parseScript/buildInVarNamespace/barstate.d.ts +0 -22
  41. package/lib/components/editor/v6/parseScript/buildInVarNamespace/chart.d.ts +0 -21
  42. package/lib/components/editor/v6/parseScript/buildInVarNamespace/dividends.d.ts +0 -8
  43. package/lib/components/editor/v6/parseScript/buildInVarNamespace/earnings.d.ts +0 -9
  44. package/lib/components/editor/v6/parseScript/buildInVarNamespace/index.d.ts +0 -9
  45. package/lib/components/editor/v6/parseScript/buildInVarNamespace/session.d.ts +0 -12
  46. package/lib/components/editor/v6/parseScript/buildInVarNamespace/strategy.d.ts +0 -144
  47. package/lib/components/editor/v6/parseScript/buildInVarNamespace/syminfo.d.ts +0 -49
  48. package/lib/components/editor/v6/parseScript/buildInVarNamespace/ta.d.ts +0 -32
  49. package/lib/components/editor/v6/parseScript/buildInVarNamespace/timeframe.d.ts +0 -16
  50. package/lib/components/editor/v6/parseScript/constants.d.ts +0 -135
  51. package/lib/components/editor/v6/parseScript/constantsRun.d.ts +0 -5
  52. package/lib/components/editor/v6/parseScript/enum.d.ts +0 -302
  53. package/lib/components/editor/v6/parseScript/parseToJs.d.ts +0 -78
  54. package/lib/components/editor/v6/parseScript/parseToLibJs.d.ts +0 -71
  55. package/lib/components/editor/v6/parseScript/strategyNamespace/closedtrades.d.ts +0 -28
  56. package/lib/components/editor/v6/parseScript/strategyNamespace/index.d.ts +0 -4
  57. package/lib/components/editor/v6/parseScript/strategyNamespace/opentrades.d.ts +0 -25
  58. package/lib/components/editor/v6/parseScript/strategyNamespace/risk.d.ts +0 -22
  59. package/lib/components/editor/v6/parseScript/type.d.ts +0 -40
  60. package/lib/components/editor/v6/parseScript/userTypeClass.d.ts +0 -12
  61. package/lib/components/editor/v6/parseScript/utils.d.ts +0 -25
  62. package/lib/components/editor/v6/parseScript/visitorParser.d.ts +0 -382
  63. package/lib/components/editor/v6/parseScript/visitorUtils.d.ts +0 -31
  64. package/lib/components/editor/v6/parserTccWorker.d.ts +0 -40
  65. package/lib/components/editor/v6/scriptsRunWorker.d.ts +0 -11
  66. package/lib/components/editor/v6/tccParser/LexerBase.d.ts +0 -19
  67. package/lib/components/editor/v6/tccParser/tccScriptParserVisitor.d.ts +0 -507
  68. package/lib/index-C8vqcsNB.js +0 -61958
  69. package/lib/monarchTokens-_UFEzBJ_.js +0 -563
  70. package/lib/{index-Clupi1hX.js → index-DLIhM_y0.js} +24 -24
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@guihz/trading-vue-editor-tes",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"
7
7
  ],
8
- "main": "./lib/trading-vue-editor.umd.packages.mjs",
8
+ "main": "./lib/trading-vue-editor.cjs.packages.mjs",
9
9
  "module": "./lib/trading-vue-editor.es.packages.js",
10
10
  "jsdelivr": "./lib/trading-vue-editor.es.packages.js",
11
11
  "unpkg": "./lib/trading-vue-editor.es.packages.js",
@@ -1,205 +0,0 @@
1
- import { languages, editor } from 'monaco-editor';
2
- export declare const LANGAGE_NAME = "tccScript";
3
- export declare const LANGUAGE_MONARCH_TOKENS: languages.IMonarchLanguage;
4
- export declare const CONFIGURATION: languages.LanguageConfiguration;
5
- export declare const COLORS: {
6
- "color-white": string;
7
- "color-black": string;
8
- "color-transparent": string;
9
- "color-cold-gray-50": string;
10
- "color-cold-gray-100": string;
11
- "color-cold-gray-150": string;
12
- "color-cold-gray-200": string;
13
- "color-cold-gray-250": string;
14
- "color-cold-gray-300": string;
15
- "color-cold-gray-350": string;
16
- "color-cold-gray-400": string;
17
- "color-cold-gray-450": string;
18
- "color-cold-gray-500": string;
19
- "color-cold-gray-550": string;
20
- "color-cold-gray-600": string;
21
- "color-cold-gray-650": string;
22
- "color-cold-gray-700": string;
23
- "color-cold-gray-750": string;
24
- "color-cold-gray-800": string;
25
- "color-cold-gray-850": string;
26
- "color-cold-gray-900": string;
27
- "color-cold-gray-950": string;
28
- "color-ripe-red-50": string;
29
- "color-ripe-red-100": string;
30
- "color-ripe-red-200": string;
31
- "color-ripe-red-300": string;
32
- "color-ripe-red-400": string;
33
- "color-ripe-red-500": string;
34
- "color-ripe-red-600": string;
35
- "color-ripe-red-700": string;
36
- "color-ripe-red-800": string;
37
- "color-ripe-red-900": string;
38
- "color-ripe-red-a100": string;
39
- "color-ripe-red-a200": string;
40
- "color-ripe-red-a400": string;
41
- "color-ripe-red-a600": string;
42
- "color-ripe-red-a700": string;
43
- "color-ripe-red-a800": string;
44
- "color-ripe-red-a900": string;
45
- "color-tan-orange-50": string;
46
- "color-tan-orange-100": string;
47
- "color-tan-orange-200": string;
48
- "color-tan-orange-300": string;
49
- "color-tan-orange-400": string;
50
- "color-tan-orange-500": string;
51
- "color-tan-orange-600": string;
52
- "color-tan-orange-700": string;
53
- "color-tan-orange-800": string;
54
- "color-tan-orange-900": string;
55
- "color-tan-orange-a200": string;
56
- "color-tan-orange-a400": string;
57
- "color-tan-orange-a600": string;
58
- "color-tan-orange-a700": string;
59
- "color-tan-orange-a800": string;
60
- "color-tan-orange-a900": string;
61
- "color-iguana-green-100": string;
62
- "color-iguana-green-200": string;
63
- "color-iguana-green-300": string;
64
- "color-iguana-green-400": string;
65
- "color-iguana-green-500": string;
66
- "color-iguana-green-600": string;
67
- "color-iguana-green-700": string;
68
- "color-iguana-green-800": string;
69
- "color-iguana-green-900": string;
70
- "color-iguana-green-a700": string;
71
- "color-banana-yellow-100": string;
72
- "color-banana-yellow-200": string;
73
- "color-banana-yellow-300": string;
74
- "color-banana-yellow-400": string;
75
- "color-banana-yellow-500": string;
76
- "color-banana-yellow-600": string;
77
- "color-banana-yellow-700": string;
78
- "color-banana-yellow-800": string;
79
- "color-banana-yellow-900": string;
80
- "color-banana-yellow-a400": string;
81
- "color-banana-yellow-a700": string;
82
- "color-tv-blue-50": string;
83
- "color-tv-blue-100": string;
84
- "color-tv-blue-200": string;
85
- "color-tv-blue-300": string;
86
- "color-tv-blue-400": string;
87
- "color-tv-blue-500": string;
88
- "color-tv-blue-600": string;
89
- "color-tv-blue-700": string;
90
- "color-tv-blue-800": string;
91
- "color-tv-blue-900": string;
92
- "color-tv-blue-a100": string;
93
- "color-tv-blue-a200": string;
94
- "color-tv-blue-a400": string;
95
- "color-tv-blue-a600": string;
96
- "color-tv-blue-a700": string;
97
- "color-tv-blue-a800": string;
98
- "color-tv-blue-a900": string;
99
- "color-deep-blue-50": string;
100
- "color-deep-blue-100": string;
101
- "color-deep-blue-200": string;
102
- "color-deep-blue-300": string;
103
- "color-deep-blue-400": string;
104
- "color-deep-blue-500": string;
105
- "color-deep-blue-700": string;
106
- "color-deep-blue-800": string;
107
- "color-deep-blue-900": string;
108
- "color-deep-blue-a100": string;
109
- "color-deep-blue-a200": string;
110
- "color-deep-blue-a400": string;
111
- "color-deep-blue-a700": string;
112
- "color-minty-green-50": string;
113
- "color-minty-green-100": string;
114
- "color-minty-green-200": string;
115
- "color-minty-green-300": string;
116
- "color-minty-green-400": string;
117
- "color-minty-green-500": string;
118
- "color-minty-green-600": string;
119
- "color-minty-green-700": string;
120
- "color-minty-green-800": string;
121
- "color-minty-green-900": string;
122
- "color-minty-green-a400": string;
123
- "color-minty-green-a600": string;
124
- "color-minty-green-a700": string;
125
- "color-minty-green-a800": string;
126
- "color-minty-green-a900": string;
127
- "color-grapes-purple-50": string;
128
- "color-grapes-purple-100": string;
129
- "color-grapes-purple-200": string;
130
- "color-grapes-purple-300": string;
131
- "color-grapes-purple-400": string;
132
- "color-grapes-purple-500": string;
133
- "color-grapes-purple-600": string;
134
- "color-grapes-purple-700": string;
135
- "color-grapes-purple-800": string;
136
- "color-grapes-purple-900": string;
137
- "color-grapes-purple-a100": string;
138
- "color-grapes-purple-a200": string;
139
- "color-grapes-purple-a400": string;
140
- "color-grapes-purple-a700": string;
141
- "color-berry-pink-100": string;
142
- "color-berry-pink-200": string;
143
- "color-berry-pink-300": string;
144
- "color-berry-pink-400": string;
145
- "color-berry-pink-500": string;
146
- "color-berry-pink-600": string;
147
- "color-berry-pink-700": string;
148
- "color-berry-pink-800": string;
149
- "color-berry-pink-900": string;
150
- "color-berry-pink-a100": string;
151
- "color-berry-pink-a200": string;
152
- "color-berry-pink-a400": string;
153
- "color-sky-blue-100": string;
154
- "color-sky-blue-200": string;
155
- "color-sky-blue-300": string;
156
- "color-sky-blue-400": string;
157
- "color-sky-blue-500": string;
158
- "color-sky-blue-600": string;
159
- "color-sky-blue-700": string;
160
- "color-sky-blue-800": string;
161
- "color-sky-blue-900": string;
162
- "color-sky-blue-a400": string;
163
- "color-sky-blue-a700": string;
164
- "color-deep-blue-600": string;
165
- "color-forest-green-50": string;
166
- "color-forest-green-100": string;
167
- "color-forest-green-200": string;
168
- "color-forest-green-300": string;
169
- "color-forest-green-400": string;
170
- "color-forest-green-500": string;
171
- "color-forest-green-600": string;
172
- "color-forest-green-700": string;
173
- "color-forest-green-800": string;
174
- "color-forest-green-900": string;
175
- "color-facebook": string;
176
- "color-deep-facebook": string;
177
- "color-twitter": string;
178
- "color-deep-twitter": string;
179
- "color-youtube": string;
180
- "color-linkedin": string;
181
- "color-seeking-alpha-brand": string;
182
- };
183
- export declare const VS: editor.IStandaloneThemeData;
184
- export declare const VS_DARK: editor.IStandaloneThemeData;
185
- export declare const QQSTRING_REG: RegExp;
186
- export declare const QSTRING_REG: RegExp;
187
- export declare const DEFAULT_COLORS: {
188
- "color.aqua": string;
189
- "color.black": string;
190
- "color.blue": string;
191
- "color.fuchsia": string;
192
- "color.gray": string;
193
- "color.green": string;
194
- "color.lime": string;
195
- "color.maroon": string;
196
- "color.navy": string;
197
- "color.olive": string;
198
- "color.orange": string;
199
- "color.purple": string;
200
- "color.red": string;
201
- "color.silver": string;
202
- "color.teal": string;
203
- "color.white": string;
204
- "color.yellow": string;
205
- };
@@ -1,6 +0,0 @@
1
- import { IDocValue } from "../../type";
2
- interface IContents {
3
- [key: string]: IDocValue[];
4
- }
5
- export declare const NEW_CONTENTS: IContents;
6
- export {};
@@ -1,41 +0,0 @@
1
- import { IDocValue, IKeyValueStr, IKeys } from '../../type';
2
- interface IKeyMaps {
3
- [key: string]: Map<string, IDocValue[]>;
4
- }
5
- export declare const SNIPPET_COMPLETIONS: {
6
- label: string;
7
- insertText: string;
8
- kind: string;
9
- }[];
10
- export declare const NOT_SHOW_KEYWORDS: string[];
11
- export declare const COMPLETE_KEYS: string[];
12
- export declare const HOVER_KEYS: string[];
13
- export declare const BUILD_IN_VALUE: IKeyValueStr;
14
- export declare const ALL_KINDS: {
15
- argument: string;
16
- keyword: string;
17
- field: string;
18
- userFunction: string;
19
- builtInFunction: string;
20
- library: string;
21
- userVariable: string;
22
- builtInVariable: string;
23
- namespace: string;
24
- operator: string;
25
- constant: string;
26
- annotation: string;
27
- userMethod: string;
28
- builtinMethod: string;
29
- userType: string;
30
- builtinType: string;
31
- };
32
- export declare const DEFAULT_DETIALS: IKeyValueStr;
33
- export declare const KEY_LIST: IKeys, KEY_MAP_LIST: IKeyMaps;
34
- export declare const MANUAL_KEYS: IKeys;
35
- export declare const CONTENT_GROUPS: {
36
- title: string;
37
- key: string;
38
- prefix: string;
39
- index: number;
40
- }[];
41
- export {};
@@ -1,310 +0,0 @@
1
- import { VPlotDisplay, VExtend, VFormatType, VHlineStyle, VLabelStyle, VLineStyle, VLocation, VSortOrder, VPlotStyle, VPosition, VAdjustment, VAlert, VBarmergeGaps, VScale, VSession, VShape, VSize, VStrategy, VCommission, VDirection, VOca, VText, VXloc, VYloc, VEarnings, VFont, VTextFormat } from './enum';
2
- export declare const COLOR_BUILD_IN: {
3
- aqua: string;
4
- black: string;
5
- blue: string;
6
- fuchsia: string;
7
- gray: string;
8
- green: string;
9
- lime: string;
10
- maroon: string;
11
- navy: string;
12
- olive: string;
13
- orange: string;
14
- purple: string;
15
- red: string;
16
- silver: string;
17
- teal: string;
18
- white: string;
19
- yellow: string;
20
- };
21
- export declare const CURRENCY_BUILD_IN: {
22
- AUD: string;
23
- BTC: string;
24
- CAD: string;
25
- CHF: string;
26
- ETH: string;
27
- EUR: string;
28
- GBP: string;
29
- HKD: string;
30
- INR: string;
31
- JPY: string;
32
- KRW: string;
33
- MYR: string;
34
- NOK: string;
35
- NONE: string;
36
- NZD: string;
37
- RUB: string;
38
- SEK: string;
39
- SGD: string;
40
- TRY: string;
41
- USD: string;
42
- USDT: string;
43
- ZAR: string;
44
- };
45
- export declare const DISPLAY_BUILD_IN: {
46
- all: VPlotDisplay[];
47
- data_window: VPlotDisplay[];
48
- none: never[];
49
- pane: VPlotDisplay[];
50
- price_scale: VPlotDisplay[];
51
- status_line: VPlotDisplay[];
52
- };
53
- export declare class BuildInConstants {
54
- adjustment: {
55
- dividends: VAdjustment;
56
- none: VAdjustment;
57
- splits: VAdjustment;
58
- };
59
- alert: {
60
- freq_all: VAlert;
61
- freq_once_per_bar: VAlert;
62
- freq_once_per_bar_close: VAlert;
63
- };
64
- barmerge: {
65
- gaps_off: VBarmergeGaps;
66
- gaps_on: VBarmergeGaps;
67
- lookahead_off: VBarmergeGaps;
68
- lookahead_on: VBarmergeGaps;
69
- };
70
- color: {
71
- aqua: string;
72
- black: string;
73
- blue: string;
74
- fuchsia: string;
75
- gray: string;
76
- green: string;
77
- lime: string;
78
- maroon: string;
79
- navy: string;
80
- olive: string;
81
- orange: string;
82
- purple: string;
83
- red: string;
84
- silver: string;
85
- teal: string;
86
- white: string;
87
- yellow: string;
88
- };
89
- currency: {
90
- AUD: string;
91
- BTC: string;
92
- CAD: string;
93
- CHF: string;
94
- ETH: string;
95
- EUR: string;
96
- GBP: string;
97
- HKD: string;
98
- INR: string;
99
- JPY: string;
100
- KRW: string;
101
- MYR: string;
102
- NOK: string;
103
- NONE: string;
104
- NZD: string;
105
- RUB: string;
106
- SEK: string;
107
- SGD: string;
108
- TRY: string;
109
- USD: string;
110
- USDT: string;
111
- ZAR: string;
112
- };
113
- dayofweek: {
114
- friday: number;
115
- monday: number;
116
- saturday: number;
117
- sunday: number;
118
- thursday: number;
119
- tuesday: number;
120
- wednesday: number;
121
- };
122
- earnings: {
123
- actual: VEarnings;
124
- estimate: VEarnings;
125
- standardized: VEarnings;
126
- };
127
- display: {
128
- all: VPlotDisplay[];
129
- data_window: VPlotDisplay[];
130
- none: never[];
131
- pane: VPlotDisplay[];
132
- price_scale: VPlotDisplay[];
133
- status_line: VPlotDisplay[];
134
- };
135
- extend: {
136
- both: VExtend;
137
- left: VExtend;
138
- none: VExtend;
139
- right: VExtend;
140
- };
141
- font: {
142
- family_default: VFont;
143
- family_monospace: VFont;
144
- };
145
- format: {
146
- inherit: VFormatType;
147
- mintick: VFormatType;
148
- percent: VFormatType;
149
- price: VFormatType;
150
- volume: VFormatType;
151
- };
152
- hline: {
153
- style_solid: VHlineStyle;
154
- style_dashed: VHlineStyle;
155
- style_dotted: VHlineStyle;
156
- };
157
- label: {
158
- style_arrowdown: VLabelStyle;
159
- style_arrowup: VLabelStyle;
160
- style_circle: VLabelStyle;
161
- style_cross: VLabelStyle;
162
- style_diamond: VLabelStyle;
163
- style_flag: VLabelStyle;
164
- style_label_center: VLabelStyle;
165
- style_label_down: VLabelStyle;
166
- style_label_left: VLabelStyle;
167
- style_label_lower_left: VLabelStyle;
168
- style_label_lower_right: VLabelStyle;
169
- style_label_right: VLabelStyle;
170
- style_label_up: VLabelStyle;
171
- style_label_upper_left: VLabelStyle;
172
- style_label_upper_right: VLabelStyle;
173
- style_none: VLabelStyle;
174
- style_square: VLabelStyle;
175
- style_text_outline: VLabelStyle;
176
- style_triangledown: VLabelStyle;
177
- style_triangleup: VLabelStyle;
178
- style_xcross: VLabelStyle;
179
- };
180
- line: {
181
- style_arrow_both: VLineStyle;
182
- style_arrow_left: VLineStyle;
183
- style_arrow_right: VLineStyle;
184
- style_dashed: VLineStyle;
185
- style_dotted: VLineStyle;
186
- style_solid: VLineStyle;
187
- };
188
- location: {
189
- abovebar: VLocation;
190
- absolute: VLocation;
191
- belowbar: VLocation;
192
- bottom: VLocation;
193
- top: VLocation;
194
- };
195
- math: {
196
- e: number;
197
- phi: number;
198
- pi: number;
199
- rphi: number;
200
- };
201
- order: {
202
- ascending: VSortOrder;
203
- descending: VSortOrder;
204
- };
205
- plot: {
206
- style_area: VPlotStyle;
207
- style_areabr: VPlotStyle;
208
- style_circles: VPlotStyle;
209
- style_columns: VPlotStyle;
210
- style_cross: VPlotStyle;
211
- style_histogram: VPlotStyle;
212
- style_line: VPlotStyle;
213
- style_linebr: VPlotStyle;
214
- style_stepline: VPlotStyle;
215
- style_stepline_diamond: VPlotStyle;
216
- style_steplinebr: VPlotStyle;
217
- };
218
- position: {
219
- bottom_center: VPosition;
220
- bottom_left: VPosition;
221
- bottom_right: VPosition;
222
- middle_center: VPosition;
223
- middle_left: VPosition;
224
- middle_right: VPosition;
225
- top_center: VPosition;
226
- top_left: VPosition;
227
- top_right: VPosition;
228
- };
229
- scale: {
230
- left: VScale;
231
- none: VScale;
232
- right: VScale;
233
- };
234
- session: {
235
- extended: VSession;
236
- regular: VSession;
237
- };
238
- shape: {
239
- arrowdown: VShape;
240
- arrowup: VShape;
241
- circle: VShape;
242
- cross: VShape;
243
- diamond: VShape;
244
- flag: VShape;
245
- labeldown: VShape;
246
- labelup: VShape;
247
- square: VShape;
248
- triangledown: VShape;
249
- triangleup: VShape;
250
- xcross: VShape;
251
- };
252
- size: {
253
- auto: VSize;
254
- huge: VSize;
255
- large: VSize;
256
- normal: VSize;
257
- small: VSize;
258
- tiny: VSize;
259
- };
260
- splits: {
261
- denominator: string;
262
- numerator: string;
263
- };
264
- strategy: {
265
- cash: VStrategy;
266
- fixed: VStrategy;
267
- percent_of_equity: VStrategy;
268
- long: VDirection;
269
- short: VDirection;
270
- commission: {
271
- cash_per_contract: VCommission;
272
- cash_per_order: VCommission;
273
- percent: VCommission;
274
- };
275
- direction: {
276
- all: VDirection;
277
- long: VDirection;
278
- short: VDirection;
279
- };
280
- oca: {
281
- cancel: VOca;
282
- none: VOca;
283
- reduce: VOca;
284
- };
285
- };
286
- text: {
287
- align_bottom: VText;
288
- align_center: VText;
289
- align_left: VText;
290
- align_right: VText;
291
- align_top: VText;
292
- wrap_auto: VText;
293
- wrap_none: VText;
294
- format_bold: VTextFormat;
295
- format_italic: VTextFormat;
296
- format_none: VTextFormat;
297
- };
298
- xloc: {
299
- bar_index: VXloc;
300
- bar_time: VXloc;
301
- };
302
- yloc: {
303
- abovebar: VYloc;
304
- belowbar: VYloc;
305
- price: VYloc;
306
- };
307
- true: boolean;
308
- false: boolean;
309
- updateData(): void;
310
- }
@@ -1,109 +0,0 @@
1
- import { VInsType, VSortOrder } from "../enum";
2
- import { TccErrorListener } from ".";
3
- interface IArrayArgs {
4
- id?: IPseudoArray;
5
- id1?: IPseudoArray;
6
- id2?: IPseudoArray;
7
- size?: number;
8
- initial_value?: any;
9
- index_from?: number;
10
- index_to?: number;
11
- val?: number;
12
- biased?: boolean;
13
- value?: any;
14
- index?: number;
15
- separator?: string;
16
- nth?: number;
17
- percentage?: number;
18
- order?: VSortOrder;
19
- type?: string;
20
- }
21
- export default class BuildInArray {
22
- private _errorListener;
23
- constructor(errorListener: TccErrorListener);
24
- new({ size, initial_value, type }: IArrayArgs | undefined, posStr: string): IPseudoArray;
25
- new_float({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
26
- new_int({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
27
- new_color({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
28
- new_bool({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
29
- new_string({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
30
- new_line({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
31
- new_box({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
32
- new_table({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
33
- new_linefill({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
34
- new_label({ size, initial_value }: IArrayArgs | undefined, posStr: string): IPseudoArray;
35
- copy({ id }: IArrayArgs): IPseudoArray | undefined;
36
- slice({ id, index_from, index_to }: IArrayArgs): IPseudoArray | undefined;
37
- size({ id }: IArrayArgs): number | undefined;
38
- first({ id }: IArrayArgs): any;
39
- abs({ id }: IArrayArgs, posStr: string): IPseudoArray | undefined;
40
- avg({ id }: IArrayArgs, posStr: string): number | undefined;
41
- binary_search({ id, val }: IArrayArgs, posStr: string): number | undefined;
42
- binary_search_leftmost({ id, val }: IArrayArgs, posStr: string): number | undefined;
43
- binary_search_rightmost({ id, val }: IArrayArgs, posStr: string): number | undefined;
44
- clear({ id }: IArrayArgs): void;
45
- concat({ id1, id2 }: IArrayArgs, posStr: string): IPseudoArray | undefined;
46
- covariance({ id1, id2, biased }: IArrayArgs, posStr: string): number | undefined;
47
- every({ id }: IArrayArgs, posStr: string): boolean | undefined;
48
- from(_: any, arrVals: any[]): IPseudoArray;
49
- fill({ id, value, index_from, index_to }: IArrayArgs): void;
50
- fillArr(arr: any[], value: any, index_from: number, index_to: number): any[];
51
- get({ id, index }: IArrayArgs): any;
52
- includes({ id, value }: IArrayArgs): boolean | undefined;
53
- indexof({ id, value }: IArrayArgs): number | undefined;
54
- insert({ id, index, value }: IArrayArgs, posStr?: string): void;
55
- insertArr(arr: any[], index: number, value: any): void;
56
- join({ id, separator }: IArrayArgs, posStr: string): string | undefined;
57
- last({ id }: IArrayArgs): any;
58
- lastindexof({ id, value }: IArrayArgs): number | undefined;
59
- max(arg: IArrayArgs, posStr: string): number | undefined;
60
- median({ id }: IArrayArgs, posStr: string): number | undefined;
61
- min({ id, nth }: IArrayArgs, posStr: string): number | undefined;
62
- mode({ id }: IArrayArgs, posStr: string): number | undefined;
63
- percentile_linear_interpolation({ id, percentage }: IArrayArgs, posStr: string): number | undefined;
64
- percentile_nearest_rank({ id, percentage }: IArrayArgs, posStr: string): number | undefined;
65
- percentrank({ id, index }: IArrayArgs, posStr: string): number | undefined;
66
- pop({ id }: IArrayArgs): any;
67
- push({ id, value }: IArrayArgs, posStr: string): void;
68
- range({ id }: IArrayArgs, posStr: string): number | undefined;
69
- remove({ id, index }: IArrayArgs): any;
70
- reverse({ id }: IArrayArgs): void;
71
- set({ id, index, value }: IArrayArgs, posStr?: string): void;
72
- private _verify;
73
- shift({ id }: IArrayArgs): any;
74
- some({ id }: IArrayArgs, posStr: string): boolean | undefined;
75
- sort({ id, order }: IArrayArgs, posStr: string): void;
76
- sort_indices({ id, order }: IArrayArgs, posStr: string): IPseudoArray | undefined;
77
- standardize({ id }: IArrayArgs, posStr: string): IPseudoArray | undefined;
78
- private _verifyArrayLen;
79
- stdev({ id, biased }: IArrayArgs, posStr: string): number | undefined;
80
- sum({ id }: IArrayArgs, posStr: string): any;
81
- unshift({ id, value }: IArrayArgs, posStr: string): void;
82
- variance({ id, biased }: IArrayArgs, posStr: string): number | undefined;
83
- private _calculateVariances;
84
- private _calculateStandardDeviations;
85
- private _standardizeArray;
86
- private _getPercentileRank;
87
- private _getNearestRankPercentile;
88
- private _percentileLinearInterpolation;
89
- private _mode;
90
- private _median;
91
- private _minNth;
92
- private _maxNth;
93
- private _setElements;
94
- private _covariance;
95
- private _verifySimpleType;
96
- private _binarySearch;
97
- private _binarySearchLeftMost;
98
- private _binarySearchRightMost;
99
- createPseudoArrayWithArray(array: any[], type?: string): IPseudoArray;
100
- }
101
- export interface IPseudoArray {
102
- isArray: boolean;
103
- typeName?: string;
104
- type: VInsType;
105
- _isNumber: boolean;
106
- _value: any[];
107
- }
108
- export declare function createPseudoArray(size?: number, initialValue?: any, type?: string): IPseudoArray;
109
- export {};