pinets 0.7.2 → 0.7.4
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/README.md +1 -1
- package/dist/pinets.min.browser.es.js +16 -16
- package/dist/pinets.min.browser.es.js.map +1 -1
- package/dist/pinets.min.browser.js +18 -18
- package/dist/pinets.min.browser.js.map +1 -1
- package/dist/pinets.min.cjs +16 -16
- package/dist/pinets.min.cjs.map +1 -1
- package/dist/pinets.min.es.js +16 -16
- package/dist/pinets.min.es.js.map +1 -1
- package/dist/types/namespaces/Plots.d.ts +19 -2
- package/dist/types/namespaces/Types.d.ts +56 -0
- package/dist/types/types/PineTypes.d.ts +32 -0
- package/package.json +2 -1
|
@@ -2,8 +2,25 @@ export declare class PlotHelper {
|
|
|
2
2
|
private context;
|
|
3
3
|
constructor(context: any);
|
|
4
4
|
private extractPlotOptions;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
get linestyle_dashed(): string;
|
|
6
|
+
get linestyle_dotted(): string;
|
|
7
|
+
get linestyle_solid(): string;
|
|
8
|
+
get style_area(): string;
|
|
9
|
+
get style_areabr(): string;
|
|
10
|
+
get style_circles(): string;
|
|
11
|
+
get style_columns(): string;
|
|
12
|
+
get style_cross(): string;
|
|
13
|
+
get style_histogram(): string;
|
|
14
|
+
get style_line(): string;
|
|
15
|
+
get style_linebr(): string;
|
|
16
|
+
get style_stepline(): string;
|
|
17
|
+
get style_stepline_diamond(): string;
|
|
18
|
+
get style_steplinebr(): string;
|
|
19
|
+
param(source: any, index?: number, name?: string): any;
|
|
20
|
+
plotchar(...args: any[]): void;
|
|
21
|
+
any(...args: any[]): void;
|
|
22
|
+
plotshape(...args: any[]): void;
|
|
23
|
+
plotarrow(...args: any[]): void;
|
|
7
24
|
}
|
|
8
25
|
export declare class HlineHelper {
|
|
9
26
|
private context;
|
|
@@ -77,10 +77,66 @@ export declare enum display {
|
|
|
77
77
|
price_scale = "price_scale",
|
|
78
78
|
status_line = "status_line"
|
|
79
79
|
}
|
|
80
|
+
export declare enum shape {
|
|
81
|
+
flag = "flag",
|
|
82
|
+
arrowdown = "arrowdown",
|
|
83
|
+
arrowup = "arrowup",
|
|
84
|
+
circle = "circle",
|
|
85
|
+
cross = "cross",
|
|
86
|
+
diamond = "diamond",
|
|
87
|
+
labeldown = "labeldown",
|
|
88
|
+
labelup = "labelup",
|
|
89
|
+
square = "square",
|
|
90
|
+
triangledown = "triangledown",
|
|
91
|
+
triangleup = "triangleup",
|
|
92
|
+
xcross = "xcross"
|
|
93
|
+
}
|
|
94
|
+
export declare enum location {
|
|
95
|
+
abovebar = "abovebar",
|
|
96
|
+
belowbar = "belowbar",
|
|
97
|
+
absolute = "absolute",
|
|
98
|
+
bottom = "bottom",
|
|
99
|
+
top = "top"
|
|
100
|
+
}
|
|
101
|
+
export declare enum size {
|
|
102
|
+
auto = "auto",
|
|
103
|
+
tiny = "tiny",
|
|
104
|
+
small = "small",
|
|
105
|
+
normal = "normal",
|
|
106
|
+
large = "large",
|
|
107
|
+
huge = "huge"
|
|
108
|
+
}
|
|
109
|
+
export declare enum format {
|
|
110
|
+
inherit = "inherit",
|
|
111
|
+
mintick = "mintick",
|
|
112
|
+
percent = "percent",
|
|
113
|
+
price = "price",
|
|
114
|
+
volume = "volume"
|
|
115
|
+
}
|
|
116
|
+
export declare enum plot {
|
|
117
|
+
linestyle_dashed = "linestyle_dashed",
|
|
118
|
+
linestyle_dotted = "linestyle_dotted",
|
|
119
|
+
linestyle_solid = "linestyle_solid",
|
|
120
|
+
style_area = "style_area",
|
|
121
|
+
style_areabr = "style_areabr",
|
|
122
|
+
style_circles = "style_circles",
|
|
123
|
+
style_columns = "style_columns",
|
|
124
|
+
style_cross = "style_cross",
|
|
125
|
+
style_histogram = "style_histogram",
|
|
126
|
+
style_line = "style_line",
|
|
127
|
+
style_linebr = "style_linebr",
|
|
128
|
+
style_stepline = "style_stepline",
|
|
129
|
+
style_stepline_diamond = "style_stepline_diamond",
|
|
130
|
+
style_steplinebr = "style_steplinebr"
|
|
131
|
+
}
|
|
80
132
|
declare const types: {
|
|
81
133
|
order: typeof order;
|
|
82
134
|
currency: typeof currency;
|
|
83
135
|
dayofweek: typeof dayofweek;
|
|
84
136
|
display: typeof display;
|
|
137
|
+
shape: typeof shape;
|
|
138
|
+
location: typeof location;
|
|
139
|
+
size: typeof size;
|
|
140
|
+
format: typeof format;
|
|
85
141
|
};
|
|
86
142
|
export default types;
|
|
@@ -31,6 +31,38 @@ type PlotOptions = {
|
|
|
31
31
|
precision?: number;
|
|
32
32
|
force_overlay?: boolean;
|
|
33
33
|
};
|
|
34
|
+
type PlotShapeOptions = {
|
|
35
|
+
series?: number;
|
|
36
|
+
title?: string;
|
|
37
|
+
style?: string;
|
|
38
|
+
location?: string;
|
|
39
|
+
color?: string;
|
|
40
|
+
offset?: number;
|
|
41
|
+
text?: string;
|
|
42
|
+
textcolor?: string;
|
|
43
|
+
editable?: boolean;
|
|
44
|
+
size?: string;
|
|
45
|
+
show_last?: number;
|
|
46
|
+
display?: string;
|
|
47
|
+
format?: string;
|
|
48
|
+
precision?: number;
|
|
49
|
+
force_overlay?: boolean;
|
|
50
|
+
};
|
|
51
|
+
type PlotArrowOptions = {
|
|
52
|
+
series?: number;
|
|
53
|
+
title?: string;
|
|
54
|
+
colorup?: string;
|
|
55
|
+
colordown?: string;
|
|
56
|
+
offset?: number;
|
|
57
|
+
minheight?: number;
|
|
58
|
+
maxheight?: number;
|
|
59
|
+
editable?: boolean;
|
|
60
|
+
show_last?: number;
|
|
61
|
+
display?: string;
|
|
62
|
+
format?: string;
|
|
63
|
+
precision?: number;
|
|
64
|
+
force_overlay?: boolean;
|
|
65
|
+
};
|
|
34
66
|
type IndicatorOptions = {
|
|
35
67
|
title: string;
|
|
36
68
|
shorttitle: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinets",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/pinets.min.cjs",
|
|
6
6
|
"module": "dist/pinets.min.es.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"build:prod:browser": "cross-env BUILD=prod FORMAT=browser rollup -c ./rollup.config.js",
|
|
48
48
|
"build:prod:browser-es": "cross-env BUILD=prod FORMAT=browser-es rollup -c ./rollup.config.js",
|
|
49
49
|
"build:prod:es": "cross-env BUILD=prod rollup -c ./rollup.config.js",
|
|
50
|
+
"prepublishOnly": "npm run build:prod:all",
|
|
50
51
|
"knip": "knip"
|
|
51
52
|
},
|
|
52
53
|
"author": "Alaa-eddine KADDOURI",
|