@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,633 @@
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 {Shape as D3plusShape} from "@d3plus/react";
9
+ export const Shape = ({ config }) => <D3plusShape 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 Shape
16
+ */
17
+ Object.keys(baseClassArgTypes)
18
+ .reduce((obj, k) => (obj[k] = baseClassArgTypes[k], obj), {}),
19
+
20
+ /**
21
+ * Shape-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
+ activeOpacity: {
38
+ control: {
39
+ type: "number"
40
+ },
41
+ defaultValue: 0.25,
42
+ description: "= 0.25",
43
+ table: {
44
+ defaultValue: {
45
+ summary: 0.25
46
+ }
47
+ },
48
+ type: {
49
+ required: true,
50
+ summary: "number"
51
+ }
52
+ },
53
+ activeStyle: {
54
+ control: {
55
+ type: "object"
56
+ },
57
+ defaultValue: "{stroke: (d, i) => {\n let c = this._fill(d, i);\n if ([\n \"transparent\",\n \"none\"\n ].includes(c)) c = this._stroke(d, i);\n return color(c).darker(1);\n}, stroke-width: (d, i) => {\n const s = this._strokeWidth(d, i) || 1;\n return s * 3;\n}}",
58
+ table: {
59
+ defaultValue: {
60
+ detail: "{stroke: (d, i) => {\n let c = this._fill(d, i);\n if ([\n \"transparent\",\n \"none\"\n ].includes(c)) c = this._stroke(d, i);\n return color(c).darker(1);\n}, stroke-width: (d, i) => {\n const s = this._strokeWidth(d, i) || 1;\n return s * 3;\n}}",
61
+ summary: "function"
62
+ }
63
+ },
64
+ type: {
65
+ required: true,
66
+ summary: "object"
67
+ }
68
+ },
69
+ ariaLabel: {
70
+ control: {
71
+ type: "text"
72
+ },
73
+ defaultValue: "",
74
+ table: {
75
+ defaultValue: {
76
+ summary: ""
77
+ }
78
+ },
79
+ type: {
80
+ required: true,
81
+ summary: "function | string"
82
+ }
83
+ },
84
+ backgroundImage: {
85
+ control: {
86
+ type: "text"
87
+ },
88
+ defaultValue: false,
89
+ table: {
90
+ defaultValue: {
91
+ summary: false
92
+ }
93
+ },
94
+ type: {
95
+ required: false,
96
+ summary: "function | string"
97
+ }
98
+ },
99
+ data: {
100
+ control: {
101
+ type: "array"
102
+ },
103
+ defaultValue: "[\n\n]",
104
+ table: {
105
+ defaultValue: {
106
+ summary: "[\n\n]"
107
+ }
108
+ },
109
+ type: {
110
+ required: false,
111
+ summary: "array"
112
+ }
113
+ },
114
+ discrete: {
115
+ control: {
116
+ type: "text"
117
+ },
118
+ table: {
119
+ defaultValue: {
120
+ summary: "undefined"
121
+ }
122
+ },
123
+ type: {
124
+ required: true,
125
+ summary: "string"
126
+ }
127
+ },
128
+ duration: {
129
+ control: {
130
+ type: "number"
131
+ },
132
+ defaultValue: 600,
133
+ table: {
134
+ defaultValue: {
135
+ summary: 600
136
+ }
137
+ },
138
+ type: {
139
+ required: false,
140
+ summary: "number"
141
+ }
142
+ },
143
+ fill: {
144
+ control: {
145
+ type: "text"
146
+ },
147
+ defaultValue: "black",
148
+ table: {
149
+ defaultValue: {
150
+ summary: "black"
151
+ }
152
+ },
153
+ type: {
154
+ required: false,
155
+ summary: "function | string"
156
+ }
157
+ },
158
+ fillOpacity: {
159
+ control: {
160
+ type: "number"
161
+ },
162
+ defaultValue: 1,
163
+ table: {
164
+ defaultValue: {
165
+ summary: 1
166
+ }
167
+ },
168
+ type: {
169
+ required: false,
170
+ summary: "function | number"
171
+ }
172
+ },
173
+ hitArea: {
174
+ control: {},
175
+ description: "The given function is passed the data point, index, and internally defined properties of the shape and should return an object containing the following values: `width`, `height`, `x`, `y`.",
176
+ table: {
177
+ defaultValue: {
178
+ summary: "undefined"
179
+ }
180
+ },
181
+ type: {
182
+ required: false,
183
+ summary: "function"
184
+ }
185
+ },
186
+ hover: {
187
+ control: {},
188
+ table: {
189
+ defaultValue: {
190
+ summary: "undefined"
191
+ }
192
+ },
193
+ type: {
194
+ required: false,
195
+ summary: "function"
196
+ }
197
+ },
198
+ hoverOpacity: {
199
+ control: {
200
+ type: "number"
201
+ },
202
+ defaultValue: 0.5,
203
+ table: {
204
+ defaultValue: {
205
+ summary: 0.5
206
+ }
207
+ },
208
+ type: {
209
+ required: false,
210
+ summary: "number"
211
+ }
212
+ },
213
+ hoverStyle: {
214
+ control: {
215
+ type: "object"
216
+ },
217
+ defaultValue: "{stroke: (d, i) => {\n let c = this._fill(d, i);\n if ([\n \"transparent\",\n \"none\"\n ].includes(c)) c = this._stroke(d, i);\n return color(c).darker(0.5);\n}, stroke-width: (d, i) => {\n const s = this._strokeWidth(d, i) || 1;\n return s * 2;\n}}",
218
+ table: {
219
+ defaultValue: {
220
+ detail: "{stroke: (d, i) => {\n let c = this._fill(d, i);\n if ([\n \"transparent\",\n \"none\"\n ].includes(c)) c = this._stroke(d, i);\n return color(c).darker(0.5);\n}, stroke-width: (d, i) => {\n const s = this._strokeWidth(d, i) || 1;\n return s * 2;\n}}",
221
+ summary: "function"
222
+ }
223
+ },
224
+ type: {
225
+ required: true,
226
+ summary: "object"
227
+ }
228
+ },
229
+ id: {
230
+ control: {},
231
+ defaultValue: "(d, i) => d.id !== void0 ? d.id : i",
232
+ table: {
233
+ defaultValue: {
234
+ detail: "(d, i) => d.id !== void0 ? d.id : i",
235
+ summary: "function"
236
+ }
237
+ },
238
+ type: {
239
+ required: false,
240
+ summary: "function"
241
+ }
242
+ },
243
+ label: {
244
+ control: {
245
+ type: "text"
246
+ },
247
+ defaultValue: false,
248
+ table: {
249
+ defaultValue: {
250
+ summary: false
251
+ }
252
+ },
253
+ type: {
254
+ required: false,
255
+ summary: "function | string | array"
256
+ }
257
+ },
258
+ labelBounds: {
259
+ control: {},
260
+ description: "The given function is passed the data point, index, and internally defined properties of the shape and should return an object containing the following values: `width`, `height`, `x`, `y`. If an array is returned from the function, each value will be used in conjunction with each label.",
261
+ table: {
262
+ defaultValue: {
263
+ summary: "undefined"
264
+ }
265
+ },
266
+ type: {
267
+ required: false,
268
+ summary: "function"
269
+ }
270
+ },
271
+ labelConfig: {
272
+ control: {
273
+ type: "object"
274
+ },
275
+ defaultValue: "{fontColor: (d, i) => colorContrast(this._fill(d, i)), fontSize: 12, padding: 5}",
276
+ table: {
277
+ defaultValue: {
278
+ detail: "{fontColor: (d, i) => colorContrast(this._fill(d, i)), fontSize: 12, padding: 5}",
279
+ summary: "function"
280
+ }
281
+ },
282
+ type: {
283
+ required: false,
284
+ summary: "object"
285
+ }
286
+ },
287
+ opacity: {
288
+ control: {
289
+ type: "number"
290
+ },
291
+ defaultValue: 1,
292
+ table: {
293
+ defaultValue: {
294
+ summary: 1
295
+ }
296
+ },
297
+ type: {
298
+ required: false,
299
+ summary: "number"
300
+ }
301
+ },
302
+ pointerEvents: {
303
+ control: {
304
+ type: "text"
305
+ },
306
+ defaultValue: "visiblePainted",
307
+ table: {
308
+ defaultValue: {
309
+ summary: "visiblePainted"
310
+ }
311
+ },
312
+ type: {
313
+ required: false,
314
+ summary: "string"
315
+ }
316
+ },
317
+ render: {
318
+ control: {},
319
+ table: {
320
+ defaultValue: {
321
+ summary: "undefined"
322
+ }
323
+ },
324
+ type: {
325
+ required: false,
326
+ summary: "function"
327
+ }
328
+ },
329
+ role: {
330
+ control: {
331
+ type: "text"
332
+ },
333
+ defaultValue: "presentation",
334
+ table: {
335
+ defaultValue: {
336
+ summary: "presentation"
337
+ }
338
+ },
339
+ type: {
340
+ required: true,
341
+ summary: "function | string"
342
+ }
343
+ },
344
+ rotate: {
345
+ control: {
346
+ type: "number"
347
+ },
348
+ defaultValue: 0,
349
+ table: {
350
+ defaultValue: {
351
+ summary: 0
352
+ }
353
+ },
354
+ type: {
355
+ required: false,
356
+ summary: "function | number"
357
+ }
358
+ },
359
+ rx: {
360
+ control: {
361
+ type: "number"
362
+ },
363
+ defaultValue: 0,
364
+ table: {
365
+ defaultValue: {
366
+ summary: 0
367
+ }
368
+ },
369
+ type: {
370
+ required: false,
371
+ summary: "function | number"
372
+ }
373
+ },
374
+ ry: {
375
+ control: {
376
+ type: "number"
377
+ },
378
+ defaultValue: 0,
379
+ table: {
380
+ defaultValue: {
381
+ summary: 0
382
+ }
383
+ },
384
+ type: {
385
+ required: false,
386
+ summary: "function | number"
387
+ }
388
+ },
389
+ scale: {
390
+ control: {
391
+ type: "number"
392
+ },
393
+ defaultValue: 1,
394
+ table: {
395
+ defaultValue: {
396
+ summary: 1
397
+ }
398
+ },
399
+ type: {
400
+ required: false,
401
+ summary: "function | number"
402
+ }
403
+ },
404
+ select: {
405
+ control: {
406
+ type: "text"
407
+ },
408
+ defaultValue: "d3.select(\"body\").append(\"svg\")",
409
+ table: {
410
+ defaultValue: {
411
+ summary: "d3.select(\"body\").append(\"svg\")"
412
+ }
413
+ },
414
+ type: {
415
+ required: false,
416
+ summary: "string | htmlelement"
417
+ }
418
+ },
419
+ shapeRendering: {
420
+ control: {
421
+ type: "text"
422
+ },
423
+ defaultValue: "geometricPrecision",
424
+ table: {
425
+ defaultValue: {
426
+ summary: "geometricPrecision"
427
+ }
428
+ },
429
+ type: {
430
+ required: false,
431
+ summary: "function | string"
432
+ }
433
+ },
434
+ sort: {
435
+ control: {
436
+ type: "false"
437
+ },
438
+ defaultValue: "[]",
439
+ table: {
440
+ defaultValue: {
441
+ summary: "[]"
442
+ }
443
+ },
444
+ type: {
445
+ required: false,
446
+ summary: "false | function"
447
+ }
448
+ },
449
+ stroke: {
450
+ control: {
451
+ type: "text"
452
+ },
453
+ defaultValue: "(d, i) => color(this._fill(d, i)).darker(1).formatHex()",
454
+ table: {
455
+ defaultValue: {
456
+ detail: "(d, i) => color(this._fill(d, i)).darker(1).formatHex()",
457
+ summary: "function"
458
+ }
459
+ },
460
+ type: {
461
+ required: false,
462
+ summary: "function | string"
463
+ }
464
+ },
465
+ strokeDasharray: {
466
+ control: {
467
+ type: "text"
468
+ },
469
+ defaultValue: "0",
470
+ table: {
471
+ defaultValue: {
472
+ summary: "0"
473
+ }
474
+ },
475
+ type: {
476
+ required: false,
477
+ summary: "function | string"
478
+ }
479
+ },
480
+ strokeLinecap: {
481
+ control: {
482
+ type: "text"
483
+ },
484
+ defaultValue: "butt",
485
+ table: {
486
+ defaultValue: {
487
+ summary: "butt"
488
+ }
489
+ },
490
+ type: {
491
+ required: false,
492
+ summary: "function | string"
493
+ }
494
+ },
495
+ strokeOpacity: {
496
+ control: {
497
+ type: "number"
498
+ },
499
+ defaultValue: 1,
500
+ table: {
501
+ defaultValue: {
502
+ summary: 1
503
+ }
504
+ },
505
+ type: {
506
+ required: false,
507
+ summary: "function | number"
508
+ }
509
+ },
510
+ strokeWidth: {
511
+ control: {
512
+ type: "number"
513
+ },
514
+ defaultValue: 0,
515
+ table: {
516
+ defaultValue: {
517
+ summary: 0
518
+ }
519
+ },
520
+ type: {
521
+ required: false,
522
+ summary: "function | number"
523
+ }
524
+ },
525
+ textAnchor: {
526
+ control: {
527
+ type: "text"
528
+ },
529
+ defaultValue: "start",
530
+ table: {
531
+ defaultValue: {
532
+ summary: "start"
533
+ }
534
+ },
535
+ type: {
536
+ required: false,
537
+ summary: "function | string | array"
538
+ }
539
+ },
540
+ texture: {
541
+ control: {
542
+ type: "text"
543
+ },
544
+ defaultValue: false,
545
+ table: {
546
+ defaultValue: {
547
+ summary: false
548
+ }
549
+ },
550
+ type: {
551
+ required: false,
552
+ summary: "string | object | function"
553
+ }
554
+ },
555
+ textureDefault: {
556
+ control: {
557
+ type: "object"
558
+ },
559
+ defaultValue: "{}",
560
+ table: {
561
+ defaultValue: {
562
+ summary: "{}"
563
+ }
564
+ },
565
+ type: {
566
+ required: false,
567
+ summary: "object"
568
+ }
569
+ },
570
+ vectorEffect: {
571
+ control: {
572
+ type: "text"
573
+ },
574
+ defaultValue: "non-scaling-stroke",
575
+ table: {
576
+ defaultValue: {
577
+ summary: "non-scaling-stroke"
578
+ }
579
+ },
580
+ type: {
581
+ required: false,
582
+ summary: "function | string"
583
+ }
584
+ },
585
+ verticalAlign: {
586
+ control: {
587
+ type: "text"
588
+ },
589
+ defaultValue: "top",
590
+ table: {
591
+ defaultValue: {
592
+ summary: "top"
593
+ }
594
+ },
595
+ type: {
596
+ required: false,
597
+ summary: "function | string | array"
598
+ }
599
+ },
600
+ x: {
601
+ control: {
602
+ type: "number"
603
+ },
604
+ defaultValue: "d => d[\"x\"]",
605
+ table: {
606
+ defaultValue: {
607
+ detail: "d => d[\"x\"]",
608
+ summary: "function"
609
+ }
610
+ },
611
+ type: {
612
+ required: false,
613
+ summary: "function | number"
614
+ }
615
+ },
616
+ y: {
617
+ control: {
618
+ type: "number"
619
+ },
620
+ defaultValue: "d => d[\"y\"]",
621
+ table: {
622
+ defaultValue: {
623
+ detail: "d => d[\"y\"]",
624
+ summary: "function"
625
+ }
626
+ },
627
+ type: {
628
+ required: false,
629
+ summary: "function | number"
630
+ }
631
+ }
632
+ }
633
+ );