@guihz/trading-vue-editor-tes 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/lib/assets/editor.worker-CT5Cb1wO.js +11 -0
  2. package/lib/assets/{parserTccWorker-cJ5nOv5I.js → parserTccWorker-BhMZL9OL.js} +39 -38
  3. package/lib/assets/scriptsRunWorker-DHT6psBx.js +66 -0
  4. package/lib/components/editor/parseScript/buildInConstants.d.ts +51 -0
  5. package/lib/components/editor/parseScript/buildInFuncNamespace/box.d.ts +99 -0
  6. package/lib/components/editor/parseScript/buildInFuncNamespace/chartPoint.d.ts +27 -0
  7. package/lib/components/editor/parseScript/buildInFuncNamespace/index.d.ts +9 -1
  8. package/lib/components/editor/parseScript/buildInFuncNamespace/label.d.ts +77 -0
  9. package/lib/components/editor/parseScript/buildInFuncNamespace/line.d.ts +81 -0
  10. package/lib/components/editor/parseScript/buildInFuncNamespace/linefill.d.ts +37 -0
  11. package/lib/components/editor/parseScript/buildInFuncNamespace/polyline.d.ts +31 -0
  12. package/lib/components/editor/parseScript/buildInFuncNamespace/ta.d.ts +4 -3
  13. package/lib/components/editor/parseScript/buildInFuncNamespace/table.d.ts +94 -0
  14. package/lib/components/editor/parseScript/constants.d.ts +3 -0
  15. package/lib/components/editor/parseScript/type.d.ts +1 -0
  16. package/lib/components/editor/parseScript/visitorParser.d.ts +2 -0
  17. package/lib/components/editor/type/index.d.ts +2 -0
  18. package/lib/trading-vue-editor.js +1876 -1852
  19. package/lib/trading-vue-editor.umd.cjs +32 -32
  20. package/package.json +1 -1
  21. package/lib/assets/scriptsRunWorker-B4O7gGzE.js +0 -66
  22. package/lib/components/editor/parseScript/buildInVariables.d.ts +0 -124
@@ -1,124 +0,0 @@
1
- import { IKeyObjectValue } from "../type";
2
- import UserTypeClass from "./userTypeClass";
3
- export declare class BuiltInVariables {
4
- private _cacheData;
5
- private _barIndex;
6
- private _isRealTimeBar;
7
- private _barstate;
8
- private _priceVariables;
9
- private _lastBarIndex;
10
- private _currentBarTime;
11
- private _lastBarTime;
12
- private _period;
13
- private _offsetTime;
14
- private _timeframe;
15
- private _ta;
16
- constructor();
17
- get ta(): Ta;
18
- get na(): undefined;
19
- get last_bar_index(): number;
20
- get bar_index(): number;
21
- get barstate(): Barstate;
22
- get close(): number;
23
- get low(): number;
24
- get open(): number;
25
- get high(): number;
26
- get volume(): number;
27
- get ohlc4(): number;
28
- get hl2(): number;
29
- get hlc3(): number;
30
- get hlcc4(): number;
31
- get hour(): number;
32
- get minute(): number;
33
- get second(): number;
34
- get month(): number;
35
- get year(): number;
36
- get dayofweek(): number;
37
- get dayofmonth(): number;
38
- get weekofyear(): number;
39
- get last_bar_time(): number;
40
- get time(): number;
41
- get time_close(): number | undefined;
42
- get timenow(): number;
43
- get time_tradingday(): number;
44
- get timeframe(): Timeframe;
45
- getTimeTradingday(time: number, period: string): number;
46
- updateData(data: IKeyObjectValue): void;
47
- getCacheData(key: string, preIndex: number, value: any): any;
48
- setCacheData(key: string, value: any): void;
49
- getTypeInstance(fileds: IKeyObjectValue, varipKeys: string[]): UserTypeClass;
50
- getVarValue(name: string, position: string, declare: string): any;
51
- setVarValue(name: string, position: string, val: any, declare: string): any;
52
- add(val1: any, val2: any): any;
53
- sub(val1: any, val2: any): number | any[];
54
- }
55
- export declare class Barstate {
56
- private _isMarketOpen;
57
- private _currentBarIndex;
58
- private _totalBarIndex;
59
- private _isRealTimeBar;
60
- private _preBarIndex;
61
- constructor();
62
- update(currentBarIndex: number, totalBarIndex: number, isRealTimeBar: boolean, isMarketOpen: boolean): void;
63
- get isnew(): boolean;
64
- get islast(): boolean;
65
- get isfirst(): boolean;
66
- get ishistory(): boolean;
67
- get isrealtime(): boolean;
68
- get isconfirmed(): boolean;
69
- get islastconfirmedhistory(): boolean;
70
- }
71
- export declare class Timeframe {
72
- private _period;
73
- private _multiplier;
74
- private _unit;
75
- constructor();
76
- update(period: string): void;
77
- get isdaily(): boolean;
78
- get isdwm(): boolean;
79
- get isintraday(): boolean;
80
- get isminutes(): boolean;
81
- get ismonthly(): boolean;
82
- get isseconds(): boolean;
83
- get isweekly(): boolean;
84
- get multiplier(): number;
85
- get period(): string;
86
- }
87
- export declare class Ta {
88
- private _preAccdist;
89
- private _preNvi;
90
- private _prePvi;
91
- private _preObv;
92
- private _prePvt;
93
- private _preWad;
94
- private _preVwap;
95
- private _preValue;
96
- private _currentData;
97
- private _preData;
98
- constructor();
99
- update(currentData: IKeyObjectValue): void;
100
- get isRealTime(): boolean;
101
- get accdist(): any;
102
- get iii(): any;
103
- get nvi(): any;
104
- get wvad(): any;
105
- get obv(): any;
106
- get pvi(): any;
107
- get tr(): any;
108
- get pvt(): any;
109
- get wad(): any;
110
- get vwap(): any;
111
- private _getNvi;
112
- private _getPvi;
113
- }
114
- export declare class Session {
115
- private _variables;
116
- constructor(variables: BuiltInVariables);
117
- get isfirstbar(): boolean;
118
- get isfirstbar_regular(): boolean;
119
- get islastbar(): boolean;
120
- get islastbar_regular(): boolean;
121
- get ismarket(): boolean;
122
- get ispostmarket(): boolean;
123
- get ispremarket(): boolean;
124
- }