@deephaven/chart 0.15.5-beta.3 → 0.15.5-beta.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.
@@ -11,11 +11,18 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
11
11
  */
12
12
  class ChartModel {
13
13
  constructor() {
14
+ _defineProperty(this, "listeners", void 0);
15
+
16
+ _defineProperty(this, "formatter", void 0);
17
+
18
+ _defineProperty(this, "rect", void 0);
19
+
20
+ _defineProperty(this, "isDownsamplingDisabled", void 0);
21
+
22
+ _defineProperty(this, "title", void 0);
23
+
14
24
  this.listeners = [];
15
- this.formatter = null;
16
- this.rect = null;
17
25
  this.isDownsamplingDisabled = false;
18
- this.title = null;
19
26
  }
20
27
 
21
28
  getData() {
@@ -36,18 +43,20 @@ class ChartModel {
36
43
 
37
44
  isFilterRequired() {
38
45
  return false;
39
- }
46
+ } // eslint-disable-next-line @typescript-eslint/no-empty-function
47
+
40
48
 
41
- setFilter() {}
49
+ setFilter(filter) {}
42
50
  /**
43
51
  * Close this model, clean up any underlying subscriptions
44
52
  */
53
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
45
54
 
46
55
 
47
56
  close() {}
48
57
  /**
49
58
  * Set the formatter to use when charting the data.
50
- * @param {Formatter} formatter The formatter to use to format the charting data
59
+ * @param formatter The formatter to use to format the charting data
51
60
  */
52
61
 
53
62
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ChartModel.js"],"names":["ChartModel","constructor","listeners","formatter","rect","isDownsamplingDisabled","title","getData","getDefaultTitle","getLayout","getFilterColumnMap","Map","isFilterRequired","setFilter","close","setFormatter","setDownsamplingDisabled","setDimensions","setTitle","subscribe","callback","push","unsubscribe","filter","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"],"mappings":"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","sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\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.formatter = null;\n this.rect = null;\n this.isDownsamplingDisabled = false;\n this.title = null;\n }\n\n getData() {\n return [];\n }\n\n getDefaultTitle() {\n return '';\n }\n\n getLayout() {\n return {};\n }\n\n getFilterColumnMap() {\n return new Map();\n }\n\n isFilterRequired() {\n return false;\n }\n\n setFilter() {}\n\n /**\n * Close this model, clean up any underlying subscriptions\n */\n close() {}\n\n /**\n * Set the formatter to use when charting the data.\n * @param {Formatter} formatter The formatter to use to format the charting data\n */\n setFormatter(formatter) {\n this.formatter = formatter;\n }\n\n /**\n * Disable downsampling\n * @param {boolean} isDownsamplingDisabled True if downsampling should be disabled\n */\n setDownsamplingDisabled(isDownsamplingDisabled) {\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 {DOMRect} rect The bounding rectangle of the plot\n */\n setDimensions(rect) {\n this.rect = rect;\n }\n\n setTitle(title) {\n this.title = title;\n }\n\n /**\n * Subscribe to this ChartModel and start listening for all events.\n * @param {Function<Event>} callback Callback when an event occurs\n */\n subscribe(callback) {\n this.listeners.push(callback);\n }\n\n unsubscribe(callback) {\n this.listeners = this.listeners.filter(listener => listener !== callback);\n }\n\n fireEvent(event) {\n for (let i = 0; i < this.listeners.length; i += 1) {\n this.listeners[i](event);\n }\n }\n\n fireUpdate(data) {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_UPDATED, { detail: data }));\n }\n\n fireDisconnect() {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_DISCONNECT));\n }\n\n fireReconnect() {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_RECONNECT));\n }\n\n fireDownsampleStart(detail) {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLESTARTED, { detail })\n );\n }\n\n fireDownsampleFinish(detail) {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFINISHED, { detail })\n );\n }\n\n fireDownsampleFail(detail) {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFAILED, { detail })\n );\n }\n\n fireDownsampleNeeded(detail) {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLENEEDED, { detail })\n );\n }\n\n fireLoadFinished() {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_LOADFINISHED));\n }\n}\n\nexport default ChartModel;\n"],"file":"ChartModel.js"}
1
+ {"version":3,"sources":["../src/ChartModel.ts"],"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"],"mappings":"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","sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\n\nimport { Column } from '@deephaven/jsapi-shim';\nimport { Formatter } from '@deephaven/jsapi-utils';\n\ntype 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(): { name: string; visible: string }[] {\n return [];\n }\n\n getDefaultTitle(): string {\n return '';\n }\n\n getLayout(): Record<string, unknown> {\n return {};\n }\n\n getFilterColumnMap(): Map<string, Column> {\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 {boolean} 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 {DOMRect} 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 {Function<Event>} 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"],"file":"ChartModel.js"}
@@ -1,62 +1,91 @@
1
- export default ChartModelFactory;
1
+ import { Figure, SeriesPlotStyle, Table } from '@deephaven/jsapi-shim';
2
+ import ChartModel from './ChartModel';
3
+ interface ChartModelSettings {
4
+ title: string;
5
+ xAxis: string;
6
+ series: string[];
7
+ type: SeriesPlotStyle;
8
+ }
2
9
  declare class ChartModelFactory {
3
10
  /**
4
11
  * Creates a model from the settings provided.
5
12
  * Tries to create a Figure in the API with it.
6
- * @param {Object} settings The chart builder settings
7
- * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
8
- * @param {string[]} settings.series The column names to use for creating the series of this chart
9
- * @param {string} settings.type Chart builder type, from ChartBuilder.types
10
- * @param {string} settings.xAxis The column name to use for the x-axis
11
- * @param {string[]} [settings.hiddenSeries] Array of hidden series names
12
- * @param {dh.Table} table The table to build the model for
13
- * @param {Object} theme The theme for the figure. Defaults to ChartTheme
14
- * @returns {Promise<ChartModel | FigureChartModel>} The FigureChartModel representing the figure
13
+ * @param settings The chart builder settings
14
+ * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
15
+ * @param settings.series The column names to use for creating the series of this chart
16
+ * @param settings.type Chart builder type, from ChartBuilder.types
17
+ * @param settings.xAxis The column name to use for the x-axis
18
+ * @param [settings.hiddenSeries] Array of hidden series names
19
+ * @param table The table to build the model for
20
+ * @param theme The theme for the figure. Defaults to ChartTheme
21
+ * @returns The ChartModel Promise representing the figure
15
22
  * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel
16
23
  * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel
17
24
  */
18
- static makeModelFromSettings(settings: {
19
- isLinked: boolean;
20
- series: string[];
21
- type: string;
22
- xAxis: string;
23
- hiddenSeries?: string[] | undefined;
24
- }, table: dh.Table, theme?: Object): Promise<ChartModel | FigureChartModel>;
25
+ static makeModelFromSettings(settings: ChartModelSettings, table: Table, theme?: Readonly<{
26
+ paper_bgcolor: string;
27
+ plot_bgcolor: string;
28
+ title_color: string;
29
+ colorway: string;
30
+ gridcolor: string;
31
+ linecolor: string;
32
+ zerolinecolor: string;
33
+ activecolor: string;
34
+ rangebgcolor: string;
35
+ area_color: string;
36
+ trend_color: string;
37
+ line_color: string;
38
+ error_band_line_color: string;
39
+ error_band_fill_color: string;
40
+ ohlc_increasing: string;
41
+ ohlc_decreasing: string;
42
+ }>): Promise<ChartModel>;
25
43
  /**
26
44
  * Creates a model from the settings provided.
27
45
  * Tries to create a Figure in the API with it.
28
- * @param {Object} settings The chart builder settings
29
- * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
30
- * @param {string[]} settings.series The column names to use for creating the series of this chart
31
- * @param {string} settings.type Chart builder type, from ChartBuilder.types
32
- * @param {string} settings.xAxis The column name to use for the x-axis
33
- * @param {string[]} [settings.hiddenSeries] Array of hidden series names
34
- * @param {dh.Table} table The table to build the model for
35
- * @returns {Promise<dh.plot.Figure>} The Figure created with the settings provided
46
+ * @param settings The chart builder settings
47
+ * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
48
+ * @param settings.series The column names to use for creating the series of this chart
49
+ * @param settings.type Chart builder type, from ChartBuilder.types
50
+ * @param settings.xAxis The column name to use for the x-axis
51
+ * @param [settings.hiddenSeries] Array of hidden series names
52
+ * @param table The table to build the model for
53
+ * @returns The Figure created with the settings provided
36
54
  */
37
- static makeFigureFromSettings(settings: {
38
- isLinked: boolean;
39
- series: string[];
40
- type: string;
41
- xAxis: string;
42
- hiddenSeries?: string[] | undefined;
43
- }, table: dh.Table): Promise<dh.plot.Figure>;
55
+ static makeFigureFromSettings(settings: ChartModelSettings, table: Table): Promise<Figure>;
44
56
  /**
45
57
  * Creates a model from the settings provided.
46
58
  * Tries to create a Figure in the API with it.
47
- * @param {Object|undefined} settings The chart builder settings
48
- * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
49
- * @param {string[]} settings.series The column names to use for creating the series of this chart
50
- * @param {string} settings.type Chart builder type, from ChartBuilder.types
51
- * @param {string} settings.xAxis The column name to use for the x-axis
52
- * @param {string[]} [settings.hiddenSeries] Array of hidden series names
53
- * @param {dh.Figure} figure The figure to build the model for
54
- * @param {Object} theme The theme for the figure. Defaults to ChartTheme
55
- * @returns {Promise<ChartModel | FigureChartModel>} The FigureChartModel representing the figure
59
+ * @param settings The chart builder settings
60
+ * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
61
+ * @param settings.series The column names to use for creating the series of this chart
62
+ * @param settings.type Chart builder type, from ChartBuilder.types
63
+ * @param settings.xAxis The column name to use for the x-axis
64
+ * @param [settings.hiddenSeries] Array of hidden series names
65
+ * @param figure The figure to build the model for
66
+ * @param theme The theme for the figure. Defaults to ChartTheme
67
+ * @returns The FigureChartModel representing the figure
56
68
  * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel
57
69
  * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel
58
70
  */
59
- static makeModel(settings: Object | undefined, figure: dh.Figure, theme?: Object): Promise<ChartModel | FigureChartModel>;
71
+ static makeModel(settings: Record<string, unknown> | undefined, figure: Figure, theme?: Readonly<{
72
+ paper_bgcolor: string;
73
+ plot_bgcolor: string;
74
+ title_color: string;
75
+ colorway: string;
76
+ gridcolor: string;
77
+ linecolor: string;
78
+ zerolinecolor: string;
79
+ activecolor: string;
80
+ rangebgcolor: string;
81
+ area_color: string;
82
+ trend_color: string;
83
+ line_color: string;
84
+ error_band_line_color: string;
85
+ error_band_fill_color: string;
86
+ ohlc_increasing: string;
87
+ ohlc_decreasing: string;
88
+ }>): Promise<ChartModel>;
60
89
  }
61
- import FigureChartModel from "./FigureChartModel";
90
+ export default ChartModelFactory;
62
91
  //# sourceMappingURL=ChartModelFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChartModelFactory.d.ts","sourceRoot":"","sources":["../src/ChartModelFactory.js"],"names":[],"mappings":";AAKA;IACE;;;;;;;;;;;;;;OAcG;IACH;QAX6B,QAAQ,EAA1B,OAAO;QACY,MAAM,EAAzB,MAAM,EAAE;QACS,IAAI,EAArB,MAAM;QACW,KAAK,EAAtB,MAAM;QACc,YAAY;gCAEhC,MAAM,GACJ,QAAQ,aAAa,gBAAgB,CAAC,CAUlD;IAED;;;;;;;;;;;OAWG;IACH;QAR6B,QAAQ,EAA1B,OAAO;QACY,MAAM,EAAzB,MAAM,EAAE;QACS,IAAI,EAArB,MAAM;QACW,KAAK,EAAtB,MAAM;QACc,YAAY;yBAE9B,uBAAuB,CAenC;IAED;;;;;;;;;;;;;;OAcG;IACH,2BAZW,MAAM,GAAC,SAAS,6BAOhB,MAAM,GACJ,QAAQ,aAAa,gBAAgB,CAAC,CAMlD;CACF"}
1
+ {"version":3,"file":"ChartModelFactory.d.ts","sourceRoot":"","sources":["../src/ChartModelFactory.ts"],"names":[],"mappings":"AAAA,OAAW,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAI3E,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,cAAM,iBAAiB;IACrB;;;;;;;;;;;;;;OAcG;WACU,qBAAqB,CAChC,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,KAAK,EACZ,KAAK;;;;;;;;;;;;;;;;;MAAa,GACjB,OAAO,CAAC,UAAU,CAAC;IAQtB;;;;;;;;;;;OAWG;WACU,sBAAsB,CACjC,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,KAAK,GACX,OAAO,CAAC,MAAM,CAAC;IAelB;;;;;;;;;;;;;;OAcG;WACU,SAAS,CACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC7C,MAAM,EAAE,MAAM,EACd,KAAK;;;;;;;;;;;;;;;;;MAAa,GACjB,OAAO,CAAC,UAAU,CAAC;CAGvB;AAED,eAAe,iBAAiB,CAAC"}
@@ -11,15 +11,15 @@ class ChartModelFactory {
11
11
  /**
12
12
  * Creates a model from the settings provided.
13
13
  * Tries to create a Figure in the API with it.
14
- * @param {Object} settings The chart builder settings
15
- * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
16
- * @param {string[]} settings.series The column names to use for creating the series of this chart
17
- * @param {string} settings.type Chart builder type, from ChartBuilder.types
18
- * @param {string} settings.xAxis The column name to use for the x-axis
19
- * @param {string[]} [settings.hiddenSeries] Array of hidden series names
20
- * @param {dh.Table} table The table to build the model for
21
- * @param {Object} theme The theme for the figure. Defaults to ChartTheme
22
- * @returns {Promise<ChartModel | FigureChartModel>} The FigureChartModel representing the figure
14
+ * @param settings The chart builder settings
15
+ * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
16
+ * @param settings.series The column names to use for creating the series of this chart
17
+ * @param settings.type Chart builder type, from ChartBuilder.types
18
+ * @param settings.xAxis The column name to use for the x-axis
19
+ * @param [settings.hiddenSeries] Array of hidden series names
20
+ * @param table The table to build the model for
21
+ * @param theme The theme for the figure. Defaults to ChartTheme
22
+ * @returns The ChartModel Promise representing the figure
23
23
  * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel
24
24
  * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel
25
25
  */
@@ -34,21 +34,21 @@ class ChartModelFactory {
34
34
  /**
35
35
  * Creates a model from the settings provided.
36
36
  * Tries to create a Figure in the API with it.
37
- * @param {Object} settings The chart builder settings
38
- * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
39
- * @param {string[]} settings.series The column names to use for creating the series of this chart
40
- * @param {string} settings.type Chart builder type, from ChartBuilder.types
41
- * @param {string} settings.xAxis The column name to use for the x-axis
42
- * @param {string[]} [settings.hiddenSeries] Array of hidden series names
43
- * @param {dh.Table} table The table to build the model for
44
- * @returns {Promise<dh.plot.Figure>} The Figure created with the settings provided
37
+ * @param settings The chart builder settings
38
+ * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
39
+ * @param settings.series The column names to use for creating the series of this chart
40
+ * @param settings.type Chart builder type, from ChartBuilder.types
41
+ * @param settings.xAxis The column name to use for the x-axis
42
+ * @param [settings.hiddenSeries] Array of hidden series names
43
+ * @param table The table to build the model for
44
+ * @returns The Figure created with the settings provided
45
45
  */
46
46
 
47
47
 
48
48
  static makeFigureFromSettings(settings, table) {
49
49
  return _asyncToGenerator(function* () {
50
50
  // Copy the table first and then re-apply the filters from the original table
51
- // When we add table linking we'll want to listen to the original table and update
51
+ // When we add toable linking we'll want to listen to the original table and update
52
52
  // the copied table with any changes that occur.
53
53
  // The table gets owned by the Figure that gets created, which closes the table
54
54
  var tableCopy = yield table.copy();
@@ -61,15 +61,15 @@ class ChartModelFactory {
61
61
  /**
62
62
  * Creates a model from the settings provided.
63
63
  * Tries to create a Figure in the API with it.
64
- * @param {Object|undefined} settings The chart builder settings
65
- * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
66
- * @param {string[]} settings.series The column names to use for creating the series of this chart
67
- * @param {string} settings.type Chart builder type, from ChartBuilder.types
68
- * @param {string} settings.xAxis The column name to use for the x-axis
69
- * @param {string[]} [settings.hiddenSeries] Array of hidden series names
70
- * @param {dh.Figure} figure The figure to build the model for
71
- * @param {Object} theme The theme for the figure. Defaults to ChartTheme
72
- * @returns {Promise<ChartModel | FigureChartModel>} The FigureChartModel representing the figure
64
+ * @param settings The chart builder settings
65
+ * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
66
+ * @param settings.series The column names to use for creating the series of this chart
67
+ * @param settings.type Chart builder type, from ChartBuilder.types
68
+ * @param settings.xAxis The column name to use for the x-axis
69
+ * @param [settings.hiddenSeries] Array of hidden series names
70
+ * @param figure The figure to build the model for
71
+ * @param theme The theme for the figure. Defaults to ChartTheme
72
+ * @returns The FigureChartModel representing the figure
73
73
  * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel
74
74
  * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel
75
75
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/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"],"mappings":";;;;AAAA,OAAOA,EAAP,MAAe,uBAAf;OACOC,U;OACAC,gB;OACAC,U;;AAEP,MAAMC,iBAAN,CAAwB;AACtB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACoC,SAArBC,qBAAqB,CAACC,QAAD,EAAWC,KAAX,EAAsC;AAAA;AAAA;AAAA,UAApBC,KAAoB,0EAAZL,UAAY;AACtE,UAAMM,MAAM,SAASL,iBAAiB,CAACM,sBAAlB,CACnBJ,QADmB,EAEnBC,KAFmB,CAArB;AAIA,aAAO,IAAIL,gBAAJ,CAAqBO,MAArB,EAA6BH,QAA7B,EAAuCE,KAAvC,CAAP;AALsE;AAMvE;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACqC,SAAtBE,sBAAsB,CAACJ,QAAD,EAAWC,KAAX,EAAkB;AAAA;AACnD;AACA;AACA;AACA;AACA,UAAMI,SAAS,SAASJ,KAAK,CAACK,IAAN,EAAxB;AACAD,MAAAA,SAAS,CAACE,kBAAV,CAA6BN,KAAK,CAACO,aAAnC;AACAH,MAAAA,SAAS,CAACI,WAAV,CAAsBR,KAAK,CAACS,MAA5B;AACAL,MAAAA,SAAS,CAACM,SAAV,CAAoBV,KAAK,CAACW,IAA1B;AAEA,aAAOlB,EAAE,CAACmB,IAAH,CAAQC,MAAR,CAAeC,MAAf,CACLpB,UAAU,CAACqB,kBAAX,CAA8BhB,QAA9B,EAAwCK,SAAxC,CADK,CAAP;AAVmD;AAapD;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACwB,SAATY,SAAS,CAACjB,QAAD,EAAWG,MAAX,EAAuC;AAAA;AAAA;AAAA,UAApBD,KAAoB,6EAAZL,UAAY;AAC3D,aAAO,IAAID,gBAAJ,CAAqBO,MAArB,EAA6BH,QAA7B,EAAuCE,KAAvC,CAAP;AAD2D;AAE5D;;AApEqB;;AAuExB,eAAeJ,iBAAf","sourcesContent":["import dh from '@deephaven/jsapi-shim';\nimport ChartUtils from './ChartUtils';\nimport FigureChartModel from './FigureChartModel';\nimport ChartTheme from './ChartTheme';\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 {Object} settings The chart builder settings\n * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param {string[]} settings.series The column names to use for creating the series of this chart\n * @param {string} settings.type Chart builder type, from ChartBuilder.types\n * @param {string} settings.xAxis The column name to use for the x-axis\n * @param {string[]} [settings.hiddenSeries] Array of hidden series names\n * @param {dh.Table} table The table to build the model for\n * @param {Object} theme The theme for the figure. Defaults to ChartTheme\n * @returns {Promise<ChartModel | FigureChartModel>} 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 makeModelFromSettings(settings, table, theme = ChartTheme) {\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 {Object} settings The chart builder settings\n * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param {string[]} settings.series The column names to use for creating the series of this chart\n * @param {string} settings.type Chart builder type, from ChartBuilder.types\n * @param {string} settings.xAxis The column name to use for the x-axis\n * @param {string[]} [settings.hiddenSeries] Array of hidden series names\n * @param {dh.Table} table The table to build the model for\n * @returns {Promise<dh.plot.Figure>} The Figure created with the settings provided\n */\n static async makeFigureFromSettings(settings, table) {\n // Copy the table first and then re-apply the filters from the original table\n // When we add table 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 {Object|undefined} settings The chart builder settings\n * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param {string[]} settings.series The column names to use for creating the series of this chart\n * @param {string} settings.type Chart builder type, from ChartBuilder.types\n * @param {string} settings.xAxis The column name to use for the x-axis\n * @param {string[]} [settings.hiddenSeries] Array of hidden series names\n * @param {dh.Figure} figure The figure to build the model for\n * @param {Object} theme The theme for the figure. Defaults to ChartTheme\n * @returns {Promise<ChartModel | FigureChartModel>} 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(settings, figure, theme = ChartTheme) {\n return new FigureChartModel(figure, settings, theme);\n }\n}\n\nexport default ChartModelFactory;\n"],"file":"ChartModelFactory.js"}
1
+ {"version":3,"sources":["../src/ChartModelFactory.ts"],"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"],"mappings":";;;;AAAA,OAAOA,EAAP,MAAmD,uBAAnD;OACOC,U;OACAC,gB;OACAC,U;;AAUP,MAAMC,iBAAN,CAAwB;AACtB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACoC,SAArBC,qBAAqB,CAChCC,QADgC,EAEhCC,KAFgC,EAIX;AAAA;AAAA;AAAA,UADrBC,KACqB,0EADbL,UACa;AACrB,UAAMM,MAAM,SAASL,iBAAiB,CAACM,sBAAlB,CACnBJ,QADmB,EAEnBC,KAFmB,CAArB;AAIA,aAAO,IAAIL,gBAAJ,CAAqBO,MAArB,EAA6BH,QAA7B,EAAuCE,KAAvC,CAAP;AALqB;AAMtB;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACqC,SAAtBE,sBAAsB,CACjCJ,QADiC,EAEjCC,KAFiC,EAGhB;AAAA;AACjB;AACA;AACA;AACA;AACA,UAAMI,SAAS,SAASJ,KAAK,CAACK,IAAN,EAAxB;AACAD,MAAAA,SAAS,CAACE,kBAAV,CAA6BN,KAAK,CAACO,aAAnC;AACAH,MAAAA,SAAS,CAACI,WAAV,CAAsBR,KAAK,CAACS,MAA5B;AACAL,MAAAA,SAAS,CAACM,SAAV,CAAoBV,KAAK,CAACW,IAA1B;AAEA,aAAOlB,EAAE,CAACmB,IAAH,CAAQC,MAAR,CAAeC,MAAf,CACLpB,UAAU,CAACqB,kBAAX,CAA8BhB,QAA9B,EAAwCK,SAAxC,CADK,CAAP;AAViB;AAalB;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACwB,SAATY,SAAS,CACpBjB,QADoB,EAEpBG,MAFoB,EAIC;AAAA;AAAA;AAAA,UADrBD,KACqB,6EADbL,UACa;AACrB,aAAO,IAAID,gBAAJ,CAAqBO,MAArB,EAA6BH,QAA7B,EAAuCE,KAAvC,CAAP;AADqB;AAEtB;;AA/EqB;;AAkFxB,eAAeJ,iBAAf","sourcesContent":["import dh, { Figure, SeriesPlotStyle, Table } from '@deephaven/jsapi-shim';\nimport ChartUtils from './ChartUtils';\nimport FigureChartModel from './FigureChartModel';\nimport ChartTheme from './ChartTheme';\nimport ChartModel from './ChartModel';\n\ninterface ChartModelSettings {\n title: string;\n xAxis: string;\n series: string[];\n type: SeriesPlotStyle;\n}\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"],"file":"ChartModelFactory.js"}
@@ -1,20 +1,20 @@
1
- declare var _default: Readonly<{
2
- paper_bgcolor: any;
3
- plot_bgcolor: any;
4
- title_color: any;
5
- colorway: any;
6
- gridcolor: any;
7
- linecolor: any;
8
- zerolinecolor: any;
9
- activecolor: any;
10
- rangebgcolor: any;
11
- area_color: any;
12
- trend_color: any;
13
- line_color: any;
14
- error_band_line_color: any;
15
- error_band_fill_color: any;
16
- ohlc_increasing: any;
17
- ohlc_decreasing: any;
1
+ declare const _default: Readonly<{
2
+ paper_bgcolor: string;
3
+ plot_bgcolor: string;
4
+ title_color: string;
5
+ colorway: string;
6
+ gridcolor: string;
7
+ linecolor: string;
8
+ zerolinecolor: string;
9
+ activecolor: string;
10
+ rangebgcolor: string;
11
+ area_color: string;
12
+ trend_color: string;
13
+ line_color: string;
14
+ error_band_line_color: string;
15
+ error_band_fill_color: string;
16
+ ohlc_increasing: string;
17
+ ohlc_decreasing: string;
18
18
  }>;
19
19
  export default _default;
20
20
  //# sourceMappingURL=ChartTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChartTheme.d.ts","sourceRoot":"","sources":["../src/ChartTheme.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"ChartTheme.d.ts","sourceRoot":"","sources":["../src/ChartTheme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,wBAiBG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/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"],"mappings":"OAAOA,U;AAEP,eAAeC,MAAM,CAACC,MAAP,CAAc;AAC3BC,EAAAA,aAAa,EAAEH,UAAU,CAAC,eAAD,CADE;AAE3BI,EAAAA,YAAY,EAAEJ,UAAU,CAAC,cAAD,CAFG;AAG3BK,EAAAA,WAAW,EAAEL,UAAU,CAAC,aAAD,CAHI;AAI3BM,EAAAA,QAAQ,EAAEN,UAAU,CAACM,QAJM;AAK3BC,EAAAA,SAAS,EAAEP,UAAU,CAACO,SALK;AAM3BC,EAAAA,SAAS,EAAER,UAAU,CAACQ,SANK;AAO3BC,EAAAA,aAAa,EAAET,UAAU,CAACS,aAPC;AAQ3BC,EAAAA,WAAW,EAAEV,UAAU,CAACU,WARG;AAS3BC,EAAAA,YAAY,EAAEX,UAAU,CAACW,YATE;AAU3BC,EAAAA,UAAU,EAAEZ,UAAU,CAAC,YAAD,CAVK;AAW3Ba,EAAAA,WAAW,EAAEb,UAAU,CAAC,aAAD,CAXI;AAY3Bc,EAAAA,UAAU,EAAEd,UAAU,CAAC,YAAD,CAZK;AAa3Be,EAAAA,qBAAqB,EAAEf,UAAU,CAAC,uBAAD,CAbN;AAc3BgB,EAAAA,qBAAqB,EAAEhB,UAAU,CAAC,uBAAD,CAdN;AAe3BiB,EAAAA,eAAe,EAAEjB,UAAU,CAAC,iBAAD,CAfA;AAgB3BkB,EAAAA,eAAe,EAAElB,UAAU,CAAC,iBAAD;AAhBA,CAAd,CAAf","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"],"file":"ChartTheme.js"}
1
+ {"version":3,"sources":["../src/ChartTheme.ts"],"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"],"mappings":"OAAOA,U;AAEP,eAAeC,MAAM,CAACC,MAAP,CAAc;AAC3BC,EAAAA,aAAa,EAAEH,UAAU,CAAC,eAAD,CADE;AAE3BI,EAAAA,YAAY,EAAEJ,UAAU,CAAC,cAAD,CAFG;AAG3BK,EAAAA,WAAW,EAAEL,UAAU,CAAC,aAAD,CAHI;AAI3BM,EAAAA,QAAQ,EAAEN,UAAU,CAACM,QAJM;AAK3BC,EAAAA,SAAS,EAAEP,UAAU,CAACO,SALK;AAM3BC,EAAAA,SAAS,EAAER,UAAU,CAACQ,SANK;AAO3BC,EAAAA,aAAa,EAAET,UAAU,CAACS,aAPC;AAQ3BC,EAAAA,WAAW,EAAEV,UAAU,CAACU,WARG;AAS3BC,EAAAA,YAAY,EAAEX,UAAU,CAACW,YATE;AAU3BC,EAAAA,UAAU,EAAEZ,UAAU,CAAC,YAAD,CAVK;AAW3Ba,EAAAA,WAAW,EAAEb,UAAU,CAAC,aAAD,CAXI;AAY3Bc,EAAAA,UAAU,EAAEd,UAAU,CAAC,YAAD,CAZK;AAa3Be,EAAAA,qBAAqB,EAAEf,UAAU,CAAC,uBAAD,CAbN;AAc3BgB,EAAAA,qBAAqB,EAAEhB,UAAU,CAAC,uBAAD,CAdN;AAe3BiB,EAAAA,eAAe,EAAEjB,UAAU,CAAC,iBAAD,CAfA;AAgB3BkB,EAAAA,eAAe,EAAElB,UAAU,CAAC,iBAAD;AAhBA,CAAd,CAAf","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"],"file":"ChartTheme.js"}
@@ -27,7 +27,7 @@ declare class ChartUtils {
27
27
  * @param {String} plotStyle The plotStyle to use, see dh.plot.SeriesPlotStyle
28
28
  * @param {boolean} isBusinessTime If the plot is using business time for an axis
29
29
  */
30
- static getPlotlyChartType(plotStyle: string, isBusinessTime: boolean): "scattergl" | "scatter" | "bar" | "pie" | "treemap" | "histogram" | "ohlc" | null;
30
+ static getPlotlyChartType(plotStyle: string, isBusinessTime: boolean): "pie" | "scattergl" | "scatter" | "bar" | "treemap" | "histogram" | "ohlc" | null;
31
31
  /**
32
32
  * Converts the Iris plot style into a plotly chart mode
33
33
  * @param {String} plotStyle The plotStyle to use, see dh.plot.SeriesPlotStyle.*
@@ -38,7 +38,7 @@ declare class ChartUtils {
38
38
  * @param {dh.plot.SeriesPlotStyle} plotStyle The plot style of the series
39
39
  * @param {dh.plot.SourceType} sourceType The source type for the series
40
40
  */
41
- static getPlotlyProperty(plotStyle: dh.plot.SeriesPlotStyle, sourceType: dh.plot.SourceType): "labels" | "values" | "x" | "ids" | "parents" | "marker.colors" | "y" | "z" | "xLow" | "xHigh" | "yLow" | "yHigh" | "time" | "open" | "high" | "low" | "close" | "shape" | "size" | "label" | "color" | "parent" | "hovertext" | "text";
41
+ static getPlotlyProperty(plotStyle: dh.plot.SeriesPlotStyle, sourceType: dh.plot.SourceType): "text" | "x" | "close" | "y" | "z" | "labels" | "values" | "ids" | "parents" | "marker.colors" | "xLow" | "xHigh" | "yLow" | "yHigh" | "time" | "open" | "high" | "low" | "shape" | "size" | "label" | "color" | "parent" | "hovertext";
42
42
  static getPlotlySeriesOrientation(series: any): string;
43
43
  /**
44
44
  * Generate the plotly error bar data from the passed in data.
@@ -120,7 +120,7 @@ declare class ChartUtils {
120
120
  * @returns {Map<string, object>} A map of axis layout property names to axis formats
121
121
  */
122
122
  static getAxisFormats(figure: dh.plot.Figure, formatter: Formatter): Map<string, object>;
123
- static getChartType(plotStyle: any, isBusinessTime: any): "scattergl" | "scatter" | "bar" | "pie" | "treemap" | "histogram" | "ohlc" | null;
123
+ static getChartType(plotStyle: any, isBusinessTime: any): "pie" | "scattergl" | "scatter" | "bar" | "treemap" | "histogram" | "ohlc" | null;
124
124
  /**
125
125
  * Return the plotly axis property name
126
126
  * @param {dh.plot.AxisType} axisType The axis type to get the property name for
@@ -130,7 +130,7 @@ declare class ChartUtils {
130
130
  * Returns the plotly "side" value for the provided axis position
131
131
  * @param {dh.plot.AxisPosition} axisPosition The Iris AxisPosition of the axis
132
132
  */
133
- static getAxisSide(axisPosition: dh.plot.AxisPosition): "bottom" | "top" | "left" | "right" | null;
133
+ static getAxisSide(axisPosition: dh.plot.AxisPosition): "top" | "left" | "right" | "bottom" | null;
134
134
  /**
135
135
  * Retrieve the chart that contains the passed in series from the figure
136
136
  * @param {dh.plot.Figure} figure The figure to retrieve the chart from
@@ -28,7 +28,7 @@ declare class MockChartModel extends ChartModel {
28
28
  fill: string;
29
29
  hoverinfo: string;
30
30
  line: {
31
- color: any;
31
+ color: string;
32
32
  width: number;
33
33
  };
34
34
  };
@@ -42,7 +42,7 @@ declare class MockChartModel extends ChartModel {
42
42
  line: {
43
43
  width: number;
44
44
  dash: string;
45
- color: any;
45
+ color: string;
46
46
  };
47
47
  };
48
48
  static makeErrorBand(series: any): {
@@ -53,10 +53,10 @@ declare class MockChartModel extends ChartModel {
53
53
  mode: string;
54
54
  hoverinfo: string;
55
55
  fill: string;
56
- fillcolor: any;
56
+ fillcolor: string;
57
57
  line: {
58
58
  width: number;
59
- color: any;
59
+ color: string;
60
60
  shape: string;
61
61
  };
62
62
  };
@@ -68,7 +68,7 @@ declare class MockChartModel extends ChartModel {
68
68
  mode: string;
69
69
  hoverinfo: string;
70
70
  line: {
71
- color: any;
71
+ color: string;
72
72
  width: number;
73
73
  };
74
74
  };
@@ -80,7 +80,7 @@ declare class MockChartModel extends ChartModel {
80
80
  mode: string;
81
81
  hoverinfo: string;
82
82
  line: {
83
- color: any;
83
+ color: string;
84
84
  width: number;
85
85
  };
86
86
  }[];
@@ -160,7 +160,7 @@ declare class MockChartModel extends ChartModel {
160
160
  mode: string;
161
161
  hoverinfo: string;
162
162
  line: {
163
- color: any;
163
+ color: string;
164
164
  width: number;
165
165
  };
166
166
  }[] | undefined;
@@ -241,7 +241,7 @@ declare class MockChartModel extends ChartModel {
241
241
  mode: string;
242
242
  hoverinfo: string;
243
243
  line: {
244
- color: any;
244
+ color: string;
245
245
  width: number;
246
246
  };
247
247
  }[];
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=declaration.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"declaration.d.js"}
package/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export { default as ChartUtils } from './ChartUtils';
5
5
  export { default as FigureChartModel } from './FigureChartModel';
6
6
  export { default as MockChartModel } from './MockChartModel';
7
7
  export { default as Plot } from './plotly/Plot';
8
+ export { default as isFigureChartModel } from './isFigureChartModel';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@ export { default as ChartUtils } from "./ChartUtils.js";
5
5
  export { default as FigureChartModel } from "./FigureChartModel.js";
6
6
  export { default as MockChartModel } from "./MockChartModel.js";
7
7
  export { default as Plot } from "./plotly/Plot.js";
8
+ export { default as isFigureChartModel } from "./isFigureChartModel.js";
8
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["default","Chart","ChartModelFactory","ChartModel","ChartUtils","FigureChartModel","MockChartModel","Plot"],"mappings":"SAASA,OAAO,IAAIC,K;SACXD,OAAO,IAAIE,iB;SACXF,OAAO,IAAIG,U;SACXH,OAAO,IAAII,U;SACXJ,OAAO,IAAIK,gB;SACXL,OAAO,IAAIM,c;SACXN,OAAO,IAAIO,I","sourcesContent":["export { default as Chart } from './Chart';\nexport { default as ChartModelFactory } from './ChartModelFactory';\nexport { default as ChartModel } from './ChartModel';\nexport { default as ChartUtils } from './ChartUtils';\nexport { default as FigureChartModel } from './FigureChartModel';\nexport { default as MockChartModel } from './MockChartModel';\nexport { default as Plot } from './plotly/Plot';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["default","Chart","ChartModelFactory","ChartModel","ChartUtils","FigureChartModel","MockChartModel","Plot","isFigureChartModel"],"mappings":"SAASA,OAAO,IAAIC,K;SACXD,OAAO,IAAIE,iB;SACXF,OAAO,IAAIG,U;SACXH,OAAO,IAAII,U;SACXJ,OAAO,IAAIK,gB;SACXL,OAAO,IAAIM,c;SACXN,OAAO,IAAIO,I;SACXP,OAAO,IAAIQ,kB","sourcesContent":["export { default as Chart } from './Chart';\nexport { default as ChartModelFactory } from './ChartModelFactory';\nexport { default as ChartModel } from './ChartModel';\nexport { default as ChartUtils } from './ChartUtils';\nexport { default as FigureChartModel } from './FigureChartModel';\nexport { default as MockChartModel } from './MockChartModel';\nexport { default as Plot } from './plotly/Plot';\nexport { default as isFigureChartModel } from './isFigureChartModel';\n"],"file":"index.js"}
@@ -0,0 +1,4 @@
1
+ import ChartModel from './ChartModel';
2
+ import FigureChartModel from './FigureChartModel';
3
+ export default function isFigureChartModel(model: ChartModel): model is FigureChartModel;
4
+ //# sourceMappingURL=isFigureChartModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFigureChartModel.d.ts","sourceRoot":"","sources":["../src/isFigureChartModel.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,KAAK,EAAE,UAAU,GAChB,KAAK,IAAI,gBAAgB,CAE3B"}
@@ -0,0 +1,4 @@
1
+ export default function isFigureChartModel(model) {
2
+ return model.setFigure !== undefined;
3
+ }
4
+ //# sourceMappingURL=isFigureChartModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isFigureChartModel.ts"],"names":["isFigureChartModel","model","setFigure","undefined"],"mappings":"AAGA,eAAe,SAASA,kBAAT,CACbC,KADa,EAEc;AAC3B,SAAQA,KAAD,CAA4BC,SAA5B,KAA0CC,SAAjD;AACD","sourcesContent":["import ChartModel from './ChartModel';\nimport FigureChartModel from './FigureChartModel';\n\nexport default function isFigureChartModel(\n model: ChartModel\n): model is FigureChartModel {\n return (model as FigureChartModel).setFigure !== undefined;\n}\n"],"file":"isFigureChartModel.js"}
@@ -1,2 +1,3 @@
1
1
  export default Plotly;
2
+ import Plotly from "plotly.js/lib/core.js";
2
3
  //# sourceMappingURL=Plotly.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/chart",
3
- "version": "0.15.5-beta.3+776006a",
3
+ "version": "0.15.5-beta.4+951179d",
4
4
  "description": "Deephaven Chart",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -30,10 +30,13 @@
30
30
  "start": "cross-env NODE_ENV=development npm run watch"
31
31
  },
32
32
  "dependencies": {
33
- "@deephaven/icons": "^0.15.5-beta.3+776006a",
34
- "@deephaven/jsapi-shim": "^0.15.5-beta.3+776006a",
35
- "@deephaven/jsapi-utils": "^0.15.5-beta.3+776006a",
36
- "@deephaven/log": "^0.15.5-beta.3+776006a",
33
+ "@deephaven/icons": "^0.15.5-beta.4+951179d",
34
+ "@deephaven/jsapi-shim": "^0.15.5-beta.4+951179d",
35
+ "@deephaven/jsapi-utils": "^0.15.5-beta.4+951179d",
36
+ "@deephaven/log": "^0.15.5-beta.4+951179d",
37
+ "@deephaven/redux": "^0.15.5-beta.4+951179d",
38
+ "@deephaven/utils": "^0.15.5-beta.4+951179d",
39
+ "@fortawesome/fontawesome-common-types": "^6.1.2",
37
40
  "deep-equal": "^2.0.5",
38
41
  "lodash.debounce": "^4.0.8",
39
42
  "lodash.set": "^4.3.2",
@@ -47,8 +50,9 @@
47
50
  "react": "^17.x"
48
51
  },
49
52
  "devDependencies": {
50
- "@deephaven/mocks": "^0.15.5-beta.3+776006a",
51
- "@deephaven/tsconfig": "^0.15.5-beta.3+776006a"
53
+ "@deephaven/mocks": "^0.15.5-beta.4+951179d",
54
+ "@deephaven/tsconfig": "^0.15.5-beta.4+951179d",
55
+ "@types/plotly.js": "^2.12.2"
52
56
  },
53
57
  "files": [
54
58
  "dist"
@@ -59,5 +63,5 @@
59
63
  "publishConfig": {
60
64
  "access": "public"
61
65
  },
62
- "gitHead": "776006a07934244c2d059c7813be52efc375a40f"
66
+ "gitHead": "951179d8b471f5909365d22da4f0f49a765870c8"
63
67
  }