@d3plus/docs 3.0.0-alpha.3

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 (225) hide show
  1. package/.storybook/main.js +51 -0
  2. package/.storybook/manager-head.html +46 -0
  3. package/.storybook/manager.js +10 -0
  4. package/.storybook/preview-head.html +69 -0
  5. package/.storybook/preview.jsx +134 -0
  6. package/.storybook/theme.js +16 -0
  7. package/README.md +1 -0
  8. package/args/color/colorAdd.args.jsx +71 -0
  9. package/args/color/colorAssign.args.jsx +40 -0
  10. package/args/color/colorContrast.args.jsx +40 -0
  11. package/args/color/colorDefaults.args.jsx +8 -0
  12. package/args/color/colorLegible.args.jsx +24 -0
  13. package/args/color/colorLighter.args.jsx +40 -0
  14. package/args/color/colorSubtract.args.jsx +71 -0
  15. package/args/core/charts/AreaPlot.args.jsx +72 -0
  16. package/args/core/charts/BarChart.args.jsx +88 -0
  17. package/args/core/charts/BoxWhisker.args.jsx +73 -0
  18. package/args/core/charts/BumpChart.args.jsx +133 -0
  19. package/args/core/charts/Donut.args.jsx +58 -0
  20. package/args/core/charts/Geomap.args.jsx +363 -0
  21. package/args/core/charts/LinePlot.args.jsx +57 -0
  22. package/args/core/charts/Matrix.args.jsx +194 -0
  23. package/args/core/charts/Network.args.jsx +310 -0
  24. package/args/core/charts/Pack.args.jsx +171 -0
  25. package/args/core/charts/Pie.args.jsx +148 -0
  26. package/args/core/charts/Plot.args.jsx +685 -0
  27. package/args/core/charts/Priestley.args.jsx +118 -0
  28. package/args/core/charts/Radar.args.jsx +120 -0
  29. package/args/core/charts/RadialMatrix.args.jsx +197 -0
  30. package/args/core/charts/Rings.args.jsx +228 -0
  31. package/args/core/charts/Sankey.args.jsx +248 -0
  32. package/args/core/charts/StackedArea.args.jsx +26 -0
  33. package/args/core/charts/Tree.args.jsx +88 -0
  34. package/args/core/charts/Treemap.args.jsx +181 -0
  35. package/args/core/charts/Viz.args.jsx +1383 -0
  36. package/args/core/components/Axis.args.jsx +600 -0
  37. package/args/core/components/AxisBottom.args.jsx +42 -0
  38. package/args/core/components/AxisLeft.args.jsx +42 -0
  39. package/args/core/components/AxisRight.args.jsx +42 -0
  40. package/args/core/components/AxisTop.args.jsx +42 -0
  41. package/args/core/components/ColorScale.args.jsx +456 -0
  42. package/args/core/components/Legend.args.jsx +289 -0
  43. package/args/core/components/TextBox.args.jsx +554 -0
  44. package/args/core/components/Timeline.args.jsx +401 -0
  45. package/args/core/components/Tooltip.args.jsx +453 -0
  46. package/args/core/shapes/Area.args.jsx +190 -0
  47. package/args/core/shapes/Bar.args.jsx +176 -0
  48. package/args/core/shapes/Box.args.jsx +248 -0
  49. package/args/core/shapes/Circle.args.jsx +84 -0
  50. package/args/core/shapes/Image.args.jsx +177 -0
  51. package/args/core/shapes/Line.args.jsx +127 -0
  52. package/args/core/shapes/Path.args.jsx +84 -0
  53. package/args/core/shapes/Rect.args.jsx +85 -0
  54. package/args/core/shapes/Shape.args.jsx +633 -0
  55. package/args/core/shapes/Whisker.args.jsx +204 -0
  56. package/args/core/utils/BaseClass.args.jsx +65 -0
  57. package/args/core/utils/RESET.args.jsx +8 -0
  58. package/args/core/utils/accessor.args.jsx +39 -0
  59. package/args/core/utils/configPrep.args.jsx +56 -0
  60. package/args/core/utils/constant.args.jsx +24 -0
  61. package/args/core/utils/uuid.args.jsx +8 -0
  62. package/args/data/dataConcat.args.jsx +40 -0
  63. package/args/data/dataFold.args.jsx +56 -0
  64. package/args/data/dataLoad.args.jsx +65 -0
  65. package/args/data/isData.args.jsx +24 -0
  66. package/args/data/merge.args.jsx +39 -0
  67. package/args/data/unique.args.jsx +37 -0
  68. package/args/dom/assign.args.jsx +23 -0
  69. package/args/dom/attrize.args.jsx +39 -0
  70. package/args/dom/date.args.jsx +23 -0
  71. package/args/dom/elem.args.jsx +135 -0
  72. package/args/dom/fontExists.args.jsx +24 -0
  73. package/args/dom/htmlDecode.args.jsx +23 -0
  74. package/args/dom/isObject.args.jsx +23 -0
  75. package/args/dom/parseSides.args.jsx +24 -0
  76. package/args/dom/prefix.args.jsx +8 -0
  77. package/args/dom/rtl.args.jsx +8 -0
  78. package/args/dom/stylize.args.jsx +39 -0
  79. package/args/dom/textWidth.args.jsx +39 -0
  80. package/args/export/saveElement.args.jsx +99 -0
  81. package/args/format/format.args.jsx +24 -0
  82. package/args/format/formatAbbreviate.args.jsx +39 -0
  83. package/args/format/formatDate.args.jsx +53 -0
  84. package/args/format/formatDefaultLocale.args.jsx +24 -0
  85. package/args/locales/dictionaries/formatLocale.args.jsx +8 -0
  86. package/args/math/closest.args.jsx +39 -0
  87. package/args/math/largestRect.args.jsx +56 -0
  88. package/args/math/lineIntersection.args.jsx +69 -0
  89. package/args/math/path2polygon.args.jsx +40 -0
  90. package/args/math/pointDistance.args.jsx +39 -0
  91. package/args/math/pointDistanceSquared.args.jsx +39 -0
  92. package/args/math/pointRotate.args.jsx +55 -0
  93. package/args/math/polygonInside.args.jsx +39 -0
  94. package/args/math/polygonRayCast.args.jsx +55 -0
  95. package/args/math/polygonRotate.args.jsx +55 -0
  96. package/args/math/segmentBoxContains.args.jsx +54 -0
  97. package/args/math/segmentsIntersect.args.jsx +69 -0
  98. package/args/math/shapeEdgePoint.args.jsx +39 -0
  99. package/args/react/D3plusContext.args.jsx +8 -0
  100. package/args/react/Renderer.args.jsx +53 -0
  101. package/args/text/fontFamily.args.jsx +8 -0
  102. package/args/text/fontFamilyStringify.args.jsx +23 -0
  103. package/args/text/stringify.args.jsx +23 -0
  104. package/args/text/strip.args.jsx +38 -0
  105. package/args/text/textSplit.args.jsx +23 -0
  106. package/args/text/textWrap.args.jsx +8 -0
  107. package/args/text/titleCase.args.jsx +24 -0
  108. package/args/text/trim.args.jsx +23 -0
  109. package/args/text/trimLeft.args.jsx +23 -0
  110. package/args/text/trimRight.args.jsx +23 -0
  111. package/docs/Accessibility.mdx +70 -0
  112. package/docs/HomeChart.jsx +38 -0
  113. package/docs/Introduction.mdx +130 -0
  114. package/docs/Logo-Frames.js +352 -0
  115. package/docs/Logo.jsx +30 -0
  116. package/helpers/configify.js +18 -0
  117. package/helpers/funcify.js +14 -0
  118. package/helpers/stringify.js +30 -0
  119. package/package.json +44 -0
  120. package/packages/color/colorAdd.stories.jsx +23 -0
  121. package/packages/color/colorAssign.stories.jsx +23 -0
  122. package/packages/color/colorContrast.stories.jsx +23 -0
  123. package/packages/color/colorDefaults.stories.jsx +23 -0
  124. package/packages/color/colorLegible.stories.jsx +23 -0
  125. package/packages/color/colorLighter.stories.jsx +23 -0
  126. package/packages/color/colorSubtract.stories.jsx +23 -0
  127. package/packages/core/charts/AreaPlot.stories.jsx +74 -0
  128. package/packages/core/charts/BarChart.stories.jsx +307 -0
  129. package/packages/core/charts/BoxWhisker.stories.jsx +204 -0
  130. package/packages/core/charts/BumpChart.stories.jsx +52 -0
  131. package/packages/core/charts/Donut.stories.jsx +41 -0
  132. package/packages/core/charts/Geomap.stories.jsx +186 -0
  133. package/packages/core/charts/LinePlot.stories.jsx +564 -0
  134. package/packages/core/charts/Matrix.stories.jsx +36 -0
  135. package/packages/core/charts/Network.stories.jsx +99 -0
  136. package/packages/core/charts/Pack.stories.jsx +40 -0
  137. package/packages/core/charts/Pie.stories.jsx +40 -0
  138. package/packages/core/charts/Plot.stories.jsx +180 -0
  139. package/packages/core/charts/Priestley.stories.jsx +60 -0
  140. package/packages/core/charts/Radar.stories.jsx +60 -0
  141. package/packages/core/charts/RadialMatrix.stories.jsx +36 -0
  142. package/packages/core/charts/Rings.stories.jsx +41 -0
  143. package/packages/core/charts/Sankey.stories.jsx +41 -0
  144. package/packages/core/charts/StackedArea.stories.jsx +107 -0
  145. package/packages/core/charts/Tree.stories.jsx +27 -0
  146. package/packages/core/charts/Treemap.stories.jsx +81 -0
  147. package/packages/core/charts/Viz.stories.jsx +27 -0
  148. package/packages/core/components/Axis.stories.jsx +27 -0
  149. package/packages/core/components/AxisBottom.stories.jsx +27 -0
  150. package/packages/core/components/AxisLeft.stories.jsx +27 -0
  151. package/packages/core/components/AxisRight.stories.jsx +27 -0
  152. package/packages/core/components/AxisTop.stories.jsx +27 -0
  153. package/packages/core/components/ColorScale.stories.jsx +44 -0
  154. package/packages/core/components/Legend.stories.jsx +49 -0
  155. package/packages/core/components/TextBox.stories.jsx +222 -0
  156. package/packages/core/components/Timeline.stories.jsx +37 -0
  157. package/packages/core/components/Tooltip.stories.jsx +40 -0
  158. package/packages/core/shapes/Area.stories.jsx +27 -0
  159. package/packages/core/shapes/Bar.stories.jsx +27 -0
  160. package/packages/core/shapes/Box.stories.jsx +27 -0
  161. package/packages/core/shapes/Circle.stories.jsx +27 -0
  162. package/packages/core/shapes/Image.stories.jsx +27 -0
  163. package/packages/core/shapes/Line.stories.jsx +27 -0
  164. package/packages/core/shapes/Path.stories.jsx +27 -0
  165. package/packages/core/shapes/Rect.stories.jsx +27 -0
  166. package/packages/core/shapes/Shape.stories.jsx +27 -0
  167. package/packages/core/shapes/Whisker.stories.jsx +27 -0
  168. package/packages/core/utils/BaseClass.stories.jsx +27 -0
  169. package/packages/core/utils/RESET.stories.jsx +23 -0
  170. package/packages/core/utils/accessor.stories.jsx +23 -0
  171. package/packages/core/utils/configPrep.stories.jsx +23 -0
  172. package/packages/core/utils/constant.stories.jsx +23 -0
  173. package/packages/core/utils/uuid.stories.jsx +23 -0
  174. package/packages/data/dataConcat.stories.jsx +23 -0
  175. package/packages/data/dataFold.stories.jsx +23 -0
  176. package/packages/data/dataLoad.stories.jsx +23 -0
  177. package/packages/data/isData.stories.jsx +23 -0
  178. package/packages/data/merge.stories.jsx +23 -0
  179. package/packages/data/unique.stories.jsx +23 -0
  180. package/packages/dom/assign.stories.jsx +23 -0
  181. package/packages/dom/attrize.stories.jsx +23 -0
  182. package/packages/dom/date.stories.jsx +23 -0
  183. package/packages/dom/elem.stories.jsx +23 -0
  184. package/packages/dom/fontExists.stories.jsx +23 -0
  185. package/packages/dom/htmlDecode.stories.jsx +23 -0
  186. package/packages/dom/isObject.stories.jsx +23 -0
  187. package/packages/dom/parseSides.stories.jsx +23 -0
  188. package/packages/dom/prefix.stories.jsx +23 -0
  189. package/packages/dom/rtl.stories.jsx +23 -0
  190. package/packages/dom/stylize.stories.jsx +23 -0
  191. package/packages/dom/textWidth.stories.jsx +23 -0
  192. package/packages/export/saveElement.stories.jsx +23 -0
  193. package/packages/format/format.stories.jsx +23 -0
  194. package/packages/format/formatAbbreviate.stories.jsx +23 -0
  195. package/packages/format/formatDate.stories.jsx +23 -0
  196. package/packages/format/formatDefaultLocale.stories.jsx +23 -0
  197. package/packages/locales/dictionaries/formatLocale.stories.jsx +23 -0
  198. package/packages/math/closest.stories.jsx +23 -0
  199. package/packages/math/largestRect.stories.jsx +23 -0
  200. package/packages/math/lineIntersection.stories.jsx +23 -0
  201. package/packages/math/path2polygon.stories.jsx +23 -0
  202. package/packages/math/pointDistance.stories.jsx +23 -0
  203. package/packages/math/pointDistanceSquared.stories.jsx +23 -0
  204. package/packages/math/pointRotate.stories.jsx +23 -0
  205. package/packages/math/polygonInside.stories.jsx +23 -0
  206. package/packages/math/polygonRayCast.stories.jsx +23 -0
  207. package/packages/math/polygonRotate.stories.jsx +23 -0
  208. package/packages/math/segmentBoxContains.stories.jsx +23 -0
  209. package/packages/math/segmentsIntersect.stories.jsx +23 -0
  210. package/packages/math/shapeEdgePoint.stories.jsx +23 -0
  211. package/packages/react/D3plusContext.stories.jsx +23 -0
  212. package/packages/react/Renderer.stories.jsx +23 -0
  213. package/packages/text/fontFamily.stories.jsx +23 -0
  214. package/packages/text/fontFamilyStringify.stories.jsx +23 -0
  215. package/packages/text/stringify.stories.jsx +23 -0
  216. package/packages/text/strip.stories.jsx +23 -0
  217. package/packages/text/textSplit.stories.jsx +23 -0
  218. package/packages/text/textWrap.stories.jsx +23 -0
  219. package/packages/text/titleCase.stories.jsx +23 -0
  220. package/packages/text/trim.stories.jsx +23 -0
  221. package/packages/text/trimLeft.stories.jsx +23 -0
  222. package/packages/text/trimRight.stories.jsx +23 -0
  223. package/static/data/city_coords.json +224 -0
  224. package/static/images/favicon.ico +0 -0
  225. package/static/images/touchicon.png +0 -0
@@ -0,0 +1,1383 @@
1
+ // WARNING: do not edit this file directly, it is generated dynamically from
2
+ // the source JSDOC comments using the npm run docs script.
3
+
4
+ import React from "react";
5
+ import {argTypes as baseClassArgTypes} from "../utils/BaseClass.args.jsx";
6
+ import {assign} from "@d3plus/dom";
7
+
8
+ import {Viz as D3plusViz} from "@d3plus/react";
9
+ export const Viz = ({ config }) => <D3plusViz config={config} />;
10
+
11
+ export const argTypes = assign(
12
+
13
+ /**
14
+ * Filters out unused argTypes from the BaseClass primitive and
15
+ * overrides any defaults that have been changed in Viz
16
+ */
17
+ Object.keys(baseClassArgTypes)
18
+ .reduce((obj, k) => (obj[k] = baseClassArgTypes[k], obj), {}),
19
+
20
+ /**
21
+ * Viz-specific methods
22
+ */
23
+
24
+ {
25
+ active: {
26
+ control: {},
27
+ table: {
28
+ defaultValue: {
29
+ summary: "undefined"
30
+ }
31
+ },
32
+ type: {
33
+ required: false,
34
+ summary: "function"
35
+ }
36
+ },
37
+ aggs: {
38
+ control: {
39
+ type: "object"
40
+ },
41
+ defaultValue: "{}",
42
+ table: {
43
+ defaultValue: {
44
+ summary: "{}"
45
+ }
46
+ },
47
+ type: {
48
+ required: false,
49
+ summary: "object"
50
+ }
51
+ },
52
+ ariaHidden: {
53
+ control: {
54
+ type: "boolean"
55
+ },
56
+ defaultValue: true,
57
+ table: {
58
+ defaultValue: {
59
+ summary: true
60
+ }
61
+ },
62
+ type: {
63
+ required: false,
64
+ summary: "boolean"
65
+ }
66
+ },
67
+ attribution: {
68
+ control: {
69
+ type: "htmlstring"
70
+ },
71
+ defaultValue: false,
72
+ description: "= false",
73
+ table: {
74
+ defaultValue: {
75
+ summary: false
76
+ }
77
+ },
78
+ type: {
79
+ required: true,
80
+ summary: "htmlstring | boolean"
81
+ }
82
+ },
83
+ attributionStyle: {
84
+ control: {
85
+ type: "object"
86
+ },
87
+ defaultValue: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.25), color: rgba(0, 0, 0, 0.75), display: block, font: `400 11px/11px ${fontFamilyStringify(fontFamily)}`, margin: 5px, opacity: 0.75, padding: 4px 6px 3px}",
88
+ table: {
89
+ defaultValue: {
90
+ summary: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.25), color: rgba(0, 0, 0, 0.75), display: block, font: `400 11px/11px ${fontFamilyStringify(fontFamily)}`, margin: 5px, opacity: 0.75, padding: 4px 6px 3px}"
91
+ }
92
+ },
93
+ type: {
94
+ required: false,
95
+ summary: "object"
96
+ }
97
+ },
98
+ backConfig: {
99
+ control: {
100
+ type: "object"
101
+ },
102
+ defaultValue: "{fontSize: 10, padding: 5, resize: false}",
103
+ table: {
104
+ defaultValue: {
105
+ summary: "{fontSize: 10, padding: 5, resize: false}"
106
+ }
107
+ },
108
+ type: {
109
+ required: false,
110
+ summary: "object"
111
+ }
112
+ },
113
+ cache: {
114
+ control: {
115
+ type: "boolean"
116
+ },
117
+ defaultValue: true,
118
+ table: {
119
+ defaultValue: {
120
+ summary: true
121
+ }
122
+ },
123
+ type: {
124
+ required: false,
125
+ summary: "boolean"
126
+ }
127
+ },
128
+ color: {
129
+ control: {
130
+ type: "text"
131
+ },
132
+ defaultValue: "(d, i) => this._groupBy.0(d, i)",
133
+ table: {
134
+ defaultValue: {
135
+ detail: "(d, i) => this._groupBy.0(d, i)",
136
+ summary: "function"
137
+ }
138
+ },
139
+ type: {
140
+ required: false,
141
+ summary: "function | string | false"
142
+ }
143
+ },
144
+ colorScale: {
145
+ control: {
146
+ type: "text"
147
+ },
148
+ table: {
149
+ defaultValue: {
150
+ summary: "undefined"
151
+ }
152
+ },
153
+ type: {
154
+ required: false,
155
+ summary: "function | string | false"
156
+ }
157
+ },
158
+ colorScaleConfig: {
159
+ control: {
160
+ type: "object"
161
+ },
162
+ defaultValue: "{axisConfig: {rounding: inside}, scale: jenks}",
163
+ table: {
164
+ defaultValue: {
165
+ summary: "{axisConfig: {rounding: inside}, scale: jenks}"
166
+ }
167
+ },
168
+ type: {
169
+ required: false,
170
+ summary: "object"
171
+ }
172
+ },
173
+ colorScaleMaxSize: {
174
+ control: {
175
+ type: "number"
176
+ },
177
+ defaultValue: 600,
178
+ table: {
179
+ defaultValue: {
180
+ summary: 600
181
+ }
182
+ },
183
+ type: {
184
+ required: false,
185
+ summary: "number"
186
+ }
187
+ },
188
+ colorScalePadding: {
189
+ control: {
190
+ type: "boolean"
191
+ },
192
+ defaultValue: "defaultPadding",
193
+ table: {
194
+ defaultValue: {
195
+ summary: "defaultPadding"
196
+ }
197
+ },
198
+ type: {
199
+ required: false,
200
+ summary: "boolean | function"
201
+ }
202
+ },
203
+ colorScalePosition: {
204
+ control: {
205
+ type: "text"
206
+ },
207
+ defaultValue: "() => this._width > this._height * 1.5 ? right : bottom",
208
+ table: {
209
+ defaultValue: {
210
+ detail: "() => this._width > this._height * 1.5 ? right : bottom",
211
+ summary: "function"
212
+ }
213
+ },
214
+ type: {
215
+ required: false,
216
+ summary: "function | string | boolean"
217
+ }
218
+ },
219
+ data: {
220
+ control: {
221
+ type: "array"
222
+ },
223
+ defaultValue: "[\n\n]",
224
+ description: "= []",
225
+ table: {
226
+ defaultValue: {
227
+ summary: "[\n\n]"
228
+ }
229
+ },
230
+ type: {
231
+ required: true,
232
+ summary: "array | string"
233
+ }
234
+ },
235
+ dataCutoff: {
236
+ control: {
237
+ type: "number"
238
+ },
239
+ defaultValue: 100,
240
+ table: {
241
+ defaultValue: {
242
+ summary: 100
243
+ }
244
+ },
245
+ type: {
246
+ required: false,
247
+ summary: "number"
248
+ }
249
+ },
250
+ depth: {
251
+ control: {
252
+ type: "number"
253
+ },
254
+ table: {
255
+ defaultValue: {
256
+ summary: "undefined"
257
+ }
258
+ },
259
+ type: {
260
+ required: false,
261
+ summary: "number"
262
+ }
263
+ },
264
+ detectResize: {
265
+ control: {
266
+ type: "boolean"
267
+ },
268
+ defaultValue: true,
269
+ description: "= true",
270
+ table: {
271
+ defaultValue: {
272
+ summary: true
273
+ }
274
+ },
275
+ type: {
276
+ required: true,
277
+ summary: "boolean"
278
+ }
279
+ },
280
+ detectResizeDelay: {
281
+ control: {
282
+ type: "number"
283
+ },
284
+ defaultValue: 400,
285
+ description: "= 400",
286
+ table: {
287
+ defaultValue: {
288
+ summary: 400
289
+ }
290
+ },
291
+ type: {
292
+ required: true,
293
+ summary: "number"
294
+ }
295
+ },
296
+ detectVisible: {
297
+ control: {
298
+ type: "boolean"
299
+ },
300
+ defaultValue: true,
301
+ description: "= true",
302
+ table: {
303
+ defaultValue: {
304
+ summary: true
305
+ }
306
+ },
307
+ type: {
308
+ required: true,
309
+ summary: "boolean"
310
+ }
311
+ },
312
+ detectVisibleInterval: {
313
+ control: {
314
+ type: "number"
315
+ },
316
+ defaultValue: 1000,
317
+ description: "= 1000",
318
+ table: {
319
+ defaultValue: {
320
+ summary: 1000
321
+ }
322
+ },
323
+ type: {
324
+ required: true,
325
+ summary: "number"
326
+ }
327
+ },
328
+ discrete: {
329
+ control: {
330
+ type: "text"
331
+ },
332
+ table: {
333
+ defaultValue: {
334
+ summary: "undefined"
335
+ }
336
+ },
337
+ type: {
338
+ required: false,
339
+ summary: "string"
340
+ }
341
+ },
342
+ downloadButton: {
343
+ control: {
344
+ type: "boolean"
345
+ },
346
+ defaultValue: false,
347
+ table: {
348
+ defaultValue: {
349
+ summary: false
350
+ }
351
+ },
352
+ type: {
353
+ required: false,
354
+ summary: "boolean"
355
+ }
356
+ },
357
+ downloadConfig: {
358
+ control: {
359
+ type: "object"
360
+ },
361
+ defaultValue: "{type: png}",
362
+ table: {
363
+ defaultValue: {
364
+ summary: "{type: png}"
365
+ }
366
+ },
367
+ type: {
368
+ required: false,
369
+ summary: "object"
370
+ }
371
+ },
372
+ downloadPosition: {
373
+ control: {
374
+ type: "text"
375
+ },
376
+ defaultValue: "top",
377
+ table: {
378
+ defaultValue: {
379
+ summary: "top"
380
+ }
381
+ },
382
+ type: {
383
+ required: false,
384
+ summary: "string"
385
+ }
386
+ },
387
+ duration: {
388
+ control: {
389
+ type: "number"
390
+ },
391
+ defaultValue: 600,
392
+ table: {
393
+ defaultValue: {
394
+ summary: 600
395
+ }
396
+ },
397
+ type: {
398
+ required: false,
399
+ summary: "number"
400
+ }
401
+ },
402
+ filter: {
403
+ control: {},
404
+ table: {
405
+ defaultValue: {
406
+ summary: "undefined"
407
+ }
408
+ },
409
+ type: {
410
+ required: false,
411
+ summary: "function"
412
+ }
413
+ },
414
+ fontFamily: {
415
+ control: {},
416
+ defaultValue: "fontFamily",
417
+ table: {
418
+ defaultValue: {
419
+ summary: "fontFamily"
420
+ }
421
+ },
422
+ type: {
423
+ required: false,
424
+ summary: "function"
425
+ }
426
+ },
427
+ groupBy: {
428
+ control: {
429
+ type: "text"
430
+ },
431
+ defaultValue: "[\nd => d[\"id\"]\n]",
432
+ table: {
433
+ defaultValue: {
434
+ detail: "[\nd => d[\"id\"]\n]",
435
+ summary: "function"
436
+ }
437
+ },
438
+ type: {
439
+ required: false,
440
+ summary: "string | function | array"
441
+ }
442
+ },
443
+ height: {
444
+ control: {
445
+ type: "number"
446
+ },
447
+ defaultValue: "window.innerHeight",
448
+ table: {
449
+ defaultValue: {
450
+ summary: "window.innerHeight"
451
+ }
452
+ },
453
+ type: {
454
+ required: false,
455
+ summary: "number"
456
+ }
457
+ },
458
+ hiddenColor: {
459
+ control: {
460
+ type: "text"
461
+ },
462
+ defaultValue: "#aaa",
463
+ table: {
464
+ defaultValue: {
465
+ summary: "#aaa"
466
+ }
467
+ },
468
+ type: {
469
+ required: false,
470
+ summary: "function | string"
471
+ }
472
+ },
473
+ hiddenOpacity: {
474
+ control: {
475
+ type: "number"
476
+ },
477
+ defaultValue: 0.5,
478
+ table: {
479
+ defaultValue: {
480
+ summary: 0.5
481
+ }
482
+ },
483
+ type: {
484
+ required: false,
485
+ summary: "function | number"
486
+ }
487
+ },
488
+ hover: {
489
+ control: {},
490
+ table: {
491
+ defaultValue: {
492
+ summary: "undefined"
493
+ }
494
+ },
495
+ type: {
496
+ required: false,
497
+ summary: "function"
498
+ }
499
+ },
500
+ label: {
501
+ control: {
502
+ type: "text"
503
+ },
504
+ table: {
505
+ defaultValue: {
506
+ summary: "undefined"
507
+ }
508
+ },
509
+ type: {
510
+ required: false,
511
+ summary: "function | string"
512
+ }
513
+ },
514
+ labelPosition: {
515
+ control: {
516
+ type: "text"
517
+ },
518
+ defaultValue: "\"auto\"",
519
+ table: {
520
+ defaultValue: {
521
+ summary: "\"auto\""
522
+ }
523
+ },
524
+ type: {
525
+ required: false,
526
+ summary: "function | string"
527
+ }
528
+ },
529
+ legend: {
530
+ control: {
531
+ type: "boolean"
532
+ },
533
+ defaultValue: "(config, arr) => {\n const maxGrouped = max(arr, (d, i)=>{\n const id = this._groupBy[this._legendDepth].bind(this)(d, i);\n return id instanceof Array ? id.length : 1;\n });\n return arr.length > 1 && maxGrouped <= 2;\n}",
534
+ table: {
535
+ defaultValue: {
536
+ detail: "(config, arr) => {\n const maxGrouped = max(arr, (d, i)=>{\n const id = this._groupBy[this._legendDepth].bind(this)(d, i);\n return id instanceof Array ? id.length : 1;\n });\n return arr.length > 1 && maxGrouped <= 2;\n}",
537
+ summary: "function"
538
+ }
539
+ },
540
+ type: {
541
+ required: false,
542
+ summary: "boolean | function"
543
+ }
544
+ },
545
+ legendConfig: {
546
+ control: {
547
+ type: "object"
548
+ },
549
+ defaultValue: "{label: legendLabel.bind(this), shapeConfig: {ariaLabel: legendLabel.bind(this), labelConfig: {fontColor: undefined, fontResize: false, padding: 0}}}",
550
+ table: {
551
+ defaultValue: {
552
+ summary: "{label: legendLabel.bind(this), shapeConfig: {ariaLabel: legendLabel.bind(this), labelConfig: {fontColor: undefined, fontResize: false, padding: 0}}}"
553
+ }
554
+ },
555
+ type: {
556
+ required: false,
557
+ summary: "object"
558
+ }
559
+ },
560
+ legendFilterInvert: {
561
+ control: {
562
+ type: "boolean"
563
+ },
564
+ defaultValue: false,
565
+ table: {
566
+ defaultValue: {
567
+ summary: false
568
+ }
569
+ },
570
+ type: {
571
+ required: false,
572
+ summary: "boolean | function"
573
+ }
574
+ },
575
+ legendPadding: {
576
+ control: {
577
+ type: "boolean"
578
+ },
579
+ defaultValue: "defaultPadding",
580
+ table: {
581
+ defaultValue: {
582
+ summary: "defaultPadding"
583
+ }
584
+ },
585
+ type: {
586
+ required: false,
587
+ summary: "boolean | function"
588
+ }
589
+ },
590
+ legendPosition: {
591
+ control: {
592
+ type: "text"
593
+ },
594
+ defaultValue: "() => this._width > this._height * 1.5 ? right : bottom",
595
+ table: {
596
+ defaultValue: {
597
+ detail: "() => this._width > this._height * 1.5 ? right : bottom",
598
+ summary: "function"
599
+ }
600
+ },
601
+ type: {
602
+ required: false,
603
+ summary: "function | string"
604
+ }
605
+ },
606
+ legendSort: {
607
+ control: {},
608
+ defaultValue: "(a, b) => this._drawLabel(a).localeCompare(this._drawLabel(b))",
609
+ table: {
610
+ defaultValue: {
611
+ detail: "(a, b) => this._drawLabel(a).localeCompare(this._drawLabel(b))",
612
+ summary: "function"
613
+ }
614
+ },
615
+ type: {
616
+ required: true,
617
+ summary: "function"
618
+ }
619
+ },
620
+ legendTooltip: {
621
+ control: {
622
+ type: "object"
623
+ },
624
+ defaultValue: "{}",
625
+ table: {
626
+ defaultValue: {
627
+ summary: "{}"
628
+ }
629
+ },
630
+ type: {
631
+ required: false,
632
+ summary: "object"
633
+ }
634
+ },
635
+ loadingHTML: {
636
+ control: {
637
+ type: "text"
638
+ },
639
+ defaultValue: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(Loading Visualization)}</strong>\n <sub style=\"bottom: 0; display: block; line-height: 1; margin-top: 5px;\"><a href=\"https://d3plus.org\" target=\"_blank\">${this._translate(Powered by D3plus)}</a></sub>\n </div>`",
640
+ table: {
641
+ defaultValue: {
642
+ detail: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(Loading Visualization)}</strong>\n <sub style=\"bottom: 0; display: block; line-height: 1; margin-top: 5px;\"><a href=\"https://d3plus.org\" target=\"_blank\">${this._translate(Powered by D3plus)}</a></sub>\n </div>`",
643
+ summary: "function"
644
+ }
645
+ },
646
+ type: {
647
+ required: false,
648
+ summary: "function | string"
649
+ }
650
+ },
651
+ loadingMessage: {
652
+ control: {
653
+ type: "boolean"
654
+ },
655
+ defaultValue: true,
656
+ table: {
657
+ defaultValue: {
658
+ summary: true
659
+ }
660
+ },
661
+ type: {
662
+ required: false,
663
+ summary: "boolean"
664
+ }
665
+ },
666
+ messageMask: {
667
+ control: {
668
+ type: "boolean"
669
+ },
670
+ defaultValue: "rgba(0, 0, 0, 0.05)",
671
+ table: {
672
+ defaultValue: {
673
+ summary: "rgba(0, 0, 0, 0.05)"
674
+ }
675
+ },
676
+ type: {
677
+ required: false,
678
+ summary: "boolean | string"
679
+ }
680
+ },
681
+ messageStyle: {
682
+ control: {
683
+ type: "object"
684
+ },
685
+ defaultValue: "{bottom: 0, left: 0, position: absolute, right: 0, text-align: center, top: 0}",
686
+ table: {
687
+ defaultValue: {
688
+ summary: "{bottom: 0, left: 0, position: absolute, right: 0, text-align: center, top: 0}"
689
+ }
690
+ },
691
+ type: {
692
+ required: false,
693
+ summary: "object"
694
+ }
695
+ },
696
+ noDataHTML: {
697
+ control: {
698
+ type: "text"
699
+ },
700
+ defaultValue: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(No Data Available)}</strong>\n </div>`",
701
+ table: {
702
+ defaultValue: {
703
+ detail: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(No Data Available)}</strong>\n </div>`",
704
+ summary: "function"
705
+ }
706
+ },
707
+ type: {
708
+ required: false,
709
+ summary: "function | string"
710
+ }
711
+ },
712
+ noDataMessage: {
713
+ control: {
714
+ type: "boolean"
715
+ },
716
+ defaultValue: true,
717
+ table: {
718
+ defaultValue: {
719
+ summary: true
720
+ }
721
+ },
722
+ type: {
723
+ required: false,
724
+ summary: "boolean"
725
+ }
726
+ },
727
+ on: {
728
+ control: {
729
+ type: "text"
730
+ },
731
+ defaultValue: "{click.shape: clickShape.bind(this), click.legend: clickLegend.bind(this), mouseenter: mouseenter.bind(this), mouseleave: mouseleave.bind(this), mousemove.shape: mousemoveShape.bind(this), mousemove.legend: mousemoveLegend.bind(this)}",
732
+ table: {
733
+ defaultValue: {
734
+ summary: "{click.shape: clickShape.bind(this), click.legend: clickLegend.bind(this), mouseenter: mouseenter.bind(this), mouseleave: mouseleave.bind(this), mousemove.shape: mousemoveShape.bind(this), mousemove.legend: mousemoveLegend.bind(this)}"
735
+ }
736
+ },
737
+ type: {
738
+ required: false,
739
+ summary: "string"
740
+ }
741
+ },
742
+ parent: {
743
+ control: {
744
+ type: "object"
745
+ },
746
+ table: {
747
+ defaultValue: {
748
+ summary: "undefined"
749
+ }
750
+ },
751
+ type: {
752
+ required: false,
753
+ summary: "object"
754
+ }
755
+ },
756
+ render: {
757
+ control: {},
758
+ description: "An optional callback function that, if passed, will be called after animation is complete.",
759
+ table: {
760
+ defaultValue: {
761
+ summary: "undefined"
762
+ }
763
+ },
764
+ type: {
765
+ required: false,
766
+ summary: "function"
767
+ }
768
+ },
769
+ resizeContainer: {
770
+ control: {
771
+ type: "text"
772
+ },
773
+ defaultValue: "typeofwindow === undefined ? : window",
774
+ table: {
775
+ defaultValue: {
776
+ summary: "typeofwindow === undefined ? : window"
777
+ }
778
+ },
779
+ type: {
780
+ required: true,
781
+ summary: "string | htmlelement"
782
+ }
783
+ },
784
+ scrollContainer: {
785
+ control: {
786
+ type: "text"
787
+ },
788
+ defaultValue: "typeofwindow === undefined ? : window",
789
+ table: {
790
+ defaultValue: {
791
+ summary: "typeofwindow === undefined ? : window"
792
+ }
793
+ },
794
+ type: {
795
+ required: true,
796
+ summary: "string | htmlelement"
797
+ }
798
+ },
799
+ select: {
800
+ control: {
801
+ type: "text"
802
+ },
803
+ table: {
804
+ defaultValue: {
805
+ summary: "undefined"
806
+ }
807
+ },
808
+ type: {
809
+ required: false,
810
+ summary: "string | htmlelement"
811
+ }
812
+ },
813
+ shape: {
814
+ control: {
815
+ type: "text"
816
+ },
817
+ defaultValue: "Rect",
818
+ table: {
819
+ defaultValue: {
820
+ summary: "Rect"
821
+ }
822
+ },
823
+ type: {
824
+ required: false,
825
+ summary: "function | string"
826
+ }
827
+ },
828
+ shapeConfig: {
829
+ control: {
830
+ type: "object"
831
+ },
832
+ defaultValue: "{ariaLabel: (d, i) => this._drawLabel(d, i), fill: (d, i) => {\n while(d.__d3plus__ && d.data){\n d = d.data;\n i = d.i;\n }\n if (this._colorScale) {\n const c = this._colorScale(d, i);\n if (c !== undefined && c !== null) {\n const scale = this._colorScaleClass._colorScale;\n const colors = this._colorScaleClass.color();\n if (!scale) return colors instanceof Array ? colors[colors.length - 1] : colors;\n else if (!scale.domain().length) return scale.range()[scale.range().length - 1];\n return scale(c);\n }\n }\n const c = this._color(d, i);\n if (color(c)) return c;\n return colorAssign(typeof c === \"string\" ? c : JSON.stringify(c), this._colorDefaults);\n}, labelConfig: {fontColor: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return colorContrast(c);\n}}, opacity: 1, stroke: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return color(c).darker(0.25);\n}, role: presentation, strokeWidth: 0}",
833
+ table: {
834
+ defaultValue: {
835
+ detail: "{ariaLabel: (d, i) => this._drawLabel(d, i), fill: (d, i) => {\n while(d.__d3plus__ && d.data){\n d = d.data;\n i = d.i;\n }\n if (this._colorScale) {\n const c = this._colorScale(d, i);\n if (c !== undefined && c !== null) {\n const scale = this._colorScaleClass._colorScale;\n const colors = this._colorScaleClass.color();\n if (!scale) return colors instanceof Array ? colors[colors.length - 1] : colors;\n else if (!scale.domain().length) return scale.range()[scale.range().length - 1];\n return scale(c);\n }\n }\n const c = this._color(d, i);\n if (color(c)) return c;\n return colorAssign(typeof c === \"string\" ? c : JSON.stringify(c), this._colorDefaults);\n}, labelConfig: {fontColor: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return colorContrast(c);\n}}, opacity: 1, stroke: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return color(c).darker(0.25);\n}, role: presentation, strokeWidth: 0}",
836
+ summary: "function"
837
+ }
838
+ },
839
+ type: {
840
+ required: false,
841
+ summary: "object"
842
+ }
843
+ },
844
+ subtitle: {
845
+ control: {
846
+ type: "text"
847
+ },
848
+ table: {
849
+ defaultValue: {
850
+ summary: "undefined"
851
+ }
852
+ },
853
+ type: {
854
+ required: false,
855
+ summary: "function | string"
856
+ }
857
+ },
858
+ subtitleConfig: {
859
+ control: {
860
+ type: "object"
861
+ },
862
+ defaultValue: "{ariaHidden: true, fontSize: 12, padding: 5, resize: false, textAnchor: middle}",
863
+ table: {
864
+ defaultValue: {
865
+ summary: "{ariaHidden: true, fontSize: 12, padding: 5, resize: false, textAnchor: middle}"
866
+ }
867
+ },
868
+ type: {
869
+ required: false,
870
+ summary: "object"
871
+ }
872
+ },
873
+ subtitlePadding: {
874
+ control: {
875
+ type: "boolean"
876
+ },
877
+ defaultValue: "defaultPadding",
878
+ table: {
879
+ defaultValue: {
880
+ summary: "defaultPadding"
881
+ }
882
+ },
883
+ type: {
884
+ required: false,
885
+ summary: "boolean | function"
886
+ }
887
+ },
888
+ svgDesc: {
889
+ control: {
890
+ type: "text"
891
+ },
892
+ defaultValue: "",
893
+ table: {
894
+ defaultValue: {
895
+ summary: ""
896
+ }
897
+ },
898
+ type: {
899
+ required: false,
900
+ summary: "string"
901
+ }
902
+ },
903
+ svgTitle: {
904
+ control: {
905
+ type: "text"
906
+ },
907
+ defaultValue: "",
908
+ table: {
909
+ defaultValue: {
910
+ summary: ""
911
+ }
912
+ },
913
+ type: {
914
+ required: false,
915
+ summary: "string"
916
+ }
917
+ },
918
+ threshold: {
919
+ control: {
920
+ type: "number"
921
+ },
922
+ defaultValue: 0.0001,
923
+ table: {
924
+ defaultValue: {
925
+ summary: 0.0001
926
+ }
927
+ },
928
+ type: {
929
+ required: false,
930
+ summary: "function | number"
931
+ }
932
+ },
933
+ thresholdKey: {
934
+ control: {
935
+ type: "number"
936
+ },
937
+ defaultValue: "undefined",
938
+ table: {
939
+ defaultValue: {
940
+ summary: "undefined"
941
+ }
942
+ },
943
+ type: {
944
+ required: false,
945
+ summary: "function | number"
946
+ }
947
+ },
948
+ thresholdName: {
949
+ control: {
950
+ type: "text"
951
+ },
952
+ defaultValue: "() => this._translate(Values)",
953
+ table: {
954
+ defaultValue: {
955
+ detail: "() => this._translate(Values)",
956
+ summary: "function"
957
+ }
958
+ },
959
+ type: {
960
+ required: false,
961
+ summary: "function | string"
962
+ }
963
+ },
964
+ time: {
965
+ control: {
966
+ type: "text"
967
+ },
968
+ table: {
969
+ defaultValue: {
970
+ summary: "undefined"
971
+ }
972
+ },
973
+ type: {
974
+ required: false,
975
+ summary: "function | string"
976
+ }
977
+ },
978
+ timeFilter: {
979
+ control: {},
980
+ table: {
981
+ defaultValue: {
982
+ summary: "undefined"
983
+ }
984
+ },
985
+ type: {
986
+ required: false,
987
+ summary: "function"
988
+ }
989
+ },
990
+ timeline: {
991
+ control: {
992
+ type: "boolean"
993
+ },
994
+ defaultValue: true,
995
+ table: {
996
+ defaultValue: {
997
+ summary: true
998
+ }
999
+ },
1000
+ type: {
1001
+ required: false,
1002
+ summary: "boolean"
1003
+ }
1004
+ },
1005
+ timelineConfig: {
1006
+ control: {
1007
+ type: "object"
1008
+ },
1009
+ defaultValue: "{brushing: false, padding: 5}",
1010
+ table: {
1011
+ defaultValue: {
1012
+ summary: "{brushing: false, padding: 5}"
1013
+ }
1014
+ },
1015
+ type: {
1016
+ required: false,
1017
+ summary: "object"
1018
+ }
1019
+ },
1020
+ timelineDefault: {
1021
+ control: {
1022
+ type: "date"
1023
+ },
1024
+ table: {
1025
+ defaultValue: {
1026
+ summary: "undefined"
1027
+ }
1028
+ },
1029
+ type: {
1030
+ required: false,
1031
+ summary: "date | string | array"
1032
+ }
1033
+ },
1034
+ timelinePadding: {
1035
+ control: {
1036
+ type: "boolean"
1037
+ },
1038
+ defaultValue: "defaultPadding",
1039
+ table: {
1040
+ defaultValue: {
1041
+ summary: "defaultPadding"
1042
+ }
1043
+ },
1044
+ type: {
1045
+ required: false,
1046
+ summary: "boolean | function"
1047
+ }
1048
+ },
1049
+ title: {
1050
+ control: {
1051
+ type: "text"
1052
+ },
1053
+ table: {
1054
+ defaultValue: {
1055
+ summary: "undefined"
1056
+ }
1057
+ },
1058
+ type: {
1059
+ required: false,
1060
+ summary: "function | string"
1061
+ }
1062
+ },
1063
+ titleConfig: {
1064
+ control: {
1065
+ type: "object"
1066
+ },
1067
+ defaultValue: "{ariaHidden: true, fontSize: 16, padding: 5, resize: false, textAnchor: middle}",
1068
+ table: {
1069
+ defaultValue: {
1070
+ summary: "{ariaHidden: true, fontSize: 16, padding: 5, resize: false, textAnchor: middle}"
1071
+ }
1072
+ },
1073
+ type: {
1074
+ required: false,
1075
+ summary: "object"
1076
+ }
1077
+ },
1078
+ titlePadding: {
1079
+ control: {
1080
+ type: "boolean"
1081
+ },
1082
+ defaultValue: "defaultPadding",
1083
+ table: {
1084
+ defaultValue: {
1085
+ summary: "defaultPadding"
1086
+ }
1087
+ },
1088
+ type: {
1089
+ required: false,
1090
+ summary: "boolean | function"
1091
+ }
1092
+ },
1093
+ tooltip: {
1094
+ control: {
1095
+ type: "boolean"
1096
+ },
1097
+ defaultValue: true,
1098
+ table: {
1099
+ defaultValue: {
1100
+ summary: true
1101
+ }
1102
+ },
1103
+ type: {
1104
+ required: false,
1105
+ summary: "boolean | function"
1106
+ }
1107
+ },
1108
+ tooltipConfig: {
1109
+ control: {
1110
+ type: "object"
1111
+ },
1112
+ defaultValue: "{pointerEvents: none, titleStyle: {max-width: 200px}}",
1113
+ table: {
1114
+ defaultValue: {
1115
+ summary: "{pointerEvents: none, titleStyle: {max-width: 200px}}"
1116
+ }
1117
+ },
1118
+ type: {
1119
+ required: false,
1120
+ summary: "object"
1121
+ }
1122
+ },
1123
+ total: {
1124
+ control: {
1125
+ type: "boolean"
1126
+ },
1127
+ table: {
1128
+ defaultValue: {
1129
+ summary: "undefined"
1130
+ }
1131
+ },
1132
+ type: {
1133
+ required: false,
1134
+ summary: "boolean | function | string"
1135
+ }
1136
+ },
1137
+ totalConfig: {
1138
+ control: {
1139
+ type: "object"
1140
+ },
1141
+ defaultValue: "{fontSize: 10, padding: 5, resize: false, textAnchor: middle}",
1142
+ table: {
1143
+ defaultValue: {
1144
+ summary: "{fontSize: 10, padding: 5, resize: false, textAnchor: middle}"
1145
+ }
1146
+ },
1147
+ type: {
1148
+ required: false,
1149
+ summary: "object"
1150
+ }
1151
+ },
1152
+ totalFormat: {
1153
+ control: {},
1154
+ defaultValue: "(d) => `${this._translate(Total)}: ${formatAbbreviate(d, this._locale)}`",
1155
+ table: {
1156
+ defaultValue: {
1157
+ detail: "(d) => `${this._translate(Total)}: ${formatAbbreviate(d, this._locale)}`",
1158
+ summary: "function"
1159
+ }
1160
+ },
1161
+ type: {
1162
+ required: true,
1163
+ summary: "function"
1164
+ }
1165
+ },
1166
+ totalPadding: {
1167
+ control: {
1168
+ type: "boolean"
1169
+ },
1170
+ defaultValue: "defaultPadding",
1171
+ table: {
1172
+ defaultValue: {
1173
+ summary: "defaultPadding"
1174
+ }
1175
+ },
1176
+ type: {
1177
+ required: false,
1178
+ summary: "boolean | function"
1179
+ }
1180
+ },
1181
+ width: {
1182
+ control: {
1183
+ type: "number"
1184
+ },
1185
+ defaultValue: "window.innerWidth",
1186
+ table: {
1187
+ defaultValue: {
1188
+ summary: "window.innerWidth"
1189
+ }
1190
+ },
1191
+ type: {
1192
+ required: false,
1193
+ summary: "number"
1194
+ }
1195
+ },
1196
+ zoom: {
1197
+ control: {
1198
+ type: "boolean"
1199
+ },
1200
+ defaultValue: false,
1201
+ description: "= false",
1202
+ table: {
1203
+ defaultValue: {
1204
+ summary: false
1205
+ }
1206
+ },
1207
+ type: {
1208
+ required: true,
1209
+ summary: "boolean"
1210
+ }
1211
+ },
1212
+ zoomBrushHandleSize: {
1213
+ control: {
1214
+ type: "number"
1215
+ },
1216
+ defaultValue: 1,
1217
+ description: "= 1",
1218
+ table: {
1219
+ defaultValue: {
1220
+ summary: 1
1221
+ }
1222
+ },
1223
+ type: {
1224
+ required: true,
1225
+ summary: "number"
1226
+ }
1227
+ },
1228
+ zoomBrushHandleStyle: {
1229
+ control: {
1230
+ type: "object"
1231
+ },
1232
+ defaultValue: "{fill: #444}",
1233
+ table: {
1234
+ defaultValue: {
1235
+ summary: "{fill: #444}"
1236
+ }
1237
+ },
1238
+ type: {
1239
+ required: true,
1240
+ summary: "object | boolean"
1241
+ }
1242
+ },
1243
+ zoomBrushSelectionStyle: {
1244
+ control: {
1245
+ type: "object"
1246
+ },
1247
+ defaultValue: "{fill: #777, stroke-width: 0}",
1248
+ table: {
1249
+ defaultValue: {
1250
+ summary: "{fill: #777, stroke-width: 0}"
1251
+ }
1252
+ },
1253
+ type: {
1254
+ required: true,
1255
+ summary: "object | boolean"
1256
+ }
1257
+ },
1258
+ zoomControlStyle: {
1259
+ control: {
1260
+ type: "object"
1261
+ },
1262
+ defaultValue: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.75), color: rgba(0, 0, 0, 0.75), display: block, font: `900 15px/21px ${fontFamilyStringify(fontFamily)}`, height: 20px, margin: 5px, opacity: 0.75, padding: 0, text-align: center, width: 20px}",
1263
+ table: {
1264
+ defaultValue: {
1265
+ summary: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.75), color: rgba(0, 0, 0, 0.75), display: block, font: `900 15px/21px ${fontFamilyStringify(fontFamily)}`, height: 20px, margin: 5px, opacity: 0.75, padding: 0, text-align: center, width: 20px}"
1266
+ }
1267
+ },
1268
+ type: {
1269
+ required: true,
1270
+ summary: "object | boolean"
1271
+ }
1272
+ },
1273
+ zoomControlStyleActive: {
1274
+ control: {
1275
+ type: "object"
1276
+ },
1277
+ defaultValue: "{background: rgba(0, 0, 0, 0.75), color: rgba(255, 255, 255, 0.75), opacity: 1}",
1278
+ table: {
1279
+ defaultValue: {
1280
+ summary: "{background: rgba(0, 0, 0, 0.75), color: rgba(255, 255, 255, 0.75), opacity: 1}"
1281
+ }
1282
+ },
1283
+ type: {
1284
+ required: true,
1285
+ summary: "object | boolean"
1286
+ }
1287
+ },
1288
+ zoomControlStyleHover: {
1289
+ control: {
1290
+ type: "object"
1291
+ },
1292
+ defaultValue: "{cursor: pointer, opacity: 1}",
1293
+ table: {
1294
+ defaultValue: {
1295
+ summary: "{cursor: pointer, opacity: 1}"
1296
+ }
1297
+ },
1298
+ type: {
1299
+ required: true,
1300
+ summary: "object | boolean"
1301
+ }
1302
+ },
1303
+ zoomFactor: {
1304
+ control: {
1305
+ type: "number"
1306
+ },
1307
+ defaultValue: 2,
1308
+ description: "= 2",
1309
+ table: {
1310
+ defaultValue: {
1311
+ summary: 2
1312
+ }
1313
+ },
1314
+ type: {
1315
+ required: true,
1316
+ summary: "number"
1317
+ }
1318
+ },
1319
+ zoomMax: {
1320
+ control: {
1321
+ type: "number"
1322
+ },
1323
+ defaultValue: 16,
1324
+ description: "= 16",
1325
+ table: {
1326
+ defaultValue: {
1327
+ summary: 16
1328
+ }
1329
+ },
1330
+ type: {
1331
+ required: true,
1332
+ summary: "number"
1333
+ }
1334
+ },
1335
+ zoomPadding: {
1336
+ control: {
1337
+ type: "number"
1338
+ },
1339
+ defaultValue: 20,
1340
+ description: "= 20",
1341
+ table: {
1342
+ defaultValue: {
1343
+ summary: 20
1344
+ }
1345
+ },
1346
+ type: {
1347
+ required: true,
1348
+ summary: "number"
1349
+ }
1350
+ },
1351
+ zoomPan: {
1352
+ control: {
1353
+ type: "boolean"
1354
+ },
1355
+ defaultValue: true,
1356
+ description: "= true",
1357
+ table: {
1358
+ defaultValue: {
1359
+ summary: true
1360
+ }
1361
+ },
1362
+ type: {
1363
+ required: true,
1364
+ summary: "boolean"
1365
+ }
1366
+ },
1367
+ zoomScroll: {
1368
+ control: {
1369
+ type: "boolean"
1370
+ },
1371
+ defaultValue: true,
1372
+ table: {
1373
+ defaultValue: {
1374
+ summary: true
1375
+ }
1376
+ },
1377
+ type: {
1378
+ required: false,
1379
+ summary: "boolean"
1380
+ }
1381
+ }
1382
+ }
1383
+ );