@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.
- package/.storybook/main.js +51 -0
- package/.storybook/manager-head.html +46 -0
- package/.storybook/manager.js +10 -0
- package/.storybook/preview-head.html +69 -0
- package/.storybook/preview.jsx +134 -0
- package/.storybook/theme.js +16 -0
- package/README.md +1 -0
- package/args/color/colorAdd.args.jsx +71 -0
- package/args/color/colorAssign.args.jsx +40 -0
- package/args/color/colorContrast.args.jsx +40 -0
- package/args/color/colorDefaults.args.jsx +8 -0
- package/args/color/colorLegible.args.jsx +24 -0
- package/args/color/colorLighter.args.jsx +40 -0
- package/args/color/colorSubtract.args.jsx +71 -0
- package/args/core/charts/AreaPlot.args.jsx +72 -0
- package/args/core/charts/BarChart.args.jsx +88 -0
- package/args/core/charts/BoxWhisker.args.jsx +73 -0
- package/args/core/charts/BumpChart.args.jsx +133 -0
- package/args/core/charts/Donut.args.jsx +58 -0
- package/args/core/charts/Geomap.args.jsx +363 -0
- package/args/core/charts/LinePlot.args.jsx +57 -0
- package/args/core/charts/Matrix.args.jsx +194 -0
- package/args/core/charts/Network.args.jsx +310 -0
- package/args/core/charts/Pack.args.jsx +171 -0
- package/args/core/charts/Pie.args.jsx +148 -0
- package/args/core/charts/Plot.args.jsx +685 -0
- package/args/core/charts/Priestley.args.jsx +118 -0
- package/args/core/charts/Radar.args.jsx +120 -0
- package/args/core/charts/RadialMatrix.args.jsx +197 -0
- package/args/core/charts/Rings.args.jsx +228 -0
- package/args/core/charts/Sankey.args.jsx +248 -0
- package/args/core/charts/StackedArea.args.jsx +26 -0
- package/args/core/charts/Tree.args.jsx +88 -0
- package/args/core/charts/Treemap.args.jsx +181 -0
- package/args/core/charts/Viz.args.jsx +1383 -0
- package/args/core/components/Axis.args.jsx +600 -0
- package/args/core/components/AxisBottom.args.jsx +42 -0
- package/args/core/components/AxisLeft.args.jsx +42 -0
- package/args/core/components/AxisRight.args.jsx +42 -0
- package/args/core/components/AxisTop.args.jsx +42 -0
- package/args/core/components/ColorScale.args.jsx +456 -0
- package/args/core/components/Legend.args.jsx +289 -0
- package/args/core/components/TextBox.args.jsx +554 -0
- package/args/core/components/Timeline.args.jsx +401 -0
- package/args/core/components/Tooltip.args.jsx +453 -0
- package/args/core/shapes/Area.args.jsx +190 -0
- package/args/core/shapes/Bar.args.jsx +176 -0
- package/args/core/shapes/Box.args.jsx +248 -0
- package/args/core/shapes/Circle.args.jsx +84 -0
- package/args/core/shapes/Image.args.jsx +177 -0
- package/args/core/shapes/Line.args.jsx +127 -0
- package/args/core/shapes/Path.args.jsx +84 -0
- package/args/core/shapes/Rect.args.jsx +85 -0
- package/args/core/shapes/Shape.args.jsx +633 -0
- package/args/core/shapes/Whisker.args.jsx +204 -0
- package/args/core/utils/BaseClass.args.jsx +65 -0
- package/args/core/utils/RESET.args.jsx +8 -0
- package/args/core/utils/accessor.args.jsx +39 -0
- package/args/core/utils/configPrep.args.jsx +56 -0
- package/args/core/utils/constant.args.jsx +24 -0
- package/args/core/utils/uuid.args.jsx +8 -0
- package/args/data/dataConcat.args.jsx +40 -0
- package/args/data/dataFold.args.jsx +56 -0
- package/args/data/dataLoad.args.jsx +65 -0
- package/args/data/isData.args.jsx +24 -0
- package/args/data/merge.args.jsx +39 -0
- package/args/data/unique.args.jsx +37 -0
- package/args/dom/assign.args.jsx +23 -0
- package/args/dom/attrize.args.jsx +39 -0
- package/args/dom/date.args.jsx +23 -0
- package/args/dom/elem.args.jsx +135 -0
- package/args/dom/fontExists.args.jsx +24 -0
- package/args/dom/htmlDecode.args.jsx +23 -0
- package/args/dom/isObject.args.jsx +23 -0
- package/args/dom/parseSides.args.jsx +24 -0
- package/args/dom/prefix.args.jsx +8 -0
- package/args/dom/rtl.args.jsx +8 -0
- package/args/dom/stylize.args.jsx +39 -0
- package/args/dom/textWidth.args.jsx +39 -0
- package/args/export/saveElement.args.jsx +99 -0
- package/args/format/format.args.jsx +24 -0
- package/args/format/formatAbbreviate.args.jsx +39 -0
- package/args/format/formatDate.args.jsx +53 -0
- package/args/format/formatDefaultLocale.args.jsx +24 -0
- package/args/locales/dictionaries/formatLocale.args.jsx +8 -0
- package/args/math/closest.args.jsx +39 -0
- package/args/math/largestRect.args.jsx +56 -0
- package/args/math/lineIntersection.args.jsx +69 -0
- package/args/math/path2polygon.args.jsx +40 -0
- package/args/math/pointDistance.args.jsx +39 -0
- package/args/math/pointDistanceSquared.args.jsx +39 -0
- package/args/math/pointRotate.args.jsx +55 -0
- package/args/math/polygonInside.args.jsx +39 -0
- package/args/math/polygonRayCast.args.jsx +55 -0
- package/args/math/polygonRotate.args.jsx +55 -0
- package/args/math/segmentBoxContains.args.jsx +54 -0
- package/args/math/segmentsIntersect.args.jsx +69 -0
- package/args/math/shapeEdgePoint.args.jsx +39 -0
- package/args/react/D3plusContext.args.jsx +8 -0
- package/args/react/Renderer.args.jsx +53 -0
- package/args/text/fontFamily.args.jsx +8 -0
- package/args/text/fontFamilyStringify.args.jsx +23 -0
- package/args/text/stringify.args.jsx +23 -0
- package/args/text/strip.args.jsx +38 -0
- package/args/text/textSplit.args.jsx +23 -0
- package/args/text/textWrap.args.jsx +8 -0
- package/args/text/titleCase.args.jsx +24 -0
- package/args/text/trim.args.jsx +23 -0
- package/args/text/trimLeft.args.jsx +23 -0
- package/args/text/trimRight.args.jsx +23 -0
- package/docs/Accessibility.mdx +70 -0
- package/docs/HomeChart.jsx +38 -0
- package/docs/Introduction.mdx +130 -0
- package/docs/Logo-Frames.js +352 -0
- package/docs/Logo.jsx +30 -0
- package/helpers/configify.js +18 -0
- package/helpers/funcify.js +14 -0
- package/helpers/stringify.js +30 -0
- package/package.json +44 -0
- package/packages/color/colorAdd.stories.jsx +23 -0
- package/packages/color/colorAssign.stories.jsx +23 -0
- package/packages/color/colorContrast.stories.jsx +23 -0
- package/packages/color/colorDefaults.stories.jsx +23 -0
- package/packages/color/colorLegible.stories.jsx +23 -0
- package/packages/color/colorLighter.stories.jsx +23 -0
- package/packages/color/colorSubtract.stories.jsx +23 -0
- package/packages/core/charts/AreaPlot.stories.jsx +74 -0
- package/packages/core/charts/BarChart.stories.jsx +307 -0
- package/packages/core/charts/BoxWhisker.stories.jsx +204 -0
- package/packages/core/charts/BumpChart.stories.jsx +52 -0
- package/packages/core/charts/Donut.stories.jsx +41 -0
- package/packages/core/charts/Geomap.stories.jsx +186 -0
- package/packages/core/charts/LinePlot.stories.jsx +564 -0
- package/packages/core/charts/Matrix.stories.jsx +36 -0
- package/packages/core/charts/Network.stories.jsx +99 -0
- package/packages/core/charts/Pack.stories.jsx +40 -0
- package/packages/core/charts/Pie.stories.jsx +40 -0
- package/packages/core/charts/Plot.stories.jsx +180 -0
- package/packages/core/charts/Priestley.stories.jsx +60 -0
- package/packages/core/charts/Radar.stories.jsx +60 -0
- package/packages/core/charts/RadialMatrix.stories.jsx +36 -0
- package/packages/core/charts/Rings.stories.jsx +41 -0
- package/packages/core/charts/Sankey.stories.jsx +41 -0
- package/packages/core/charts/StackedArea.stories.jsx +107 -0
- package/packages/core/charts/Tree.stories.jsx +27 -0
- package/packages/core/charts/Treemap.stories.jsx +81 -0
- package/packages/core/charts/Viz.stories.jsx +27 -0
- package/packages/core/components/Axis.stories.jsx +27 -0
- package/packages/core/components/AxisBottom.stories.jsx +27 -0
- package/packages/core/components/AxisLeft.stories.jsx +27 -0
- package/packages/core/components/AxisRight.stories.jsx +27 -0
- package/packages/core/components/AxisTop.stories.jsx +27 -0
- package/packages/core/components/ColorScale.stories.jsx +44 -0
- package/packages/core/components/Legend.stories.jsx +49 -0
- package/packages/core/components/TextBox.stories.jsx +222 -0
- package/packages/core/components/Timeline.stories.jsx +37 -0
- package/packages/core/components/Tooltip.stories.jsx +40 -0
- package/packages/core/shapes/Area.stories.jsx +27 -0
- package/packages/core/shapes/Bar.stories.jsx +27 -0
- package/packages/core/shapes/Box.stories.jsx +27 -0
- package/packages/core/shapes/Circle.stories.jsx +27 -0
- package/packages/core/shapes/Image.stories.jsx +27 -0
- package/packages/core/shapes/Line.stories.jsx +27 -0
- package/packages/core/shapes/Path.stories.jsx +27 -0
- package/packages/core/shapes/Rect.stories.jsx +27 -0
- package/packages/core/shapes/Shape.stories.jsx +27 -0
- package/packages/core/shapes/Whisker.stories.jsx +27 -0
- package/packages/core/utils/BaseClass.stories.jsx +27 -0
- package/packages/core/utils/RESET.stories.jsx +23 -0
- package/packages/core/utils/accessor.stories.jsx +23 -0
- package/packages/core/utils/configPrep.stories.jsx +23 -0
- package/packages/core/utils/constant.stories.jsx +23 -0
- package/packages/core/utils/uuid.stories.jsx +23 -0
- package/packages/data/dataConcat.stories.jsx +23 -0
- package/packages/data/dataFold.stories.jsx +23 -0
- package/packages/data/dataLoad.stories.jsx +23 -0
- package/packages/data/isData.stories.jsx +23 -0
- package/packages/data/merge.stories.jsx +23 -0
- package/packages/data/unique.stories.jsx +23 -0
- package/packages/dom/assign.stories.jsx +23 -0
- package/packages/dom/attrize.stories.jsx +23 -0
- package/packages/dom/date.stories.jsx +23 -0
- package/packages/dom/elem.stories.jsx +23 -0
- package/packages/dom/fontExists.stories.jsx +23 -0
- package/packages/dom/htmlDecode.stories.jsx +23 -0
- package/packages/dom/isObject.stories.jsx +23 -0
- package/packages/dom/parseSides.stories.jsx +23 -0
- package/packages/dom/prefix.stories.jsx +23 -0
- package/packages/dom/rtl.stories.jsx +23 -0
- package/packages/dom/stylize.stories.jsx +23 -0
- package/packages/dom/textWidth.stories.jsx +23 -0
- package/packages/export/saveElement.stories.jsx +23 -0
- package/packages/format/format.stories.jsx +23 -0
- package/packages/format/formatAbbreviate.stories.jsx +23 -0
- package/packages/format/formatDate.stories.jsx +23 -0
- package/packages/format/formatDefaultLocale.stories.jsx +23 -0
- package/packages/locales/dictionaries/formatLocale.stories.jsx +23 -0
- package/packages/math/closest.stories.jsx +23 -0
- package/packages/math/largestRect.stories.jsx +23 -0
- package/packages/math/lineIntersection.stories.jsx +23 -0
- package/packages/math/path2polygon.stories.jsx +23 -0
- package/packages/math/pointDistance.stories.jsx +23 -0
- package/packages/math/pointDistanceSquared.stories.jsx +23 -0
- package/packages/math/pointRotate.stories.jsx +23 -0
- package/packages/math/polygonInside.stories.jsx +23 -0
- package/packages/math/polygonRayCast.stories.jsx +23 -0
- package/packages/math/polygonRotate.stories.jsx +23 -0
- package/packages/math/segmentBoxContains.stories.jsx +23 -0
- package/packages/math/segmentsIntersect.stories.jsx +23 -0
- package/packages/math/shapeEdgePoint.stories.jsx +23 -0
- package/packages/react/D3plusContext.stories.jsx +23 -0
- package/packages/react/Renderer.stories.jsx +23 -0
- package/packages/text/fontFamily.stories.jsx +23 -0
- package/packages/text/fontFamilyStringify.stories.jsx +23 -0
- package/packages/text/stringify.stories.jsx +23 -0
- package/packages/text/strip.stories.jsx +23 -0
- package/packages/text/textSplit.stories.jsx +23 -0
- package/packages/text/textWrap.stories.jsx +23 -0
- package/packages/text/titleCase.stories.jsx +23 -0
- package/packages/text/trim.stories.jsx +23 -0
- package/packages/text/trimLeft.stories.jsx +23 -0
- package/packages/text/trimRight.stories.jsx +23 -0
- package/static/data/city_coords.json +224 -0
- package/static/images/favicon.ico +0 -0
- package/static/images/touchicon.png +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
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 {Whisker as D3plusWhisker} from "@d3plus/react";
|
|
9
|
+
export const Whisker = ({ config }) => <D3plusWhisker 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 Whisker
|
|
16
|
+
*/
|
|
17
|
+
Object.keys(baseClassArgTypes)
|
|
18
|
+
.reduce((obj, k) => (obj[k] = baseClassArgTypes[k], obj), {}),
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Whisker-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
|
+
data: {
|
|
38
|
+
control: {
|
|
39
|
+
type: "array"
|
|
40
|
+
},
|
|
41
|
+
defaultValue: "[]",
|
|
42
|
+
table: {
|
|
43
|
+
defaultValue: {
|
|
44
|
+
summary: "[]"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
required: false,
|
|
49
|
+
summary: "array"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
endpoint: {
|
|
53
|
+
control: {
|
|
54
|
+
type: "text"
|
|
55
|
+
},
|
|
56
|
+
defaultValue: "d => d[\"endpoint\"] || Rect",
|
|
57
|
+
table: {
|
|
58
|
+
defaultValue: {
|
|
59
|
+
detail: "d => d[\"endpoint\"] || Rect",
|
|
60
|
+
summary: "function"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
type: {
|
|
64
|
+
required: true,
|
|
65
|
+
summary: "function | string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
endpointConfig: {
|
|
69
|
+
control: {
|
|
70
|
+
type: "object"
|
|
71
|
+
},
|
|
72
|
+
defaultValue: "{Circle: {r: d => d[\"r\"] || 5}}",
|
|
73
|
+
table: {
|
|
74
|
+
defaultValue: {
|
|
75
|
+
detail: "{Circle: {r: d => d[\"r\"] || 5}}",
|
|
76
|
+
summary: "function"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
type: {
|
|
80
|
+
required: false,
|
|
81
|
+
summary: "object"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
hover: {
|
|
85
|
+
control: {},
|
|
86
|
+
table: {
|
|
87
|
+
defaultValue: {
|
|
88
|
+
summary: "undefined"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
type: {
|
|
92
|
+
required: false,
|
|
93
|
+
summary: "function"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
length: {
|
|
97
|
+
control: {
|
|
98
|
+
type: "number"
|
|
99
|
+
},
|
|
100
|
+
defaultValue: "d => d[\"length\"] || 25",
|
|
101
|
+
table: {
|
|
102
|
+
defaultValue: {
|
|
103
|
+
detail: "d => d[\"length\"] || 25",
|
|
104
|
+
summary: "function"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
type: {
|
|
108
|
+
required: false,
|
|
109
|
+
summary: "function | number"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
lineConfig: {
|
|
113
|
+
control: {
|
|
114
|
+
type: "object"
|
|
115
|
+
},
|
|
116
|
+
defaultValue: "{}",
|
|
117
|
+
table: {
|
|
118
|
+
defaultValue: {
|
|
119
|
+
summary: "{}"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
type: {
|
|
123
|
+
required: false,
|
|
124
|
+
summary: "object"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
orient: {
|
|
128
|
+
control: {
|
|
129
|
+
type: "text"
|
|
130
|
+
},
|
|
131
|
+
defaultValue: "d => d[\"orient\"] || top",
|
|
132
|
+
description: "Accepts \"top\", \"right\", \"bottom\" or \"left\"",
|
|
133
|
+
table: {
|
|
134
|
+
defaultValue: {
|
|
135
|
+
detail: "d => d[\"orient\"] || top",
|
|
136
|
+
summary: "function"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
type: {
|
|
140
|
+
required: false,
|
|
141
|
+
summary: "function | string"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
render: {
|
|
145
|
+
control: {},
|
|
146
|
+
table: {
|
|
147
|
+
defaultValue: {
|
|
148
|
+
summary: "undefined"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
type: {
|
|
152
|
+
required: false,
|
|
153
|
+
summary: "function"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
select: {
|
|
157
|
+
control: {
|
|
158
|
+
type: "text"
|
|
159
|
+
},
|
|
160
|
+
defaultValue: "d3.select(\"body\").append(\"svg\")",
|
|
161
|
+
table: {
|
|
162
|
+
defaultValue: {
|
|
163
|
+
summary: "d3.select(\"body\").append(\"svg\")"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
type: {
|
|
167
|
+
required: false,
|
|
168
|
+
summary: "string | htmlelement"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
x: {
|
|
172
|
+
control: {
|
|
173
|
+
type: "number"
|
|
174
|
+
},
|
|
175
|
+
defaultValue: "d => d[\"x\"]",
|
|
176
|
+
table: {
|
|
177
|
+
defaultValue: {
|
|
178
|
+
detail: "d => d[\"x\"]",
|
|
179
|
+
summary: "function"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
type: {
|
|
183
|
+
required: false,
|
|
184
|
+
summary: "function | number"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
y: {
|
|
188
|
+
control: {
|
|
189
|
+
type: "number"
|
|
190
|
+
},
|
|
191
|
+
defaultValue: "d => d[\"y\"]",
|
|
192
|
+
table: {
|
|
193
|
+
defaultValue: {
|
|
194
|
+
detail: "d => d[\"y\"]",
|
|
195
|
+
summary: "function"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
type: {
|
|
199
|
+
required: false,
|
|
200
|
+
summary: "function | number"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
);
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
|
|
6
|
+
import {BaseClass as D3plusBaseClass} from "@d3plus/react";
|
|
7
|
+
export const BaseClass = ({ config }) => <D3plusBaseClass config={config} />;
|
|
8
|
+
|
|
9
|
+
export const argTypes = {
|
|
10
|
+
config: {
|
|
11
|
+
control: {
|
|
12
|
+
type: "object"
|
|
13
|
+
},
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: false,
|
|
21
|
+
summary: "object"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
locale: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "object"
|
|
27
|
+
},
|
|
28
|
+
defaultValue: "\"en-US\"",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "\"en-US\""
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: false,
|
|
36
|
+
summary: "object | string"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
on: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "text"
|
|
42
|
+
},
|
|
43
|
+
table: {
|
|
44
|
+
defaultValue: {
|
|
45
|
+
summary: "undefined"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
type: {
|
|
49
|
+
required: false,
|
|
50
|
+
summary: "string"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
translate: {
|
|
54
|
+
control: {},
|
|
55
|
+
table: {
|
|
56
|
+
defaultValue: {
|
|
57
|
+
summary: "undefined"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
type: {
|
|
61
|
+
required: false,
|
|
62
|
+
summary: "function"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
def: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "*"
|
|
12
|
+
},
|
|
13
|
+
description: "A default value to be returned if the key is not present.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: false,
|
|
21
|
+
summary: "*"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
key: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "text"
|
|
27
|
+
},
|
|
28
|
+
description: "The key to be returned from each Object passed to the function.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "string"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
config: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
defaultValue: "this._shapeConfig",
|
|
14
|
+
description: "The configuration object to parse.",
|
|
15
|
+
table: {
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: "this._shapeConfig"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
required: false,
|
|
22
|
+
summary: "object"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
nest: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "text"
|
|
28
|
+
},
|
|
29
|
+
description: "An optional nested key to bubble up to the parent config level.",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: "undefined"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: false,
|
|
37
|
+
summary: "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
type: {
|
|
41
|
+
control: {
|
|
42
|
+
type: "text"
|
|
43
|
+
},
|
|
44
|
+
defaultValue: "\"shape\"",
|
|
45
|
+
description: "The event classifier to user for \"on\" events. For example, the default event type of \"shape\" will apply all events in the \"on\" config object with that key, like \"click.shape\" and \"mouseleave.shape\", in addition to any gloval events like \"click\" and \"mouseleave\".",
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: {
|
|
48
|
+
summary: "\"shape\""
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
type: {
|
|
52
|
+
required: false,
|
|
53
|
+
summary: "string"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
value: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "The value to be returned from the function.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array | number | object | string"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
arrayOfArray: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "Array of elements",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
data: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "text"
|
|
27
|
+
},
|
|
28
|
+
defaultValue: "\"data\"",
|
|
29
|
+
description: "The key used for the flat data array if exists inside of the JSON object.",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: "\"data\""
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: false,
|
|
37
|
+
summary: "string"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
data: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text"
|
|
12
|
+
},
|
|
13
|
+
defaultValue: "\"data\"",
|
|
14
|
+
description: "The key used for the flat data array inside of the JSON object.",
|
|
15
|
+
table: {
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: "\"data\""
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
required: false,
|
|
22
|
+
summary: "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
headers: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "text"
|
|
28
|
+
},
|
|
29
|
+
defaultValue: "\"headers\"",
|
|
30
|
+
description: "The key used for the flat headers array inside of the JSON object.",
|
|
31
|
+
table: {
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: "\"headers\""
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
type: {
|
|
37
|
+
required: false,
|
|
38
|
+
summary: "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
json: {
|
|
42
|
+
control: {
|
|
43
|
+
type: "object"
|
|
44
|
+
},
|
|
45
|
+
description: "A JSON data Object with `data` and `headers` keys.",
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: {
|
|
48
|
+
summary: "undefined"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
type: {
|
|
52
|
+
required: true,
|
|
53
|
+
summary: "object"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
callback: {
|
|
10
|
+
control: {},
|
|
11
|
+
description: "A function that is called when the final data is loaded. It is passed 2 variables, any error present and the data loaded.",
|
|
12
|
+
table: {
|
|
13
|
+
defaultValue: {
|
|
14
|
+
summary: "undefined"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
type: {
|
|
18
|
+
required: false,
|
|
19
|
+
summary: "function"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
formatter: {
|
|
23
|
+
control: {},
|
|
24
|
+
description: "An optional formatter function that is run on the loaded data.",
|
|
25
|
+
table: {
|
|
26
|
+
defaultValue: {
|
|
27
|
+
summary: "undefined"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
type: {
|
|
31
|
+
required: false,
|
|
32
|
+
summary: "function"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
key: {
|
|
36
|
+
control: {
|
|
37
|
+
type: "text"
|
|
38
|
+
},
|
|
39
|
+
description: "The key in the `this` context to save the resulting data to.",
|
|
40
|
+
table: {
|
|
41
|
+
defaultValue: {
|
|
42
|
+
summary: "undefined"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
type: {
|
|
46
|
+
required: false,
|
|
47
|
+
summary: "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
path: {
|
|
51
|
+
control: {
|
|
52
|
+
type: "array"
|
|
53
|
+
},
|
|
54
|
+
description: "The path to the file or url to be loaded. Also support array of paths strings. If an Array of objects is passed, the xhr request logic is skipped.",
|
|
55
|
+
table: {
|
|
56
|
+
defaultValue: {
|
|
57
|
+
summary: "undefined"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
type: {
|
|
61
|
+
required: true,
|
|
62
|
+
summary: "array | string"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
dataItem: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "*"
|
|
12
|
+
},
|
|
13
|
+
description: "The value to be tested",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "*"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
aggs: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
description: "An object containing specific aggregation methods (functions) for each key type. By default, numbers are summed and strings are returned as an array of unique values.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "object"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
objects: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "The Array of objects to be merged together.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
accessor: {
|
|
10
|
+
control: {},
|
|
11
|
+
description: "An optional accessor function used to extract data points from an Array of Objects.",
|
|
12
|
+
table: {
|
|
13
|
+
defaultValue: {
|
|
14
|
+
summary: "undefined"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
type: {
|
|
18
|
+
required: false,
|
|
19
|
+
summary: "function"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
arr: {
|
|
23
|
+
control: {
|
|
24
|
+
type: "array"
|
|
25
|
+
},
|
|
26
|
+
description: "The Array of objects to be filtered.",
|
|
27
|
+
table: {
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: "undefined"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
type: {
|
|
33
|
+
required: true,
|
|
34
|
+
summary: "array"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const argTypes = {
|
|
9
|
+
objects: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: "undefined"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
required: true,
|
|
20
|
+
summary: "object"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|