@mbao01/common 0.0.44 → 0.0.46
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/dist/types/components/Chart/Chart.d.ts +2 -0
- package/dist/types/components/Chart/ChartContext.d.ts +2 -0
- package/dist/types/components/Chart/components/ChartLegend.d.ts +4 -0
- package/dist/types/components/Chart/components/ChartStyle.d.ts +2 -0
- package/dist/types/components/Chart/components/ChartTooltip.d.ts +4 -0
- package/dist/types/components/Chart/components/index.d.ts +3 -0
- package/dist/types/components/Chart/constants.d.ts +22 -0
- package/dist/types/components/Chart/helpers.d.ts +11 -0
- package/dist/types/components/Chart/hooks/index.d.ts +1 -0
- package/dist/types/components/Chart/hooks/useChart/index.d.ts +1 -0
- package/dist/types/components/Chart/hooks/useChart/useChart.d.ts +1 -0
- package/dist/types/components/Chart/index.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/activeShapeArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/animationArgs.d.ts +12 -0
- package/dist/types/components/Chart/stories/args/areaArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/areaChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/barArgs.d.ts +5 -0
- package/dist/types/components/Chart/stories/args/barChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/cartesianChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/cartesianSharedArgs.d.ts +11 -0
- package/dist/types/components/Chart/stories/args/chartArgs.d.ts +6 -0
- package/dist/types/components/Chart/stories/args/dotArgs.d.ts +10 -0
- package/dist/types/components/Chart/stories/args/events.d.ts +804 -0
- package/dist/types/components/Chart/stories/args/labelListArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/legendArgs.d.ts +3 -0
- package/dist/types/components/Chart/stories/args/lineArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/lineChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/pieArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/pieChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/polarChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/polarSharedArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radarArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radarChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radialBarArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radialBarChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/rectangleArgs.d.ts +9 -0
- package/dist/types/components/Chart/stories/args/referenceSharedArgs.d.ts +4 -0
- package/dist/types/components/Chart/stories/args/sectorArgs.d.ts +7 -0
- package/dist/types/components/Chart/stories/args/sharedAxisArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/stylesArgs.d.ts +6 -0
- package/dist/types/components/Chart/stories/args/textArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/tooltipArgs.d.ts +4 -0
- package/dist/types/components/Chart/stories/args/types.d.ts +13 -0
- package/dist/types/components/Chart/stories/args/xAxisArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/yAxisArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/examples/AreaChart.d.ts +16 -0
- package/dist/types/components/Chart/stories/examples/BarChart.d.ts +20 -0
- package/dist/types/components/Chart/stories/examples/LineChart.d.ts +16 -0
- package/dist/types/components/Chart/stories/examples/PieChart.d.ts +19 -0
- package/dist/types/components/Chart/stories/examples/RadarChart.d.ts +24 -0
- package/dist/types/components/Chart/stories/examples/RadialChart.d.ts +17 -0
- package/dist/types/components/Chart/stories/examples/Tooltip.d.ts +15 -0
- package/dist/types/components/Chart/stories/helpers/index.d.ts +9 -0
- package/dist/types/components/Chart/types.d.ts +37 -0
- package/dist/types/components/DragAndDrop/Draggable/Draggable.d.ts +29 -0
- package/dist/types/components/DragAndDrop/Draggable/Draggable.example.d.ts +24 -0
- package/dist/types/components/DragAndDrop/Draggable/constants.d.ts +9 -0
- package/dist/types/components/DragAndDrop/Draggable/index.d.ts +1 -0
- package/dist/types/components/DragAndDrop/Draggable/types.d.ts +41 -0
- package/dist/types/components/DragAndDrop/Droppable/Droppable.d.ts +2 -0
- package/dist/types/components/DragAndDrop/Droppable/Droppable.example.d.ts +10 -0
- package/dist/types/components/DragAndDrop/Droppable/constants.d.ts +5 -0
- package/dist/types/components/DragAndDrop/Droppable/index.d.ts +1 -0
- package/dist/types/components/DragAndDrop/Droppable/types.d.ts +4 -0
- package/dist/types/components/DragAndDrop/Sortable/Sortable.d.ts +2 -0
- package/dist/types/components/DragAndDrop/Sortable/Sortable.example.d.ts +6 -0
- package/dist/types/components/DragAndDrop/Sortable/constants.d.ts +4 -0
- package/dist/types/components/DragAndDrop/Sortable/index.d.ts +1 -0
- package/dist/types/components/DragAndDrop/Sortable/types.d.ts +7 -0
- package/dist/types/components/DragAndDrop/index.d.ts +3 -0
- package/dist/types/components/Widget/InternalWidgetsContext.d.ts +2 -0
- package/dist/types/components/Widget/Widget.d.ts +2 -0
- package/dist/types/components/Widget/Widgets.example.d.ts +1 -0
- package/dist/types/components/Widget/WidgetsContext.d.ts +2 -0
- package/dist/types/components/Widget/hooks/index.d.ts +2 -0
- package/dist/types/components/Widget/hooks/useWidget/index.d.ts +1 -0
- package/dist/types/components/Widget/hooks/useWidget/useWidget.d.ts +7 -0
- package/dist/types/components/Widget/hooks/useWidgets/index.d.ts +1 -0
- package/dist/types/components/Widget/hooks/useWidgets/useWidgets.d.ts +1 -0
- package/dist/types/components/Widget/index.d.ts +3 -0
- package/dist/types/components/Widget/modifiers/index.d.ts +1 -0
- package/dist/types/components/Widget/modifiers/restrictToElement.d.ts +2 -0
- package/dist/types/components/Widget/types.d.ts +28 -0
- package/package.json +9 -3
- package/src/components/Chart/Chart.tsx +26 -0
- package/src/components/Chart/ChartContext.tsx +4 -0
- package/src/components/Chart/components/ChartLegend.tsx +52 -0
- package/src/components/Chart/components/ChartStyle.tsx +32 -0
- package/src/components/Chart/components/ChartTooltip.tsx +126 -0
- package/src/components/Chart/components/index.ts +3 -0
- package/src/components/Chart/constants.ts +78 -0
- package/src/components/Chart/helpers.ts +27 -0
- package/src/components/Chart/hooks/index.ts +1 -0
- package/src/components/Chart/hooks/useChart/index.ts +1 -0
- package/src/components/Chart/hooks/useChart/useChart.ts +12 -0
- package/src/components/Chart/index.ts +2 -0
- package/src/components/Chart/stories/args/activeShapeArgs.ts +34 -0
- package/src/components/Chart/stories/args/animationArgs.ts +67 -0
- package/src/components/Chart/stories/args/areaArgs.ts +16 -0
- package/src/components/Chart/stories/args/areaChartArgs.ts +19 -0
- package/src/components/Chart/stories/args/barArgs.ts +123 -0
- package/src/components/Chart/stories/args/barChartArgs.ts +65 -0
- package/src/components/Chart/stories/args/cartesianChartArgs.ts +42 -0
- package/src/components/Chart/stories/args/cartesianSharedArgs.ts +136 -0
- package/src/components/Chart/stories/args/chartArgs.ts +244 -0
- package/src/components/Chart/stories/args/dotArgs.ts +46 -0
- package/src/components/Chart/stories/args/events.ts +343 -0
- package/src/components/Chart/stories/args/index.ts +178 -0
- package/src/components/Chart/stories/args/labelListArgs.ts +124 -0
- package/src/components/Chart/stories/args/legendArgs.ts +205 -0
- package/src/components/Chart/stories/args/lineArgs.ts +87 -0
- package/src/components/Chart/stories/args/lineChartArgs.ts +17 -0
- package/src/components/Chart/stories/args/pieArgs.ts +18 -0
- package/src/components/Chart/stories/args/pieChartArgs.ts +7 -0
- package/src/components/Chart/stories/args/polarChartArgs.ts +86 -0
- package/src/components/Chart/stories/args/polarSharedArgs.ts +42 -0
- package/src/components/Chart/stories/args/radarArgs.ts +26 -0
- package/src/components/Chart/stories/args/radarChartArgs.ts +26 -0
- package/src/components/Chart/stories/args/radialBarArgs.ts +36 -0
- package/src/components/Chart/stories/args/radialBarChartArgs.ts +16 -0
- package/src/components/Chart/stories/args/rectangleArgs.ts +35 -0
- package/src/components/Chart/stories/args/referenceSharedArgs.ts +75 -0
- package/src/components/Chart/stories/args/sectorArgs.ts +106 -0
- package/src/components/Chart/stories/args/sharedAxisArgs.ts +332 -0
- package/src/components/Chart/stories/args/stylesArgs.ts +258 -0
- package/src/components/Chart/stories/args/textArgs.ts +97 -0
- package/src/components/Chart/stories/args/tooltipArgs.ts +41 -0
- package/src/components/Chart/stories/args/types.ts +23 -0
- package/src/components/Chart/stories/args/xAxisArgs.ts +109 -0
- package/src/components/Chart/stories/args/yAxisArgs.ts +73 -0
- package/src/components/Chart/stories/examples/AreaChart.tsx +156 -0
- package/src/components/Chart/stories/examples/BarChart.tsx +425 -0
- package/src/components/Chart/stories/examples/LineChart.tsx +144 -0
- package/src/components/Chart/stories/examples/PieChart.tsx +238 -0
- package/src/components/Chart/stories/examples/RadarChart.tsx +261 -0
- package/src/components/Chart/stories/examples/RadialChart.tsx +239 -0
- package/src/components/Chart/stories/examples/Tooltip.tsx +68 -0
- package/src/components/Chart/stories/helpers/index.tsx +75 -0
- package/src/components/Chart/types.ts +39 -0
- package/src/components/DragAndDrop/Draggable/Draggable.example.tsx +147 -0
- package/src/components/DragAndDrop/Draggable/Draggable.tsx +161 -0
- package/src/components/DragAndDrop/Draggable/constants.ts +47 -0
- package/src/components/DragAndDrop/Draggable/index.ts +1 -0
- package/src/components/DragAndDrop/Draggable/types.ts +56 -0
- package/src/components/DragAndDrop/Droppable/Droppable.example.tsx +86 -0
- package/src/components/DragAndDrop/Droppable/Droppable.tsx +38 -0
- package/src/components/DragAndDrop/Droppable/constants.ts +15 -0
- package/src/components/DragAndDrop/Droppable/index.ts +1 -0
- package/src/components/DragAndDrop/Droppable/types.ts +7 -0
- package/src/components/DragAndDrop/Sortable/Sortable.example.tsx +61 -0
- package/src/components/DragAndDrop/Sortable/Sortable.tsx +65 -0
- package/src/components/DragAndDrop/Sortable/constants.ts +12 -0
- package/src/components/DragAndDrop/Sortable/index.ts +1 -0
- package/src/components/DragAndDrop/Sortable/types.ts +11 -0
- package/src/components/DragAndDrop/index.ts +3 -0
- package/src/components/Widget/InternalWidgetsContext.tsx +4 -0
- package/src/components/Widget/Widget.tsx +17 -0
- package/src/components/Widget/Widgets.example.tsx +118 -0
- package/src/components/Widget/WidgetsContext.tsx +97 -0
- package/src/components/Widget/hooks/index.ts +2 -0
- package/src/components/Widget/hooks/useWidget/index.ts +1 -0
- package/src/components/Widget/hooks/useWidget/useWidget.ts +21 -0
- package/src/components/Widget/hooks/useWidgets/index.ts +1 -0
- package/src/components/Widget/hooks/useWidgets/useWidgets.ts +12 -0
- package/src/components/Widget/index.ts +3 -0
- package/src/components/Widget/modifiers/index.ts +1 -0
- package/src/components/Widget/modifiers/restrictToElement.ts +8 -0
- package/src/components/Widget/types.ts +30 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file both exports the documentation of shared props separately, to be reused in places where only single props
|
|
3
|
+
* are documented, as well as grouped in case a whole group is needed.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { type ArgTypes } from "@storybook/react";
|
|
7
|
+
|
|
8
|
+
export const onAbort = { table: { category: "EventHandlers" } };
|
|
9
|
+
export const onAbortCapture = { table: { category: "EventHandlers" } };
|
|
10
|
+
export const onAnimationEnd = {
|
|
11
|
+
table: {
|
|
12
|
+
category: "EventHandlers",
|
|
13
|
+
description: "The customized event handler of animation end",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export const onAnimationEndCapture = { table: { category: "EventHandlers" } };
|
|
17
|
+
export const onAnimationIteration = { table: { category: "EventHandlers" } };
|
|
18
|
+
export const onAnimationIterationCapture = { table: { category: "EventHandlers" } };
|
|
19
|
+
export const onAnimationStart = {
|
|
20
|
+
table: {
|
|
21
|
+
description: "The customized event handler of animation start",
|
|
22
|
+
category: "EventHandlers",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export const onAnimationStartCapture = { table: { category: "EventHandlers" } };
|
|
26
|
+
export const onAuxClick = { table: { category: "EventHandlers" } };
|
|
27
|
+
export const onAuxClickCapture = { table: { category: "EventHandlers" } };
|
|
28
|
+
export const onBeforeInput = { table: { category: "EventHandlers" } };
|
|
29
|
+
export const onBeforeInputCapture = { table: { category: "EventHandlers" } };
|
|
30
|
+
export const onBlur = { table: { category: "EventHandlers" } };
|
|
31
|
+
export const onBlurCapture = { table: { category: "EventHandlers" } };
|
|
32
|
+
export const onCanPlay = { table: { category: "EventHandlers" } };
|
|
33
|
+
export const onCanPlayCapture = { table: { category: "EventHandlers" } };
|
|
34
|
+
export const onCanPlayThrough = { table: { category: "EventHandlers" } };
|
|
35
|
+
export const onCanPlayThroughCapture = { table: { category: "EventHandlers" } };
|
|
36
|
+
export const onChange = { table: { category: "EventHandlers" } };
|
|
37
|
+
export const onChangeCapture = { table: { category: "EventHandlers" } };
|
|
38
|
+
export const onClick = { table: { category: "EventHandlers" } };
|
|
39
|
+
export const onClickCapture = { table: { category: "EventHandlers" } };
|
|
40
|
+
export const onCompositionEnd = { table: { category: "EventHandlers" } };
|
|
41
|
+
export const onCompositionEndCapture = { table: { category: "EventHandlers" } };
|
|
42
|
+
export const onCompositionStart = { table: { category: "EventHandlers" } };
|
|
43
|
+
export const onCompositionStartCapture = { table: { category: "EventHandlers" } };
|
|
44
|
+
export const onCompositionUpdate = { table: { category: "EventHandlers" } };
|
|
45
|
+
export const onCompositionUpdateCapture = { table: { category: "EventHandlers" } };
|
|
46
|
+
export const onContextMenu = { table: { category: "EventHandlers" } };
|
|
47
|
+
export const onContextMenuCapture = { table: { category: "EventHandlers" } };
|
|
48
|
+
export const onCopy = { table: { category: "EventHandlers" } };
|
|
49
|
+
export const onCopyCapture = { table: { category: "EventHandlers" } };
|
|
50
|
+
export const onCut = { table: { category: "EventHandlers" } };
|
|
51
|
+
export const onCutCapture = { table: { category: "EventHandlers" } };
|
|
52
|
+
export const onDoubleClick = { table: { category: "EventHandlers" } };
|
|
53
|
+
export const onDoubleClickCapture = { table: { category: "EventHandlers" } };
|
|
54
|
+
export const onDrag = { table: { category: "EventHandlers" } };
|
|
55
|
+
export const onDragCapture = { table: { category: "EventHandlers" } };
|
|
56
|
+
export const onDragEnd = { table: { category: "EventHandlers" } };
|
|
57
|
+
export const onDragEndCapture = { table: { category: "EventHandlers" } };
|
|
58
|
+
export const onDragEnter = { table: { category: "EventHandlers" } };
|
|
59
|
+
export const onDragEnterCapture = { table: { category: "EventHandlers" } };
|
|
60
|
+
export const onDragExit = { table: { category: "EventHandlers" } };
|
|
61
|
+
export const onDragExitCapture = { table: { category: "EventHandlers" } };
|
|
62
|
+
export const onDragLeave = { table: { category: "EventHandlers" } };
|
|
63
|
+
export const onDragLeaveCapture = { table: { category: "EventHandlers" } };
|
|
64
|
+
export const onDragOver = { table: { category: "EventHandlers" } };
|
|
65
|
+
export const onDragOverCapture = { table: { category: "EventHandlers" } };
|
|
66
|
+
export const onDragStart = { table: { category: "EventHandlers" } };
|
|
67
|
+
export const onDragStartCapture = { table: { category: "EventHandlers" } };
|
|
68
|
+
export const onDrop = { table: { category: "EventHandlers" } };
|
|
69
|
+
export const onDropCapture = { table: { category: "EventHandlers" } };
|
|
70
|
+
export const onDurationChange = { table: { category: "EventHandlers" } };
|
|
71
|
+
export const onDurationChangeCapture = { table: { category: "EventHandlers" } };
|
|
72
|
+
export const onEmptied = { table: { category: "EventHandlers" } };
|
|
73
|
+
export const onEmptiedCapture = { table: { category: "EventHandlers" } };
|
|
74
|
+
export const onEncrypted = { table: { category: "EventHandlers" } };
|
|
75
|
+
export const onEncryptedCapture = { table: { category: "EventHandlers" } };
|
|
76
|
+
export const onEnded = { table: { category: "EventHandlers" } };
|
|
77
|
+
export const onEndedCapture = { table: { category: "EventHandlers" } };
|
|
78
|
+
export const onError = { table: { category: "EventHandlers" } };
|
|
79
|
+
export const onErrorCapture = { table: { category: "EventHandlers" } };
|
|
80
|
+
export const onFocus = { table: { category: "EventHandlers" } };
|
|
81
|
+
export const onFocusCapture = { table: { category: "EventHandlers" } };
|
|
82
|
+
export const onGotPointerCapture = { table: { category: "EventHandlers" } };
|
|
83
|
+
export const onGotPointerCaptureCapture = { table: { category: "EventHandlers" } };
|
|
84
|
+
export const onInput = { table: { category: "EventHandlers" } };
|
|
85
|
+
export const onInputCapture = { table: { category: "EventHandlers" } };
|
|
86
|
+
export const onInvalid = { table: { category: "EventHandlers" } };
|
|
87
|
+
export const onInvalidCapture = { table: { category: "EventHandlers" } };
|
|
88
|
+
export const onKeyDown = { table: { category: "EventHandlers" } };
|
|
89
|
+
export const onKeyDownCapture = { table: { category: "EventHandlers" } };
|
|
90
|
+
export const onKeyPress = { table: { category: "EventHandlers" } };
|
|
91
|
+
export const onKeyPressCapture = { table: { category: "EventHandlers" } };
|
|
92
|
+
export const onKeyUp = { table: { category: "EventHandlers" } };
|
|
93
|
+
export const onKeyUpCapture = { table: { category: "EventHandlers" } };
|
|
94
|
+
export const onLoad = { table: { category: "EventHandlers" } };
|
|
95
|
+
export const onLoadCapture = { table: { category: "EventHandlers" } };
|
|
96
|
+
export const onLoadStart = { table: { category: "EventHandlers" } };
|
|
97
|
+
export const onLoadStartCapture = { table: { category: "EventHandlers" } };
|
|
98
|
+
export const onLoadedData = { table: { category: "EventHandlers" } };
|
|
99
|
+
export const onLoadedDataCapture = { table: { category: "EventHandlers" } };
|
|
100
|
+
export const onLoadedMetadata = { table: { category: "EventHandlers" } };
|
|
101
|
+
export const onLoadedMetadataCapture = { table: { category: "EventHandlers" } };
|
|
102
|
+
export const onLostPointerCapture = { table: { category: "EventHandlers" } };
|
|
103
|
+
export const onLostPointerCaptureCapture = { table: { category: "EventHandlers" } };
|
|
104
|
+
export const onMouseDown = { table: { category: "EventHandlers" } };
|
|
105
|
+
export const onMouseDownCapture = { table: { category: "EventHandlers" } };
|
|
106
|
+
export const onMouseEnter = { table: { category: "EventHandlers" } };
|
|
107
|
+
export const onMouseLeave = { table: { category: "EventHandlers" } };
|
|
108
|
+
export const onMouseMove = { table: { category: "EventHandlers" } };
|
|
109
|
+
export const onMouseMoveCapture = { table: { category: "EventHandlers" } };
|
|
110
|
+
export const onMouseOut = { table: { category: "EventHandlers" } };
|
|
111
|
+
export const onMouseOutCapture = { table: { category: "EventHandlers" } };
|
|
112
|
+
export const onMouseOver = { table: { category: "EventHandlers" } };
|
|
113
|
+
export const onMouseOverCapture = { table: { category: "EventHandlers" } };
|
|
114
|
+
export const onMouseUp = { table: { category: "EventHandlers" } };
|
|
115
|
+
export const onMouseUpCapture = { table: { category: "EventHandlers" } };
|
|
116
|
+
export const onPaste = { table: { category: "EventHandlers" } };
|
|
117
|
+
export const onPasteCapture = { table: { category: "EventHandlers" } };
|
|
118
|
+
export const onPause = { table: { category: "EventHandlers" } };
|
|
119
|
+
export const onPauseCapture = { table: { category: "EventHandlers" } };
|
|
120
|
+
export const onPlay = { table: { category: "EventHandlers" } };
|
|
121
|
+
export const onPlayCapture = { table: { category: "EventHandlers" } };
|
|
122
|
+
export const onPlaying = { table: { category: "EventHandlers" } };
|
|
123
|
+
export const onPlayingCapture = { table: { category: "EventHandlers" } };
|
|
124
|
+
export const onPointerCancel = { table: { category: "EventHandlers" } };
|
|
125
|
+
export const onPointerCancelCapture = { table: { category: "EventHandlers" } };
|
|
126
|
+
export const onPointerDown = { table: { category: "EventHandlers" } };
|
|
127
|
+
export const onPointerDownCapture = { table: { category: "EventHandlers" } };
|
|
128
|
+
export const onPointerEnter = { table: { category: "EventHandlers" } };
|
|
129
|
+
export const onPointerEnterCapture = { table: { category: "EventHandlers" } };
|
|
130
|
+
export const onPointerLeave = { table: { category: "EventHandlers" } };
|
|
131
|
+
export const onPointerLeaveCapture = { table: { category: "EventHandlers" } };
|
|
132
|
+
export const onPointerMove = { table: { category: "EventHandlers" } };
|
|
133
|
+
export const onPointerMoveCapture = { table: { category: "EventHandlers" } };
|
|
134
|
+
export const onPointerOut = { table: { category: "EventHandlers" } };
|
|
135
|
+
export const onPointerOutCapture = { table: { category: "EventHandlers" } };
|
|
136
|
+
export const onPointerOver = { table: { category: "EventHandlers" } };
|
|
137
|
+
export const onPointerOverCapture = { table: { category: "EventHandlers" } };
|
|
138
|
+
export const onPointerUp = { table: { category: "EventHandlers" } };
|
|
139
|
+
export const onPointerUpCapture = { table: { category: "EventHandlers" } };
|
|
140
|
+
export const onProgress = { table: { category: "EventHandlers" } };
|
|
141
|
+
export const onProgressCapture = { table: { category: "EventHandlers" } };
|
|
142
|
+
export const onRateChange = { table: { category: "EventHandlers" } };
|
|
143
|
+
export const onRateChangeCapture = { table: { category: "EventHandlers" } };
|
|
144
|
+
export const onReset = { table: { category: "EventHandlers" } };
|
|
145
|
+
export const onResetCapture = { table: { category: "EventHandlers" } };
|
|
146
|
+
export const onScroll = { table: { category: "EventHandlers" } };
|
|
147
|
+
export const onScrollCapture = { table: { category: "EventHandlers" } };
|
|
148
|
+
export const onSeeked = { table: { category: "EventHandlers" } };
|
|
149
|
+
export const onSeekedCapture = { table: { category: "EventHandlers" } };
|
|
150
|
+
export const onSeeking = { table: { category: "EventHandlers" } };
|
|
151
|
+
export const onSeekingCapture = { table: { category: "EventHandlers" } };
|
|
152
|
+
export const onSelect = { table: { category: "EventHandlers" } };
|
|
153
|
+
export const onSelectCapture = { table: { category: "EventHandlers" } };
|
|
154
|
+
export const onStalled = { table: { category: "EventHandlers" } };
|
|
155
|
+
export const onStalledCapture = { table: { category: "EventHandlers" } };
|
|
156
|
+
export const onSubmit = { table: { category: "EventHandlers" } };
|
|
157
|
+
export const onSubmitCapture = { table: { category: "EventHandlers" } };
|
|
158
|
+
export const onSuspend = { table: { category: "EventHandlers" } };
|
|
159
|
+
export const onSuspendCapture = { table: { category: "EventHandlers" } };
|
|
160
|
+
export const onTimeUpdate = { table: { category: "EventHandlers" } };
|
|
161
|
+
export const onTimeUpdateCapture = { table: { category: "EventHandlers" } };
|
|
162
|
+
export const onTouchCancel = { table: { category: "EventHandlers" } };
|
|
163
|
+
export const onTouchCancelCapture = { table: { category: "EventHandlers" } };
|
|
164
|
+
export const onTouchEnd = { table: { category: "EventHandlers" } };
|
|
165
|
+
export const onTouchEndCapture = { table: { category: "EventHandlers" } };
|
|
166
|
+
export const onTouchMove = { table: { category: "EventHandlers" } };
|
|
167
|
+
export const onTouchMoveCapture = { table: { category: "EventHandlers" } };
|
|
168
|
+
export const onTouchStart = { table: { category: "EventHandlers" } };
|
|
169
|
+
export const onTouchStartCapture = { table: { category: "EventHandlers" } };
|
|
170
|
+
export const onTransitionEnd = { table: { category: "EventHandlers" } };
|
|
171
|
+
export const onTransitionEndCapture = { table: { category: "EventHandlers" } };
|
|
172
|
+
export const onVolumeChange = { table: { category: "EventHandlers" } };
|
|
173
|
+
export const onVolumeChangeCapture = { table: { category: "EventHandlers" } };
|
|
174
|
+
export const onWaiting = { table: { category: "EventHandlers" } };
|
|
175
|
+
export const onWaitingCapture = { table: { category: "EventHandlers" } };
|
|
176
|
+
export const onWheel = { table: { category: "EventHandlers" } };
|
|
177
|
+
export const onWheelCapture = { table: { category: "EventHandlers" } };
|
|
178
|
+
|
|
179
|
+
// Caveat: If any prop is added here, it would falsely be add to the documentation of the component
|
|
180
|
+
// where this group is used. If the group is to be extended, then only single props should be imported
|
|
181
|
+
// by each component that does not use all of them.
|
|
182
|
+
export const eventArgs: ArgTypes = {
|
|
183
|
+
onAbort,
|
|
184
|
+
onAbortCapture,
|
|
185
|
+
onAnimationEnd,
|
|
186
|
+
onAnimationEndCapture,
|
|
187
|
+
onAnimationIteration,
|
|
188
|
+
onAnimationIterationCapture,
|
|
189
|
+
onAnimationStart,
|
|
190
|
+
onAnimationStartCapture,
|
|
191
|
+
onAuxClick,
|
|
192
|
+
onAuxClickCapture,
|
|
193
|
+
onBeforeInput,
|
|
194
|
+
onBeforeInputCapture,
|
|
195
|
+
onBlur,
|
|
196
|
+
onBlurCapture,
|
|
197
|
+
onCanPlay,
|
|
198
|
+
onCanPlayCapture,
|
|
199
|
+
onCanPlayThrough,
|
|
200
|
+
onCanPlayThroughCapture,
|
|
201
|
+
onChange,
|
|
202
|
+
onChangeCapture,
|
|
203
|
+
onClick,
|
|
204
|
+
onClickCapture,
|
|
205
|
+
onCompositionEnd,
|
|
206
|
+
onCompositionEndCapture,
|
|
207
|
+
onCompositionStart,
|
|
208
|
+
onCompositionStartCapture,
|
|
209
|
+
onCompositionUpdate,
|
|
210
|
+
onCompositionUpdateCapture,
|
|
211
|
+
onContextMenu,
|
|
212
|
+
onContextMenuCapture,
|
|
213
|
+
onCopy,
|
|
214
|
+
onCopyCapture,
|
|
215
|
+
onCut,
|
|
216
|
+
onCutCapture,
|
|
217
|
+
onDoubleClick,
|
|
218
|
+
onDoubleClickCapture,
|
|
219
|
+
onDrag,
|
|
220
|
+
onDragCapture,
|
|
221
|
+
onDragEnd,
|
|
222
|
+
onDragEndCapture,
|
|
223
|
+
onDragEnter,
|
|
224
|
+
onDragEnterCapture,
|
|
225
|
+
onDragExit,
|
|
226
|
+
onDragExitCapture,
|
|
227
|
+
onDragLeave,
|
|
228
|
+
onDragLeaveCapture,
|
|
229
|
+
onDragOver,
|
|
230
|
+
onDragOverCapture,
|
|
231
|
+
onDragStart,
|
|
232
|
+
onDragStartCapture,
|
|
233
|
+
onDrop,
|
|
234
|
+
onDropCapture,
|
|
235
|
+
onDurationChange,
|
|
236
|
+
onDurationChangeCapture,
|
|
237
|
+
onEmptied,
|
|
238
|
+
onEmptiedCapture,
|
|
239
|
+
onEncrypted,
|
|
240
|
+
onEncryptedCapture,
|
|
241
|
+
onEnded,
|
|
242
|
+
onEndedCapture,
|
|
243
|
+
onError,
|
|
244
|
+
onErrorCapture,
|
|
245
|
+
onFocus,
|
|
246
|
+
onFocusCapture,
|
|
247
|
+
onGotPointerCapture,
|
|
248
|
+
onGotPointerCaptureCapture,
|
|
249
|
+
onInput,
|
|
250
|
+
onInputCapture,
|
|
251
|
+
onInvalid,
|
|
252
|
+
onInvalidCapture,
|
|
253
|
+
onKeyDown,
|
|
254
|
+
onKeyDownCapture,
|
|
255
|
+
onKeyPress,
|
|
256
|
+
onKeyPressCapture,
|
|
257
|
+
onKeyUp,
|
|
258
|
+
onKeyUpCapture,
|
|
259
|
+
onLoad,
|
|
260
|
+
onLoadCapture,
|
|
261
|
+
onLoadStart,
|
|
262
|
+
onLoadStartCapture,
|
|
263
|
+
onLoadedData,
|
|
264
|
+
onLoadedDataCapture,
|
|
265
|
+
onLoadedMetadata,
|
|
266
|
+
onLoadedMetadataCapture,
|
|
267
|
+
onLostPointerCapture,
|
|
268
|
+
onLostPointerCaptureCapture,
|
|
269
|
+
onMouseDown,
|
|
270
|
+
onMouseDownCapture,
|
|
271
|
+
onMouseEnter,
|
|
272
|
+
onMouseLeave,
|
|
273
|
+
onMouseMove,
|
|
274
|
+
onMouseMoveCapture,
|
|
275
|
+
onMouseOut,
|
|
276
|
+
onMouseOutCapture,
|
|
277
|
+
onMouseOver,
|
|
278
|
+
onMouseOverCapture,
|
|
279
|
+
onMouseUp,
|
|
280
|
+
onMouseUpCapture,
|
|
281
|
+
onPaste,
|
|
282
|
+
onPasteCapture,
|
|
283
|
+
onPause,
|
|
284
|
+
onPauseCapture,
|
|
285
|
+
onPlay,
|
|
286
|
+
onPlayCapture,
|
|
287
|
+
onPlaying,
|
|
288
|
+
onPlayingCapture,
|
|
289
|
+
onPointerCancel,
|
|
290
|
+
onPointerCancelCapture,
|
|
291
|
+
onPointerDown,
|
|
292
|
+
onPointerDownCapture,
|
|
293
|
+
onPointerEnter,
|
|
294
|
+
onPointerEnterCapture,
|
|
295
|
+
onPointerLeave,
|
|
296
|
+
onPointerLeaveCapture,
|
|
297
|
+
onPointerMove,
|
|
298
|
+
onPointerMoveCapture,
|
|
299
|
+
onPointerOut,
|
|
300
|
+
onPointerOutCapture,
|
|
301
|
+
onPointerOver,
|
|
302
|
+
onPointerOverCapture,
|
|
303
|
+
onPointerUp,
|
|
304
|
+
onPointerUpCapture,
|
|
305
|
+
onProgress,
|
|
306
|
+
onProgressCapture,
|
|
307
|
+
onRateChange,
|
|
308
|
+
onRateChangeCapture,
|
|
309
|
+
onReset,
|
|
310
|
+
onResetCapture,
|
|
311
|
+
onScroll,
|
|
312
|
+
onScrollCapture,
|
|
313
|
+
onSeeked,
|
|
314
|
+
onSeekedCapture,
|
|
315
|
+
onSeeking,
|
|
316
|
+
onSeekingCapture,
|
|
317
|
+
onSelect,
|
|
318
|
+
onSelectCapture,
|
|
319
|
+
onStalled,
|
|
320
|
+
onStalledCapture,
|
|
321
|
+
onSubmit,
|
|
322
|
+
onSubmitCapture,
|
|
323
|
+
onSuspend,
|
|
324
|
+
onSuspendCapture,
|
|
325
|
+
onTimeUpdate,
|
|
326
|
+
onTimeUpdateCapture,
|
|
327
|
+
onTouchCancel,
|
|
328
|
+
onTouchCancelCapture,
|
|
329
|
+
onTouchEnd,
|
|
330
|
+
onTouchEndCapture,
|
|
331
|
+
onTouchMove,
|
|
332
|
+
onTouchMoveCapture,
|
|
333
|
+
onTouchStart,
|
|
334
|
+
onTouchStartCapture,
|
|
335
|
+
onTransitionEnd,
|
|
336
|
+
onTransitionEndCapture,
|
|
337
|
+
onVolumeChange,
|
|
338
|
+
onVolumeChangeCapture,
|
|
339
|
+
onWaiting,
|
|
340
|
+
onWaitingCapture,
|
|
341
|
+
onWheel,
|
|
342
|
+
onWheelCapture,
|
|
343
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AreaProps,
|
|
3
|
+
BarProps,
|
|
4
|
+
LineProps,
|
|
5
|
+
PieProps,
|
|
6
|
+
RadarProps,
|
|
7
|
+
RadialBarProps,
|
|
8
|
+
XAxisProps,
|
|
9
|
+
YAxisProps,
|
|
10
|
+
} from "recharts";
|
|
11
|
+
import { type ArgTypes } from "@storybook/react";
|
|
12
|
+
import { type CategoricalChartProps } from "recharts/types/chart/generateCategoricalChart";
|
|
13
|
+
import type { Flatten } from "./types";
|
|
14
|
+
import { categorizeArgs } from "../helpers";
|
|
15
|
+
import { areaArgs } from "./areaArgs";
|
|
16
|
+
import { areaChartArgs as areaChartComponentArgs } from "./areaChartArgs";
|
|
17
|
+
import { barArgs } from "./barArgs";
|
|
18
|
+
import { barChartArgs as barChartComponentArgs } from "./barChartArgs";
|
|
19
|
+
import { lineArgs } from "./lineArgs";
|
|
20
|
+
import { lineChartArgs as lineChartComponentArgs } from "./lineChartArgs";
|
|
21
|
+
import { pieArgs } from "./pieArgs";
|
|
22
|
+
import { pieChartArgs as pieChartComponentArgs } from "./pieChartArgs";
|
|
23
|
+
import { radarArgs } from "./radarArgs";
|
|
24
|
+
import { radarChartArgs as radarChartComponentArgs } from "./radarChartArgs";
|
|
25
|
+
import { radialBarArgs } from "./radialBarArgs";
|
|
26
|
+
import { radialBarChartArgs as radialBarChartComponentArgs } from "./radialBarChartArgs";
|
|
27
|
+
import { OmitSVGElement } from "./types";
|
|
28
|
+
import { xAxisArgs } from "./xAxisArgs";
|
|
29
|
+
import { yAxisArgs } from "./yAxisArgs";
|
|
30
|
+
|
|
31
|
+
type AxisProps = {
|
|
32
|
+
xAxis: OmitSVGElement<XAxisProps>;
|
|
33
|
+
yAxis: OmitSVGElement<YAxisProps>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Bar chart
|
|
38
|
+
*/
|
|
39
|
+
type BarArgKey = "bar" | "barChart" | "xAxis" | "yAxis";
|
|
40
|
+
|
|
41
|
+
export type BarChartProps = {
|
|
42
|
+
bar: OmitSVGElement<BarProps>;
|
|
43
|
+
barChart: CategoricalChartProps;
|
|
44
|
+
} & AxisProps;
|
|
45
|
+
|
|
46
|
+
export type BarChartArgs = Partial<Flatten<BarChartProps>> & {};
|
|
47
|
+
|
|
48
|
+
const barArgKey = {
|
|
49
|
+
bar: "bar",
|
|
50
|
+
barChart: "barChart",
|
|
51
|
+
xAxis: "xAxis",
|
|
52
|
+
yAxis: "yAxis",
|
|
53
|
+
} satisfies Record<string, BarArgKey>;
|
|
54
|
+
|
|
55
|
+
export const barChartArgs = {
|
|
56
|
+
...categorizeArgs(barChartComponentArgs, barArgKey.barChart),
|
|
57
|
+
...categorizeArgs(xAxisArgs, barArgKey.xAxis),
|
|
58
|
+
...categorizeArgs(yAxisArgs, barArgKey.yAxis),
|
|
59
|
+
...categorizeArgs(barArgs, barArgKey.bar),
|
|
60
|
+
} satisfies ArgTypes;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Line chart
|
|
64
|
+
*/
|
|
65
|
+
type LineArgKey = "line" | "lineChart" | "xAxis" | "yAxis";
|
|
66
|
+
|
|
67
|
+
export type LineChartProps = {
|
|
68
|
+
line: OmitSVGElement<LineProps>;
|
|
69
|
+
lineChart: CategoricalChartProps;
|
|
70
|
+
} & AxisProps;
|
|
71
|
+
|
|
72
|
+
export type LineChartArgs = Partial<Flatten<LineChartProps>> & {};
|
|
73
|
+
|
|
74
|
+
const lineArgKey = {
|
|
75
|
+
line: "line",
|
|
76
|
+
lineChart: "lineChart",
|
|
77
|
+
xAxis: "xAxis",
|
|
78
|
+
yAxis: "yAxis",
|
|
79
|
+
} satisfies Record<string, LineArgKey>;
|
|
80
|
+
|
|
81
|
+
export const lineChartArgs = {
|
|
82
|
+
...categorizeArgs(lineChartComponentArgs, lineArgKey.lineChart),
|
|
83
|
+
...categorizeArgs(xAxisArgs, lineArgKey.xAxis),
|
|
84
|
+
...categorizeArgs(yAxisArgs, lineArgKey.yAxis),
|
|
85
|
+
...categorizeArgs(lineArgs, lineArgKey.line),
|
|
86
|
+
} satisfies ArgTypes;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Area chart
|
|
90
|
+
*/
|
|
91
|
+
type AreaArgKey = "area" | "areaChart" | "xAxis" | "yAxis";
|
|
92
|
+
|
|
93
|
+
export type AreaChartProps = {
|
|
94
|
+
area: OmitSVGElement<AreaProps>;
|
|
95
|
+
areaChart: CategoricalChartProps;
|
|
96
|
+
} & AxisProps;
|
|
97
|
+
|
|
98
|
+
export type AreaChartArgs = Partial<Flatten<AreaChartProps>> & {};
|
|
99
|
+
|
|
100
|
+
export const areaArgKey = {
|
|
101
|
+
area: "area",
|
|
102
|
+
areaChart: "areaChart",
|
|
103
|
+
xAxis: "xAxis",
|
|
104
|
+
yAxis: "yAxis",
|
|
105
|
+
} satisfies Record<string, AreaArgKey>;
|
|
106
|
+
|
|
107
|
+
export const areaChartArgs = {
|
|
108
|
+
...categorizeArgs(areaChartComponentArgs, areaArgKey.areaChart),
|
|
109
|
+
...categorizeArgs(xAxisArgs, areaArgKey.xAxis),
|
|
110
|
+
...categorizeArgs(yAxisArgs, areaArgKey.yAxis),
|
|
111
|
+
...categorizeArgs(areaArgs, areaArgKey.area),
|
|
112
|
+
} satisfies ArgTypes;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Pie chart
|
|
116
|
+
*/
|
|
117
|
+
type PieArgKey = "pie" | "pieChart";
|
|
118
|
+
|
|
119
|
+
export type PieChartProps = {
|
|
120
|
+
pie: OmitSVGElement<PieProps>;
|
|
121
|
+
pieChart: CategoricalChartProps;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type PieChartArgs = Partial<Flatten<PieChartProps>> & {};
|
|
125
|
+
|
|
126
|
+
export const pieArgKey = {
|
|
127
|
+
pie: "pie",
|
|
128
|
+
pieChart: "pieChart",
|
|
129
|
+
} satisfies Record<string, PieArgKey>;
|
|
130
|
+
|
|
131
|
+
export const pieChartArgs = {
|
|
132
|
+
...categorizeArgs(pieChartComponentArgs, pieArgKey.pieChart),
|
|
133
|
+
...categorizeArgs(pieArgs, pieArgKey.pie),
|
|
134
|
+
} satisfies ArgTypes;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* RadialBar chart
|
|
138
|
+
*/
|
|
139
|
+
type RadialBarArgKey = "radialBar" | "radialBarChart";
|
|
140
|
+
|
|
141
|
+
export type RadialBarChartProps = {
|
|
142
|
+
radialBar: OmitSVGElement<RadialBarProps>;
|
|
143
|
+
radialBarChart: CategoricalChartProps;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export type RadialBarChartArgs = Partial<Flatten<RadialBarChartProps>> & {};
|
|
147
|
+
|
|
148
|
+
export const radialBarArgKey = {
|
|
149
|
+
radialBar: "radialBar",
|
|
150
|
+
radialBarChart: "radialBarChart",
|
|
151
|
+
} satisfies Record<string, RadialBarArgKey>;
|
|
152
|
+
|
|
153
|
+
export const radialBarChartArgs = {
|
|
154
|
+
...categorizeArgs(radialBarChartComponentArgs, radialBarArgKey.radialBarChart),
|
|
155
|
+
...categorizeArgs(radialBarArgs, radialBarArgKey.radialBar),
|
|
156
|
+
} satisfies ArgTypes;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Radar chart
|
|
160
|
+
*/
|
|
161
|
+
type RadarArgKey = "radar" | "radarChart";
|
|
162
|
+
|
|
163
|
+
export type RadarChartProps = {
|
|
164
|
+
radar: OmitSVGElement<RadarProps>;
|
|
165
|
+
radarChart: CategoricalChartProps;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export type RadarChartArgs = Partial<Flatten<RadarChartProps>> & {};
|
|
169
|
+
|
|
170
|
+
export const radarArgKey = {
|
|
171
|
+
radar: "radar",
|
|
172
|
+
radarChart: "radarChart",
|
|
173
|
+
} satisfies Record<string, RadarArgKey>;
|
|
174
|
+
|
|
175
|
+
export const radarChartArgs = {
|
|
176
|
+
...categorizeArgs(radarChartComponentArgs, radarArgKey.radarChart),
|
|
177
|
+
...categorizeArgs(radarArgs, radarArgKey.radar),
|
|
178
|
+
} satisfies ArgTypes;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { type ArgTypes } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
export const labelListArgs: ArgTypes = {
|
|
4
|
+
dataKey: {
|
|
5
|
+
description: "The key of a group of label values in data.",
|
|
6
|
+
table: {
|
|
7
|
+
type: {
|
|
8
|
+
summary: "String | Number | Function",
|
|
9
|
+
},
|
|
10
|
+
category: "General",
|
|
11
|
+
},
|
|
12
|
+
control: "text",
|
|
13
|
+
},
|
|
14
|
+
valueAccessor: {
|
|
15
|
+
description: "The accessor function to get the value of each label.",
|
|
16
|
+
table: {
|
|
17
|
+
category: "General",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
content: {
|
|
21
|
+
description:
|
|
22
|
+
"If set a React element, the option is the customized react element of rendering each label. " +
|
|
23
|
+
"If set a function, the function will be called to render each label content.",
|
|
24
|
+
defaultValue: null,
|
|
25
|
+
table: {
|
|
26
|
+
category: "General",
|
|
27
|
+
type: {
|
|
28
|
+
summary: "ReactElement | Function",
|
|
29
|
+
detail:
|
|
30
|
+
"<Label content={<CustomizedLabel external={external} />} />\n<Label content={renderLabel} />",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
position: {
|
|
35
|
+
description: "The position of each label relative to it view box.",
|
|
36
|
+
table: {
|
|
37
|
+
type: {
|
|
38
|
+
summary: `'top' | 'left' | 'right' | 'bottom' | 'inside' | 'outside' | 'insideLeft' |
|
|
39
|
+
'insideRight' | 'insideTop' | 'insideBottom' | 'insideTopLeft' |
|
|
40
|
+
'insideBottomLeft' | 'insideTopRight' | 'insideBottomRight' |
|
|
41
|
+
'insideStart' | 'insideEnd' | 'end' | 'center' | 'centerTop' | 'centerBottom' | 'middle'`,
|
|
42
|
+
},
|
|
43
|
+
category: "General",
|
|
44
|
+
},
|
|
45
|
+
control: "select",
|
|
46
|
+
options: [
|
|
47
|
+
"top",
|
|
48
|
+
"left",
|
|
49
|
+
"right",
|
|
50
|
+
"bottom",
|
|
51
|
+
"inside",
|
|
52
|
+
"outside",
|
|
53
|
+
"insideLeft",
|
|
54
|
+
"insideRight",
|
|
55
|
+
"insideTop",
|
|
56
|
+
"insideBottom",
|
|
57
|
+
"insideTopLeft",
|
|
58
|
+
"insideBottomLeft",
|
|
59
|
+
"insideTopRight",
|
|
60
|
+
"insideBottomRight",
|
|
61
|
+
"insideStart",
|
|
62
|
+
"insideEnd",
|
|
63
|
+
"end",
|
|
64
|
+
"center",
|
|
65
|
+
"centerTop",
|
|
66
|
+
"centerBottom",
|
|
67
|
+
"middle",
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
offset: {
|
|
71
|
+
description: 'The offset to the specified "position"',
|
|
72
|
+
table: {
|
|
73
|
+
type: {
|
|
74
|
+
summary: "number",
|
|
75
|
+
},
|
|
76
|
+
defaultValue: {
|
|
77
|
+
summary: "5",
|
|
78
|
+
},
|
|
79
|
+
category: "General",
|
|
80
|
+
},
|
|
81
|
+
control: "number",
|
|
82
|
+
},
|
|
83
|
+
formatter: {
|
|
84
|
+
description:
|
|
85
|
+
"The formatter function of label value which has only one parameter - the value of label.",
|
|
86
|
+
table: {
|
|
87
|
+
type: {
|
|
88
|
+
summary: "Function",
|
|
89
|
+
},
|
|
90
|
+
category: "General",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
data: {
|
|
94
|
+
description: "The data input to the charts.",
|
|
95
|
+
table: {
|
|
96
|
+
type: {
|
|
97
|
+
summary: "number",
|
|
98
|
+
},
|
|
99
|
+
defaultValue: {
|
|
100
|
+
summary: "5",
|
|
101
|
+
},
|
|
102
|
+
category: "General",
|
|
103
|
+
},
|
|
104
|
+
control: "number",
|
|
105
|
+
},
|
|
106
|
+
clockWise: {
|
|
107
|
+
description: "The parameter to calculate the view box of label in radial charts.",
|
|
108
|
+
table: {
|
|
109
|
+
type: {
|
|
110
|
+
summary: "boolean",
|
|
111
|
+
},
|
|
112
|
+
category: "General",
|
|
113
|
+
},
|
|
114
|
+
control: "boolean",
|
|
115
|
+
},
|
|
116
|
+
id: {
|
|
117
|
+
description:
|
|
118
|
+
"The unique id of this component, which will be used to generate " +
|
|
119
|
+
"unique clip path id internally. This props is suggested to be set in SSR.",
|
|
120
|
+
table: {
|
|
121
|
+
category: "General",
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
};
|