@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,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
|
+
highestQuality: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "boolean"
|
|
12
|
+
},
|
|
13
|
+
defaultValue: false,
|
|
14
|
+
description: "Excludes distance-based preprocessing step which leads to highest quality simplification but runs ~10-20 times slower.",
|
|
15
|
+
table: {
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: false
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
required: false,
|
|
22
|
+
summary: "boolean"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
poly: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "array"
|
|
28
|
+
},
|
|
29
|
+
description: "An Array of points that represent a polygon.",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: "undefined"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: true,
|
|
37
|
+
summary: "array"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
tolerance: {
|
|
41
|
+
control: {
|
|
42
|
+
type: "number"
|
|
43
|
+
},
|
|
44
|
+
defaultValue: 1,
|
|
45
|
+
description: "Affects the amount of simplification (in the same metric as the point coordinates).",
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: {
|
|
48
|
+
summary: 1
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
type: {
|
|
52
|
+
required: false,
|
|
53
|
+
summary: "number"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
p1: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "The first point of the first line segment, which should always be an `[x, y]` formatted Array.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
p2: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "The first point of the second line segment, which should always be an `[x, y]` formatted Array.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
q1: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "array"
|
|
42
|
+
},
|
|
43
|
+
description: "The second point of the first line segment, which should always be an `[x, y]` formatted Array.",
|
|
44
|
+
table: {
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: "undefined"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
required: true,
|
|
51
|
+
summary: "array"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
q2: {
|
|
55
|
+
control: {
|
|
56
|
+
type: "array"
|
|
57
|
+
},
|
|
58
|
+
description: "The second point of the second line segment, which should always be an `[x, y]` formatted Array.",
|
|
59
|
+
table: {
|
|
60
|
+
defaultValue: {
|
|
61
|
+
summary: "undefined"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
type: {
|
|
65
|
+
required: true,
|
|
66
|
+
summary: "array"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
@@ -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
|
+
path: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text"
|
|
12
|
+
},
|
|
13
|
+
description: "An SVG string path, commonly the \"d\" property of a <path> element.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
segmentLength: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "number"
|
|
27
|
+
},
|
|
28
|
+
defaultValue: 50,
|
|
29
|
+
description: "The length of line segments when converting curves line segments. Higher values lower computation time, but will result in curves that are more rigid.",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: 50
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: false,
|
|
37
|
+
summary: "number"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -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
|
+
p1: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "The first point, which should always be an `[x, y]` formatted Array.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
p2: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "The second point, which should always be an `[x, y]` formatted Array.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
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
|
+
p1: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "The first point, which should always be an `[x, y]` formatted Array.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
p2: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "The second point, which should always be an `[x, y]` formatted Array.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
alpha: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "number"
|
|
12
|
+
},
|
|
13
|
+
description: "The angle in radians to rotate.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "number"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
origin: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
defaultValue: "[0, 0]",
|
|
29
|
+
description: "The origin point of the rotation, which should always be an `[x, y]` formatted Array.",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: "[0, 0]"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: false,
|
|
37
|
+
summary: "array"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
p: {
|
|
41
|
+
control: {
|
|
42
|
+
type: "array"
|
|
43
|
+
},
|
|
44
|
+
description: "The point to be rotated, which should always be an `[x, y]` formatted Array.",
|
|
45
|
+
table: {
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: "undefined"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
required: true,
|
|
52
|
+
summary: "array"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -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
|
+
polyA: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "An Array of `[x, y]` points to be used as the inner polygon, checking if it is inside polyA.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
polyB: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "An Array of `[x, y]` points to be used as the containing polygon.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
alpha: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "number"
|
|
12
|
+
},
|
|
13
|
+
defaultValue: 0,
|
|
14
|
+
description: "The angle in radians of the ray.",
|
|
15
|
+
table: {
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: 0
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
required: false,
|
|
22
|
+
summary: "number"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
origin: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "array"
|
|
28
|
+
},
|
|
29
|
+
description: "The origin point of the ray to be cast, which should be an `[x, y]` formatted Array.",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: "undefined"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: true,
|
|
37
|
+
summary: "array"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
poly: {
|
|
41
|
+
control: {
|
|
42
|
+
type: "array"
|
|
43
|
+
},
|
|
44
|
+
description: "The polygon to test against, which should be an `[x, y]` formatted Array.",
|
|
45
|
+
table: {
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: "undefined"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
required: true,
|
|
52
|
+
summary: "array"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
alpha: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "number"
|
|
12
|
+
},
|
|
13
|
+
description: "The angle in radians to rotate.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "number"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
origin: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
defaultValue: "[0, 0]",
|
|
29
|
+
description: "The origin point of the rotation, which should be an `[x, y]` formatted Array.",
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: "[0, 0]"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
required: false,
|
|
37
|
+
summary: "array"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
poly: {
|
|
41
|
+
control: {
|
|
42
|
+
type: "array"
|
|
43
|
+
},
|
|
44
|
+
description: "The polygon to be rotated, which should be an Array of `[x, y]` values.",
|
|
45
|
+
table: {
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: "undefined"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
required: true,
|
|
52
|
+
summary: "array"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
p: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "The point to be checked, which should always be an `[x, y]` formatted Array.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
s1: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "The first point of the line segment to be used for the bounding box, which should always be an `[x, y]` formatted Array.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
s2: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "array"
|
|
42
|
+
},
|
|
43
|
+
description: "The second point of the line segment to be used for the bounding box, which should always be an `[x, y]` formatted Array.",
|
|
44
|
+
table: {
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: "undefined"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
required: true,
|
|
51
|
+
summary: "array"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
p1: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "array"
|
|
12
|
+
},
|
|
13
|
+
description: "The first point of the first line segment, which should always be an `[x, y]` formatted Array.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "array"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
p2: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "array"
|
|
27
|
+
},
|
|
28
|
+
description: "The first point of the second line segment, which should always be an `[x, y]` formatted Array.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "array"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
q1: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "array"
|
|
42
|
+
},
|
|
43
|
+
description: "The second point of the first line segment, which should always be an `[x, y]` formatted Array.",
|
|
44
|
+
table: {
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: "undefined"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
required: true,
|
|
51
|
+
summary: "array"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
q2: {
|
|
55
|
+
control: {
|
|
56
|
+
type: "array"
|
|
57
|
+
},
|
|
58
|
+
description: "The second point of the second line segment, which should always be an `[x, y]` formatted Array.",
|
|
59
|
+
table: {
|
|
60
|
+
defaultValue: {
|
|
61
|
+
summary: "undefined"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
type: {
|
|
65
|
+
required: true,
|
|
66
|
+
summary: "array"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
@@ -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
|
+
angle: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "number"
|
|
12
|
+
},
|
|
13
|
+
description: "The angle, in radians, of the offset point.",
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: {
|
|
16
|
+
summary: "undefined"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
required: true,
|
|
21
|
+
summary: "number"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
distance: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "number"
|
|
27
|
+
},
|
|
28
|
+
description: "The pixel distance away from the origin.",
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: "undefined"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
required: true,
|
|
36
|
+
summary: "number"
|
|
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
|
+
callback: {
|
|
10
|
+
control: {},
|
|
11
|
+
description: "A function to be invoked at the end of each render cycle (passed directly to the render method).",
|
|
12
|
+
table: {
|
|
13
|
+
defaultValue: {
|
|
14
|
+
summary: "undefined"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
type: {
|
|
18
|
+
required: false,
|
|
19
|
+
summary: "function"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
className: {
|
|
23
|
+
control: {
|
|
24
|
+
type: "text"
|
|
25
|
+
},
|
|
26
|
+
defaultValue: "\"renderer\"",
|
|
27
|
+
description: "The class attribute value used for the root/wrapper <div> element.",
|
|
28
|
+
table: {
|
|
29
|
+
defaultValue: {
|
|
30
|
+
summary: "\"renderer\""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
type: {
|
|
34
|
+
required: false,
|
|
35
|
+
summary: "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
config: {
|
|
39
|
+
control: {
|
|
40
|
+
type: "object"
|
|
41
|
+
},
|
|
42
|
+
description: "An object containing method/value pairs to be passed to the visualization's .config( ) method.",
|
|
43
|
+
table: {
|
|
44
|
+
defaultValue: {
|
|
45
|
+
summary: "undefined"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
type: {
|
|
49
|
+
required: true,
|
|
50
|
+
summary: "object"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|