semiotic 3.0.0-beta.3 → 3.0.0-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.
Files changed (132) hide show
  1. package/CLAUDE.md +93 -753
  2. package/README.md +80 -7
  3. package/dist/ChartContainer.d.ts +60 -0
  4. package/dist/DetailsPanel.d.ts +37 -0
  5. package/dist/LinkedCharts.d.ts +2 -0
  6. package/dist/Tooltip/Tooltip.d.ts +2 -2
  7. package/dist/charts/index.d.ts +1 -1
  8. package/dist/charts/ordinal/BarChart.d.ts +1 -0
  9. package/dist/charts/ordinal/BoxPlot.d.ts +1 -0
  10. package/dist/charts/ordinal/DonutChart.d.ts +1 -0
  11. package/dist/charts/ordinal/DotPlot.d.ts +1 -0
  12. package/dist/charts/ordinal/GroupedBarChart.d.ts +1 -0
  13. package/dist/charts/ordinal/Histogram.d.ts +1 -0
  14. package/dist/charts/ordinal/PieChart.d.ts +1 -0
  15. package/dist/charts/ordinal/RidgelinePlot.d.ts +1 -0
  16. package/dist/charts/ordinal/StackedBarChart.d.ts +1 -0
  17. package/dist/charts/ordinal/SwarmPlot.d.ts +1 -0
  18. package/dist/charts/ordinal/ViolinPlot.d.ts +1 -0
  19. package/dist/charts/realtime/RealtimeHeatmap.d.ts +11 -0
  20. package/dist/charts/realtime/RealtimeHistogram.d.ts +15 -1
  21. package/dist/charts/realtime/RealtimeLineChart.d.ts +6 -0
  22. package/dist/charts/realtime/RealtimeSwarmChart.d.ts +6 -0
  23. package/dist/charts/realtime/RealtimeWaterfallChart.d.ts +6 -0
  24. package/dist/charts/shared/annotationRules.d.ts +3 -0
  25. package/dist/charts/shared/colorUtils.d.ts +17 -11
  26. package/dist/charts/shared/hooks.d.ts +96 -1
  27. package/dist/charts/shared/loess.d.ts +13 -0
  28. package/dist/charts/shared/networkUtils.d.ts +31 -0
  29. package/dist/charts/shared/tooltipUtils.d.ts +16 -0
  30. package/dist/charts/shared/types.d.ts +17 -2
  31. package/dist/charts/shared/validateChartData.d.ts +2 -3
  32. package/dist/charts/shared/validateProps.d.ts +18 -0
  33. package/dist/charts/xy/AreaChart.d.ts +4 -0
  34. package/dist/charts/xy/BubbleChart.d.ts +6 -0
  35. package/dist/charts/xy/Heatmap.d.ts +4 -0
  36. package/dist/charts/xy/LineChart.d.ts +6 -0
  37. package/dist/charts/xy/Scatterplot.d.ts +4 -0
  38. package/dist/charts/xy/StackedAreaChart.d.ts +4 -0
  39. package/dist/data/fromVegaLite.d.ts +48 -0
  40. package/dist/export/chartConfig.d.ts +29 -0
  41. package/dist/export/selectionSerializer.d.ts +20 -0
  42. package/dist/geometry/sankeyLinks.d.ts +1 -1
  43. package/dist/network.min.js +1 -1
  44. package/dist/network.module.min.js +1 -1
  45. package/dist/ordinal.min.js +1 -1
  46. package/dist/ordinal.module.min.js +1 -1
  47. package/dist/realtime/types.d.ts +20 -6
  48. package/dist/realtime.min.js +1 -1
  49. package/dist/realtime.module.min.js +1 -1
  50. package/dist/semiotic-ai.d.ts +14 -0
  51. package/dist/semiotic-ai.min.js +1 -1
  52. package/dist/semiotic-ai.module.min.js +1 -1
  53. package/dist/semiotic-data.d.ts +2 -0
  54. package/dist/semiotic-data.min.js +1 -1
  55. package/dist/semiotic-data.module.min.js +1 -1
  56. package/dist/semiotic-network.d.ts +9 -19
  57. package/dist/semiotic-ordinal.d.ts +12 -14
  58. package/dist/semiotic-xy.d.ts +12 -18
  59. package/dist/semiotic.d.ts +16 -13
  60. package/dist/semiotic.min.js +1 -1
  61. package/dist/semiotic.module.min.js +1 -1
  62. package/dist/server.min.js +1 -1
  63. package/dist/server.module.min.js +1 -1
  64. package/dist/store/ObservationStore.d.ts +61 -0
  65. package/dist/store/SelectionStore.d.ts +9 -1
  66. package/dist/store/ThemeStore.d.ts +6 -1
  67. package/dist/store/TooltipStore.d.ts +3 -1
  68. package/dist/store/createStore.d.ts +4 -1
  69. package/dist/store/useObservation.d.ts +18 -0
  70. package/dist/stream/MarginalGraphics.d.ts +1 -1
  71. package/dist/stream/NetworkPipelineStore.d.ts +44 -0
  72. package/dist/stream/OrdinalCanvasHitTester.d.ts +1 -0
  73. package/dist/stream/OrdinalSVGOverlay.d.ts +6 -2
  74. package/dist/stream/ParticlePool.d.ts +2 -1
  75. package/dist/stream/PipelineStore.d.ts +11 -0
  76. package/dist/stream/SVGOverlay.d.ts +21 -2
  77. package/dist/stream/SceneGraph.d.ts +1 -1
  78. package/dist/stream/networkTypes.d.ts +58 -1
  79. package/dist/stream/ordinalTypes.d.ts +13 -0
  80. package/dist/stream/types.d.ts +14 -0
  81. package/dist/types/annotationTypes.d.ts +10 -0
  82. package/dist/types/networkTypes.d.ts +1 -2
  83. package/dist/xy.min.js +1 -1
  84. package/dist/xy.module.min.js +1 -1
  85. package/package.json +27 -38
  86. package/dist/AnnotationLayer/AnnotationLayer.d.ts +0 -25
  87. package/dist/Axis/Axis.d.ts +0 -7
  88. package/dist/Axis/axisTitle.d.ts +0 -10
  89. package/dist/Axis/index.d.ts +0 -2
  90. package/dist/Axis/summaryGraphic.d.ts +0 -17
  91. package/dist/Brush.d.ts +0 -12
  92. package/dist/DividedLine.d.ts +0 -16
  93. package/dist/TooltipPositioner/index.d.ts +0 -7
  94. package/dist/annotationLayerBehavior/annotationHandling.d.ts +0 -19
  95. package/dist/annotationLayerBehavior/d3labeler.d.ts +0 -9
  96. package/dist/annotationRules/baseRules.d.ts +0 -25
  97. package/dist/annotationRules/networkframeRules.d.ts +0 -48
  98. package/dist/annotationRules/xyframeRules.d.ts +0 -117
  99. package/dist/batchWork.d.ts +0 -6
  100. package/dist/constants/coordinateNames.d.ts +0 -8
  101. package/dist/constants/frame_props.d.ts +0 -13
  102. package/dist/data/dataFunctions.d.ts +0 -45
  103. package/dist/data/multiAccessorUtils.d.ts +0 -1
  104. package/dist/data/unflowedFunctions.d.ts +0 -1
  105. package/dist/generic_utilities/functions.d.ts +0 -1
  106. package/dist/geometry/areaDrawing.d.ts +0 -21
  107. package/dist/geometry/contourLayout.d.ts +0 -6
  108. package/dist/geometry/hexbinLayout.d.ts +0 -7
  109. package/dist/geometry/lineDrawing.d.ts +0 -71
  110. package/dist/geometry/summaryLayouts.d.ts +0 -45
  111. package/dist/index.d.ts +0 -1
  112. package/dist/processing/InteractionItems.d.ts +0 -13
  113. package/dist/processing/hierarchyUtils.d.ts +0 -16
  114. package/dist/processing/layouts/chordLayout.d.ts +0 -2
  115. package/dist/processing/layouts/forceLayout.d.ts +0 -3
  116. package/dist/processing/layouts/hierarchyLayout.d.ts +0 -10
  117. package/dist/processing/layouts/index.d.ts +0 -8
  118. package/dist/processing/layouts/sankeyLayout.d.ts +0 -8
  119. package/dist/processing/layouts/simpleLayouts.d.ts +0 -7
  120. package/dist/processing/layouts/types.d.ts +0 -17
  121. package/dist/processing/networkDefaults.d.ts +0 -36
  122. package/dist/realtime/renderers/barRenderer.d.ts +0 -2
  123. package/dist/realtime/renderers/candlestickRenderer.d.ts +0 -2
  124. package/dist/realtime/renderers/lineRenderer.d.ts +0 -2
  125. package/dist/realtime/renderers/swarmRenderer.d.ts +0 -2
  126. package/dist/stream/NetworkSceneGraph.d.ts +0 -14
  127. package/dist/stream/index.d.ts +0 -16
  128. package/dist/types/canvasTypes.d.ts +0 -9
  129. package/dist/types/xyTypes.d.ts +0 -24
  130. package/dist/useBoundingRect.d.ts +0 -2
  131. package/dist/visualizationLayerBehavior/axis.d.ts +0 -36
  132. package/dist/visualizationLayerBehavior/general.d.ts +0 -80
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semiotic",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "The semiotic JavaScript data visualization framework",
5
5
  "main": "dist/semiotic.min.js",
6
6
  "module": "dist/semiotic.module.min.js",
@@ -131,16 +131,25 @@
131
131
  "@babel/core": "^7.24.4",
132
132
  "@babel/preset-env": "^7.24.4",
133
133
  "@babel/preset-react": "^7.24.1",
134
- "@mdx-js/react": "^1.6.22",
135
- "@parcel/transformer-inline-string": "^2.8.2",
136
- "@parcel/transformer-mdx": "^2.8.2",
134
+ "@parcel/transformer-inline-string": "^2.16.4",
137
135
  "@playwright/test": "^1.17.1",
138
136
  "@rollup/plugin-node-resolve": "^16.0.3",
139
- "@rollup/plugin-terser": "^0.4.4",
137
+ "@rollup/plugin-terser": "^1.0.0",
140
138
  "@testing-library/jest-dom": "^6.9.1",
141
139
  "@testing-library/react": "^14.3.0",
142
140
  "@testing-library/user-event": "^14.4.3",
141
+ "@types/d3-array": "^3.2.0",
142
+ "@types/d3-brush": "^3.0.0",
143
+ "@types/d3-chord": "^3.0.0",
144
+ "@types/d3-force": "^3.0.0",
145
+ "@types/d3-format": "^3.0.0",
146
+ "@types/d3-hierarchy": "^3.1.0",
147
+ "@types/d3-interpolate": "^3.0.0",
143
148
  "@types/d3-scale": "^4.0.9",
149
+ "@types/d3-scale-chromatic": "^3.1.0",
150
+ "@types/d3-selection": "^3.0.0",
151
+ "@types/d3-shape": "^3.1.0",
152
+ "@types/d3-time-format": "^4.0.0",
144
153
  "@types/jest": "^29.5.14",
145
154
  "@types/node": "^20.19.35",
146
155
  "@types/react": "^18.3.28",
@@ -148,34 +157,27 @@
148
157
  "@types/seedrandom": "^3.0.5",
149
158
  "@typescript-eslint/eslint-plugin": "^5.4.6",
150
159
  "@vitest/ui": "^4.0.18",
151
- "@vx/pattern": "0.0.143",
152
160
  "babel-jest": "^29.7.0",
153
161
  "d3-dsv": "1.0.5",
154
162
  "d3-flextree-v4": "^1.0.1",
155
- "d3-sankey": "0.12.3",
156
163
  "dagre": "^0.8.2",
157
- "eslint": "^7.0.0",
158
- "eslint-config-netflix-dea": "^4.0.0",
159
- "eslint-plugin-import": "^2.25.3",
160
- "eslint-plugin-jsx-a11y": "^6.5.1",
164
+ "eslint": "^8.0.0",
161
165
  "eslint-plugin-react": "^7.27.1",
162
166
  "jest": "^29.7.0",
163
- "jest-environment-jsdom": "^29.7.0",
167
+ "jest-environment-jsdom": "^30.2.0",
164
168
  "marked": "4.0.10",
165
169
  "material-design-icons-svg": "1.1.2",
166
- "parcel": "^2.8.2",
170
+ "parcel": "^2.16.4",
167
171
  "playwright-chromium": "^1.17.1",
168
172
  "prettier": "^3.8.1",
169
173
  "react": "^18.1.0",
170
174
  "react-dom": "^18.1.0",
171
- "react-prism": "4.3.2",
172
175
  "react-router-dom": "^6.2.1",
173
176
  "resize-observer-polyfill": "^1.5.1",
174
177
  "rollup": "^4.59.0",
175
178
  "rollup-plugin-auto-external": "^2.0.0",
176
179
  "rollup-plugin-typescript2": "^0.34.1",
177
180
  "rollup-plugin-visualizer": "^7.0.0",
178
- "roughjs": "^3.1.0",
179
181
  "seedrandom": "^3.0.5",
180
182
  "ts-jest": "^29.4.6",
181
183
  "typescript": "~5.9.3",
@@ -187,31 +189,18 @@
187
189
  },
188
190
  "dependencies": {
189
191
  "@modelcontextprotocol/sdk": "^1.12.1",
190
- "d3-array": "3.2.4",
191
- "d3-brush": "3.0.0",
192
- "d3-chord": "3.0.1",
193
- "d3-contour": "^1.1.1",
194
- "d3-delaunay": "^6.0.4",
195
- "d3-force": "3.0.0",
192
+ "d3-array": "^3.2.4",
193
+ "d3-brush": "^3.0.0",
194
+ "d3-chord": "^3.0.1",
195
+ "d3-force": "^3.0.0",
196
196
  "d3-format": "^3.1.0",
197
- "d3-glyphedge": "^1.2.0",
198
- "d3-hexbin": "^0.2.2",
199
- "d3-hierarchy": "3.1.2",
200
- "d3-interpolate": "3.0.1",
201
- "d3-path-arrows": "^0.4.0",
202
- "d3-polygon": "3.0.1",
203
- "d3-sankey-circular": "0.34.0",
204
- "d3-scale": "4.0.2",
197
+ "d3-hierarchy": "^3.1.2",
198
+ "d3-interpolate": "^3.0.1",
199
+ "d3-scale": "^4.0.2",
205
200
  "d3-scale-chromatic": "^3.1.0",
206
- "d3-selection": "3.0.0",
207
- "d3-shape": "3.2.0",
208
- "d3-time-format": "^4.1.0",
209
- "dequal": "^2.0.3",
210
- "labella": "1.1.4",
211
- "memoize-one": "^6.0.0",
212
- "polygon-offset": "0.3.2",
213
- "regression": "^2.0.1",
214
- "svg-path-bounding-box": "1.0.4"
201
+ "d3-selection": "^3.0.0",
202
+ "d3-shape": "^3.2.0",
203
+ "d3-time-format": "^4.1.0"
215
204
  },
216
205
  "browserslist": {
217
206
  "development": [
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- import { AnnotationHandling, AnnotationTypes, AnnotationType } from "./../types/annotationTypes";
3
- import { LegendProps } from "./../types/legendTypes";
4
- export interface AnnotationLayerProps {
5
- legendSettings?: LegendProps;
6
- margin: {
7
- top?: number;
8
- left?: number;
9
- right?: number;
10
- bottom?: number;
11
- };
12
- size: number[];
13
- axes?: React.ReactNode[];
14
- annotationHandling?: AnnotationHandling | AnnotationTypes;
15
- annotations: AnnotationType[];
16
- pointSizeFunction?: Function;
17
- labelSizeFunction?: Function;
18
- svgAnnotationRule: Function;
19
- htmlAnnotationRule: Function;
20
- position?: number[];
21
- }
22
- export interface UpdatedAnnotationLayerProps extends AnnotationLayerProps {
23
- voronoiHover: Function;
24
- }
25
- export default function AnnotationLayer(props: AnnotationLayerProps): React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { AxisProps } from "./../types/annotationTypes";
3
- declare const marginalPointMapper: (orient: any, width: any, data: any) => any;
4
- declare function formatValue(value: any, props: any): any;
5
- declare const boundingBoxMax: (axisNode: any, orient: any) => number;
6
- export default function Axis(props: AxisProps): React.JSX.Element;
7
- export { marginalPointMapper, formatValue, boundingBoxMax };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface AxisTitleProps {
3
- className: string;
4
- translation: Array<number>;
5
- position: Array<number>;
6
- rotation: number | string;
7
- labelName: any;
8
- anchorMod: "inherit" | "middle" | "end" | "start";
9
- }
10
- export default function AxisTitle(props: AxisTitleProps): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import Axis from './Axis';
2
- export default Axis;
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- export interface SummaryGraphicProps {
3
- translation: {
4
- left: Array<number>;
5
- right: Array<number>;
6
- top: Array<number>;
7
- bottom: Array<number>;
8
- };
9
- orient: "left" | "right" | "top" | "bottom";
10
- decoratedSummaryType: {
11
- type: string;
12
- };
13
- summaryWidth: number;
14
- renderedSummary: any;
15
- points?: React.ReactNode;
16
- }
17
- export default function SummaryGraphic(props: SummaryGraphicProps): React.JSX.Element;
package/dist/Brush.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- interface BrushProps {
3
- extent?: number[] | number[][];
4
- selectedExtent?: number[] | number[][];
5
- svgBrush: {
6
- (): () => void;
7
- move: Function;
8
- };
9
- position?: number[];
10
- }
11
- export default function Brush(props: BrushProps): React.JSX.Element;
12
- export {};
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import { ProjectedLine } from "./types/generalTypes";
3
- interface DividedLineProps {
4
- parameters: Function;
5
- className: string;
6
- customAccessors: {
7
- x: Function;
8
- y: Function;
9
- };
10
- lineDataAccessor: Function;
11
- data: ProjectedLine[];
12
- interpolate?: Function;
13
- searchIterations?: number;
14
- }
15
- export default function DividedLine(props: DividedLineProps): React.JSX.Element;
16
- export {};
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- type Props = {
3
- tooltipContent: Function;
4
- tooltipContentArgs?: object;
5
- };
6
- export default function TooltipPositioner(props: Props): React.JSX.Element;
7
- export {};
@@ -1,19 +0,0 @@
1
- import { AnnotationProps } from "../types/annotationTypes";
2
- type NoteType = {
3
- props: AnnotationProps;
4
- };
5
- type AnnotationTypes = "marginalia" | "bump" | false;
6
- interface Layout {
7
- type: AnnotationTypes;
8
- orient?: "nearest" | "left" | "right" | "top" | "bottom" | string[];
9
- characterWidth?: number;
10
- lineWidth?: number;
11
- lineHeight?: number;
12
- padding?: number;
13
- iterations?: number;
14
- pointSizeFunction?: Function;
15
- labelSizeFunction?: Function;
16
- marginOffset?: number;
17
- }
18
- export declare function bumpAnnotations(adjustableNotes: NoteType[], processor: Layout, size: number[], propsPointSizeFunction?: Function, propsLabelSizeFunction?: Function): NoteType[];
19
- export {};
@@ -1,9 +0,0 @@
1
- export default function (): {
2
- start: (x: any) => void;
3
- width: (x: any) => void;
4
- height: (x: any) => void;
5
- label: (x: any) => void;
6
- anchor: (x: any) => void;
7
- alt_energy: (x: any) => void;
8
- alt_schedule: (x: any) => void;
9
- };
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- export declare const circleEnclosure: ({ d, i, circle }: {
3
- d: any;
4
- i: any;
5
- circle: any;
6
- }) => React.JSX.Element;
7
- export declare const rectangleEnclosure: ({ bboxNodes, d, i }: {
8
- bboxNodes: any;
9
- d: any;
10
- i: any;
11
- }) => React.JSX.Element;
12
- export declare const hullEnclosure: ({ points, d, i }: {
13
- points: any;
14
- d: any;
15
- i: any;
16
- }) => React.JSX.Element;
17
- export declare const desaturationLayer: ({ style, size, i, key }: {
18
- style: {
19
- fill?: string;
20
- fillOpacity?: number;
21
- };
22
- size: number[];
23
- i?: number;
24
- key?: string;
25
- }) => React.JSX.Element;
@@ -1,48 +0,0 @@
1
- import * as React from "react";
2
- export declare const htmlFrameHoverRule: ({ d: baseD, i, tooltipContent, optimizeCustomTooltipPosition, nodes, edges, nodeIDAccessor, adjustedSize }: {
3
- d: any;
4
- i: any;
5
- tooltipContent: any;
6
- optimizeCustomTooltipPosition: any;
7
- nodes: any;
8
- edges: any;
9
- nodeIDAccessor: any;
10
- adjustedSize: any;
11
- }) => React.JSX.Element;
12
- export declare const svgNodeRule: ({ d, i, nodeSizeAccessor }: {
13
- d: any;
14
- i: any;
15
- nodeSizeAccessor: any;
16
- }) => React.JSX.Element;
17
- export declare const svgReactAnnotationRule: ({ d, i, projectedNodes, nodeIDAccessor }: {
18
- d: any;
19
- i: any;
20
- projectedNodes: any;
21
- nodeIDAccessor: any;
22
- }) => React.JSX.Element;
23
- export declare const svgEncloseRule: ({ d, i, projectedNodes, nodeIDAccessor, nodeSizeAccessor }: {
24
- d: any;
25
- i: any;
26
- projectedNodes: any;
27
- nodeIDAccessor: any;
28
- nodeSizeAccessor: any;
29
- }) => React.JSX.Element;
30
- export declare const svgRectEncloseRule: ({ d, i, projectedNodes, nodeIDAccessor, nodeSizeAccessor }: {
31
- d: any;
32
- i: any;
33
- projectedNodes: any;
34
- nodeIDAccessor: any;
35
- nodeSizeAccessor: any;
36
- }) => React.JSX.Element;
37
- export declare const svgHullEncloseRule: ({ d, i, projectedNodes, nodeIDAccessor, nodeSizeAccessor }: {
38
- d: any;
39
- i: any;
40
- projectedNodes: any;
41
- nodeIDAccessor: any;
42
- nodeSizeAccessor: any;
43
- }) => React.JSX.Element;
44
- export declare const svgHighlightRule: ({ d, i, networkFrameRender }: {
45
- d: any;
46
- i: any;
47
- networkFrameRender: any;
48
- }) => any;
@@ -1,117 +0,0 @@
1
- import * as React from "react";
2
- import { ScaleLinear } from "d3-scale";
3
- import { ProjectedPoint, RenderPipelineType } from "../types/generalTypes";
4
- export declare const pointsAlong: (along: any) => ({ d, lines, points, xScale, yScale, pointStyle }: {
5
- d: any;
6
- lines: any;
7
- points: any;
8
- xScale: any;
9
- yScale: any;
10
- pointStyle: any;
11
- }) => React.JSX.Element[];
12
- export declare const svgHorizontalPointsAnnotation: ({ d, lines, points, xScale, yScale, pointStyle }: {
13
- d: any;
14
- lines: any;
15
- points: any;
16
- xScale: any;
17
- yScale: any;
18
- pointStyle: any;
19
- }) => React.JSX.Element[];
20
- export declare const svgVerticalPointsAnnotation: ({ d, lines, points, xScale, yScale, pointStyle }: {
21
- d: any;
22
- lines: any;
23
- points: any;
24
- xScale: any;
25
- yScale: any;
26
- pointStyle: any;
27
- }) => React.JSX.Element[];
28
- export declare const svgHighlight: ({ d, i, points, lines, summaries, idAccessor, xScale, yScale, xyFrameRender, defined }: {
29
- d: ProjectedPoint;
30
- i?: number;
31
- points: {
32
- data: [];
33
- };
34
- lines: {
35
- data: [];
36
- type?: {
37
- interpolator?: string | Function;
38
- curve?: string | Function;
39
- };
40
- };
41
- summaries: {
42
- data: [];
43
- };
44
- idAccessor: Function;
45
- xScale: ScaleLinear<number, number>;
46
- yScale: ScaleLinear<number, number>;
47
- xyFrameRender: RenderPipelineType;
48
- defined: Function;
49
- }) => React.JSX.Element[];
50
- export declare const svgXYAnnotation: ({ screenCoordinates, i, d }: {
51
- screenCoordinates: any;
52
- i: any;
53
- d: any;
54
- }) => any[];
55
- export declare const basicReactAnnotation: ({ screenCoordinates, d, i }: {
56
- screenCoordinates: any;
57
- d: any;
58
- i: any;
59
- }) => React.JSX.Element;
60
- export declare const svgXAnnotation: ({ screenCoordinates, d, i, adjustedSize }: {
61
- screenCoordinates: any;
62
- d: any;
63
- i: any;
64
- adjustedSize: any;
65
- }) => React.JSX.Element;
66
- export declare const svgYAnnotation: ({ screenCoordinates, d, i, adjustedSize, adjustedPosition }: {
67
- screenCoordinates: any;
68
- d: any;
69
- i: any;
70
- adjustedSize: any;
71
- adjustedPosition: any;
72
- }) => React.JSX.Element;
73
- export declare const svgBoundsAnnotation: ({ d, i, adjustedSize, xAccessor, yAccessor, xScale, yScale }: {
74
- d: any;
75
- i: any;
76
- adjustedSize: any;
77
- xAccessor: any;
78
- yAccessor: any;
79
- xScale: any;
80
- yScale: any;
81
- }) => React.JSX.Element;
82
- export declare const svgLineAnnotation: ({ d, i, screenCoordinates }: {
83
- d: any;
84
- i: any;
85
- screenCoordinates: any;
86
- }) => React.JSX.Element[];
87
- export declare const svgAreaAnnotation: ({ d, i, xScale, xAccessor, yScale, yAccessor, annotationLayer }: {
88
- d: any;
89
- i: any;
90
- xScale: any;
91
- xAccessor: any;
92
- yScale: any;
93
- yAccessor: any;
94
- annotationLayer: any;
95
- }) => React.JSX.Element[];
96
- export declare const htmlTooltipAnnotation: ({ content, screenCoordinates, i, d, adjustedSize }: {
97
- content: any;
98
- screenCoordinates: any;
99
- i: any;
100
- d: any;
101
- adjustedSize: any;
102
- }) => React.JSX.Element;
103
- export declare const svgRectEncloseAnnotation: ({ d, i, screenCoordinates }: {
104
- d: any;
105
- i: any;
106
- screenCoordinates: any;
107
- }) => React.JSX.Element;
108
- export declare const svgEncloseAnnotation: ({ screenCoordinates, d, i }: {
109
- screenCoordinates: any;
110
- d: any;
111
- i: any;
112
- }) => React.JSX.Element;
113
- export declare const svgHullEncloseAnnotation: ({ screenCoordinates, d, i }: {
114
- screenCoordinates: any;
115
- d: any;
116
- i: any;
117
- }) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- type BatchOptions = {
2
- signal?: AbortSignal;
3
- timeFrameMs?: number;
4
- };
5
- export declare function batchWork(performWork: () => boolean, { signal, timeFrameMs }?: BatchOptions): Promise<void>;
6
- export {};
@@ -1,8 +0,0 @@
1
- export declare const projectedX = "x";
2
- export declare const projectedY = "y";
3
- export declare const projectedYMiddle = "yMiddle";
4
- export declare const projectedYTop = "yTop";
5
- export declare const projectedYBottom = "yBottom";
6
- export declare const projectedXMiddle = "xMiddle";
7
- export declare const projectedXTop = "xTop";
8
- export declare const projectedXBottom = "xBottom";
@@ -1,13 +0,0 @@
1
- export declare const xyFrameDataProps: string[];
2
- export declare const xyFrameDataAffectingProps: string[];
3
- export declare const xyFrameScaleAffectingProps: string[];
4
- export declare const xyFrameStylingProps: string[];
5
- export declare const xyFrameChangeProps: string[];
6
- export declare const orFrameDataAffectingProps: string[];
7
- export declare const orFrameScaleAffectingProps: string[];
8
- export declare const orFrameStylingProps: string[];
9
- export declare const orFrameChangeProps: string[];
10
- export declare const networkFrameDataAffectingProps: string[];
11
- export declare const networkFrameScaleAffectingProps: string[];
12
- export declare const networkFrameStylingProps: string[];
13
- export declare const networkFrameChangeProps: string[];
@@ -1,45 +0,0 @@
1
- import { ProjectedPoint, ProjectedLine, ProjectedSummary, ProjectedBin, RawSummary, RawPoint, RawLine, LineTypeSettings, SummaryTypeSettings, ExtentType, MarginType } from "../types/generalTypes";
2
- type validStrFnTypes = boolean | string | number | Record<string, any> | Record<string, any>[] | RawPoint | RawPoint[];
3
- export declare function stringToFn<StrFnType extends validStrFnTypes>(accessor?: ((args?: Record<string, any>, index?: number) => StrFnType) | string | StrFnType, defaultAccessor?: (arg?: Record<string, any>, i?: number) => StrFnType, raw?: boolean): (d?: Record<string, any>, i?: number) => StrFnType;
4
- export declare function stringToArrayFn<StrFnType extends validStrFnTypes>(accessor?: ((arg?: Record<string, any>, index?: number) => StrFnType) | string | StrFnType | Array<((arg?: Record<string, any>, index?: number) => StrFnType) | string | StrFnType>, defaultAccessor?: (arg?: Record<string, any>, index?: number) => StrFnType, raw?: boolean): Array<(arg?: Record<string, any>, index?: number) => StrFnType>;
5
- type CalculateDataTypes = {
6
- lineDataAccessor: Array<Function>;
7
- summaryDataAccessor: Array<Function>;
8
- summaryStyleFn: Function;
9
- summaryClassFn: Function;
10
- summaryRenderModeFn: Function;
11
- xAccessor: Array<Function>;
12
- yAccessor: Array<Function>;
13
- summaries?: Array<RawSummary>;
14
- points?: Array<RawPoint>;
15
- lines?: Array<RawLine>;
16
- lineType: LineTypeSettings;
17
- showLinePoints?: boolean | string;
18
- showSummaryPoints?: boolean;
19
- xExtent?: ExtentType;
20
- yExtent?: ExtentType;
21
- invertX?: boolean;
22
- invertY?: boolean;
23
- summaryType: SummaryTypeSettings;
24
- adjustedSize: Array<number>;
25
- chartSize: Array<number>;
26
- xScaleType: Function;
27
- yScaleType: Function;
28
- margin: MarginType;
29
- defined?: Function;
30
- annotations: object[];
31
- filterRenderedLines: (value: ProjectedLine, index: number, array: ProjectedLine[]) => any;
32
- filterRenderedSummaries: (value: ProjectedSummary, index: number, array: ProjectedSummary[]) => any;
33
- filterRenderedPoints: (value: ProjectedPoint | ProjectedBin | ProjectedSummary, index: number, array: (ProjectedPoint | ProjectedBin | ProjectedSummary)[]) => any;
34
- };
35
- export declare const calculateDataExtent: ({ lineDataAccessor, xAccessor, yAccessor, summaries, points, lines, lineType, showLinePoints, showSummaryPoints, xExtent, yExtent, invertX, invertY, summaryDataAccessor, summaryType, adjustedSize: size, margin, summaryStyleFn, summaryClassFn, summaryRenderModeFn, chartSize, filterRenderedLines, filterRenderedSummaries, filterRenderedPoints, defined, annotations }: CalculateDataTypes) => {
36
- xExtent: number[];
37
- yExtent: number[];
38
- projectedLines: ProjectedLine[];
39
- projectedPoints: ProjectedPoint[];
40
- projectedSummaries: ProjectedSummary[];
41
- fullDataset: (ProjectedPoint | ProjectedSummary | ProjectedBin)[];
42
- calculatedXExtent: number[];
43
- calculatedYExtent: number[];
44
- };
45
- export {};
@@ -1 +0,0 @@
1
- export declare const findFirstAccessorValue: (accessorArray: any, data: any) => any;
@@ -1 +0,0 @@
1
- export declare const extentValue: (extent: any) => any;
@@ -1 +0,0 @@
1
- export declare const genericFunction: (value: any) => () => any;
@@ -1,21 +0,0 @@
1
- import { SummaryLayoutType } from "../types/xyTypes";
2
- import { ProjectedSummary } from "../types/generalTypes";
3
- export { contouring } from "./contourLayout";
4
- export { hexbinning } from "./hexbinLayout";
5
- export declare function lineBounding({ summaryType, data, defined }: {
6
- summaryType: any;
7
- data: any;
8
- defined: any;
9
- }): any[];
10
- export declare function heatmapping({ preprocess, processedData, summaryType: baseSummaryType, data: baseData, finalXExtent, finalYExtent, size, xScaleType, yScaleType, margin, styleFn, classFn, renderFn, chartSize }: SummaryLayoutType): ProjectedSummary | {
11
- x: number;
12
- y: number;
13
- }[];
14
- export declare function trendlining({ preprocess, summaryType: baseSummaryType, data: baseData, finalXExtent, xScaleType }: SummaryLayoutType): any;
15
- export declare function shapeBounds(coordinates: any): {
16
- center: number[];
17
- top: number[];
18
- left: number[];
19
- right: number[];
20
- bottom: number[];
21
- };
@@ -1,6 +0,0 @@
1
- export declare function contouring({ summaryType, data, finalXExtent, finalYExtent }: {
2
- summaryType: any;
3
- data: any;
4
- finalXExtent: any;
5
- finalYExtent: any;
6
- }): any[];
@@ -1,7 +0,0 @@
1
- import { SummaryLayoutType } from "../types/xyTypes";
2
- export declare function hexbinning({ preprocess, processedData, summaryType: baseSummaryType, data: baseData, finalXExtent: baseXExtent, finalYExtent: baseYExtent, size, xScaleType, yScaleType, margin, styleFn, classFn, renderFn, chartSize }: SummaryLayoutType): any[] | {
3
- type: string;
4
- processedData: boolean;
5
- coordinates: any[];
6
- binMax: any;
7
- };
@@ -1,71 +0,0 @@
1
- import { ProjectedLine, RawLine, RawSummary } from "../types/generalTypes";
2
- type SummaryProjectionTypes = {
3
- data: Array<RawSummary>;
4
- summaryDataAccessor: Array<Function>;
5
- xAccessor: Array<Function>;
6
- yAccessor: Array<Function>;
7
- };
8
- type LineProjectionTypes = {
9
- data: Array<RawLine>;
10
- lineDataAccessor: Array<Function>;
11
- xProp: string;
12
- xPropTop?: string;
13
- xPropBottom?: string;
14
- yProp: string;
15
- yPropTop?: string;
16
- yPropBottom?: string;
17
- xAccessor: Array<Function>;
18
- yAccessor: Array<Function>;
19
- };
20
- type DifferenceLineProps = {
21
- data: Array<ProjectedLine>;
22
- yProp: string;
23
- yPropTop: string;
24
- yPropBottom: string;
25
- };
26
- type StackedAreaTypes = {
27
- type: string;
28
- data: Array<ProjectedLine>;
29
- xProp: string;
30
- yProp: string;
31
- yPropMiddle: string;
32
- sort?: (a: ProjectedLine, b: ProjectedLine) => number;
33
- yPropTop: string;
34
- yPropBottom: string;
35
- };
36
- type CumulativeLineTypes = {
37
- type: string;
38
- data: Array<ProjectedLine>;
39
- yPropMiddle: string;
40
- yPropTop: string;
41
- yPropBottom: string;
42
- y1?: Function;
43
- };
44
- type LineChartTypes = {
45
- data: Array<ProjectedLine>;
46
- y1?: Function;
47
- x1?: Function;
48
- yPropTop: string;
49
- yPropMiddle: string;
50
- yPropBottom: string;
51
- xPropTop: string;
52
- xPropMiddle: string;
53
- xPropBottom: string;
54
- };
55
- export declare const projectSummaryData: ({ data, summaryDataAccessor, xAccessor, yAccessor }: SummaryProjectionTypes) => any[];
56
- export declare const projectLineData: ({ data, lineDataAccessor, xProp, xPropTop, xPropBottom, yProp, yPropTop, yPropBottom, xAccessor, yAccessor }: LineProjectionTypes) => ProjectedLine[];
57
- export declare const differenceLine: ({ data, yProp, yPropTop, yPropBottom }: DifferenceLineProps) => ProjectedLine[];
58
- export declare const stackedArea: ({ type, data, xProp, yProp, yPropMiddle, sort, yPropTop, yPropBottom }: StackedAreaTypes) => ProjectedLine[];
59
- export declare const lineChart: ({ data, y1, x1, yPropTop, yPropMiddle, yPropBottom, xPropTop, xPropMiddle, xPropBottom }: LineChartTypes) => ProjectedLine[];
60
- export declare const cumulativeLine: ({ data, y1, yPropTop, yPropMiddle, yPropBottom, type }: CumulativeLineTypes) => ProjectedLine[];
61
- export declare const bumpChart: ({ type, data, xProp, yProp, yPropMiddle, yPropTop, yPropBottom }: StackedAreaTypes) => ProjectedLine[];
62
- export declare const dividedLine: (parameters: Function, points: Array<Object>, searchIterations?: number) => {
63
- key: any;
64
- points: any[];
65
- }[];
66
- export declare function funnelize({ data, steps, key }: {
67
- data: Array<Object>;
68
- steps: Array<string>;
69
- key: string;
70
- }): any[];
71
- export {};