@deephaven/chart 0.4.1-dashboards.0 → 0.4.1-markdownnotebooks.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/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["default","Chart","ChartModelFactory","ChartModel","ChartUtils","FigureChartModel","MockChartModel"],"mappings":"AAAA,SAASA,OAAO,IAAIC,KAApB,QAAiC,SAAjC;AACA,SAASD,OAAO,IAAIE,iBAApB,QAA6C,qBAA7C;AACA,SAASF,OAAO,IAAIG,UAApB,QAAsC,cAAtC;AACA,SAASH,OAAO,IAAII,UAApB,QAAsC,cAAtC;AACA,SAASJ,OAAO,IAAIK,gBAApB,QAA4C,oBAA5C;AACA,SAASL,OAAO,IAAIM,cAApB,QAA0C,kBAA1C","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';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.js"],"names":["default","Chart","ChartModelFactory","ChartModel","ChartUtils","FigureChartModel","MockChartModel"],"mappings":"AAAA,SAASA,OAAO,IAAIC,KAApB,QAAiC,SAAjC;AACA,SAASD,OAAO,IAAIE,iBAApB,QAA6C,qBAA7C;AACA,SAASF,OAAO,IAAIG,UAApB,QAAsC,cAAtC;AACA,SAASH,OAAO,IAAII,UAApB,QAAsC,cAAtC;AACA,SAASJ,OAAO,IAAIK,gBAApB,QAA4C,oBAA5C;AACA,SAASL,OAAO,IAAIM,cAApB,QAA0C,kBAA1C","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';\n"],"file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/chart",
3
- "version": "0.4.1-dashboards.0+68167cf",
3
+ "version": "0.4.1-markdownnotebooks.0+e2290cf",
4
4
  "description": "Deephaven Chart",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -24,11 +24,9 @@
24
24
  "types": "tsc",
25
25
  "build:babel": "npm run babel",
26
26
  "build:sass": "npm run sass",
27
- "build:types": "npm run types -- --incremental",
28
27
  "watch": "run-p watch:*",
29
28
  "watch:babel": "npm run babel -- -w --skip-initial-build",
30
29
  "watch:sass": "npm run sass -- --watch --update",
31
- "watch:types": "npm run types -- -w --incremental --preserveWatchOutput",
32
30
  "clean": "rimraf ./dist tsconfig.tsbuildinfo",
33
31
  "prestart": "npm run build-dev",
34
32
  "start": "cross-env NODE_ENV=development npm run watch",
@@ -54,19 +52,19 @@
54
52
  "memoizee": "^0.x",
55
53
  "prop-types": "^15.x",
56
54
  "react": "^16.x",
57
- "react-redux": "^7.2.4"
55
+ "react-redux": "^6.x"
58
56
  },
59
57
  "devDependencies": {
60
58
  "@babel/cli": "^7.14.8",
61
- "@deephaven/components": "^0.4.1-dashboards.0+68167cf",
62
- "@deephaven/icons": "^0.4.1-dashboards.0+68167cf",
63
- "@deephaven/iris-grid": "^0.4.1-dashboards.0+68167cf",
64
- "@deephaven/jsapi-shim": "^0.4.1-dashboards.0+68167cf",
65
- "@deephaven/log": "^0.4.1-dashboards.0+68167cf",
66
- "@deephaven/mocks": "^0.4.1-dashboards.0+68167cf",
67
- "@deephaven/redux": "^0.4.1-dashboards.0+68167cf",
68
- "@deephaven/tsconfig": "^0.4.1-dashboards.0+68167cf",
69
- "@deephaven/utils": "^0.4.1-dashboards.0+68167cf",
59
+ "@deephaven/components": "^0.4.1-markdownnotebooks.0+e2290cf",
60
+ "@deephaven/icons": "^0.4.1-markdownnotebooks.0+e2290cf",
61
+ "@deephaven/iris-grid": "^0.4.1-markdownnotebooks.0+e2290cf",
62
+ "@deephaven/jsapi-shim": "^0.4.1-markdownnotebooks.0+e2290cf",
63
+ "@deephaven/log": "^0.4.1-markdownnotebooks.0+e2290cf",
64
+ "@deephaven/mocks": "^0.4.1-markdownnotebooks.0+e2290cf",
65
+ "@deephaven/redux": "^0.4.1-markdownnotebooks.0+e2290cf",
66
+ "@deephaven/tsconfig": "^0.4.1-markdownnotebooks.0+e2290cf",
67
+ "@deephaven/utils": "^0.4.1-markdownnotebooks.0+e2290cf",
70
68
  "@types/react": "^16.14.8",
71
69
  "@types/react-dom": "^16.9.13",
72
70
  "bootstrap": "4.4.1",
@@ -80,7 +78,7 @@
80
78
  "npm-run-all": "^4.1.5",
81
79
  "prop-types": "^15.7.2",
82
80
  "react": "^16.14.0",
83
- "react-redux": "^7.2.4",
81
+ "react-redux": "^6.0.1",
84
82
  "rimraf": "^3.0.2",
85
83
  "sass": "1.32.13",
86
84
  "typescript": "^4.3.2"
@@ -94,5 +92,5 @@
94
92
  "publishConfig": {
95
93
  "access": "public"
96
94
  },
97
- "gitHead": "68167cf5a99251f03d70da0b6f410066c4e5a2eb"
95
+ "gitHead": "e2290cf59a00971e091ec38f5e555dfdcf2366c1"
98
96
  }
package/dist/Chart.d.ts DELETED
@@ -1,127 +0,0 @@
1
- export class Chart extends React.Component<any, any, any> {
2
- /**
3
- * Convert a font awesome icon definition to a plotly icon definition
4
- * @param {FontAwesome.IconDefinition} faIcon The icon to convert
5
- */
6
- static convertIcon(faIcon: any): {
7
- width: any;
8
- path: any;
9
- ascent: any;
10
- descent: number;
11
- transform: string;
12
- };
13
- static downsampleButtonTitle(isDownsampleInProgress: any, isDownsamplingDisabled: any): any;
14
- constructor(props: any);
15
- handleAfterPlot(): void;
16
- handleDownsampleClick(): void;
17
- handleModelEvent(event: any): void;
18
- handlePlotUpdate(figure: any): void;
19
- handleRelayout(changes: any): void;
20
- handleRestyle([changes, seriesIndexes]: [any, any]): void;
21
- plot: React.RefObject<any>;
22
- plotWrapper: React.RefObject<any>;
23
- columnFormats: any[];
24
- dateTimeFormatterOptions: {};
25
- rect: any;
26
- ranges: object | null;
27
- isSubscribed: boolean;
28
- isLoadedFired: boolean;
29
- getCachedConfig: (this: any, downsamplingError: any, isDownsampleFinished: any, isDownsampleInProgress: any, isDownsamplingDisabled: any) => {
30
- displaylogo: boolean;
31
- displayModeBar: string | boolean;
32
- modeBarButtons: (string[] | {
33
- name: any;
34
- icon: {
35
- width: any;
36
- path: any;
37
- ascent: any;
38
- descent: number;
39
- transform: string;
40
- };
41
- click: () => void;
42
- }[])[];
43
- };
44
- getPlotRect(): any;
45
- initData(): void;
46
- subscribe(): void;
47
- unsubscribe(): void;
48
- /**
49
- * Update the models dimensions and ranges.
50
- * Note that this will update it all whether the plot size changes OR the range
51
- * the user is looking at has changed (eg. panning/zooming).
52
- * Could update each independently, but doing them at the same time keeps the
53
- * ChartModel API a bit cleaner.
54
- * @param {boolean} force Force a change even if the chart dimensions haven't changed (eg. after pan/zoom)
55
- */
56
- updateModelDimensions(force?: boolean): void;
57
- initFormatter(): void;
58
- updateFormatterSettings(settings: any): void;
59
- updateFormatter(): void;
60
- updateDimensions(): void;
61
- }
62
- export namespace Chart {
63
- namespace propTypes {
64
- const model: PropTypes.Validator<ChartModel>;
65
- const settings: PropTypes.Validator<PropTypes.InferProps<{}>>;
66
- const isActive: PropTypes.Requireable<boolean>;
67
- const onDisconnect: PropTypes.Requireable<(...args: any[]) => any>;
68
- const onReconnect: PropTypes.Requireable<(...args: any[]) => any>;
69
- const onUpdate: PropTypes.Requireable<(...args: any[]) => any>;
70
- const onError: PropTypes.Requireable<(...args: any[]) => any>;
71
- const onSettingsChanged: PropTypes.Requireable<(...args: any[]) => any>;
72
- }
73
- namespace defaultProps {
74
- const isActive_1: boolean;
75
- export { isActive_1 as isActive };
76
- export function onDisconnect_1(): void;
77
- export { onDisconnect_1 as onDisconnect };
78
- export function onReconnect_1(): void;
79
- export { onReconnect_1 as onReconnect };
80
- export function onUpdate_1(): void;
81
- export { onUpdate_1 as onUpdate };
82
- export function onError_1(): void;
83
- export { onError_1 as onError };
84
- export function onSettingsChanged_1(): void;
85
- export { onSettingsChanged_1 as onSettingsChanged };
86
- }
87
- }
88
- declare var _default: import("react-redux").ConnectedComponent<typeof Chart, import("react-redux").Omit<Pick<PropTypes.InferProps<{
89
- model: PropTypes.Validator<ChartModel>;
90
- settings: PropTypes.Validator<PropTypes.InferProps<{}>>;
91
- isActive: PropTypes.Requireable<boolean>;
92
- onDisconnect: PropTypes.Requireable<(...args: any[]) => any>;
93
- onReconnect: PropTypes.Requireable<(...args: any[]) => any>;
94
- onUpdate: PropTypes.Requireable<(...args: any[]) => any>;
95
- onError: PropTypes.Requireable<(...args: any[]) => any>;
96
- onSettingsChanged: PropTypes.Requireable<(...args: any[]) => any>;
97
- }>, PropTypes.RequiredKeys<{
98
- model: PropTypes.Validator<ChartModel>;
99
- settings: PropTypes.Validator<PropTypes.InferProps<{}>>;
100
- isActive: PropTypes.Requireable<boolean>;
101
- onDisconnect: PropTypes.Requireable<(...args: any[]) => any>;
102
- onReconnect: PropTypes.Requireable<(...args: any[]) => any>;
103
- onUpdate: PropTypes.Requireable<(...args: any[]) => any>;
104
- onError: PropTypes.Requireable<(...args: any[]) => any>;
105
- onSettingsChanged: PropTypes.Requireable<(...args: any[]) => any>;
106
- }>> & Partial<Pick<PropTypes.InferProps<{
107
- model: PropTypes.Validator<ChartModel>;
108
- settings: PropTypes.Validator<PropTypes.InferProps<{}>>;
109
- isActive: PropTypes.Requireable<boolean>;
110
- onDisconnect: PropTypes.Requireable<(...args: any[]) => any>;
111
- onReconnect: PropTypes.Requireable<(...args: any[]) => any>;
112
- onUpdate: PropTypes.Requireable<(...args: any[]) => any>;
113
- onError: PropTypes.Requireable<(...args: any[]) => any>;
114
- onSettingsChanged: PropTypes.Requireable<(...args: any[]) => any>;
115
- }>, "isActive" | "onUpdate" | "onDisconnect" | "onReconnect" | "onError" | "onSettingsChanged">> & Partial<Pick<{
116
- isActive: boolean;
117
- onDisconnect: () => void;
118
- onReconnect: () => void;
119
- onUpdate: () => void;
120
- onError: () => void;
121
- onSettingsChanged: () => void;
122
- }, never>>, "settings">>;
123
- export default _default;
124
- import React from "react";
125
- import ChartModel from "./ChartModel";
126
- import PropTypes from "prop-types";
127
- //# sourceMappingURL=Chart.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chart.d.ts","sourceRoot":"","sources":["../src/Chart.jsx"],"names":[],"mappings":"AAmBA;IACE;;;OAGG;IACH;;;;;;MAWC;IAED,4FAQC;IAED,wBA8BC;IA8HD,wBAIC;IAED,8BAcC;IAED,mCAsEC;IAED,oCAcC;IAED,mCAWC;IAED,0DAYC;IAzRC,2BAA6B;IAC7B,kCAAoC;IACpC,qBAAuB;IACvB,6BAAkC;IAClC,UAAgB;IAChB,sBAAkB;IAClB,sBAAyB;IACzB,uBAA0B;IA8C5B;;;;;;;;;;;;;;MAmDE;IAEF,mBAEC;IAED,iBAUC;IAED,kBAYC;IAED,oBAQC;IA2ID;;;;;;;OAOG;IACH,8BAFW,OAAO,QAwBjB;IAED,sBAGC;IAED,6CAgBC;IAED,wBAQC;IAED,yBAcC;CAuCF;;;;;;;;;;;;;;;QAee,uCAAQ;;QACT,sCAAQ;;QACX,mCAAQ;;QACT,kCAAQ;;QACE,4CAAQ"}
@@ -1,63 +0,0 @@
1
- export default ChartModel;
2
- /**
3
- * Model for a Chart
4
- * All of these methods should return very quickly.
5
- * If data needs to be loaded asynchronously, return something immediately, then trigger an event for the chart to refresh.
6
- */
7
- declare class ChartModel {
8
- static EVENT_UPDATED: string;
9
- static EVENT_DISCONNECT: string;
10
- static EVENT_RECONNECT: string;
11
- static EVENT_DOWNSAMPLESTARTED: string;
12
- static EVENT_DOWNSAMPLEFINISHED: string;
13
- static EVENT_DOWNSAMPLEFAILED: string;
14
- static EVENT_DOWNSAMPLENEEDED: string;
15
- static EVENT_LOADFINISHED: string;
16
- listeners: any[];
17
- formatter: any;
18
- rect: DOMRect | null;
19
- isDownsamplingDisabled: boolean;
20
- title: any;
21
- getData(): never[];
22
- getDefaultTitle(): string;
23
- getLayout(): {};
24
- getFilterColumnMap(): Map<any, any>;
25
- isFilterRequired(): boolean;
26
- setFilter(): void;
27
- /**
28
- * Close this model, clean up any underlying subscriptions
29
- */
30
- close(): void;
31
- /**
32
- * Set the formatter to use when charting the data.
33
- * @param {Formatter} formatter The formatter to use to format the charting data
34
- */
35
- setFormatter(formatter: any): void;
36
- /**
37
- * Disable downsampling
38
- * @param {boolean} isDownsamplingDisabled True if downsampling should be disabled
39
- */
40
- setDownsamplingDisabled(isDownsamplingDisabled: boolean): void;
41
- /**
42
- * Set the dimensions of the plot. May be needed to evaluate some of the percents
43
- * @param {DOMRect} rect The bounding rectangle of the plot
44
- */
45
- setDimensions(rect: DOMRect): void;
46
- setTitle(title: any): void;
47
- /**
48
- * Subscribe to this ChartModel and start listening for all events.
49
- * @param {Function<Event>} callback Callback when an event occurs
50
- */
51
- subscribe(callback: Function): void;
52
- unsubscribe(callback: any): void;
53
- fireEvent(event: any): void;
54
- fireUpdate(data: any): void;
55
- fireDisconnect(): void;
56
- fireReconnect(): void;
57
- fireDownsampleStart(detail: any): void;
58
- fireDownsampleFinish(detail: any): void;
59
- fireDownsampleFail(detail: any): void;
60
- fireDownsampleNeeded(detail: any): void;
61
- fireLoadFinished(): void;
62
- }
63
- //# sourceMappingURL=ChartModel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartModel.d.ts","sourceRoot":"","sources":["../src/ChartModel.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH;IACE,6BAAkD;IAElD,gCAAwD;IAExD,+BAAsD;IAEtD,uCAAsE;IAEtE,wCAAwE;IAExE,sCAAoE;IAEpE,sCAAoE;IAEpE,kCAA4D;IAG1D,iBAAmB;IACnB,eAAqB;IACrB,qBAAgB;IAChB,gCAAmC;IACnC,WAAiB;IAGnB,mBAEC;IAED,0BAEC;IAED,gBAEC;IAED,oCAEC;IAED,4BAEC;IAED,kBAAc;IAEd;;OAEG;IACH,cAAU;IAEV;;;OAGG;IACH,mCAEC;IAED;;;OAGG;IACH,gDAFW,OAAO,QAIjB;IAED;;;OAGG;IACH,oBAFW,OAAO,QAIjB;IAED,2BAEC;IAED;;;OAGG;IACH,oCAEC;IAED,iCAEC;IAED,4BAIC;IAED,4BAEC;IAED,uBAEC;IAED,sBAEC;IAED,uCAIC;IAED,wCAIC;IAED,sCAIC;IAED,wCAIC;IAED,yBAEC;CACF"}
@@ -1,47 +0,0 @@
1
- export default ChartModelFactory;
2
- declare class ChartModelFactory {
3
- /**
4
- * Creates a model from the settings provided.
5
- * 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.sourcePanelId The panel ID the chart was created from
10
- * @param {string} settings.type Chart builder type, from ChartBuilder.types
11
- * @param {string} settings.xAxis The column name to use for the x-axis
12
- * @param {string[]} settings.hiddenSeries Array of hidden series names
13
- * @param {dh.Table} table The table to build the model for
14
- * @returns {Promise<FigureChartModel>} The FigureChartModel representing the figure
15
- */
16
- static makeModelFromSettings(settings: {
17
- isLinked: boolean;
18
- series: string[];
19
- sourcePanelId: string;
20
- type: string;
21
- xAxis: string;
22
- hiddenSeries: string[];
23
- }, table: any): Promise<FigureChartModel>;
24
- /**
25
- * Creates a model from the settings provided.
26
- * Tries to create a Figure in the API with it.
27
- * @param {Object} settings The chart builder settings
28
- * @param {boolean} settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated
29
- * @param {string[]} settings.series The column names to use for creating the series of this chart
30
- * @param {string} settings.sourcePanelId The panel ID the chart was created from
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.Figure} figure The figure to build the model for
35
- * @returns {Promise<FigureChartModel>} The FigureChartModel representing the figure
36
- */
37
- static makeModel(settings: {
38
- isLinked: boolean;
39
- series: string[];
40
- sourcePanelId: string;
41
- type: string;
42
- xAxis: string;
43
- hiddenSeries: string[];
44
- }, figure: any): Promise<FigureChartModel>;
45
- }
46
- import FigureChartModel from "./FigureChartModel";
47
- //# sourceMappingURL=ChartModelFactory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartModelFactory.d.ts","sourceRoot":"","sources":["../src/ChartModelFactory.js"],"names":[],"mappings":";AAIA;IACE;;;;;;;;;;;;OAYG;IACH;QAT6B,QAAQ,EAA1B,OAAO;QACY,MAAM,EAAzB,MAAM,EAAE;QACS,aAAa,EAA9B,MAAM;QACW,IAAI,EAArB,MAAM;QACW,KAAK,EAAtB,MAAM;QACa,YAAY,EAA/B,MAAM,EAAE;oBAEN,QAAQ,gBAAgB,CAAC,CAgBrC;IAED;;;;;;;;;;;;OAYG;IACH;QAT6B,QAAQ,EAA1B,OAAO;QACY,MAAM,EAAzB,MAAM,EAAE;QACS,aAAa,EAA9B,MAAM;QACW,IAAI,EAArB,MAAM;QACW,KAAK,EAAtB,MAAM;QACa,YAAY,EAA/B,MAAM,EAAE;qBAEN,QAAQ,gBAAgB,CAAC,CAIrC;CACF"}
@@ -1,37 +0,0 @@
1
- export default ChartTestUtils;
2
- declare class ChartTestUtils {
3
- static DEFAULT_CHART_TITLE: string;
4
- static DEFAULT_X_TITLE: string;
5
- static DEFAULT_Y_TITLE: string;
6
- static DEFAULT_SERIES_NAME: string;
7
- static makeAxis({ label, type, position, formatType, formatPattern, log, }?: {
8
- label?: string | undefined;
9
- type?: any;
10
- position?: any;
11
- formatType?: any;
12
- formatPattern?: string | undefined;
13
- log?: boolean | undefined;
14
- }): any;
15
- static makeDefaultAxes(): any[];
16
- static makeSource({ axis }: {
17
- axis?: any;
18
- }): any;
19
- static makeDefaultSources(): any[];
20
- static makeSeries({ name, plotStyle, sources, lineColor, shapeColor, }?: {
21
- name?: string | undefined;
22
- plotStyle?: any;
23
- sources?: any[] | undefined;
24
- lineColor?: any;
25
- shapeColor?: any;
26
- }): any;
27
- static makeChart({ title, series, axes, }?: {
28
- title?: string | undefined;
29
- series?: any[] | undefined;
30
- axes?: any[] | undefined;
31
- }): any;
32
- static makeFigure({ title, charts, }?: {
33
- title?: string | undefined;
34
- charts?: any[] | undefined;
35
- }): any;
36
- }
37
- //# sourceMappingURL=ChartTestUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartTestUtils.d.ts","sourceRoot":"","sources":["../src/ChartTestUtils.js"],"names":[],"mappings":";AAEA;IACE,mCAA2C;IAE3C,+BAAkC;IAElC,+BAAkC;IAElC,mCAAwC;IAExC;;;;;;;YAgBC;IAED,gCAWC;IAED;;YAEC;IAED,mCAGC;IAED;;;;;;YAQC;IAED;;;;YAMC;IAED;;;YAKC;CACF"}
@@ -1,20 +0,0 @@
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;
18
- }>;
19
- export default _default;
20
- //# sourceMappingURL=ChartTheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartTheme.d.ts","sourceRoot":"","sources":["../src/ChartTheme.js"],"names":[],"mappings":""}