@deephaven/chart 0.22.3-deep-bot-test.14 → 0.23.0
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/dist/Chart.d.ts +1 -1
- package/dist/Chart.d.ts.map +1 -1
- package/dist/Chart.js +11 -85
- package/dist/Chart.js.map +1 -1
- package/dist/ChartModel.d.ts +2 -2
- package/dist/ChartModel.d.ts.map +1 -1
- package/dist/ChartModel.js +7 -45
- package/dist/ChartModel.js.map +1 -1
- package/dist/ChartModelFactory.js +2 -9
- package/dist/ChartModelFactory.js.map +1 -1
- package/dist/ChartTestUtils.js +0 -14
- package/dist/ChartTestUtils.js.map +1 -1
- package/dist/ChartTheme.js.map +1 -1
- package/dist/ChartUtils.d.ts +13 -13
- package/dist/ChartUtils.d.ts.map +1 -1
- package/dist/ChartUtils.js +72 -273
- package/dist/ChartUtils.js.map +1 -1
- package/dist/FigureChartModel.d.ts +6 -6
- package/dist/FigureChartModel.d.ts.map +1 -1
- package/dist/FigureChartModel.js +24 -134
- package/dist/FigureChartModel.js.map +1 -1
- package/dist/MockChartModel.d.ts +14 -0
- package/dist/MockChartModel.d.ts.map +1 -1
- package/dist/MockChartModel.js +6 -27
- package/dist/MockChartModel.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/isFigureChartModel.js.map +1 -1
- package/dist/plotly/Plot.d.ts +1 -1
- package/dist/plotly/Plot.js +0 -1
- package/dist/plotly/Plot.js.map +1 -1
- package/dist/plotly/Plotly.js +3 -1
- package/dist/plotly/Plotly.js.map +1 -1
- package/package.json +9 -9
package/dist/ChartModel.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
2
|
/* eslint class-methods-use-this: "off" */
|
|
4
|
-
|
|
5
3
|
/* eslint no-unused-vars: "off" */
|
|
6
4
|
|
|
7
5
|
/**
|
|
@@ -12,158 +10,122 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12
10
|
class ChartModel {
|
|
13
11
|
constructor() {
|
|
14
12
|
_defineProperty(this, "listeners", void 0);
|
|
15
|
-
|
|
16
13
|
_defineProperty(this, "formatter", void 0);
|
|
17
|
-
|
|
18
14
|
_defineProperty(this, "rect", void 0);
|
|
19
|
-
|
|
20
15
|
_defineProperty(this, "isDownsamplingDisabled", void 0);
|
|
21
|
-
|
|
22
16
|
_defineProperty(this, "title", void 0);
|
|
23
|
-
|
|
24
17
|
this.listeners = [];
|
|
25
18
|
this.isDownsamplingDisabled = false;
|
|
26
19
|
}
|
|
27
|
-
|
|
28
20
|
getData() {
|
|
29
21
|
return [];
|
|
30
22
|
}
|
|
31
|
-
|
|
32
23
|
getDefaultTitle() {
|
|
33
24
|
return '';
|
|
34
25
|
}
|
|
35
|
-
|
|
36
26
|
getLayout() {
|
|
37
27
|
return {};
|
|
38
28
|
}
|
|
39
|
-
|
|
40
29
|
getFilterColumnMap() {
|
|
41
30
|
return new Map();
|
|
42
31
|
}
|
|
43
|
-
|
|
44
32
|
isFilterRequired() {
|
|
45
33
|
return false;
|
|
46
|
-
}
|
|
47
|
-
|
|
34
|
+
}
|
|
48
35
|
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
49
37
|
setFilter(filter) {}
|
|
38
|
+
|
|
50
39
|
/**
|
|
51
40
|
* Close this model, clean up any underlying subscriptions
|
|
52
41
|
*/
|
|
53
42
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
54
|
-
|
|
55
|
-
|
|
56
43
|
close() {}
|
|
44
|
+
|
|
57
45
|
/**
|
|
58
46
|
* Set the formatter to use when charting the data.
|
|
59
47
|
* @param formatter The formatter to use to format the charting data
|
|
60
48
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
49
|
setFormatter(formatter) {
|
|
64
50
|
this.formatter = formatter;
|
|
65
51
|
}
|
|
52
|
+
|
|
66
53
|
/**
|
|
67
54
|
* Disable downsampling
|
|
68
55
|
* @param isDownsamplingDisabled True if downsampling should be disabled
|
|
69
56
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
57
|
setDownsamplingDisabled(isDownsamplingDisabled) {
|
|
73
58
|
this.isDownsamplingDisabled = isDownsamplingDisabled;
|
|
74
59
|
}
|
|
60
|
+
|
|
75
61
|
/**
|
|
76
62
|
* Set the dimensions of the plot. May be needed to evaluate some of the percents
|
|
77
63
|
* @param rect The bounding rectangle of the plot
|
|
78
64
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
65
|
setDimensions(rect) {
|
|
82
66
|
this.rect = rect;
|
|
83
67
|
}
|
|
84
|
-
|
|
85
68
|
setTitle(title) {
|
|
86
69
|
this.title = title;
|
|
87
70
|
}
|
|
71
|
+
|
|
88
72
|
/**
|
|
89
73
|
* Subscribe to this ChartModel and start listening for all events.
|
|
90
74
|
* @param callback Callback when an event occurs
|
|
91
75
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
76
|
subscribe(callback) {
|
|
95
77
|
this.listeners.push(callback);
|
|
96
78
|
}
|
|
97
|
-
|
|
98
79
|
unsubscribe(callback) {
|
|
99
80
|
this.listeners = this.listeners.filter(listener => listener !== callback);
|
|
100
81
|
}
|
|
101
|
-
|
|
102
82
|
fireEvent(event) {
|
|
103
83
|
for (var i = 0; i < this.listeners.length; i += 1) {
|
|
104
84
|
this.listeners[i](event);
|
|
105
85
|
}
|
|
106
86
|
}
|
|
107
|
-
|
|
108
87
|
fireUpdate(data) {
|
|
109
88
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_UPDATED, {
|
|
110
89
|
detail: data
|
|
111
90
|
}));
|
|
112
91
|
}
|
|
113
|
-
|
|
114
92
|
fireDisconnect() {
|
|
115
93
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_DISCONNECT));
|
|
116
94
|
}
|
|
117
|
-
|
|
118
95
|
fireReconnect() {
|
|
119
96
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_RECONNECT));
|
|
120
97
|
}
|
|
121
|
-
|
|
122
98
|
fireDownsampleStart(detail) {
|
|
123
99
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_DOWNSAMPLESTARTED, {
|
|
124
100
|
detail
|
|
125
101
|
}));
|
|
126
102
|
}
|
|
127
|
-
|
|
128
103
|
fireDownsampleFinish(detail) {
|
|
129
104
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFINISHED, {
|
|
130
105
|
detail
|
|
131
106
|
}));
|
|
132
107
|
}
|
|
133
|
-
|
|
134
108
|
fireDownsampleFail(detail) {
|
|
135
109
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFAILED, {
|
|
136
110
|
detail
|
|
137
111
|
}));
|
|
138
112
|
}
|
|
139
|
-
|
|
140
113
|
fireDownsampleNeeded(detail) {
|
|
141
114
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_DOWNSAMPLENEEDED, {
|
|
142
115
|
detail
|
|
143
116
|
}));
|
|
144
117
|
}
|
|
145
|
-
|
|
146
118
|
fireLoadFinished() {
|
|
147
119
|
this.fireEvent(new CustomEvent(ChartModel.EVENT_LOADFINISHED));
|
|
148
120
|
}
|
|
149
|
-
|
|
150
121
|
}
|
|
151
|
-
|
|
152
122
|
_defineProperty(ChartModel, "EVENT_UPDATED", 'ChartModel.EVENT_UPDATED');
|
|
153
|
-
|
|
154
123
|
_defineProperty(ChartModel, "EVENT_DISCONNECT", 'ChartModel.EVENT_DISCONNECT');
|
|
155
|
-
|
|
156
124
|
_defineProperty(ChartModel, "EVENT_RECONNECT", 'ChartModel.EVENT_RECONNECT');
|
|
157
|
-
|
|
158
125
|
_defineProperty(ChartModel, "EVENT_DOWNSAMPLESTARTED", 'ChartModel.EVENT_DOWNSAMPLESTARTED');
|
|
159
|
-
|
|
160
126
|
_defineProperty(ChartModel, "EVENT_DOWNSAMPLEFINISHED", 'ChartModel.EVENT_DOWNSAMPLEFINISHED');
|
|
161
|
-
|
|
162
127
|
_defineProperty(ChartModel, "EVENT_DOWNSAMPLEFAILED", 'ChartModel.EVENT_DOWNSAMPLEFAILED');
|
|
163
|
-
|
|
164
128
|
_defineProperty(ChartModel, "EVENT_DOWNSAMPLENEEDED", 'ChartModel.EVENT_DOWNSAMPLENEEDED');
|
|
165
|
-
|
|
166
129
|
_defineProperty(ChartModel, "EVENT_LOADFINISHED", 'ChartModel.EVENT_LOADFINISHED');
|
|
167
|
-
|
|
168
130
|
export default ChartModel;
|
|
169
131
|
//# sourceMappingURL=ChartModel.js.map
|
package/dist/ChartModel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartModel.js","names":["ChartModel","constructor","listeners","isDownsamplingDisabled","getData","getDefaultTitle","getLayout","getFilterColumnMap","Map","isFilterRequired","setFilter","filter","close","setFormatter","formatter","setDownsamplingDisabled","setDimensions","rect","setTitle","title","subscribe","callback","push","unsubscribe","listener","fireEvent","event","i","length","fireUpdate","data","CustomEvent","EVENT_UPDATED","detail","fireDisconnect","EVENT_DISCONNECT","fireReconnect","EVENT_RECONNECT","fireDownsampleStart","EVENT_DOWNSAMPLESTARTED","fireDownsampleFinish","EVENT_DOWNSAMPLEFINISHED","fireDownsampleFail","EVENT_DOWNSAMPLEFAILED","fireDownsampleNeeded","EVENT_DOWNSAMPLENEEDED","fireLoadFinished","EVENT_LOADFINISHED"],"sources":["../src/ChartModel.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\n\nimport { Formatter } from '@deephaven/jsapi-utils';\nimport { Layout, PlotData } from 'plotly.js';\n\nexport type FilterColumnMap = Map<\n string,\n {\n name: string;\n type: string;\n }\n>;\n\nexport type ChartEvent = CustomEvent;\n/**\n * Model for a Chart\n * All of these methods should return very quickly.\n * If data needs to be loaded asynchronously, return something immediately, then trigger an event for the chart to refresh.\n */\nclass ChartModel {\n static EVENT_UPDATED = 'ChartModel.EVENT_UPDATED';\n\n static EVENT_DISCONNECT = 'ChartModel.EVENT_DISCONNECT';\n\n static EVENT_RECONNECT = 'ChartModel.EVENT_RECONNECT';\n\n static EVENT_DOWNSAMPLESTARTED = 'ChartModel.EVENT_DOWNSAMPLESTARTED';\n\n static EVENT_DOWNSAMPLEFINISHED = 'ChartModel.EVENT_DOWNSAMPLEFINISHED';\n\n static EVENT_DOWNSAMPLEFAILED = 'ChartModel.EVENT_DOWNSAMPLEFAILED';\n\n static EVENT_DOWNSAMPLENEEDED = 'ChartModel.EVENT_DOWNSAMPLENEEDED';\n\n static EVENT_LOADFINISHED = 'ChartModel.EVENT_LOADFINISHED';\n\n constructor() {\n this.listeners = [];\n this.isDownsamplingDisabled = false;\n }\n\n listeners: ((event: ChartEvent) => void)[];\n\n formatter?: Formatter;\n\n rect?: DOMRect;\n\n isDownsamplingDisabled: boolean;\n\n title?: string;\n\n getData(): Partial<PlotData>[] {\n return [];\n }\n\n getDefaultTitle(): string {\n return '';\n }\n\n getLayout(): Partial<Layout> {\n return {};\n }\n\n getFilterColumnMap(): FilterColumnMap {\n return new Map();\n }\n\n isFilterRequired(): boolean {\n return false;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setFilter(filter: Map<string, string>): void {}\n\n /**\n * Close this model, clean up any underlying subscriptions\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n close(): void {}\n\n /**\n * Set the formatter to use when charting the data.\n * @param formatter The formatter to use to format the charting data\n */\n setFormatter(formatter: Formatter): void {\n this.formatter = formatter;\n }\n\n /**\n * Disable downsampling\n * @param isDownsamplingDisabled True if downsampling should be disabled\n */\n setDownsamplingDisabled(isDownsamplingDisabled: boolean): void {\n this.isDownsamplingDisabled = isDownsamplingDisabled;\n }\n\n /**\n * Set the dimensions of the plot. May be needed to evaluate some of the percents\n * @param rect The bounding rectangle of the plot\n */\n setDimensions(rect: DOMRect): void {\n this.rect = rect;\n }\n\n setTitle(title: string): void {\n this.title = title;\n }\n\n /**\n * Subscribe to this ChartModel and start listening for all events.\n * @param callback Callback when an event occurs\n */\n subscribe(callback: (event: ChartEvent) => void): void {\n this.listeners.push(callback);\n }\n\n unsubscribe(callback: (event: ChartEvent) => void): void {\n this.listeners = this.listeners.filter(listener => listener !== callback);\n }\n\n fireEvent(event: ChartEvent): void {\n for (let i = 0; i < this.listeners.length; i += 1) {\n this.listeners[i](event);\n }\n }\n\n fireUpdate(data: unknown): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_UPDATED, { detail: data }));\n }\n\n fireDisconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_DISCONNECT));\n }\n\n fireReconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_RECONNECT));\n }\n\n fireDownsampleStart(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLESTARTED, { detail })\n );\n }\n\n fireDownsampleFinish(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFINISHED, { detail })\n );\n }\n\n fireDownsampleFail(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFAILED, { detail })\n );\n }\n\n fireDownsampleNeeded(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLENEEDED, { detail })\n );\n }\n\n fireLoadFinished(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_LOADFINISHED));\n }\n}\n\nexport default ChartModel;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChartModel.js","names":["ChartModel","constructor","listeners","isDownsamplingDisabled","getData","getDefaultTitle","getLayout","getFilterColumnMap","Map","isFilterRequired","setFilter","filter","close","setFormatter","formatter","setDownsamplingDisabled","setDimensions","rect","setTitle","title","subscribe","callback","push","unsubscribe","listener","fireEvent","event","i","length","fireUpdate","data","CustomEvent","EVENT_UPDATED","detail","fireDisconnect","EVENT_DISCONNECT","fireReconnect","EVENT_RECONNECT","fireDownsampleStart","EVENT_DOWNSAMPLESTARTED","fireDownsampleFinish","EVENT_DOWNSAMPLEFINISHED","fireDownsampleFail","EVENT_DOWNSAMPLEFAILED","fireDownsampleNeeded","EVENT_DOWNSAMPLENEEDED","fireLoadFinished","EVENT_LOADFINISHED"],"sources":["../src/ChartModel.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\n\nimport { Formatter } from '@deephaven/jsapi-utils';\nimport { Layout, PlotData } from 'plotly.js';\n\nexport type FilterColumnMap = Map<\n string,\n {\n name: string;\n type: string;\n }\n>;\n\nexport type ChartEvent = CustomEvent;\n/**\n * Model for a Chart\n * All of these methods should return very quickly.\n * If data needs to be loaded asynchronously, return something immediately, then trigger an event for the chart to refresh.\n */\nclass ChartModel {\n static EVENT_UPDATED = 'ChartModel.EVENT_UPDATED';\n\n static EVENT_DISCONNECT = 'ChartModel.EVENT_DISCONNECT';\n\n static EVENT_RECONNECT = 'ChartModel.EVENT_RECONNECT';\n\n static EVENT_DOWNSAMPLESTARTED = 'ChartModel.EVENT_DOWNSAMPLESTARTED';\n\n static EVENT_DOWNSAMPLEFINISHED = 'ChartModel.EVENT_DOWNSAMPLEFINISHED';\n\n static EVENT_DOWNSAMPLEFAILED = 'ChartModel.EVENT_DOWNSAMPLEFAILED';\n\n static EVENT_DOWNSAMPLENEEDED = 'ChartModel.EVENT_DOWNSAMPLENEEDED';\n\n static EVENT_LOADFINISHED = 'ChartModel.EVENT_LOADFINISHED';\n\n constructor() {\n this.listeners = [];\n this.isDownsamplingDisabled = false;\n }\n\n listeners: ((event: ChartEvent) => void)[];\n\n formatter?: Formatter;\n\n rect?: DOMRect;\n\n isDownsamplingDisabled: boolean;\n\n title?: string;\n\n getData(): Partial<PlotData>[] {\n return [];\n }\n\n getDefaultTitle(): string {\n return '';\n }\n\n getLayout(): Partial<Layout> {\n return {};\n }\n\n getFilterColumnMap(): FilterColumnMap {\n return new Map();\n }\n\n isFilterRequired(): boolean {\n return false;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setFilter(filter: Map<string, string>): void {}\n\n /**\n * Close this model, clean up any underlying subscriptions\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n close(): void {}\n\n /**\n * Set the formatter to use when charting the data.\n * @param formatter The formatter to use to format the charting data\n */\n setFormatter(formatter: Formatter): void {\n this.formatter = formatter;\n }\n\n /**\n * Disable downsampling\n * @param isDownsamplingDisabled True if downsampling should be disabled\n */\n setDownsamplingDisabled(isDownsamplingDisabled: boolean): void {\n this.isDownsamplingDisabled = isDownsamplingDisabled;\n }\n\n /**\n * Set the dimensions of the plot. May be needed to evaluate some of the percents\n * @param rect The bounding rectangle of the plot\n */\n setDimensions(rect: DOMRect): void {\n this.rect = rect;\n }\n\n setTitle(title: string): void {\n this.title = title;\n }\n\n /**\n * Subscribe to this ChartModel and start listening for all events.\n * @param callback Callback when an event occurs\n */\n subscribe(callback: (event: ChartEvent) => void): void {\n this.listeners.push(callback);\n }\n\n unsubscribe(callback: (event: ChartEvent) => void): void {\n this.listeners = this.listeners.filter(listener => listener !== callback);\n }\n\n fireEvent(event: ChartEvent): void {\n for (let i = 0; i < this.listeners.length; i += 1) {\n this.listeners[i](event);\n }\n }\n\n fireUpdate(data: unknown): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_UPDATED, { detail: data }));\n }\n\n fireDisconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_DISCONNECT));\n }\n\n fireReconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_RECONNECT));\n }\n\n fireDownsampleStart(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLESTARTED, { detail })\n );\n }\n\n fireDownsampleFinish(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFINISHED, { detail })\n );\n }\n\n fireDownsampleFail(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFAILED, { detail })\n );\n }\n\n fireDownsampleNeeded(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLENEEDED, { detail })\n );\n }\n\n fireLoadFinished(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_LOADFINISHED));\n }\n}\n\nexport default ChartModel;\n"],"mappings":";AAAA;AACA;;AAcA;AACA;AACA;AACA;AACA;AACA,MAAMA,UAAU,CAAC;EAiBfC,WAAW,GAAG;IAAA;IAAA;IAAA;IAAA;IAAA;IACZ,IAAI,CAACC,SAAS,GAAG,EAAE;IACnB,IAAI,CAACC,sBAAsB,GAAG,KAAK;EACrC;EAYAC,OAAO,GAAwB;IAC7B,OAAO,EAAE;EACX;EAEAC,eAAe,GAAW;IACxB,OAAO,EAAE;EACX;EAEAC,SAAS,GAAoB;IAC3B,OAAO,CAAC,CAAC;EACX;EAEAC,kBAAkB,GAAoB;IACpC,OAAO,IAAIC,GAAG,EAAE;EAClB;EAEAC,gBAAgB,GAAY;IAC1B,OAAO,KAAK;EACd;;EAEA;EACAC,SAAS,CAACC,MAA2B,EAAQ,CAAC;;EAE9C;AACF;AACA;EACE;EACAC,KAAK,GAAS,CAAC;;EAEf;AACF;AACA;AACA;EACEC,YAAY,CAACC,SAAoB,EAAQ;IACvC,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC5B;;EAEA;AACF;AACA;AACA;EACEC,uBAAuB,CAACZ,sBAA+B,EAAQ;IAC7D,IAAI,CAACA,sBAAsB,GAAGA,sBAAsB;EACtD;;EAEA;AACF;AACA;AACA;EACEa,aAAa,CAACC,IAAa,EAAQ;IACjC,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EAEAC,QAAQ,CAACC,KAAa,EAAQ;IAC5B,IAAI,CAACA,KAAK,GAAGA,KAAK;EACpB;;EAEA;AACF;AACA;AACA;EACEC,SAAS,CAACC,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AU,CAAC2C,sBAAsB,EAAE;MAAEV;IAAO,CAAC,CAAC,CAC/D;EACH;EAEAW,oBAAoB,CAACX,MAAe,EAAQ;IAC1C,IAAI,CAACR,SAAS,CACZ,IAAIM,WAAW,CAAC/B,UAAU,CAAC6C,sBAAsB,EAAE;MAAEZ;IAAO,CAAC,CAAC,CAC/D;EACH;EAEAa,gBAAgB,GAAS;IACvB,IAAI,CAACrB,SAAS,CAAC,IAAIM,WAAW,CAAC/B,UAAU,CAAC+C,kBAAkB,CAAC,CAAC;EAChE;AACF;AAAC,gBAlJK/C,UAAU,mBACS,0BAA0B;AAAA,gBAD7CA,UAAU,sBAGY,6BAA6B;AAAA,gBAHnDA,UAAU,qBAKW,4BAA4B;AAAA,gBALjDA,UAAU,6BAOmB,oCAAoC;AAAA,gBAPjEA,UAAU,8BASoB,qCAAqC;AAAA,gBATnEA,UAAU,4BAWkB,mCAAmC;AAAA,gBAX/DA,UAAU,4BAakB,mCAAmC;AAAA,gBAb/DA,UAAU,wBAec,+BAA+B;AAqI7D,eAAeA,UAAU"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2
|
-
|
|
3
2
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
4
|
-
|
|
5
3
|
import dh from '@deephaven/jsapi-shim';
|
|
6
4
|
import ChartUtils from "./ChartUtils.js";
|
|
7
5
|
import FigureChartModel from "./FigureChartModel.js";
|
|
8
6
|
import ChartTheme from "./ChartTheme.js";
|
|
9
|
-
|
|
10
7
|
class ChartModelFactory {
|
|
11
8
|
/**
|
|
12
9
|
* Creates a model from the settings provided.
|
|
@@ -31,6 +28,7 @@ class ChartModelFactory {
|
|
|
31
28
|
return new FigureChartModel(figure, settings, theme);
|
|
32
29
|
})();
|
|
33
30
|
}
|
|
31
|
+
|
|
34
32
|
/**
|
|
35
33
|
* Creates a model from the settings provided.
|
|
36
34
|
* Tries to create a Figure in the API with it.
|
|
@@ -43,8 +41,6 @@ class ChartModelFactory {
|
|
|
43
41
|
* @param table The table to build the model for
|
|
44
42
|
* @returns The Figure created with the settings provided
|
|
45
43
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
44
|
static makeFigureFromSettings(settings, table) {
|
|
49
45
|
return _asyncToGenerator(function* () {
|
|
50
46
|
// Copy the table first and then re-apply the filters from the original table
|
|
@@ -58,6 +54,7 @@ class ChartModelFactory {
|
|
|
58
54
|
return dh.plot.Figure.create(ChartUtils.makeFigureSettings(settings, tableCopy));
|
|
59
55
|
})();
|
|
60
56
|
}
|
|
57
|
+
|
|
61
58
|
/**
|
|
62
59
|
* Creates a model from the settings provided.
|
|
63
60
|
* Tries to create a Figure in the API with it.
|
|
@@ -73,8 +70,6 @@ class ChartModelFactory {
|
|
|
73
70
|
* CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel
|
|
74
71
|
* This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel
|
|
75
72
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
78
73
|
static makeModel(settings, figure) {
|
|
79
74
|
var _arguments2 = arguments;
|
|
80
75
|
return _asyncToGenerator(function* () {
|
|
@@ -82,8 +77,6 @@ class ChartModelFactory {
|
|
|
82
77
|
return new FigureChartModel(figure, settings, theme);
|
|
83
78
|
})();
|
|
84
79
|
}
|
|
85
|
-
|
|
86
80
|
}
|
|
87
|
-
|
|
88
81
|
export default ChartModelFactory;
|
|
89
82
|
//# sourceMappingURL=ChartModelFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartModelFactory.js","names":["dh","ChartUtils","FigureChartModel","ChartTheme","ChartModelFactory","makeModelFromSettings","settings","table","theme","figure","makeFigureFromSettings","tableCopy","copy","applyCustomColumns","customColumns","applyFilter","filter","applySort","sort","plot","Figure","create","makeFigureSettings","makeModel"],"sources":["../src/ChartModelFactory.ts"],"sourcesContent":["import dh, { Figure, Table } from '@deephaven/jsapi-shim';\nimport ChartUtils, { ChartModelSettings } from './ChartUtils';\nimport FigureChartModel from './FigureChartModel';\nimport ChartTheme from './ChartTheme';\nimport ChartModel from './ChartModel';\n\nclass ChartModelFactory {\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param table The table to build the model for\n * @param theme The theme for the figure. Defaults to ChartTheme\n * @returns The ChartModel Promise representing the figure\n * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel\n * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel\n */\n static async makeModelFromSettings(\n settings: ChartModelSettings,\n table: Table,\n theme = ChartTheme\n ): Promise<ChartModel> {\n const figure = await ChartModelFactory.makeFigureFromSettings(\n settings,\n table\n );\n return new FigureChartModel(figure, settings, theme);\n }\n\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param table The table to build the model for\n * @returns The Figure created with the settings provided\n */\n static async makeFigureFromSettings(\n settings: ChartModelSettings,\n table: Table\n ): Promise<Figure> {\n // Copy the table first and then re-apply the filters from the original table\n // When we add toable linking we'll want to listen to the original table and update\n // the copied table with any changes that occur.\n // The table gets owned by the Figure that gets created, which closes the table\n const tableCopy = await table.copy();\n tableCopy.applyCustomColumns(table.customColumns);\n tableCopy.applyFilter(table.filter);\n tableCopy.applySort(table.sort);\n\n return dh.plot.Figure.create(\n ChartUtils.makeFigureSettings(settings, tableCopy)\n );\n }\n\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param figure The figure to build the model for\n * @param theme The theme for the figure. Defaults to ChartTheme\n * @returns The FigureChartModel representing the figure\n * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel\n * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel\n */\n static async makeModel(\n settings: Record<string, unknown> | undefined,\n figure: Figure,\n theme = ChartTheme\n ): Promise<ChartModel> {\n return new FigureChartModel(figure, settings, theme);\n }\n}\n\nexport default ChartModelFactory;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChartModelFactory.js","names":["dh","ChartUtils","FigureChartModel","ChartTheme","ChartModelFactory","makeModelFromSettings","settings","table","theme","figure","makeFigureFromSettings","tableCopy","copy","applyCustomColumns","customColumns","applyFilter","filter","applySort","sort","plot","Figure","create","makeFigureSettings","makeModel"],"sources":["../src/ChartModelFactory.ts"],"sourcesContent":["import dh, { Figure, Table } from '@deephaven/jsapi-shim';\nimport ChartUtils, { ChartModelSettings } from './ChartUtils';\nimport FigureChartModel from './FigureChartModel';\nimport ChartTheme from './ChartTheme';\nimport ChartModel from './ChartModel';\n\nclass ChartModelFactory {\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param table The table to build the model for\n * @param theme The theme for the figure. Defaults to ChartTheme\n * @returns The ChartModel Promise representing the figure\n * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel\n * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel\n */\n static async makeModelFromSettings(\n settings: ChartModelSettings,\n table: Table,\n theme = ChartTheme\n ): Promise<ChartModel> {\n const figure = await ChartModelFactory.makeFigureFromSettings(\n settings,\n table\n );\n return new FigureChartModel(figure, settings, theme);\n }\n\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param table The table to build the model for\n * @returns The Figure created with the settings provided\n */\n static async makeFigureFromSettings(\n settings: ChartModelSettings,\n table: Table\n ): Promise<Figure> {\n // Copy the table first and then re-apply the filters from the original table\n // When we add toable linking we'll want to listen to the original table and update\n // the copied table with any changes that occur.\n // The table gets owned by the Figure that gets created, which closes the table\n const tableCopy = await table.copy();\n tableCopy.applyCustomColumns(table.customColumns);\n tableCopy.applyFilter(table.filter);\n tableCopy.applySort(table.sort);\n\n return dh.plot.Figure.create(\n ChartUtils.makeFigureSettings(settings, tableCopy)\n );\n }\n\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param figure The figure to build the model for\n * @param theme The theme for the figure. Defaults to ChartTheme\n * @returns The FigureChartModel representing the figure\n * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel\n * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel\n */\n static async makeModel(\n settings: Record<string, unknown> | undefined,\n figure: Figure,\n theme = ChartTheme\n ): Promise<ChartModel> {\n return new FigureChartModel(figure, settings, theme);\n }\n}\n\nexport default ChartModelFactory;\n"],"mappings":";;AAAA,OAAOA,EAAE,MAAyB,uBAAuB;AAAC,OACnDC,UAAU;AAAA,OACVC,gBAAgB;AAAA,OAChBC,UAAU;AAGjB,MAAMC,iBAAiB,CAAC;EACtB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAaC,qBAAqB,CAChCC,QAA4B,EAC5BC,KAAY,EAES;IAAA;IAAA;MAAA,IADrBC,KAAK,0EAAGL,UAAU;MAElB,IAAMM,MAAM,SAASL,iBAAiB,CAACM,sBAAsB,CAC3DJ,QAAQ,EACRC,KAAK,CACN;MACD,OAAO,IAAIL,gBAAgB,CAACO,MAAM,EAAEH,QAAQ,EAAEE,KAAK,CAAC;IAAC;EACvD;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAaE,sBAAsB,CACjCJ,QAA4B,EAC5BC,KAAY,EACK;IAAA;MACjB;MACA;MACA;MACA;MACA,IAAMI,SAAS,SAASJ,KAAK,CAACK,IAAI,EAAE;MACpCD,SAAS,CAACE,kBAAkB,CAACN,KAAK,CAACO,aAAa,CAAC;MACjDH,SAAS,CAACI,WAAW,CAACR,KAAK,CAACS,MAAM,CAAC;MACnCL,SAAS,CAACM,SAAS,CAACV,KAAK,CAACW,IAAI,CAAC;MAE/B,OAAOlB,EAAE,CAACmB,IAAI,CAACC,MAAM,CAACC,MAAM,CAC1BpB,UAAU,CAACqB,kBAAkB,CAAChB,QAAQ,EAAEK,SAAS,CAAC,CACnD;IAAC;EACJ;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAaY,SAAS,CACpBjB,QAA6C,EAC7CG,MAAc,EAEO;IAAA;IAAA;MAAA,IADrBD,KAAK,6EAAGL,UAAU;MAElB,OAAO,IAAID,gBAAgB,CAACO,MAAM,EAAEH,QAAQ,EAAEE,KAAK,CAAC;IAAC;EACvD;AACF;AAEA,eAAeJ,iBAAiB"}
|
package/dist/ChartTestUtils.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
2
|
import dh from '@deephaven/jsapi-shim';
|
|
4
|
-
|
|
5
3
|
class ChartTestUtils {
|
|
6
4
|
static makeAxis() {
|
|
7
5
|
var {
|
|
@@ -22,7 +20,6 @@ class ChartTestUtils {
|
|
|
22
20
|
log
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
|
-
|
|
26
23
|
static makeDefaultAxes() {
|
|
27
24
|
return [ChartTestUtils.makeAxis({
|
|
28
25
|
label: ChartTestUtils.DEFAULT_X_TITLE,
|
|
@@ -32,7 +29,6 @@ class ChartTestUtils {
|
|
|
32
29
|
type: dh.plot.AxisType.Y
|
|
33
30
|
})];
|
|
34
31
|
}
|
|
35
|
-
|
|
36
32
|
static makeSource(_ref) {
|
|
37
33
|
var {
|
|
38
34
|
axis = ChartTestUtils.makeAxis()
|
|
@@ -43,14 +39,12 @@ class ChartTestUtils {
|
|
|
43
39
|
type: axis.type
|
|
44
40
|
});
|
|
45
41
|
}
|
|
46
|
-
|
|
47
42
|
static makeDefaultSources() {
|
|
48
43
|
var axes = ChartTestUtils.makeDefaultAxes();
|
|
49
44
|
return axes.map(axis => ChartTestUtils.makeSource({
|
|
50
45
|
axis
|
|
51
46
|
}));
|
|
52
47
|
}
|
|
53
|
-
|
|
54
48
|
static makeSeries() {
|
|
55
49
|
var {
|
|
56
50
|
name = ChartTestUtils.DEFAULT_SERIES_NAME,
|
|
@@ -62,7 +56,6 @@ class ChartTestUtils {
|
|
|
62
56
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
63
57
|
return new dh.Series(name, plotStyle, sources, lineColor, shapeColor);
|
|
64
58
|
}
|
|
65
|
-
|
|
66
59
|
static makeChart() {
|
|
67
60
|
var {
|
|
68
61
|
title = ChartTestUtils.DEFAULT_CHART_TITLE,
|
|
@@ -76,7 +69,6 @@ class ChartTestUtils {
|
|
|
76
69
|
axes
|
|
77
70
|
});
|
|
78
71
|
}
|
|
79
|
-
|
|
80
72
|
static makeFigure() {
|
|
81
73
|
var {
|
|
82
74
|
title = 'Figure',
|
|
@@ -88,16 +80,10 @@ class ChartTestUtils {
|
|
|
88
80
|
charts
|
|
89
81
|
});
|
|
90
82
|
}
|
|
91
|
-
|
|
92
83
|
}
|
|
93
|
-
|
|
94
84
|
_defineProperty(ChartTestUtils, "DEFAULT_CHART_TITLE", 'Chart Title');
|
|
95
|
-
|
|
96
85
|
_defineProperty(ChartTestUtils, "DEFAULT_X_TITLE", 'X Axis');
|
|
97
|
-
|
|
98
86
|
_defineProperty(ChartTestUtils, "DEFAULT_Y_TITLE", 'Y Axis');
|
|
99
|
-
|
|
100
87
|
_defineProperty(ChartTestUtils, "DEFAULT_SERIES_NAME", 'MySeries');
|
|
101
|
-
|
|
102
88
|
export default ChartTestUtils;
|
|
103
89
|
//# sourceMappingURL=ChartTestUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTestUtils.js","names":["dh","ChartTestUtils","makeAxis","label","type","plot","AxisType","X","position","AxisPosition","BOTTOM","formatType","Axis","FORMAT_TYPE_NUMBER","formatPattern","log","makeDefaultAxes","DEFAULT_X_TITLE","DEFAULT_Y_TITLE","Y","makeSource","axis","SeriesDataSource","makeDefaultSources","axes","map","makeSeries","name","DEFAULT_SERIES_NAME","plotStyle","SeriesPlotStyle","SCATTER","sources","lineColor","shapeColor","Series","makeChart","title","DEFAULT_CHART_TITLE","series","Chart","makeFigure","charts","Figure"],"sources":["../src/ChartTestUtils.ts"],"sourcesContent":["import dh, {\n Axis,\n Chart,\n Figure,\n Series,\n SeriesDataSource,\n} from '@deephaven/jsapi-shim';\n\nclass ChartTestUtils {\n static DEFAULT_CHART_TITLE = 'Chart Title';\n\n static DEFAULT_X_TITLE = 'X Axis';\n\n static DEFAULT_Y_TITLE = 'Y Axis';\n\n static DEFAULT_SERIES_NAME = 'MySeries';\n\n static makeAxis({\n label = 'Axis',\n type = dh.plot.AxisType.X,\n position = dh.plot.AxisPosition.BOTTOM,\n formatType = dh.Axis.FORMAT_TYPE_NUMBER,\n formatPattern = '###,###0.00',\n log = false,\n } = {}): Axis {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Axis({\n label,\n type,\n position,\n formatType,\n formatPattern,\n log,\n });\n }\n\n static makeDefaultAxes(): Axis[] {\n return [\n ChartTestUtils.makeAxis({\n label: ChartTestUtils.DEFAULT_X_TITLE,\n type: dh.plot.AxisType.X,\n }),\n ChartTestUtils.makeAxis({\n label: ChartTestUtils.DEFAULT_Y_TITLE,\n type: dh.plot.AxisType.Y,\n }),\n ];\n }\n\n static makeSource({\n axis = ChartTestUtils.makeAxis(),\n }: {\n axis: Axis;\n }): SeriesDataSource {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).SeriesDataSource({ axis, type: axis.type });\n }\n\n static makeDefaultSources(): SeriesDataSource[] {\n const axes = ChartTestUtils.makeDefaultAxes();\n return axes.map(axis => ChartTestUtils.makeSource({ axis }));\n }\n\n static makeSeries({\n name = ChartTestUtils.DEFAULT_SERIES_NAME,\n plotStyle = dh.plot.SeriesPlotStyle.SCATTER,\n sources = ChartTestUtils.makeDefaultSources(),\n lineColor = null,\n shapeColor = null,\n } = {}): Series {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Series(\n name,\n plotStyle,\n sources,\n lineColor,\n shapeColor\n );\n }\n\n static makeChart({\n title = ChartTestUtils.DEFAULT_CHART_TITLE,\n series = [ChartTestUtils.makeSeries()],\n axes = ChartTestUtils.makeDefaultAxes(),\n } = {}): Chart {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Chart({ title, series, axes });\n }\n\n static makeFigure({\n title = 'Figure',\n charts = [ChartTestUtils.makeChart()],\n } = {}): Figure {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).plot.Figure({ title, charts });\n }\n}\n\nexport default ChartTestUtils;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChartTestUtils.js","names":["dh","ChartTestUtils","makeAxis","label","type","plot","AxisType","X","position","AxisPosition","BOTTOM","formatType","Axis","FORMAT_TYPE_NUMBER","formatPattern","log","makeDefaultAxes","DEFAULT_X_TITLE","DEFAULT_Y_TITLE","Y","makeSource","axis","SeriesDataSource","makeDefaultSources","axes","map","makeSeries","name","DEFAULT_SERIES_NAME","plotStyle","SeriesPlotStyle","SCATTER","sources","lineColor","shapeColor","Series","makeChart","title","DEFAULT_CHART_TITLE","series","Chart","makeFigure","charts","Figure"],"sources":["../src/ChartTestUtils.ts"],"sourcesContent":["import dh, {\n Axis,\n Chart,\n Figure,\n Series,\n SeriesDataSource,\n} from '@deephaven/jsapi-shim';\n\nclass ChartTestUtils {\n static DEFAULT_CHART_TITLE = 'Chart Title';\n\n static DEFAULT_X_TITLE = 'X Axis';\n\n static DEFAULT_Y_TITLE = 'Y Axis';\n\n static DEFAULT_SERIES_NAME = 'MySeries';\n\n static makeAxis({\n label = 'Axis',\n type = dh.plot.AxisType.X,\n position = dh.plot.AxisPosition.BOTTOM,\n formatType = dh.Axis.FORMAT_TYPE_NUMBER,\n formatPattern = '###,###0.00',\n log = false,\n } = {}): Axis {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Axis({\n label,\n type,\n position,\n formatType,\n formatPattern,\n log,\n });\n }\n\n static makeDefaultAxes(): Axis[] {\n return [\n ChartTestUtils.makeAxis({\n label: ChartTestUtils.DEFAULT_X_TITLE,\n type: dh.plot.AxisType.X,\n }),\n ChartTestUtils.makeAxis({\n label: ChartTestUtils.DEFAULT_Y_TITLE,\n type: dh.plot.AxisType.Y,\n }),\n ];\n }\n\n static makeSource({\n axis = ChartTestUtils.makeAxis(),\n }: {\n axis: Axis;\n }): SeriesDataSource {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).SeriesDataSource({ axis, type: axis.type });\n }\n\n static makeDefaultSources(): SeriesDataSource[] {\n const axes = ChartTestUtils.makeDefaultAxes();\n return axes.map(axis => ChartTestUtils.makeSource({ axis }));\n }\n\n static makeSeries({\n name = ChartTestUtils.DEFAULT_SERIES_NAME,\n plotStyle = dh.plot.SeriesPlotStyle.SCATTER,\n sources = ChartTestUtils.makeDefaultSources(),\n lineColor = null,\n shapeColor = null,\n } = {}): Series {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Series(\n name,\n plotStyle,\n sources,\n lineColor,\n shapeColor\n );\n }\n\n static makeChart({\n title = ChartTestUtils.DEFAULT_CHART_TITLE,\n series = [ChartTestUtils.makeSeries()],\n axes = ChartTestUtils.makeDefaultAxes(),\n } = {}): Chart {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Chart({ title, series, axes });\n }\n\n static makeFigure({\n title = 'Figure',\n charts = [ChartTestUtils.makeChart()],\n } = {}): Figure {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).plot.Figure({ title, charts });\n }\n}\n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GED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTheme.js","names":["ChartTheme","Object","freeze","paper_bgcolor","plot_bgcolor","title_color","colorway","gridcolor","linecolor","zerolinecolor","activecolor","rangebgcolor","area_color","trend_color","line_color","error_band_line_color","error_band_fill_color","ohlc_increasing","ohlc_decreasing"],"sources":["../src/ChartTheme.ts"],"sourcesContent":["import ChartTheme from './ChartTheme.module.scss';\n\nexport default Object.freeze({\n paper_bgcolor: ChartTheme['paper-bgcolor'],\n plot_bgcolor: ChartTheme['plot-bgcolor'],\n title_color: ChartTheme['title-color'],\n colorway: ChartTheme.colorway,\n gridcolor: ChartTheme.gridcolor,\n linecolor: ChartTheme.linecolor,\n zerolinecolor: ChartTheme.zerolinecolor,\n activecolor: ChartTheme.activecolor,\n rangebgcolor: ChartTheme.rangebgcolor,\n area_color: ChartTheme['area-color'],\n trend_color: ChartTheme['trend-color'],\n line_color: ChartTheme['line-color'],\n error_band_line_color: ChartTheme['error-band-line-color'],\n error_band_fill_color: ChartTheme['error-band-fill-color'],\n ohlc_increasing: ChartTheme['ohlc-increasing'],\n ohlc_decreasing: ChartTheme['ohlc-decreasing'],\n});\n"],"mappings":"OAAOA,
|
|
1
|
+
{"version":3,"file":"ChartTheme.js","names":["ChartTheme","Object","freeze","paper_bgcolor","plot_bgcolor","title_color","colorway","gridcolor","linecolor","zerolinecolor","activecolor","rangebgcolor","area_color","trend_color","line_color","error_band_line_color","error_band_fill_color","ohlc_increasing","ohlc_decreasing"],"sources":["../src/ChartTheme.ts"],"sourcesContent":["import ChartTheme from './ChartTheme.module.scss';\n\nexport default Object.freeze({\n paper_bgcolor: ChartTheme['paper-bgcolor'],\n plot_bgcolor: ChartTheme['plot-bgcolor'],\n title_color: ChartTheme['title-color'],\n colorway: ChartTheme.colorway,\n gridcolor: ChartTheme.gridcolor,\n linecolor: ChartTheme.linecolor,\n zerolinecolor: ChartTheme.zerolinecolor,\n activecolor: ChartTheme.activecolor,\n rangebgcolor: ChartTheme.rangebgcolor,\n area_color: ChartTheme['area-color'],\n trend_color: ChartTheme['trend-color'],\n line_color: ChartTheme['line-color'],\n error_band_line_color: ChartTheme['error-band-line-color'],\n error_band_fill_color: ChartTheme['error-band-fill-color'],\n ohlc_increasing: ChartTheme['ohlc-increasing'],\n ohlc_decreasing: ChartTheme['ohlc-decreasing'],\n});\n"],"mappings":"OAAOA,UAAU;AAEjB,eAAeC,MAAM,CAACC,MAAM,CAAC;EAC3BC,aAAa,EAAEH,UAAU,CAAC,eAAe,CAAC;EAC1CI,YAAY,EAAEJ,UAAU,CAAC,cAAc,CAAC;EACxCK,WAAW,EAAEL,UAAU,CAAC,aAAa,CAAC;EACtCM,QAAQ,EAAEN,UAAU,CAACM,QAAQ;EAC7BC,SAAS,EAAEP,UAAU,CAACO,SAAS;EAC/BC,SAAS,EAAER,UAAU,CAACQ,SAAS;EAC/BC,aAAa,EAAET,UAAU,CAACS,aAAa;EACvCC,WAAW,EAAEV,UAAU,CAACU,WAAW;EACnCC,YAAY,EAAEX,UAAU,CAACW,YAAY;EACrCC,UAAU,EAAEZ,UAAU,CAAC,YAAY,CAAC;EACpCa,WAAW,EAAEb,UAAU,CAAC,aAAa,CAAC;EACtCc,UAAU,EAAEd,UAAU,CAAC,YAAY,CAAC;EACpCe,qBAAqB,EAAEf,UAAU,CAAC,uBAAuB,CAAC;EAC1DgB,qBAAqB,EAAEhB,UAAU,CAAC,uBAAuB,CAAC;EAC1DiB,eAAe,EAAEjB,UAAU,CAAC,iBAAiB,CAAC;EAC9CkB,eAAe,EAAElB,UAAU,CAAC,iBAAiB;AAC/C,CAAC,CAAC"}
|
package/dist/ChartUtils.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ export interface SeriesData {
|
|
|
20
20
|
xLow?: number;
|
|
21
21
|
xHigh?: number;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
|
|
23
|
+
export type RangeParser = (range: Range) => unknown[];
|
|
24
|
+
export type AxisRangeParser = (axis: Axis) => RangeParser;
|
|
25
|
+
export type ChartAxisRangeParser = (chart: Chart) => AxisRangeParser;
|
|
26
|
+
type LayoutAxisKey = 'xaxis' | 'xaxis2' | 'xaxis3' | 'xaxis4' | 'xaxis5' | 'xaxis6' | 'xaxis7' | 'xaxis8' | 'xaxis9' | 'yaxis' | 'yaxis2' | 'yaxis3' | 'yaxis4' | 'yaxis5' | 'yaxis6' | 'yaxis7' | 'yaxis8' | 'yaxis9';
|
|
27
27
|
export interface TreeMapData extends PlotData {
|
|
28
28
|
tiling: {
|
|
29
29
|
packing: 'squarify';
|
|
@@ -38,14 +38,14 @@ interface Rangebreaks {
|
|
|
38
38
|
pattern?: 'day of week' | 'hour' | '';
|
|
39
39
|
values?: string[];
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type ChartBounds = {
|
|
42
42
|
left: number;
|
|
43
43
|
right: number;
|
|
44
44
|
top: number;
|
|
45
45
|
bottom: number;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
48
|
-
|
|
47
|
+
export type AxisTypeMap = Map<AxisType, Axis[]>;
|
|
48
|
+
type AxisPositionMap = Map<AxisPosition, Axis[]>;
|
|
49
49
|
declare class ChartUtils {
|
|
50
50
|
static DEFAULT_AXIS_SIZE: number;
|
|
51
51
|
static MIN_AXIS_SIZE: number;
|
|
@@ -59,14 +59,14 @@ declare class ChartUtils {
|
|
|
59
59
|
}>;
|
|
60
60
|
static DATE_FORMAT: string;
|
|
61
61
|
static DEFAULT_MARGIN: Readonly<{
|
|
62
|
-
l:
|
|
63
|
-
r:
|
|
64
|
-
t:
|
|
65
|
-
b:
|
|
66
|
-
pad:
|
|
62
|
+
l: 60;
|
|
63
|
+
r: 50;
|
|
64
|
+
t: 30;
|
|
65
|
+
b: 60;
|
|
66
|
+
pad: 0;
|
|
67
67
|
}>;
|
|
68
68
|
static DEFAULT_TITLE_PADDING: Readonly<{
|
|
69
|
-
t:
|
|
69
|
+
t: 8;
|
|
70
70
|
}>;
|
|
71
71
|
static SUBTITLE_LINE_HEIGHT: number;
|
|
72
72
|
/**
|
package/dist/ChartUtils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartUtils.d.ts","sourceRoot":"","sources":["../src/ChartUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,EAGV,MAAM,wBAAwB,CAAC;AAChC,OAAW,EACT,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,KAAK,EAEL,MAAM,EACN,OAAO,EAEP,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,aAAa,EACb,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,IAAI,UAAU,EAClB,QAAQ,EACR,UAAU,EAGX,MAAM,WAAW,CAAC;AACnB,OAAO,EAAiB,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,eAAe,CAAC;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,
|
|
1
|
+
{"version":3,"file":"ChartUtils.d.ts","sourceRoot":"","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