@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,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
|
+
attrs: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
description: "An object of key/value attr pairs.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "object"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
elem: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "d3selection"
|
|
27
|
+
},
|
|
28
|
+
description: "The D3 element to apply the styles to.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "d3selection"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -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
|
+
date: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "number"
|
|
12
|
+
},
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: "undefined"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
required: true,
|
|
20
|
+
summary: "number | string"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
params: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
description: "Additional parameters.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "object"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"params.condition": {
|
|
25
|
+
control: {
|
|
26
|
+
type: "boolean"
|
|
27
|
+
},
|
|
28
|
+
defaultValue: true,
|
|
29
|
+
description: "Whether or not the element should be rendered (or removed).",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: false,
|
|
37
|
+
summary: "boolean"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"params.duration": {
|
|
41
|
+
control: {
|
|
42
|
+
type: "number"
|
|
43
|
+
},
|
|
44
|
+
defaultValue: 0,
|
|
45
|
+
description: "The duration for the d3 transition.",
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: {
|
|
48
|
+
summary: 0
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
type: {
|
|
52
|
+
required: false,
|
|
53
|
+
summary: "number"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"params.enter": {
|
|
57
|
+
control: {
|
|
58
|
+
type: "object"
|
|
59
|
+
},
|
|
60
|
+
defaultValue: "{}",
|
|
61
|
+
description: "A collection of key/value pairs that map to attributes to be given on enter.",
|
|
62
|
+
table: {
|
|
63
|
+
defaultValue: {
|
|
64
|
+
summary: "{}"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
type: {
|
|
68
|
+
required: false,
|
|
69
|
+
summary: "object"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"params.exit": {
|
|
73
|
+
control: {
|
|
74
|
+
type: "object"
|
|
75
|
+
},
|
|
76
|
+
defaultValue: "{}",
|
|
77
|
+
description: "A collection of key/value pairs that map to attributes to be given on exit.",
|
|
78
|
+
table: {
|
|
79
|
+
defaultValue: {
|
|
80
|
+
summary: "{}"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
type: {
|
|
84
|
+
required: false,
|
|
85
|
+
summary: "object"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"params.parent": {
|
|
89
|
+
control: {
|
|
90
|
+
type: "d3selection"
|
|
91
|
+
},
|
|
92
|
+
defaultValue: "d3.select(\"body\")",
|
|
93
|
+
description: "The parent element for this new element to be appended to.",
|
|
94
|
+
table: {
|
|
95
|
+
defaultValue: {
|
|
96
|
+
summary: "d3.select(\"body\")"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
type: {
|
|
100
|
+
required: false,
|
|
101
|
+
summary: "d3selection"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"params.update": {
|
|
105
|
+
control: {
|
|
106
|
+
type: "object"
|
|
107
|
+
},
|
|
108
|
+
defaultValue: "{}",
|
|
109
|
+
description: "A collection of key/value pairs that map to attributes to be given on update.",
|
|
110
|
+
table: {
|
|
111
|
+
defaultValue: {
|
|
112
|
+
summary: "{}"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
type: {
|
|
116
|
+
required: false,
|
|
117
|
+
summary: "object"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
selector: {
|
|
121
|
+
control: {
|
|
122
|
+
type: "text"
|
|
123
|
+
},
|
|
124
|
+
description: "A D3 selector, which must include the tagname and a class and/or ID.",
|
|
125
|
+
table: {
|
|
126
|
+
defaultValue: {
|
|
127
|
+
summary: "undefined"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
type: {
|
|
131
|
+
required: true,
|
|
132
|
+
summary: "string"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
@@ -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
|
+
font: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text"
|
|
12
|
+
},
|
|
13
|
+
description: "Can be either a valid CSS font-family string (single or comma-separated names) or an Array of string names.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "string | array"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -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
|
+
input: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text"
|
|
12
|
+
},
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: "undefined"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
required: true,
|
|
20
|
+
summary: "string"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -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
|
+
item: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "*"
|
|
12
|
+
},
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: "undefined"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
required: true,
|
|
20
|
+
summary: "*"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -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
|
+
sides: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text"
|
|
12
|
+
},
|
|
13
|
+
description: "The CSS shorthand string to expand.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "string | number"
|
|
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
|
+
elem: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "d3selection"
|
|
12
|
+
},
|
|
13
|
+
description: "The D3 element to apply the styles to.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "d3selection"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
styles: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "object"
|
|
27
|
+
},
|
|
28
|
+
description: "An object of key/value style pairs.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "object"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -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
|
+
style: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
description: "An object of CSS font styles to apply. Accepts any of the valid [CSS font property](http://www.w3schools.com/cssref/pr_font_font.asp) values.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: false,
|
|
21
|
+
summary: "object"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
text: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "text"
|
|
27
|
+
},
|
|
28
|
+
description: "Can be either a single string or an array of strings to analyze.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "string | array"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
elem: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "htmlelement"
|
|
12
|
+
},
|
|
13
|
+
description: "A single element to be saved to one file.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "htmlelement"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
options: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "object"
|
|
27
|
+
},
|
|
28
|
+
description: "Additional options to specify.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: false,
|
|
36
|
+
summary: "object"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"options.callback": {
|
|
40
|
+
control: {},
|
|
41
|
+
description: "Function to be invoked after saving is complete.",
|
|
42
|
+
table: {
|
|
43
|
+
defaultValue: {
|
|
44
|
+
summary: "undefined"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
required: false,
|
|
49
|
+
summary: "function"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"options.filename": {
|
|
53
|
+
control: {
|
|
54
|
+
type: "text"
|
|
55
|
+
},
|
|
56
|
+
defaultValue: "\"download\"",
|
|
57
|
+
description: "Filename for the downloaded file, without the extension.",
|
|
58
|
+
table: {
|
|
59
|
+
defaultValue: {
|
|
60
|
+
summary: "\"download\""
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
type: {
|
|
64
|
+
required: false,
|
|
65
|
+
summary: "string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"options.type": {
|
|
69
|
+
control: {
|
|
70
|
+
type: "text"
|
|
71
|
+
},
|
|
72
|
+
defaultValue: "\"png\"",
|
|
73
|
+
description: "File type of the saved document. Accepted values are `\"png\"` and `\"jpg\"`.",
|
|
74
|
+
table: {
|
|
75
|
+
defaultValue: {
|
|
76
|
+
summary: "\"png\""
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
type: {
|
|
80
|
+
required: false,
|
|
81
|
+
summary: "string"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
renderOptions: {
|
|
85
|
+
control: {
|
|
86
|
+
type: "object"
|
|
87
|
+
},
|
|
88
|
+
description: "Custom options to be passed to the html-to-image function.",
|
|
89
|
+
table: {
|
|
90
|
+
defaultValue: {
|
|
91
|
+
summary: "undefined"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
type: {
|
|
95
|
+
required: false,
|
|
96
|
+
summary: "object"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
@@ -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
|
+
specifier: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text"
|
|
12
|
+
},
|
|
13
|
+
description: "The string specifier used by the format function.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "string"
|
|
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
|
+
locale: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
description: "The locale config to be used. If *value* is an object, the function will format the numbers according the object. The object must include `suffixes`, `delimiter` and `currency` properties.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "object | string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
n: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "number"
|
|
27
|
+
},
|
|
28
|
+
description: "The number to be formatted.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "number | string"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
d: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "date"
|
|
12
|
+
},
|
|
13
|
+
description: "The date string to be formatted.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "date"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
dataArray: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "The full array of ordered Date Objects.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
formatter: {
|
|
40
|
+
control: {},
|
|
41
|
+
defaultValue: "d3.timeFormat",
|
|
42
|
+
description: "An optional instance of d3.timeFormat to be used for localization.",
|
|
43
|
+
table: {
|
|
44
|
+
defaultValue: {
|
|
45
|
+
summary: "d3.timeFormat"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
type: {
|
|
49
|
+
required: false,
|
|
50
|
+
summary: "function"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
@@ -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
|
+
definition: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "object"
|
|
12
|
+
},
|
|
13
|
+
description: "The localization definition.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "object"
|
|
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
|
+
arr: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "The array of values to test against.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
n: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "number"
|
|
27
|
+
},
|
|
28
|
+
description: "The number value to use when searching the array.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "number"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|