semiotic 2.0.0-rc.2 → 2.0.0-rc.20

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 (293) hide show
  1. package/README.md +36 -19
  2. package/dist/semiotic.d.ts +1098 -0
  3. package/dist/semiotic.js +12540 -0
  4. package/dist/semiotic.module.d.ts +1098 -0
  5. package/dist/semiotic.module.js +12482 -0
  6. package/package.json +88 -158
  7. package/dist/Annotation.d.ts +0 -6
  8. package/dist/Annotation.js +0 -93
  9. package/dist/Annotation.js.map +0 -1
  10. package/dist/AnnotationLayer.d.ts +0 -43
  11. package/dist/AnnotationLayer.js +0 -404
  12. package/dist/AnnotationLayer.js.map +0 -1
  13. package/dist/Axis.d.ts +0 -17
  14. package/dist/Axis.js +0 -417
  15. package/dist/Axis.js.map +0 -1
  16. package/dist/Brush.d.ts +0 -19
  17. package/dist/Brush.js +0 -94
  18. package/dist/Brush.js.map +0 -1
  19. package/dist/DividedLine.d.ts +0 -20
  20. package/dist/DividedLine.js +0 -86
  21. package/dist/DividedLine.js.map +0 -1
  22. package/dist/FacetController.d.ts +0 -68
  23. package/dist/FacetController.js +0 -284
  24. package/dist/FacetController.js.map +0 -1
  25. package/dist/Frame.d.ts +0 -96
  26. package/dist/Frame.js +0 -182
  27. package/dist/Frame.js.map +0 -1
  28. package/dist/InteractionLayer.d.ts +0 -17
  29. package/dist/InteractionLayer.js +0 -337
  30. package/dist/InteractionLayer.js.map +0 -1
  31. package/dist/Legend.d.ts +0 -20
  32. package/dist/Legend.js +0 -133
  33. package/dist/Legend.js.map +0 -1
  34. package/dist/MiniMap.d.ts +0 -14
  35. package/dist/MiniMap.js +0 -91
  36. package/dist/MiniMap.js.map +0 -1
  37. package/dist/MinimapXYFrame.d.ts +0 -15
  38. package/dist/MinimapXYFrame.js +0 -115
  39. package/dist/MinimapXYFrame.js.map +0 -1
  40. package/dist/NetworkFrame.d.ts +0 -152
  41. package/dist/NetworkFrame.js +0 -336
  42. package/dist/NetworkFrame.js.map +0 -1
  43. package/dist/OrdinalFrame.d.ts +0 -127
  44. package/dist/OrdinalFrame.js +0 -419
  45. package/dist/OrdinalFrame.js.map +0 -1
  46. package/dist/ResponsiveFrame.d.ts +0 -50
  47. package/dist/ResponsiveFrame.js +0 -135
  48. package/dist/ResponsiveFrame.js.map +0 -1
  49. package/dist/ResponsiveMinimapXYFrame.d.ts +0 -134
  50. package/dist/ResponsiveMinimapXYFrame.js +0 -9
  51. package/dist/ResponsiveMinimapXYFrame.js.map +0 -1
  52. package/dist/ResponsiveNetworkFrame.d.ts +0 -134
  53. package/dist/ResponsiveNetworkFrame.js +0 -9
  54. package/dist/ResponsiveNetworkFrame.js.map +0 -1
  55. package/dist/ResponsiveOrdinalFrame.d.ts +0 -134
  56. package/dist/ResponsiveOrdinalFrame.js +0 -9
  57. package/dist/ResponsiveOrdinalFrame.js.map +0 -1
  58. package/dist/ResponsiveXYFrame.d.ts +0 -134
  59. package/dist/ResponsiveXYFrame.js +0 -9
  60. package/dist/ResponsiveXYFrame.js.map +0 -1
  61. package/dist/SpanOrDiv.d.ts +0 -12
  62. package/dist/SpanOrDiv.js +0 -61
  63. package/dist/SpanOrDiv.js.map +0 -1
  64. package/dist/SparkFrame.d.ts +0 -51
  65. package/dist/SparkFrame.js +0 -107
  66. package/dist/SparkFrame.js.map +0 -1
  67. package/dist/SparkNetworkFrame.d.ts +0 -96
  68. package/dist/SparkNetworkFrame.js +0 -10
  69. package/dist/SparkNetworkFrame.js.map +0 -1
  70. package/dist/SparkOrdinalFrame.d.ts +0 -96
  71. package/dist/SparkOrdinalFrame.js +0 -10
  72. package/dist/SparkOrdinalFrame.js.map +0 -1
  73. package/dist/SparkXYFrame.d.ts +0 -96
  74. package/dist/SparkXYFrame.js +0 -10
  75. package/dist/SparkXYFrame.js.map +0 -1
  76. package/dist/TooltipPositioner.d.ts +0 -16
  77. package/dist/TooltipPositioner.js +0 -104
  78. package/dist/TooltipPositioner.js.map +0 -1
  79. package/dist/VisualizationLayer.d.ts +0 -85
  80. package/dist/VisualizationLayer.js +0 -323
  81. package/dist/VisualizationLayer.js.map +0 -1
  82. package/dist/XYFrame.d.ts +0 -182
  83. package/dist/XYFrame.js +0 -535
  84. package/dist/XYFrame.js.map +0 -1
  85. package/dist/annotationLayerBehavior/annotationHandling.d.ts +0 -19
  86. package/dist/annotationLayerBehavior/annotationHandling.js +0 -90
  87. package/dist/annotationLayerBehavior/annotationHandling.js.map +0 -1
  88. package/dist/annotationLayerBehavior/d3labeler.d.ts +0 -9
  89. package/dist/annotationLayerBehavior/d3labeler.js +0 -255
  90. package/dist/annotationLayerBehavior/d3labeler.js.map +0 -1
  91. package/dist/annotationRules/baseRules.d.ts +0 -25
  92. package/dist/annotationRules/baseRules.js +0 -149
  93. package/dist/annotationRules/baseRules.js.map +0 -1
  94. package/dist/annotationRules/networkframeRules.d.ts +0 -48
  95. package/dist/annotationRules/networkframeRules.js +0 -170
  96. package/dist/annotationRules/networkframeRules.js.map +0 -1
  97. package/dist/annotationRules/orframeRules.d.ts +0 -105
  98. package/dist/annotationRules/orframeRules.js +0 -666
  99. package/dist/annotationRules/orframeRules.js.map +0 -1
  100. package/dist/annotationRules/xyframeRules.d.ts +0 -109
  101. package/dist/annotationRules/xyframeRules.js +0 -304
  102. package/dist/annotationRules/xyframeRules.js.map +0 -1
  103. package/dist/constants/coordinateNames.d.ts +0 -8
  104. package/dist/constants/coordinateNames.js +0 -11
  105. package/dist/constants/coordinateNames.js.map +0 -1
  106. package/dist/constants/frame_props.d.ts +0 -218
  107. package/dist/constants/frame_props.js +0 -182
  108. package/dist/constants/frame_props.js.map +0 -1
  109. package/dist/constants/jsx.d.ts +0 -19
  110. package/dist/constants/jsx.js +0 -47
  111. package/dist/constants/jsx.js.map +0 -1
  112. package/dist/data/dataFunctions.d.ts +0 -46
  113. package/dist/data/dataFunctions.js +0 -457
  114. package/dist/data/dataFunctions.js.map +0 -1
  115. package/dist/data/multiAccessorUtils.d.ts +0 -1
  116. package/dist/data/multiAccessorUtils.js +0 -13
  117. package/dist/data/multiAccessorUtils.js.map +0 -1
  118. package/dist/data/unflowedFunctions.d.ts +0 -1
  119. package/dist/data/unflowedFunctions.js +0 -6
  120. package/dist/data/unflowedFunctions.js.map +0 -1
  121. package/dist/generic_utilities/functions.d.ts +0 -1
  122. package/dist/generic_utilities/functions.js +0 -4
  123. package/dist/generic_utilities/functions.js.map +0 -1
  124. package/dist/interactionLayerBehavior/InteractionCanvas.d.ts +0 -21
  125. package/dist/interactionLayerBehavior/InteractionCanvas.js +0 -107
  126. package/dist/interactionLayerBehavior/InteractionCanvas.js.map +0 -1
  127. package/dist/processing/InteractionItems.d.ts +0 -12
  128. package/dist/processing/InteractionItems.js +0 -201
  129. package/dist/processing/InteractionItems.js.map +0 -1
  130. package/dist/processing/diffing.d.ts +0 -2
  131. package/dist/processing/diffing.js +0 -18
  132. package/dist/processing/diffing.js.map +0 -1
  133. package/dist/processing/network.d.ts +0 -120
  134. package/dist/processing/network.js +0 -1102
  135. package/dist/processing/network.js.map +0 -1
  136. package/dist/processing/ordinal.d.ts +0 -95
  137. package/dist/processing/ordinal.js +0 -929
  138. package/dist/processing/ordinal.js.map +0 -1
  139. package/dist/processing/xyDrawing.d.ts +0 -135
  140. package/dist/processing/xyDrawing.js +0 -456
  141. package/dist/processing/xyDrawing.js.map +0 -1
  142. package/dist/semiotic.min.js +0 -1
  143. package/dist/svg/SvgHelper.d.ts +0 -37
  144. package/dist/svg/SvgHelper.js +0 -372
  145. package/dist/svg/SvgHelper.js.map +0 -1
  146. package/dist/svg/areaDrawing.d.ts +0 -55
  147. package/dist/svg/areaDrawing.js +0 -448
  148. package/dist/svg/areaDrawing.js.map +0 -1
  149. package/dist/svg/frameFunctions.d.ts +0 -118
  150. package/dist/svg/frameFunctions.js +0 -596
  151. package/dist/svg/frameFunctions.js.map +0 -1
  152. package/dist/svg/lineDrawing.d.ts +0 -93
  153. package/dist/svg/lineDrawing.js +0 -420
  154. package/dist/svg/lineDrawing.js.map +0 -1
  155. package/dist/svg/networkDrawing.d.ts +0 -145
  156. package/dist/svg/networkDrawing.js +0 -588
  157. package/dist/svg/networkDrawing.js.map +0 -1
  158. package/dist/svg/pieceDrawing.d.ts +0 -13
  159. package/dist/svg/pieceDrawing.js +0 -65
  160. package/dist/svg/pieceDrawing.js.map +0 -1
  161. package/dist/svg/pieceLayouts.d.ts +0 -71
  162. package/dist/svg/pieceLayouts.js +0 -639
  163. package/dist/svg/pieceLayouts.js.map +0 -1
  164. package/dist/svg/summaryLayouts.d.ts +0 -60
  165. package/dist/svg/summaryLayouts.js +0 -938
  166. package/dist/svg/summaryLayouts.js.map +0 -1
  167. package/dist/types/annotationTypes.d.ts +0 -134
  168. package/dist/types/annotationTypes.js +0 -3
  169. package/dist/types/annotationTypes.js.map +0 -1
  170. package/dist/types/dataTypes.d.ts +0 -0
  171. package/dist/types/dataTypes.js +0 -1
  172. package/dist/types/dataTypes.js.map +0 -1
  173. package/dist/types/generalTypes.d.ts +0 -147
  174. package/dist/types/generalTypes.js +0 -3
  175. package/dist/types/generalTypes.js.map +0 -1
  176. package/dist/types/interactionTypes.d.ts +0 -68
  177. package/dist/types/interactionTypes.js +0 -3
  178. package/dist/types/interactionTypes.js.map +0 -1
  179. package/dist/types/legendTypes.d.ts +0 -19
  180. package/dist/types/legendTypes.js +0 -3
  181. package/dist/types/legendTypes.js.map +0 -1
  182. package/dist/types/networkTypes.d.ts +0 -197
  183. package/dist/types/networkTypes.js +0 -3
  184. package/dist/types/networkTypes.js.map +0 -1
  185. package/dist/types/ordinalTypes.d.ts +0 -144
  186. package/dist/types/ordinalTypes.js +0 -3
  187. package/dist/types/ordinalTypes.js.map +0 -1
  188. package/dist/types/xyTypes.d.ts +0 -147
  189. package/dist/types/xyTypes.js +0 -3
  190. package/dist/types/xyTypes.js.map +0 -1
  191. package/dist/vendor/element-resize-event.d.ts +0 -5
  192. package/dist/vendor/element-resize-event.js +0 -104
  193. package/dist/vendor/element-resize-event.js.map +0 -1
  194. package/dist/visualizationLayerBehavior/axis.d.ts +0 -37
  195. package/dist/visualizationLayerBehavior/axis.js +0 -234
  196. package/dist/visualizationLayerBehavior/axis.js.map +0 -1
  197. package/dist/visualizationLayerBehavior/general.d.ts +0 -84
  198. package/dist/visualizationLayerBehavior/general.js +0 -381
  199. package/dist/visualizationLayerBehavior/general.js.map +0 -1
  200. package/lib/.DS_Store +0 -0
  201. package/lib/Annotation.js +0 -126
  202. package/lib/Annotation.test.js +0 -48
  203. package/lib/AnnotationLayer.js +0 -475
  204. package/lib/AnnotationLayer.test.js +0 -68
  205. package/lib/Axis.js +0 -597
  206. package/lib/Axis.test.js +0 -58
  207. package/lib/Brush.js +0 -136
  208. package/lib/Brush.test.js +0 -32
  209. package/lib/DividedLine.js +0 -120
  210. package/lib/DividedLine.test.js +0 -53
  211. package/lib/FacetController.js +0 -303
  212. package/lib/FacetController.test.js +0 -15
  213. package/lib/Frame.js +0 -406
  214. package/lib/Frame.test.js +0 -21
  215. package/lib/InteractionLayer.js +0 -420
  216. package/lib/InteractionLayer.test.js +0 -56
  217. package/lib/Legend.js +0 -250
  218. package/lib/Legend.test.js +0 -37
  219. package/lib/MiniMap.js +0 -81
  220. package/lib/MiniMap.test.js +0 -15
  221. package/lib/MinimapXYFrame.js +0 -163
  222. package/lib/MinimapXYFrame.test.js +0 -21
  223. package/lib/NetworkFrame.js +0 -474
  224. package/lib/NetworkFrame.test.js +0 -43
  225. package/lib/OrdinalFrame.js +0 -598
  226. package/lib/OrdinalFrame.test.js +0 -205
  227. package/lib/ResponsiveFrame.js +0 -168
  228. package/lib/ResponsiveFrame.test.js +0 -42
  229. package/lib/ResponsiveMinimapXYFrame.js +0 -19
  230. package/lib/ResponsiveNetworkFrame.js +0 -19
  231. package/lib/ResponsiveOrdinalFrame.js +0 -19
  232. package/lib/ResponsiveXYFrame.js +0 -19
  233. package/lib/SpanOrDiv.js +0 -97
  234. package/lib/SparkFrame.js +0 -181
  235. package/lib/SparkFrame.test.js +0 -36
  236. package/lib/SparkNetworkFrame.js +0 -21
  237. package/lib/SparkNetworkFrame.test.js +0 -18
  238. package/lib/SparkOrdinalFrame.js +0 -21
  239. package/lib/SparkOrdinalFrame.test.js +0 -18
  240. package/lib/SparkXYFrame.js +0 -21
  241. package/lib/SparkXYFrame.test.js +0 -18
  242. package/lib/TooltipPositioner.js +0 -165
  243. package/lib/VisualizationLayer.js +0 -370
  244. package/lib/VisualizationLayer.test.js +0 -49
  245. package/lib/XYFrame.js +0 -711
  246. package/lib/XYFrame.test.js +0 -228
  247. package/lib/annotationLayerBehavior/annotationHandling.js +0 -99
  248. package/lib/annotationLayerBehavior/annotationHandling.test.js +0 -66
  249. package/lib/annotationLayerBehavior/d3labeler.js +0 -299
  250. package/lib/annotationRules/baseRules.js +0 -239
  251. package/lib/annotationRules/baseRules.test.js +0 -34
  252. package/lib/annotationRules/networkframeRules.js +0 -323
  253. package/lib/annotationRules/orframeRules.js +0 -880
  254. package/lib/annotationRules/xyframeRules.js +0 -547
  255. package/lib/constants/coordinateNames.js +0 -27
  256. package/lib/constants/frame_props.js +0 -189
  257. package/lib/constants/jsx.js +0 -91
  258. package/lib/data/dataFunctions.js +0 -495
  259. package/lib/data/dataFunctions.test.js +0 -134
  260. package/lib/data/multiAccessorUtils.js +0 -21
  261. package/lib/data/unflowedFunctions.js +0 -16
  262. package/lib/generic_utilities/functions.js +0 -18
  263. package/lib/index.js +0 -255
  264. package/lib/interactionLayerBehavior/InteractionCanvas.js +0 -159
  265. package/lib/interactionLayerBehavior/InteractionCanvas.test.js +0 -15
  266. package/lib/processing/InteractionItems.js +0 -249
  267. package/lib/processing/diffing.js +0 -32
  268. package/lib/processing/network.js +0 -1285
  269. package/lib/processing/network.test.js +0 -43
  270. package/lib/processing/ordinal.js +0 -1087
  271. package/lib/processing/xyDrawing.js +0 -626
  272. package/lib/svg/SvgHelper.js +0 -469
  273. package/lib/svg/areaDrawing.js +0 -588
  274. package/lib/svg/areaDrawing.test.js +0 -57
  275. package/lib/svg/frameFunctions.js +0 -806
  276. package/lib/svg/lineDrawing.js +0 -581
  277. package/lib/svg/networkDrawing.js +0 -1047
  278. package/lib/svg/pieceDrawing.js +0 -68
  279. package/lib/svg/pieceLayouts.js +0 -818
  280. package/lib/svg/summaryLayouts.js +0 -1284
  281. package/lib/types/annotationTypes.js +0 -5
  282. package/lib/types/dataTypes.js +0 -5
  283. package/lib/types/generalTypes.js +0 -5
  284. package/lib/types/interactionTypes.js +0 -5
  285. package/lib/types/legendTypes.js +0 -5
  286. package/lib/types/networkTypes.js +0 -5
  287. package/lib/types/ordinalTypes.js +0 -5
  288. package/lib/types/xyTypes.js +0 -5
  289. package/lib/vendor/element-resize-event.js +0 -120
  290. package/lib/visualizationLayerBehavior/axis.js +0 -351
  291. package/lib/visualizationLayerBehavior/axis.test.js +0 -24
  292. package/lib/visualizationLayerBehavior/general.js +0 -537
  293. package/lib/visualizationLayerBehavior/general.test.js +0 -75
@@ -0,0 +1,1098 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="graceful-fs" />
3
+ // modules
4
+ import * as React from "react";
5
+ import { RefObject } from "react";
6
+ import { ScaleLinear, ScaleBand } from "d3-scale";
7
+ import { Mark } from "semiotic-mark";
8
+ type TitleType = string | Element | {
9
+ title?: string | Element;
10
+ orient?: string;
11
+ };
12
+ interface AdvancedInteractionSettings {
13
+ voronoiClipping?: boolean | number;
14
+ voronoiFilter?: Function;
15
+ }
16
+ interface Interactivity {
17
+ start?: Function;
18
+ during?: Function;
19
+ end?: Function;
20
+ brush?: string;
21
+ extent?: Array<number[]> | number[];
22
+ columnsBrush?: boolean;
23
+ projection?: string;
24
+ projectedColumns?: object;
25
+ startEmpty?: boolean;
26
+ }
27
+ type InteractionLayerProps = {
28
+ name?: string;
29
+ interaction?: Interactivity;
30
+ overlay?: Array<object>;
31
+ oColumns?: object;
32
+ xScale: ScaleLinear<number, number>;
33
+ yScale: ScaleLinear<number, number>;
34
+ rScale?: ScaleLinear<number, number>;
35
+ svgSize: Array<number>;
36
+ hoverAnnotation?: CustomHoverType;
37
+ interactionOverflow?: {
38
+ top?: number;
39
+ bottom?: number;
40
+ left?: number;
41
+ right?: number;
42
+ };
43
+ size: Array<number>;
44
+ projectedYMiddle?: string;
45
+ projectedX: string;
46
+ projectedY: string;
47
+ points?: Array<object>;
48
+ position?: number[];
49
+ enabled?: boolean;
50
+ useSpans?: boolean;
51
+ margin: MarginType;
52
+ projection?: string;
53
+ customDoubleClickBehavior?: Function;
54
+ customClickBehavior?: Function;
55
+ customHoverBehavior?: Function;
56
+ voronoiHover: Function;
57
+ canvasRendering?: boolean;
58
+ disableCanvasInteraction: boolean;
59
+ showLinePoints?: string;
60
+ renderPipeline: object;
61
+ advancedSettings?: AdvancedInteractionSettings;
62
+ };
63
+ type VoronoiEntryType = {
64
+ voronoiX: number;
65
+ voronoiY: number;
66
+ coincidentPoints: object[];
67
+ type?: string;
68
+ data?: object[];
69
+ };
70
+ type BaseColumnType = {
71
+ x: number;
72
+ width: number;
73
+ };
74
+ type InteractionLayerState = {
75
+ overlayRegions: Array<React.ReactElement>;
76
+ props: InteractionLayerProps;
77
+ canvasMap: Map<string, number>;
78
+ interactionCanvas: React.ReactNode;
79
+ SpanOrDiv: Function;
80
+ };
81
+ type SupportedLegendGlyphs = "fill" | "line";
82
+ type ItemType = SupportedLegendGlyphs | Function;
83
+ interface LegendItem {
84
+ label: string;
85
+ }
86
+ interface LegendGroup {
87
+ type?: ItemType;
88
+ styleFn: Function;
89
+ items: LegendItem[];
90
+ label: string;
91
+ }
92
+ interface LegendProps {
93
+ legendGroups?: LegendGroup[];
94
+ customClickBehavior?: Function;
95
+ title?: string;
96
+ width?: number;
97
+ height?: number;
98
+ orientation?: string;
99
+ position?: "left" | "right";
100
+ }
101
+ type GenericObject = {
102
+ [key: string]: any;
103
+ };
104
+ interface MarginType {
105
+ top: number;
106
+ bottom: number;
107
+ left: number;
108
+ right: number;
109
+ }
110
+ type ProjectionTypes = "vertical" | "horizontal" | "radial";
111
+ type ExtentType = number[] | {
112
+ extent?: number[];
113
+ onChange?: Function;
114
+ includeAnnotations?: boolean;
115
+ };
116
+ interface ProjectedPoint {
117
+ x?: number;
118
+ y?: number;
119
+ xTop?: number;
120
+ xMiddle?: number;
121
+ xBottom?: number;
122
+ yTop?: number;
123
+ yMiddle?: number;
124
+ yBottom?: number;
125
+ parentSummary?: ProjectedSummary;
126
+ parentLine?: ProjectedLine;
127
+ percent?: number;
128
+ data?: object;
129
+ _XYFrameRank?: number;
130
+ style?: Function | object;
131
+ class?: Function | string;
132
+ coordinates?: object[];
133
+ }
134
+ type PieceLayoutType = (args: {
135
+ type: string | {
136
+ type: string;
137
+ };
138
+ data: any;
139
+ renderMode: (d?: GenericObject, i?: number) => string | GenericObject;
140
+ eventListenersGenerator: any;
141
+ styleFn: (d: object) => object;
142
+ projection: string;
143
+ classFn: (d: object) => string;
144
+ adjustedSize: number[];
145
+ chartSize: number[];
146
+ margin: MarginType;
147
+ rScale?: Function;
148
+ baseMarkProps: object;
149
+ }) => GenericObject[];
150
+ interface ProjectedLine {
151
+ data: ProjectedPoint[];
152
+ key: string | number;
153
+ coordinates: object[];
154
+ }
155
+ interface ProjectedSummary {
156
+ _baseData: object[];
157
+ _xyfCoordinates: [number | Date, number | Date][];
158
+ coordinates: {
159
+ x: number;
160
+ y: number;
161
+ }[];
162
+ data: object[];
163
+ y: number;
164
+ x: number;
165
+ parentSummary?: GenericObject;
166
+ bounds: object[] | number[];
167
+ customMark?: Function;
168
+ type?: string;
169
+ curve?: Function;
170
+ processedData?: boolean;
171
+ binMax?: number;
172
+ }
173
+ type RoughType = {
174
+ canvas: Function;
175
+ generator: Function;
176
+ };
177
+ type CanvasPostProcessTypes = Function;
178
+ type ExtentSettingsType = {
179
+ extent?: Array<number>;
180
+ onChange?: Function;
181
+ };
182
+ type accessorType<ReturnValue> = string | ((args?: unknown, index?: number) => ReturnValue);
183
+ interface AccessorFnType {
184
+ <T>(arg: GenericObject): T;
185
+ }
186
+ type BasicLineTypes = "line" | "area" | "summary" | "cumulative" | "cumulative-reverse" | "linepercent" | "stackedarea" | "stackedarea-invert" | "stackedpercent" | "bumparea" | "bumparea-invert" | "bumpline" | "stackedpercent-invert" | "difference";
187
+ interface LineTypeSettings {
188
+ type: BasicLineTypes | Function;
189
+ simpleLine?: boolean;
190
+ y1?: (d?: ProjectedPoint, index?: number) => number;
191
+ interpolator: string | Function;
192
+ }
193
+ type BasicSummaryTypes = "basic" | "contour" | "hexbin" | "heatmap" | "trendline" | "linebounds";
194
+ interface SummaryTypeSettings {
195
+ showSlope?: boolean;
196
+ type: BasicSummaryTypes | Function;
197
+ label?: string | Function;
198
+ cellPx?: number;
199
+ xCellPx?: number;
200
+ yCellPx?: number;
201
+ bins?: number;
202
+ xBins?: number;
203
+ yBins?: number;
204
+ binValue?: Function;
205
+ binMax?: number;
206
+ customMark?: Function;
207
+ }
208
+ interface RawLine {
209
+ coordinates?: object[];
210
+ }
211
+ interface RawSummary {
212
+ processedData?: object[];
213
+ coordinates?: object[];
214
+ preprocess?: boolean;
215
+ }
216
+ interface RawPoint {
217
+ }
218
+ interface CustomAreaMarkProps {
219
+ d: object;
220
+ baseMarkProps: object;
221
+ margin: object;
222
+ styleFn: Function;
223
+ classFn: Function;
224
+ renderFn: Function;
225
+ chartSize: Function;
226
+ adjustedSize: number[];
227
+ }
228
+ interface ProjectedBin {
229
+ x: number;
230
+ y: number;
231
+ binItems: object[];
232
+ customMark?: (props: CustomAreaMarkProps) => JSX.Element;
233
+ _xyfCoordinates: Array<number[]>;
234
+ value: number;
235
+ percent: number;
236
+ data: object;
237
+ parentSummary: object;
238
+ centroid: boolean;
239
+ }
240
+ type GenericAccessor<GenericValue> = (args?: GenericObject, index?: number) => GenericValue;
241
+ type VizLayerTypes = "pieces" | "summaries" | "connectors" | "edges" | "nodes" | "lines" | "points";
242
+ type RenderPipelineType = {
243
+ [key in VizLayerTypes]?: {
244
+ data?: object[];
245
+ ariaLabel?: {
246
+ chart?: string;
247
+ items?: string;
248
+ };
249
+ behavior?: Function;
250
+ styleFn?: Function;
251
+ };
252
+ };
253
+ type OrdinalSummaryTypes = "none" | "histogram" | "heatmap" | "violin" | "joy" | "ridgeline" | "boxplot" | "contour";
254
+ type OrdinalSummaryTypeSettings = {
255
+ type: OrdinalSummaryTypes;
256
+ amplitude?: number;
257
+ eventListenersGenerator?: Function;
258
+ flip?: boolean;
259
+ bins?: number;
260
+ axis?: AxisProps;
261
+ };
262
+ interface AxisSummaryTypeSettings extends OrdinalSummaryTypeSettings {
263
+ summaryStyle?: object;
264
+ pointStyle?: object;
265
+ renderMode?: object | string;
266
+ summaryClass?: string;
267
+ r?: number;
268
+ showPoints?: boolean;
269
+ filter?: Function;
270
+ }
271
+ interface GeneralFrameProps {
272
+ useSpans?: boolean;
273
+ title?: string | object;
274
+ margin?: number | {
275
+ top?: number;
276
+ bottom?: number;
277
+ left?: number;
278
+ right?: number;
279
+ } | ((args: object) => number | {
280
+ top?: number;
281
+ left?: number;
282
+ right?: number;
283
+ bottom?: number;
284
+ });
285
+ name?: string;
286
+ dataVersion?: string;
287
+ frameKey?: string;
288
+ size?: number[];
289
+ canvasPostProcess?: CanvasPostProcessTypes;
290
+ additionalDefs?: React.ReactNode;
291
+ className?: string;
292
+ customHoverBehavior?: Function;
293
+ customClickBehavior?: Function;
294
+ customDoubleClickBehavior?: Function;
295
+ hoverAnnotation?: CustomHoverType;
296
+ disableContext?: boolean;
297
+ interaction?: Interactivity;
298
+ svgAnnotationRules?: Function;
299
+ htmlAnnotationRules?: Function;
300
+ tooltipContent?: Function;
301
+ optimizeCustomTooltipPosition?: boolean;
302
+ annotations?: object[];
303
+ baseMarkProps?: object;
304
+ backgroundGraphics?: React.ReactNode | Function;
305
+ foregroundGraphics?: React.ReactNode | Function;
306
+ beforeElements?: React.ReactNode;
307
+ afterElements?: React.ReactNode;
308
+ annotationSettings?: AnnotationHandling;
309
+ renderKey?: string | GenericAccessor<string>;
310
+ legend?: object | boolean;
311
+ matte?: object;
312
+ onUnmount?: Function;
313
+ sketchyRenderingEngine?: RoughType;
314
+ frameRenderOrder?: Array<string>;
315
+ disableCanvasInteraction?: boolean;
316
+ interactionSettings?: AdvancedInteractionSettings;
317
+ disableProgressiveRendering?: boolean;
318
+ }
319
+ interface GeneralFrameState {
320
+ dataVersion?: string;
321
+ adjustedPosition: number[];
322
+ adjustedSize: number[];
323
+ backgroundGraphics?: React.ReactNode | Function;
324
+ foregroundGraphics?: React.ReactNode | Function;
325
+ title: TitleType;
326
+ margin: MarginType;
327
+ legendSettings?: LegendProps;
328
+ renderNumber: number;
329
+ }
330
+ interface NodeType {
331
+ degree: number;
332
+ inDegree: number;
333
+ outDegree: number;
334
+ id?: string;
335
+ createdByFrame?: boolean;
336
+ x: number;
337
+ y: number;
338
+ x1: number;
339
+ x0: number;
340
+ y1: number;
341
+ y0: number;
342
+ height: number;
343
+ width: number;
344
+ radius: number;
345
+ direction: string;
346
+ textHeight: number;
347
+ textWidth: number;
348
+ fontSize: number;
349
+ fontWeight?: number;
350
+ rotate?: number;
351
+ scale: number;
352
+ _NWFText?: string;
353
+ text?: string;
354
+ r: number;
355
+ nodeSize: number;
356
+ component: number;
357
+ shapeNode: boolean;
358
+ depth?: number;
359
+ d?: string;
360
+ index?: number;
361
+ zoomedHeight?: number;
362
+ zoomedWidth?: number;
363
+ }
364
+ interface EdgeType {
365
+ source?: NodeType;
366
+ target?: NodeType;
367
+ d?: string;
368
+ x?: number;
369
+ y?: number;
370
+ sankeyWidth?: number;
371
+ direction?: string;
372
+ width?: number;
373
+ points?: Array<{
374
+ x: number;
375
+ y: number;
376
+ }>;
377
+ }
378
+ interface GraphSettingsType {
379
+ type: string | (({ edges, nodes }: {
380
+ edges: EdgeType[];
381
+ nodes: NodeType[];
382
+ }) => void);
383
+ nodes: object[];
384
+ edges: object[] | object;
385
+ nodeHash: Map<any, NodeType>;
386
+ edgeHash: Map<any, EdgeType>;
387
+ hierarchicalNetwork: boolean;
388
+ filterRenderedNodes?: Function;
389
+ }
390
+ interface NetworkSettingsType {
391
+ type?: string | (({ edges, nodes }: {
392
+ edges: EdgeType[];
393
+ nodes: NodeType[];
394
+ }) => void);
395
+ hierarchyChildren?: Function;
396
+ hierarchySum?: Function;
397
+ layout?: Function;
398
+ nodeSize?: Function;
399
+ nodes?: NodeType[];
400
+ edges?: EdgeType[];
401
+ iterations?: number;
402
+ width?: number;
403
+ height?: number;
404
+ projection?: "horizontal" | "radial" | "vertical";
405
+ customSankey?: Function;
406
+ groupWidth?: number;
407
+ padAngle?: number;
408
+ padding?: number;
409
+ orient?: string;
410
+ nodePadding?: number;
411
+ nodePaddingRatio?: number;
412
+ nodeWidth?: number;
413
+ direction?: string;
414
+ fontSize?: number;
415
+ rotate?: Function;
416
+ fontWeight?: number;
417
+ textAccessor?: Function;
418
+ edgeStrength?: number;
419
+ distanceMax?: number;
420
+ edgeDistance?: number;
421
+ forceManyBody?: Function | number;
422
+ hierarchicalNetwork: boolean;
423
+ graphSettings: GraphSettingsType;
424
+ sortGroups?: Function;
425
+ simulation?: Function;
426
+ sort?: (a: GenericObject, b: GenericObject) => number;
427
+ zoom?: boolean | "stretch" | ((nodes: NodeType[], size: number[]) => void);
428
+ fixExistingNodes?: boolean | Function;
429
+ }
430
+ interface NetworkFrameState extends GeneralFrameState {
431
+ nodeData: object[];
432
+ edgeData: object[];
433
+ projectedNodes: NodeType[];
434
+ projectedEdges: EdgeType[];
435
+ projectedXYPoints: object[];
436
+ overlay: object[];
437
+ nodeIDAccessor: (args: GenericObject) => string;
438
+ sourceAccessor: (args: GenericObject) => GenericObject | string;
439
+ targetAccessor: (args: GenericObject) => GenericObject | string;
440
+ nodeSizeAccessor: (args: GenericObject) => number;
441
+ edgeWidthAccessor: (args: GenericObject) => number;
442
+ nodeLabelAnnotations: object[];
443
+ graphSettings: GraphSettingsType;
444
+ networkFrameRender: RenderPipelineType;
445
+ props: NetworkFrameProps;
446
+ }
447
+ interface NetworkFrameProps extends GeneralFrameProps {
448
+ graph?: {
449
+ nodes: NodeType[];
450
+ edges: EdgeType[];
451
+ } | EdgeType[] | {
452
+ (): () => void;
453
+ nodes: Function;
454
+ edges: Function;
455
+ node: Function;
456
+ edge: Function;
457
+ };
458
+ nodes?: object[];
459
+ edges?: object[] | object;
460
+ networkType?: string | object;
461
+ nodeStyle?: GenericObject | ((args: GenericObject) => GenericObject);
462
+ nodeClass?: string | ((args: GenericObject) => string);
463
+ canvasNodes?: boolean | ((args: GenericObject) => boolean);
464
+ edgeStyle?: GenericObject | ((args: GenericObject) => GenericObject);
465
+ edgeClass?: string | ((args: GenericObject) => string);
466
+ canvasEdges?: boolean | ((args: GenericObject) => boolean);
467
+ nodeRenderMode?: string | ((args: GenericObject) => string);
468
+ edgeRenderMode?: string | ((args: GenericObject) => string);
469
+ nodeLabels?: boolean | ((args: GenericObject) => JSX.Element | string | null);
470
+ edgeRenderKey?: (args: GenericObject) => string;
471
+ nodeRenderKey?: (args: GenericObject) => string;
472
+ edgeWidthAccessor?: string | ((args: GenericObject) => number);
473
+ nodeSizeAccessor?: string | ((args: GenericObject) => number);
474
+ targetAccessor?: string | ((args: GenericObject) => string | GenericObject);
475
+ sourceAccessor?: string | ((args: GenericObject) => string | GenericObject);
476
+ nodeIDAccessor?: string | ((args: GenericObject) => string);
477
+ edgeType?: string | Function;
478
+ customNodeIcon?: Function;
479
+ customEdgeIcon?: Function;
480
+ renderOrder?: ReadonlyArray<"edges" | "nodes">;
481
+ filterRenderedNodes: (value?: NodeType, index?: number, array?: NodeType[]) => any;
482
+ }
483
+ //import { object } from "./generalTypes"
484
+ type AnnotationType = {
485
+ type?: string | Function;
486
+ column?: {
487
+ name: string;
488
+ };
489
+ facetColumn?: string;
490
+ bounds?: RawPoint[];
491
+ x?: number;
492
+ y?: number;
493
+ yTop?: number;
494
+ yBottom?: number;
495
+ yMiddle?: number;
496
+ coordinates?: object[];
497
+ key?: string;
498
+ percent?: number;
499
+ style?: GenericObject | ((arg?: GenericObject, index?: number) => GenericObject);
500
+ ids?: string[];
501
+ edge?: any;
502
+ source?: NodeType;
503
+ target?: NodeType;
504
+ id?: string;
505
+ element?: Element;
506
+ label?: string | Element;
507
+ neighbors?: object[];
508
+ isColumnAnnotation?: boolean;
509
+ };
510
+ type CustomHoverType = boolean | Array<AnnotationType | Function> | object | Function | "all" | "edge" | "node" | "area";
511
+ type AnnotationTypes = "marginalia" | "bump" | false;
512
+ interface AnnotationLayout {
513
+ type: AnnotationTypes;
514
+ orient?: "nearest" | "left" | "right" | "top" | "bottom" | Array<string>;
515
+ characterWidth?: number;
516
+ noteHeight?: Function | number;
517
+ noteWidth?: Function | number;
518
+ lineWidth?: number;
519
+ lineHeight?: number;
520
+ padding?: number;
521
+ iterations?: number;
522
+ pointSizeFunction?: Function;
523
+ labelSizeFunction?: Function;
524
+ marginOffset?: number;
525
+ axisMarginOverride?: {
526
+ top?: number;
527
+ right?: number;
528
+ bottom?: number;
529
+ left?: number;
530
+ };
531
+ }
532
+ interface AnnotationHandling {
533
+ dataVersion?: string;
534
+ layout: AnnotationLayout;
535
+ }
536
+ interface AnnotationProps {
537
+ noteData: {
538
+ eventListeners?: object;
539
+ events?: object;
540
+ onDragEnd?: Function;
541
+ onDragStart?: Function;
542
+ onDrag?: Function;
543
+ type: string | Function;
544
+ editMode?: boolean;
545
+ screenCoordinates?: Array<Array<number>>;
546
+ // What is this type supposed to be? It gets used only in a boolean context
547
+ // I mostly assume this is used to indicate the presence of `nx`, `ny`, `dx`, `dy`
548
+ coordinates?: boolean;
549
+ noteHeight?: Function | number;
550
+ noteWidth?: Function | number;
551
+ x: number | number[];
552
+ y: number | number[];
553
+ nx?: number;
554
+ ny?: number;
555
+ dx?: number;
556
+ dy?: number;
557
+ // TODO: What should this be typed as?
558
+ note: {
559
+ label?: string;
560
+ title?: string;
561
+ };
562
+ i?: number;
563
+ fixedPosition?: boolean;
564
+ label?: string;
565
+ };
566
+ }
567
+ type GlyphProps = {
568
+ lineHeight: number;
569
+ lineWidth: number;
570
+ value: number;
571
+ };
572
+ type AxisPart = {
573
+ value: number;
574
+ };
575
+ interface AxisProps {
576
+ orient: "left" | "right" | "top" | "bottom";
577
+ label?: {
578
+ position?: {
579
+ anchor?: string;
580
+ location?: string;
581
+ rotation?: string;
582
+ };
583
+ name: string;
584
+ locationDistance: number;
585
+ };
586
+ dynamicLabelPosition?: boolean;
587
+ position?: number[];
588
+ rotate?: number;
589
+ tickFormat?: Function;
590
+ size?: number[];
591
+ width?: number;
592
+ height?: number;
593
+ className?: string;
594
+ padding?: number;
595
+ tickValues?: number[] | Function;
596
+ scale?: ScaleLinear<number, number>;
597
+ ticks?: number;
598
+ footer?: boolean;
599
+ tickSize?: number;
600
+ tickLineGenerator?: ({ xy, orient, i, baseMarkProps, className }: {
601
+ xy?: object;
602
+ orient?: string;
603
+ i?: number;
604
+ baseMarkProps?: object;
605
+ className?: string;
606
+ }) => SVGElement;
607
+ baseline?: boolean | "under";
608
+ jaggedBase?: boolean;
609
+ margin?: MarginType;
610
+ center?: boolean;
611
+ axisParts?: AxisPart[];
612
+ annotationFunction?: (args: any) => void;
613
+ glyphFunction?: (args: GlyphProps) => SVGElement;
614
+ axis?: object;
615
+ extentOverride?: number[];
616
+ key?: string | number;
617
+ axisAnnotationFunction?: (args: object) => void;
618
+ xyPoints?: object[];
619
+ marginalSummaryType?: AxisSummaryTypeSettings | OrdinalSummaryTypes;
620
+ showOutboundTickLines?: boolean;
621
+ }
622
+ type AxisGeneratingFunction = (args: object) => AxisProps;
623
+ interface AnnotationLayerProps {
624
+ useSpans: boolean;
625
+ legendSettings?: LegendProps;
626
+ margin: {
627
+ top?: number;
628
+ left?: number;
629
+ right?: number;
630
+ bottom?: number;
631
+ };
632
+ size: number[];
633
+ axes?: React.ReactNode[];
634
+ annotationHandling?: AnnotationHandling | AnnotationTypes;
635
+ annotations: AnnotationType[];
636
+ pointSizeFunction?: Function;
637
+ labelSizeFunction?: Function;
638
+ svgAnnotationRule: Function;
639
+ htmlAnnotationRule: Function;
640
+ voronoiHover: Function;
641
+ position?: number[];
642
+ }
643
+ declare function AnnotationLayer(props: AnnotationLayerProps): JSX.Element;
644
+ interface DividedLineProps {
645
+ parameters: Function;
646
+ className: string;
647
+ customAccessors: {
648
+ x: Function;
649
+ y: Function;
650
+ };
651
+ lineDataAccessor: Function;
652
+ data: ProjectedLine[];
653
+ interpolate?: Function;
654
+ searchIterations?: number;
655
+ }
656
+ declare function DividedLine(props: DividedLineProps): JSX.Element;
657
+ interface XYFrameProps extends GeneralFrameProps {
658
+ lines?: RawLine[] | RawLine;
659
+ points?: RawPoint[];
660
+ summaries?: RawSummary[] | RawSummary;
661
+ axes?: Array<AxisProps | AxisGeneratingFunction>;
662
+ xScaleType?: ScaleLinear<number, number>;
663
+ yScaleType?: ScaleLinear<number, number>;
664
+ xExtent?: ExtentType;
665
+ yExtent?: ExtentType;
666
+ invertX?: boolean;
667
+ invertY?: boolean;
668
+ xAccessor?: accessorType<number>;
669
+ yAccessor?: accessorType<number>;
670
+ lineDataAccessor?: accessorType<RawPoint[]>;
671
+ summaryDataAccessor?: accessorType<RawPoint[]>;
672
+ lineType?: LineTypeSettings | string;
673
+ summaryType?: SummaryTypeSettings;
674
+ lineRenderMode?: string | object | Function;
675
+ pointRenderMode?: string | object | Function;
676
+ summaryRenderMode?: string | object | Function;
677
+ showLinePoints?: boolean | string;
678
+ showSummaryPoints?: boolean;
679
+ defined?: Function;
680
+ lineStyle?: GenericAccessor<object> | object;
681
+ pointStyle?: GenericAccessor<object> | object;
682
+ summaryStyle?: GenericAccessor<object> | object;
683
+ lineClass?: GenericAccessor<string> | string;
684
+ pointClass?: GenericAccessor<string> | string;
685
+ summaryClass?: GenericAccessor<string> | string;
686
+ canvasPoints?: GenericAccessor<boolean> | boolean;
687
+ canvasLines?: GenericAccessor<boolean> | boolean;
688
+ canvasSummaries?: GenericAccessor<boolean> | boolean;
689
+ customPointMark?: Function | object;
690
+ customLineMark?: Function;
691
+ customSummaryMark?: Function;
692
+ lineIDAccessor?: GenericAccessor<string> | string;
693
+ minimap?: object;
694
+ fullDataset?: Array<ProjectedPoint | ProjectedBin | ProjectedSummary>;
695
+ projectedLines?: ProjectedLine[];
696
+ projectedSummaries?: Array<ProjectedSummary>;
697
+ projectedPoints?: ProjectedPoint[];
698
+ renderOrder?: ReadonlyArray<"lines" | "points" | "summaries">;
699
+ useSummariesAsInteractionLayer?: boolean;
700
+ filterRenderedLines?: (value: ProjectedLine, index: number, array: ProjectedLine[]) => any;
701
+ filterRenderedSummaries?: (value: ProjectedSummary, index: number, array: ProjectedSummary[]) => any;
702
+ filterRenderedPoints?: (value: ProjectedPoint | ProjectedBin | ProjectedSummary, index: number, array: (ProjectedPoint | ProjectedBin | ProjectedSummary)[]) => any;
703
+ }
704
+ type AnnotatedSettingsProps = {
705
+ xAccessor?: GenericAccessor<number>[];
706
+ yAccessor?: GenericAccessor<number>[];
707
+ summaryDataAccessor?: GenericAccessor<RawPoint[]>[];
708
+ lineDataAccessor?: GenericAccessor<RawPoint[]>[];
709
+ renderKeyFn?: GenericAccessor<string>;
710
+ lineType?: LineTypeSettings;
711
+ summaryType?: SummaryTypeSettings;
712
+ lineIDAccessor?: GenericAccessor<string>;
713
+ summaries?: object[];
714
+ lines?: object[];
715
+ title?: TitleType;
716
+ xExtent?: number[];
717
+ yExtent?: number[];
718
+ };
719
+ interface XYFrameState extends GeneralFrameState {
720
+ lineData?: RawLine[] | RawLine;
721
+ pointData?: RawPoint[] | RawPoint;
722
+ summaryData?: RawSummary[] | RawSummary;
723
+ projectedLines?: ProjectedLine[];
724
+ projectedPoints?: ProjectedPoint[];
725
+ projectedSummaries?: ProjectedSummary[];
726
+ fullDataset: Array<ProjectedPoint | ProjectedBin | ProjectedSummary>;
727
+ axesData?: AxisProps[];
728
+ axes?: React.ReactNode[];
729
+ axesTickLines?: React.ReactNode;
730
+ calculatedXExtent: number[];
731
+ calculatedYExtent: number[];
732
+ xAccessor: GenericAccessor<number>[];
733
+ yAccessor: GenericAccessor<number>[];
734
+ xScale: ScaleLinear<number, number>;
735
+ yScale: ScaleLinear<number, number>;
736
+ xExtent: number[];
737
+ yExtent: number[];
738
+ areaAnnotations: object[];
739
+ xyFrameRender: RenderPipelineType;
740
+ canvasDrawing: object[];
741
+ size: number[];
742
+ annotatedSettings: AnnotatedSettingsProps;
743
+ overlay?: object[];
744
+ props: XYFrameProps;
745
+ SpanOrDiv: Function;
746
+ }
747
+ interface SummaryLayoutType {
748
+ preprocess?: boolean;
749
+ processedData?: boolean;
750
+ summaryType: SummaryTypeSettings;
751
+ data: {
752
+ _xyfCoordinates?: [number | Date, number | Date][];
753
+ coordinates: {
754
+ x: number;
755
+ y: number;
756
+ }[];
757
+ };
758
+ finalXExtent?: number[];
759
+ finalYExtent?: number[];
760
+ size?: number[];
761
+ xScaleType?: ScaleLinear<Number, Number>;
762
+ yScaleType?: ScaleLinear<Number, Number>;
763
+ margin?: MarginType;
764
+ baseMarkProps?: object;
765
+ styleFn?: Function;
766
+ classFn?: Function;
767
+ renderFn?: Function;
768
+ chartSize?: number[];
769
+ }
770
+ declare const XYFrame: React.NamedExoticComponent<XYFrameProps>;
771
+ type OExtentObject = {
772
+ extent?: Array<string>;
773
+ onChange?: Function;
774
+ };
775
+ type OExtentSettingsType = Array<string> | OExtentObject;
776
+ interface RExtentObject {
777
+ extent?: Array<number>;
778
+ onChange?: Function;
779
+ includeAnnotations?: boolean;
780
+ }
781
+ type PieceTypes = "none" | "bar" | "clusterbar" | "point" | "swarm" | "timeline" | "barpercent";
782
+ interface PieceTypeSettings {
783
+ type: PieceTypes;
784
+ offsetAngle?: number;
785
+ angleRange?: number[];
786
+ }
787
+ interface ProjectedOrdinalSummary {
788
+ originalData?: {
789
+ x?: number;
790
+ y?: number;
791
+ };
792
+ xyPoints?: object[];
793
+ marks?: object[];
794
+ thresholds?: any;
795
+ }
796
+ interface OrdinalFrameProps extends GeneralFrameProps {
797
+ type?: PieceTypes | PieceTypeSettings;
798
+ summaryType?: OrdinalSummaryTypeSettings;
799
+ connectorType?: Function;
800
+ rAccessor?: accessorType<number>;
801
+ oAccessor?: accessorType<string | number>;
802
+ oExtent?: OExtentSettingsType;
803
+ rExtent?: RExtentObject | number[];
804
+ invertR?: boolean;
805
+ projection?: ProjectionTypes;
806
+ summaryHoverAnnotation?: CustomHoverType;
807
+ pieceHoverAnnotation?: CustomHoverType;
808
+ hoverAnnotation?: CustomHoverType;
809
+ canvasPostProcess?: CanvasPostProcessTypes;
810
+ canvasPieces?: boolean | accessorType<boolean>;
811
+ canvasSummaries?: boolean | accessorType<boolean>;
812
+ connectorClass?: string | accessorType<string>;
813
+ pieceClass?: string | accessorType<string>;
814
+ summaryClass?: string | accessorType<string>;
815
+ connectorRenderMode?: string | accessorType<string | GenericObject>;
816
+ connectorStyle?: object | accessorType<GenericObject>;
817
+ canvasConnectors?: boolean | accessorType<boolean>;
818
+ summaryStyle?: object | accessorType<object>;
819
+ style?: object | accessorType<object>;
820
+ oSort?: (a: string, b: string, c: object[], d: object[]) => number;
821
+ dynamicColumnWidth?: string | accessorType<number>;
822
+ pieceIDAccessor?: string | accessorType<string>;
823
+ ordinalAlign?: string;
824
+ oLabel?: boolean | accessorType<string | Element>;
825
+ renderMode?: object | string | accessorType<string | object>;
826
+ summaryRenderMode?: object | string | accessorType<string | object>;
827
+ pixelColumnWidth?: number;
828
+ oScaleType?: any;
829
+ rScaleType?: () => ScaleLinear<number, number>;
830
+ data: Array<object | number>;
831
+ oPadding?: number;
832
+ axes?: AxisGeneratingFunction | AxisProps | Array<AxisProps | AxisGeneratingFunction>;
833
+ renderOrder?: ReadonlyArray<"pieces" | "summaries" | "connectors">;
834
+ multiAxis?: boolean;
835
+ }
836
+ interface OrdinalFrameState extends GeneralFrameState {
837
+ pieceDataXY: Array<object>;
838
+ axisData?: AxisProps[];
839
+ axes?: React.ReactNode[];
840
+ axesTickLines?: React.ReactNode;
841
+ oLabels: {
842
+ labels: React.ReactNode;
843
+ };
844
+ columnOverlays: Array<object>;
845
+ oAccessor: Array<Function>;
846
+ rAccessor: Array<Function>;
847
+ oScaleType: ScaleBand<string>;
848
+ rScaleType: ScaleLinear<number, number>;
849
+ oExtent: Array<string>;
850
+ rExtent: Array<number>;
851
+ oScale: ScaleBand<string>;
852
+ rScale: ScaleLinear<number, number>;
853
+ calculatedOExtent: Array<string>;
854
+ calculatedRExtent: Array<number>;
855
+ projectedColumns: object;
856
+ orFrameRender: RenderPipelineType;
857
+ pieceIDAccessor: GenericAccessor<string>;
858
+ type: object;
859
+ summaryType: object;
860
+ props: OrdinalFrameProps;
861
+ }
862
+ declare const OrdinalFrame: React.NamedExoticComponent<OrdinalFrameProps>;
863
+ interface MinimapXYFrameProps extends XYFrameProps {
864
+ renderBefore?: boolean;
865
+ minimap: {
866
+ summaries: object[];
867
+ };
868
+ }
869
+ declare function MinimapXYFrame(props: MinimapXYFrameProps): JSX.Element;
870
+ interface MinimapProps extends XYFrameProps {
871
+ brushStart: Function;
872
+ brush: Function;
873
+ brushEnd: Function;
874
+ xBrushable: boolean;
875
+ yBrushable: boolean;
876
+ yBrushExtent?: number[];
877
+ xBrushExtent?: number[];
878
+ size: number[];
879
+ }
880
+ declare const MiniMap: (props: MinimapProps) => JSX.Element;
881
+ declare function Axis(props: AxisProps): JSX.Element;
882
+ declare function Legend(props: LegendProps): JSX.Element;
883
+ declare function SemioticAnnotation(props: AnnotationProps): JSX.Element;
884
+ declare const Annotation: typeof SemioticAnnotation;
885
+ interface BrushProps {
886
+ extent?: number[] | number[][];
887
+ selectedExtent?: number[] | number[][];
888
+ svgBrush: {
889
+ (): () => void;
890
+ move: Function;
891
+ };
892
+ position?: number[];
893
+ }
894
+ declare function Brush(props: BrushProps): JSX.Element;
895
+ declare function InteractionLayer(props: InteractionLayerProps): JSX.Element;
896
+ type ContextType = {
897
+ getContext: Function;
898
+ width: number;
899
+ height: number;
900
+ style: {
901
+ width: number;
902
+ height: number;
903
+ };
904
+ } | null;
905
+ type Props = {
906
+ axes?: Array<React.ReactNode>;
907
+ frameKey?: string;
908
+ xScale: Function;
909
+ yScale: Function;
910
+ dataVersion?: string;
911
+ canvasContext?: RefObject<ContextType>;
912
+ width: number;
913
+ height: number;
914
+ margin: MarginType;
915
+ canvasPostProcess?: Function;
916
+ title?: JSX.Element | string;
917
+ ariaTitle?: string;
918
+ matte?: React.ReactNode;
919
+ matteClip?: boolean;
920
+ voronoiHover: Function;
921
+ renderPipeline: RenderPipelineType;
922
+ baseMarkProps?: object;
923
+ projectedCoordinateNames: object;
924
+ position: Array<number>;
925
+ disableContext?: boolean;
926
+ renderOrder: ReadonlyArray<VizLayerTypes>;
927
+ sketchyRenderingEngine?: RoughType;
928
+ axesTickLines?: React.ReactNode;
929
+ frameRenderOrder: Array<string>;
930
+ additionalVizElements: object;
931
+ disableProgressiveRendering?: boolean;
932
+ };
933
+ type State = {
934
+ canvasDrawing: Array<{
935
+ tx: number;
936
+ ty: number;
937
+ i: number;
938
+ d: {
939
+ data: object;
940
+ };
941
+ styleFn: Function;
942
+ markProps: {
943
+ renderMode?: object;
944
+ markType: string;
945
+ width: number;
946
+ height: number;
947
+ x: number;
948
+ y: number;
949
+ r: number;
950
+ rx: number;
951
+ d: string;
952
+ };
953
+ renderFn?: Function;
954
+ }>;
955
+ dataVersion?: string;
956
+ renderedElements: Array<React.ReactNode>;
957
+ focusedPieceIndex: number | null;
958
+ focusedVisualizationGroup?: string;
959
+ piecesGroup: object;
960
+ props: Props;
961
+ handleKeyDown: Function;
962
+ };
963
+ declare class VisualizationLayer extends React.PureComponent<Props, State> {
964
+ static defaultProps: {
965
+ position: number[];
966
+ margin: {
967
+ left: number;
968
+ top: number;
969
+ right: number;
970
+ bottom: number;
971
+ };
972
+ };
973
+ constructor(props: Props);
974
+ updateCtrl: AbortController;
975
+ componentDidUpdate(lp: object): void;
976
+ componentWillUnmount(): void;
977
+ static getDerivedStateFromProps(nextProps: Props, prevState: State): {
978
+ props: Props;
979
+ renderedElements: any[];
980
+ dataVersion: string;
981
+ canvasDrawing: any[];
982
+ piecesGroup: {};
983
+ };
984
+ handleKeyDown: (e: {
985
+ keyCode;
986
+ }, vizgroup: string) => void;
987
+ render(): JSX.Element;
988
+ }
989
+ declare const NetworkFrame: React.NamedExoticComponent<NetworkFrameProps>;
990
+ declare function funnelize({ data, steps, key }: {
991
+ data: Array<Object>;
992
+ steps: Array<string>;
993
+ key: string;
994
+ }): any[];
995
+ type CalculateDataTypes = {
996
+ lineDataAccessor: Array<Function>;
997
+ summaryDataAccessor: Array<Function>;
998
+ summaryStyleFn: Function;
999
+ summaryClassFn: Function;
1000
+ summaryRenderModeFn: Function;
1001
+ xAccessor: Array<Function>;
1002
+ yAccessor: Array<Function>;
1003
+ summaries?: Array<RawSummary>;
1004
+ points?: Array<RawPoint>;
1005
+ lines?: Array<RawLine>;
1006
+ lineType: LineTypeSettings;
1007
+ showLinePoints?: boolean | string;
1008
+ showSummaryPoints?: boolean;
1009
+ xExtent?: ExtentType;
1010
+ yExtent?: ExtentType;
1011
+ invertX?: boolean;
1012
+ invertY?: boolean;
1013
+ summaryType: SummaryTypeSettings;
1014
+ adjustedSize: Array<number>;
1015
+ chartSize: Array<number>;
1016
+ xScaleType: Function;
1017
+ yScaleType: Function;
1018
+ baseMarkProps?: object;
1019
+ margin: MarginType;
1020
+ defined?: Function;
1021
+ annotations: object[];
1022
+ filterRenderedLines: (value: ProjectedLine, index: number, array: ProjectedLine[]) => any;
1023
+ filterRenderedSummaries: (value: ProjectedSummary, index: number, array: ProjectedSummary[]) => any;
1024
+ filterRenderedPoints: (value: ProjectedPoint | ProjectedBin | ProjectedSummary, index: number, array: (ProjectedPoint | ProjectedBin | ProjectedSummary)[]) => any;
1025
+ };
1026
+ declare const calculateDataExtent: ({ lineDataAccessor, xAccessor, yAccessor, summaries, points, lines, lineType, showLinePoints, showSummaryPoints, xExtent, yExtent, invertX, invertY, summaryDataAccessor, summaryType, adjustedSize: size, margin, baseMarkProps, summaryStyleFn, summaryClassFn, summaryRenderModeFn, chartSize, filterRenderedLines, filterRenderedSummaries, filterRenderedPoints, defined, annotations }: CalculateDataTypes) => {
1027
+ xExtent: any[];
1028
+ yExtent: any[];
1029
+ projectedLines: ProjectedLine[];
1030
+ projectedPoints: ProjectedPoint[];
1031
+ projectedSummaries: ProjectedSummary[];
1032
+ fullDataset: (ProjectedPoint | ProjectedBin | ProjectedSummary)[];
1033
+ calculatedXExtent: any[];
1034
+ calculatedYExtent: any[];
1035
+ };
1036
+ interface FacetControllerProps {
1037
+ children: React.ReactElement;
1038
+ sharedRExtent: boolean;
1039
+ sharedXExtent: boolean;
1040
+ sharedYExtent: boolean;
1041
+ }
1042
+ type Props$0 = FacetControllerProps & OrdinalFrameProps & XYFrameProps;
1043
+ declare function FacetController(props: Props$0): JSX.Element;
1044
+ interface ResponsiveFrameProps {
1045
+ debounce?: number;
1046
+ responsiveWidth?: boolean;
1047
+ responsiveHeight?: boolean;
1048
+ gridDisplay?: boolean;
1049
+ elementResizeEvent?: Function;
1050
+ }
1051
+ declare const ResponsiveNetworkFrame: {
1052
+ (props: (ResponsiveFrameProps & XYFrameProps) | (ResponsiveFrameProps & NetworkFrameProps) | (ResponsiveFrameProps & OrdinalFrameProps)): JSX.Element;
1053
+ isResizing: NodeJS.Timeout;
1054
+ displayName: string;
1055
+ };
1056
+ declare const ResponsiveMinimapXYFrame: {
1057
+ (props: (ResponsiveFrameProps & XYFrameProps) | (ResponsiveFrameProps & NetworkFrameProps) | (ResponsiveFrameProps & OrdinalFrameProps)): JSX.Element;
1058
+ isResizing: NodeJS.Timeout;
1059
+ displayName: string;
1060
+ };
1061
+ declare const ResponsiveXYFrame: {
1062
+ (props: (ResponsiveFrameProps & XYFrameProps) | (ResponsiveFrameProps & NetworkFrameProps) | (ResponsiveFrameProps & OrdinalFrameProps)): JSX.Element;
1063
+ isResizing: NodeJS.Timeout;
1064
+ displayName: string;
1065
+ };
1066
+ declare const ResponsiveOrdinalFrame: {
1067
+ (props: (ResponsiveFrameProps & XYFrameProps) | (ResponsiveFrameProps & NetworkFrameProps) | (ResponsiveFrameProps & OrdinalFrameProps)): JSX.Element;
1068
+ isResizing: NodeJS.Timeout;
1069
+ displayName: string;
1070
+ };
1071
+ declare const SparkXYFrame: (props: {
1072
+ sparkStyle?: object;
1073
+ size?: number | number[];
1074
+ }) => JSX.Element;
1075
+ declare const SparkOrdinalFrame: (props: {
1076
+ sparkStyle?: object;
1077
+ size?: number | number[];
1078
+ }) => JSX.Element;
1079
+ declare const SparkNetworkFrame: (props: {
1080
+ sparkStyle?: object;
1081
+ size?: number | number[];
1082
+ }) => JSX.Element;
1083
+ declare function hexbinning({ preprocess, processedData, summaryType: baseSummaryType, data: baseData, finalXExtent: baseXExtent, finalYExtent: baseYExtent, size, xScaleType, yScaleType, margin, baseMarkProps, styleFn, classFn, renderFn, chartSize }: SummaryLayoutType): any[] | {
1084
+ type: string;
1085
+ processedData: boolean;
1086
+ coordinates: any[];
1087
+ binMax: any;
1088
+ };
1089
+ // ADD PRECALC AND EXPOSE PRECALC FUNCTION
1090
+ declare function heatmapping({ preprocess, processedData, summaryType: baseSummaryType, data: baseData, finalXExtent, finalYExtent, size, xScaleType, yScaleType, margin, baseMarkProps, styleFn, classFn, renderFn, chartSize }: SummaryLayoutType): ProjectedSummary | {
1091
+ x: number;
1092
+ y: number;
1093
+ }[];
1094
+ declare const nodesEdgesFromHierarchy: (baseRootNode: any, idAccessor?: (d: any) => any) => {
1095
+ edges: any[];
1096
+ nodes: any[];
1097
+ };
1098
+ export { AnnotationLayer, DividedLine, XYFrame, MinimapXYFrame, MiniMap, Brush, Axis, InteractionLayer, VisualizationLayer, OrdinalFrame, Annotation, NetworkFrame, ResponsiveMinimapXYFrame, ResponsiveOrdinalFrame, ResponsiveNetworkFrame, ResponsiveXYFrame, SparkOrdinalFrame, SparkNetworkFrame, SparkXYFrame, Legend, Mark, funnelize, calculateDataExtent, FacetController, hexbinning, heatmapping, nodesEdgesFromHierarchy, NodeType, EdgeType, GraphSettingsType, NetworkSettingsType, NetworkFrameState, NetworkFrameProps, AnnotationType, CustomHoverType, AnnotationTypes, AnnotationHandling, AnnotationProps, AxisProps, AxisGeneratingFunction, ContextType, GenericObject, MarginType, ProjectionTypes, ExtentType, ProjectedPoint, PieceLayoutType, ProjectedLine, ProjectedSummary, RoughType, CanvasPostProcessTypes, ExtentSettingsType, accessorType, AccessorFnType, BasicLineTypes, LineTypeSettings, BasicSummaryTypes, SummaryTypeSettings, RawLine, RawSummary, RawPoint, CustomAreaMarkProps, ProjectedBin, GenericAccessor, VizLayerTypes, RenderPipelineType, OrdinalSummaryTypes, OrdinalSummaryTypeSettings, AxisSummaryTypeSettings, GeneralFrameProps, GeneralFrameState, AdvancedInteractionSettings, Interactivity, InteractionLayerProps, VoronoiEntryType, BaseColumnType, InteractionLayerState, SupportedLegendGlyphs, ItemType, LegendItem, LegendGroup, LegendProps, OExtentObject, PieceTypes, PieceTypeSettings, ProjectedOrdinalSummary, OrdinalFrameProps, OrdinalFrameState, XYFrameProps, AnnotatedSettingsProps, XYFrameState, SummaryLayoutType };