@guihz/trading-vue-editor-tes 0.0.75 → 0.0.77
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-DlGGcB9j.js → parserTccWorker-C7fkhc8h.js} +32 -32
- package/lib/assets/scriptsRunWorker-Dr1KbK75.js +66 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/string.d.ts +4 -1
- package/lib/components/editor/parseScript/constants.d.ts +3 -1
- package/lib/trading-vue-editor.js +946 -945
- package/lib/trading-vue-editor.umd.cjs +15 -15
- package/package.json +1 -1
- package/lib/assets/scriptsRunWorker-CAhshw_C.js +0 -66
@@ -20,7 +20,9 @@ interface IStrArgs {
|
|
20
20
|
}
|
21
21
|
export default class BuildInStr {
|
22
22
|
private _errorListener;
|
23
|
-
|
23
|
+
private _intlNumberFormatter;
|
24
|
+
private _precision;
|
25
|
+
constructor(errorListener: TccErrorListener, precision: number);
|
24
26
|
pos({ source, str }: IStrArgs): number;
|
25
27
|
trim({ source }: IStrArgs): string;
|
26
28
|
lower({ source }: IStrArgs): string;
|
@@ -40,6 +42,7 @@ export default class BuildInStr {
|
|
40
42
|
startswith({ source, str }: IStrArgs): boolean;
|
41
43
|
format_time({ time, format, timezone }: IStrArgs): string;
|
42
44
|
replace_all({ source, target, replacement }: IStrArgs): string;
|
45
|
+
private _toStringFormat;
|
43
46
|
private _formatNumber;
|
44
47
|
private _strFormat;
|
45
48
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { VType } from "./enum";
|
1
|
+
import { VFormatType, VType } from "./enum";
|
2
2
|
export declare const ERRORS_TIPS: {
|
3
3
|
onlyInLoop: string;
|
4
4
|
invalidType: string;
|
@@ -60,6 +60,7 @@ export declare const ERRORS_TIPS: {
|
|
60
60
|
libraryTitleIsKeywordErr: string;
|
61
61
|
exportFuncUseGlobalVarErr: string;
|
62
62
|
loopRuntimeErr: string;
|
63
|
+
indicatorFormatErr: string;
|
63
64
|
};
|
64
65
|
export declare const WARNING_TIPS: {
|
65
66
|
repeatVar: string;
|
@@ -254,3 +255,4 @@ export declare const DEFAULT_EXPORT_TEST: {
|
|
254
255
|
};
|
255
256
|
export declare const JS_KEYWORDS: string[];
|
256
257
|
export declare const TCC_KEYWORDS: string[];
|
258
|
+
export declare const INDICATOR_FORMATS: VFormatType[];
|