@pie-lib/graphing-solution-set 2.34.3-next.2 → 2.34.3-next.203
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/CHANGELOG.md +15 -67
- package/lib/axis/arrow.js +19 -55
- package/lib/axis/arrow.js.map +1 -1
- package/lib/axis/axes.js +103 -193
- package/lib/axis/axes.js.map +1 -1
- package/lib/axis/index.js +1 -6
- package/lib/axis/index.js.map +1 -1
- package/lib/bg.js +21 -49
- package/lib/bg.js.map +1 -1
- package/lib/container/actions.js +2 -8
- package/lib/container/actions.js.map +1 -1
- package/lib/container/index.js +14 -60
- package/lib/container/index.js.map +1 -1
- package/lib/container/marks.js +1 -6
- package/lib/container/marks.js.map +1 -1
- package/lib/container/middleware.js +2 -8
- package/lib/container/middleware.js.map +1 -1
- package/lib/container/reducer.js +1 -8
- package/lib/container/reducer.js.map +1 -1
- package/lib/coordinates-label.js +23 -55
- package/lib/coordinates-label.js.map +1 -1
- package/lib/graph-with-controls.js +129 -203
- package/lib/graph-with-controls.js.map +1 -1
- package/lib/graph.js +61 -126
- package/lib/graph.js.map +1 -1
- package/lib/grid-setup.js +169 -225
- package/lib/grid-setup.js.map +1 -1
- package/lib/grid.js +29 -74
- package/lib/grid.js.map +1 -1
- package/lib/index.js +1 -12
- package/lib/index.js.map +1 -1
- package/lib/labels.js +85 -185
- package/lib/labels.js.map +1 -1
- package/lib/mark-label.js +39 -88
- package/lib/mark-label.js.map +1 -1
- package/lib/toggle-bar.js +155 -243
- package/lib/toggle-bar.js.map +1 -1
- package/lib/tool-menu.js +93 -200
- package/lib/tool-menu.js.map +1 -1
- package/lib/tools/index.js +2 -7
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/line/component.js +48 -62
- package/lib/tools/line/component.js.map +1 -1
- package/lib/tools/line/index.js +1 -6
- package/lib/tools/line/index.js.map +1 -1
- package/lib/tools/polygon/component.js +76 -173
- package/lib/tools/polygon/component.js.map +1 -1
- package/lib/tools/polygon/index.js +6 -23
- package/lib/tools/polygon/index.js.map +1 -1
- package/lib/tools/polygon/line.js +48 -85
- package/lib/tools/polygon/line.js.map +1 -1
- package/lib/tools/polygon/polygon.js +62 -102
- package/lib/tools/polygon/polygon.js.map +1 -1
- package/lib/tools/shared/arrow-head.js +7 -20
- package/lib/tools/shared/arrow-head.js.map +1 -1
- package/lib/tools/shared/line/index.js +89 -185
- package/lib/tools/shared/line/index.js.map +1 -1
- package/lib/tools/shared/line/line-path.js +71 -95
- package/lib/tools/shared/line/line-path.js.map +1 -1
- package/lib/tools/shared/line/with-root-edge.js +22 -56
- package/lib/tools/shared/line/with-root-edge.js.map +1 -1
- package/lib/tools/shared/point/arrow-point.js +18 -45
- package/lib/tools/shared/point/arrow-point.js.map +1 -1
- package/lib/tools/shared/point/arrow.js +16 -42
- package/lib/tools/shared/point/arrow.js.map +1 -1
- package/lib/tools/shared/point/base-point.js +44 -58
- package/lib/tools/shared/point/base-point.js.map +1 -1
- package/lib/tools/shared/point/index.js +38 -52
- package/lib/tools/shared/point/index.js.map +1 -1
- package/lib/tools/shared/styles.js +8 -31
- package/lib/tools/shared/styles.js.map +1 -1
- package/lib/tools/shared/types.js +1 -5
- package/lib/tools/shared/types.js.map +1 -1
- package/lib/undo-redo.js +27 -67
- package/lib/undo-redo.js.map +1 -1
- package/lib/use-debounce.js +4 -11
- package/lib/use-debounce.js.map +1 -1
- package/lib/utils.js +56 -131
- package/lib/utils.js.map +1 -1
- package/package.json +26 -31
- package/src/__tests__/graph-with-controls.test.jsx +23 -10
- package/src/__tests__/graph.test.jsx +36 -171
- package/src/__tests__/grid.test.jsx +9 -6
- package/src/__tests__/labels.test.jsx +11 -8
- package/src/__tests__/mark-label.test.jsx +15 -17
- package/src/__tests__/toggle-bar.test.jsx +46 -17
- package/src/__tests__/tool-menu.test.jsx +12 -8
- package/src/__tests__/undo-redo.test.jsx +9 -8
- package/src/__tests__/utils.js +3 -0
- package/src/axis/__tests__/arrow.test.jsx +21 -17
- package/src/axis/__tests__/axes.test.jsx +117 -155
- package/src/axis/arrow.jsx +7 -12
- package/src/axis/axes.jsx +41 -51
- package/src/coordinates-label.jsx +13 -18
- package/src/graph-with-controls.jsx +90 -93
- package/src/grid-setup.jsx +203 -205
- package/src/grid.jsx +2 -4
- package/src/labels.jsx +84 -125
- package/src/mark-label.jsx +14 -25
- package/src/toggle-bar.jsx +135 -163
- package/src/tool-menu.jsx +136 -195
- package/src/tools/line/__tests__/component.test.jsx +7 -7
- package/src/tools/line/component.jsx +29 -29
- package/src/tools/polygon/__tests__/component.test.jsx +13 -152
- package/src/tools/polygon/__tests__/line.test.jsx +7 -9
- package/src/tools/polygon/__tests__/polygon.test.jsx +8 -8
- package/src/tools/polygon/component.jsx +2 -4
- package/src/tools/polygon/line.jsx +26 -24
- package/src/tools/polygon/polygon.jsx +35 -40
- package/src/tools/shared/__tests__/arrow-head.test.jsx +16 -17
- package/src/tools/shared/line/__tests__/index.test.jsx +26 -163
- package/src/tools/shared/line/__tests__/line-path.test.jsx +9 -9
- package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +14 -24
- package/src/tools/shared/line/index.jsx +3 -3
- package/src/tools/shared/line/line-path.jsx +51 -48
- package/src/tools/shared/line/with-root-edge.jsx +1 -1
- package/src/tools/shared/point/__tests__/arrow-point.test.jsx +15 -11
- package/src/tools/shared/point/__tests__/base-point.test.jsx +14 -11
- package/src/tools/shared/point/base-point.jsx +33 -6
- package/src/tools/shared/point/index.jsx +30 -32
- package/src/undo-redo.jsx +16 -24
- package/esm/index.css +0 -847
- package/esm/index.js +0 -233259
- package/esm/index.js.map +0 -1
- package/esm/package.json +0 -3
- package/src/__tests__/__snapshots__/graph-with-controls.test.jsx.snap +0 -114
- package/src/__tests__/__snapshots__/graph.test.jsx.snap +0 -213
- package/src/__tests__/__snapshots__/grid.test.jsx.snap +0 -54
- package/src/__tests__/__snapshots__/labels.test.jsx.snap +0 -30
- package/src/__tests__/__snapshots__/mark-label.test.jsx.snap +0 -37
- package/src/__tests__/__snapshots__/toggle-bar.test.jsx.snap +0 -7
- package/src/__tests__/__snapshots__/tool-menu.test.jsx.snap +0 -35
- package/src/__tests__/__snapshots__/undo-redo.test.jsx.snap +0 -15
- package/src/axis/__tests__/__snapshots__/arrow.test.jsx.snap +0 -33
- package/src/axis/__tests__/__snapshots__/axes.test.jsx.snap +0 -122
- package/src/tools/line/__tests__/__snapshots__/component.test.jsx.snap +0 -20
- package/src/tools/polygon/__tests__/__snapshots__/component.test.jsx.snap +0 -94
- package/src/tools/polygon/__tests__/__snapshots__/line.test.jsx.snap +0 -44
- package/src/tools/polygon/__tests__/__snapshots__/polygon.test.jsx.snap +0 -53
- package/src/tools/shared/__tests__/__snapshots__/arrow-head.test.jsx.snap +0 -32
- package/src/tools/shared/line/__tests__/__snapshots__/index.test.jsx.snap +0 -360
- package/src/tools/shared/line/__tests__/__snapshots__/line-path.test.jsx.snap +0 -57
- package/src/tools/shared/line/__tests__/__snapshots__/with-root-edge.test.jsx.snap +0 -63
- package/src/tools/shared/point/__tests__/__snapshots__/arrow-point.test.jsx.snap +0 -55
- package/src/tools/shared/point/__tests__/__snapshots__/base-point.test.jsx.snap +0 -43
package/esm/package.json
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`GraphWithControls snapshot renders 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
className=""
|
|
6
|
-
>
|
|
7
|
-
<div />
|
|
8
|
-
<div />
|
|
9
|
-
<Graph
|
|
10
|
-
axesSettings={
|
|
11
|
-
Object {
|
|
12
|
-
"includeArrows": true,
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
backgroundMarks={Array []}
|
|
16
|
-
coordinatesOnHover={false}
|
|
17
|
-
currentTool={
|
|
18
|
-
Object {
|
|
19
|
-
"Component": [Function],
|
|
20
|
-
"addPoint": [Function],
|
|
21
|
-
"toolbar": true,
|
|
22
|
-
"type": "line",
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
disabled={false}
|
|
26
|
-
disabledLabels={false}
|
|
27
|
-
disabledTitle={false}
|
|
28
|
-
domain={
|
|
29
|
-
Object {
|
|
30
|
-
"max": 10,
|
|
31
|
-
"min": 0,
|
|
32
|
-
"step": 1,
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
labelModeEnabled={false}
|
|
36
|
-
labels={
|
|
37
|
-
Object {
|
|
38
|
-
"bottom": "d",
|
|
39
|
-
"left": "b",
|
|
40
|
-
"right": "c",
|
|
41
|
-
"top": "a",
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
marks={
|
|
45
|
-
Array [
|
|
46
|
-
Object {
|
|
47
|
-
"building": true,
|
|
48
|
-
"from": Object {
|
|
49
|
-
"x": 0,
|
|
50
|
-
"y": 0,
|
|
51
|
-
},
|
|
52
|
-
"label": "Line",
|
|
53
|
-
"to": Object {
|
|
54
|
-
"x": 1,
|
|
55
|
-
"y": 1,
|
|
56
|
-
},
|
|
57
|
-
"type": "line",
|
|
58
|
-
},
|
|
59
|
-
Object {
|
|
60
|
-
"points": Array [
|
|
61
|
-
Object {
|
|
62
|
-
"x": 0,
|
|
63
|
-
"y": 0,
|
|
64
|
-
},
|
|
65
|
-
Object {
|
|
66
|
-
"x": 1,
|
|
67
|
-
"y": 1,
|
|
68
|
-
},
|
|
69
|
-
Object {
|
|
70
|
-
"x": 2,
|
|
71
|
-
"y": 2,
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
"type": "polygon",
|
|
75
|
-
},
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
onChangeMarks={[MockFunction]}
|
|
79
|
-
range={
|
|
80
|
-
Object {
|
|
81
|
-
"max": 10,
|
|
82
|
-
"min": 0,
|
|
83
|
-
"step": 1,
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
showLabels={true}
|
|
87
|
-
showTitle={true}
|
|
88
|
-
size={
|
|
89
|
-
Object {
|
|
90
|
-
"height": 500,
|
|
91
|
-
"width": 500,
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
title="Title"
|
|
95
|
-
tools={
|
|
96
|
-
Array [
|
|
97
|
-
Object {
|
|
98
|
-
"Component": [Function],
|
|
99
|
-
"addPoint": [Function],
|
|
100
|
-
"toolbar": true,
|
|
101
|
-
"type": "line",
|
|
102
|
-
},
|
|
103
|
-
Object {
|
|
104
|
-
"Component": [Function],
|
|
105
|
-
"addPoint": [Function],
|
|
106
|
-
"complete": [Function],
|
|
107
|
-
"toolbar": true,
|
|
108
|
-
"type": "polygon",
|
|
109
|
-
},
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
/>
|
|
113
|
-
</div>
|
|
114
|
-
`;
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Graph snapshot renders 1`] = `
|
|
4
|
-
<WithStyles(Root)
|
|
5
|
-
disabledLabels={false}
|
|
6
|
-
disabledTitle={false}
|
|
7
|
-
graphProps={
|
|
8
|
-
Object {
|
|
9
|
-
"domain": Object {
|
|
10
|
-
"max": 1,
|
|
11
|
-
"min": 0,
|
|
12
|
-
"step": 1,
|
|
13
|
-
},
|
|
14
|
-
"getRootNode": [Function],
|
|
15
|
-
"range": Object {
|
|
16
|
-
"max": 1,
|
|
17
|
-
"min": 0,
|
|
18
|
-
"step": 1,
|
|
19
|
-
},
|
|
20
|
-
"scale": Object {
|
|
21
|
-
"x": [Function],
|
|
22
|
-
"y": [Function],
|
|
23
|
-
},
|
|
24
|
-
"size": Object {
|
|
25
|
-
"height": 400,
|
|
26
|
-
"width": 400,
|
|
27
|
-
},
|
|
28
|
-
"snap": Object {
|
|
29
|
-
"x": [Function],
|
|
30
|
-
"y": [Function],
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
labelsPlaceholders={Object {}}
|
|
35
|
-
mathMlOptions={Object {}}
|
|
36
|
-
rootRef={[Function]}
|
|
37
|
-
>
|
|
38
|
-
<g>
|
|
39
|
-
<WithStyles(Grid)
|
|
40
|
-
graphProps={
|
|
41
|
-
Object {
|
|
42
|
-
"domain": Object {
|
|
43
|
-
"max": 1,
|
|
44
|
-
"min": 0,
|
|
45
|
-
"step": 1,
|
|
46
|
-
},
|
|
47
|
-
"getRootNode": [Function],
|
|
48
|
-
"range": Object {
|
|
49
|
-
"max": 1,
|
|
50
|
-
"min": 0,
|
|
51
|
-
"step": 1,
|
|
52
|
-
},
|
|
53
|
-
"scale": Object {
|
|
54
|
-
"x": [Function],
|
|
55
|
-
"y": [Function],
|
|
56
|
-
},
|
|
57
|
-
"size": Object {
|
|
58
|
-
"height": 400,
|
|
59
|
-
"width": 400,
|
|
60
|
-
},
|
|
61
|
-
"snap": Object {
|
|
62
|
-
"x": [Function],
|
|
63
|
-
"y": [Function],
|
|
64
|
-
},
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
/>
|
|
68
|
-
<Axes
|
|
69
|
-
graphProps={
|
|
70
|
-
Object {
|
|
71
|
-
"domain": Object {
|
|
72
|
-
"max": 1,
|
|
73
|
-
"min": 0,
|
|
74
|
-
"step": 1,
|
|
75
|
-
},
|
|
76
|
-
"getRootNode": [Function],
|
|
77
|
-
"range": Object {
|
|
78
|
-
"max": 1,
|
|
79
|
-
"min": 0,
|
|
80
|
-
"step": 1,
|
|
81
|
-
},
|
|
82
|
-
"scale": Object {
|
|
83
|
-
"x": [Function],
|
|
84
|
-
"y": [Function],
|
|
85
|
-
},
|
|
86
|
-
"size": Object {
|
|
87
|
-
"height": 400,
|
|
88
|
-
"width": 400,
|
|
89
|
-
},
|
|
90
|
-
"snap": Object {
|
|
91
|
-
"x": [Function],
|
|
92
|
-
"y": [Function],
|
|
93
|
-
},
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
includeArrows={
|
|
97
|
-
Object {
|
|
98
|
-
"down": true,
|
|
99
|
-
"left": true,
|
|
100
|
-
"right": true,
|
|
101
|
-
"up": true,
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/>
|
|
105
|
-
<Bg
|
|
106
|
-
graphProps={
|
|
107
|
-
Object {
|
|
108
|
-
"domain": Object {
|
|
109
|
-
"max": 1,
|
|
110
|
-
"min": 0,
|
|
111
|
-
"step": 1,
|
|
112
|
-
},
|
|
113
|
-
"getRootNode": [Function],
|
|
114
|
-
"range": Object {
|
|
115
|
-
"max": 1,
|
|
116
|
-
"min": 0,
|
|
117
|
-
"step": 1,
|
|
118
|
-
},
|
|
119
|
-
"scale": Object {
|
|
120
|
-
"x": [Function],
|
|
121
|
-
"y": [Function],
|
|
122
|
-
},
|
|
123
|
-
"size": Object {
|
|
124
|
-
"height": 400,
|
|
125
|
-
"width": 400,
|
|
126
|
-
},
|
|
127
|
-
"snap": Object {
|
|
128
|
-
"x": [Function],
|
|
129
|
-
"y": [Function],
|
|
130
|
-
},
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
height={400}
|
|
134
|
-
onClick={[Function]}
|
|
135
|
-
width={400}
|
|
136
|
-
/>
|
|
137
|
-
<mask
|
|
138
|
-
id="graph-1618"
|
|
139
|
-
>
|
|
140
|
-
<rect
|
|
141
|
-
fill="white"
|
|
142
|
-
height={446}
|
|
143
|
-
width={446}
|
|
144
|
-
x={-23}
|
|
145
|
-
y={-23}
|
|
146
|
-
/>
|
|
147
|
-
|
|
148
|
-
</mask>
|
|
149
|
-
<g
|
|
150
|
-
id="marks"
|
|
151
|
-
mask="url('#graph-1618')"
|
|
152
|
-
>
|
|
153
|
-
<LineToolComponent
|
|
154
|
-
graphProps={
|
|
155
|
-
Object {
|
|
156
|
-
"domain": Object {
|
|
157
|
-
"max": 1,
|
|
158
|
-
"min": 0,
|
|
159
|
-
"step": 1,
|
|
160
|
-
},
|
|
161
|
-
"getRootNode": [Function],
|
|
162
|
-
"range": Object {
|
|
163
|
-
"max": 1,
|
|
164
|
-
"min": 0,
|
|
165
|
-
"step": 1,
|
|
166
|
-
},
|
|
167
|
-
"scale": Object {
|
|
168
|
-
"x": [Function],
|
|
169
|
-
"y": [Function],
|
|
170
|
-
},
|
|
171
|
-
"size": Object {
|
|
172
|
-
"height": 400,
|
|
173
|
-
"width": 400,
|
|
174
|
-
},
|
|
175
|
-
"snap": Object {
|
|
176
|
-
"x": [Function],
|
|
177
|
-
"y": [Function],
|
|
178
|
-
},
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
isToolActive={true}
|
|
182
|
-
key="line-0"
|
|
183
|
-
mark={
|
|
184
|
-
Object {
|
|
185
|
-
"building": true,
|
|
186
|
-
"from": Object {
|
|
187
|
-
"x": 0,
|
|
188
|
-
"y": 0,
|
|
189
|
-
},
|
|
190
|
-
"label": "Line",
|
|
191
|
-
"type": "line",
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
onChange={[Function]}
|
|
195
|
-
onClick={[Function]}
|
|
196
|
-
onComplete={[Function]}
|
|
197
|
-
/>
|
|
198
|
-
<foreignObject
|
|
199
|
-
height={400}
|
|
200
|
-
style={
|
|
201
|
-
Object {
|
|
202
|
-
"fontSize": "14px",
|
|
203
|
-
"pointerEvents": "none",
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
width={400}
|
|
207
|
-
x="0"
|
|
208
|
-
y="0"
|
|
209
|
-
/>
|
|
210
|
-
</g>
|
|
211
|
-
</g>
|
|
212
|
-
</WithStyles(Root)>
|
|
213
|
-
`;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Grid snapshot renders 1`] = `
|
|
4
|
-
<Fragment>
|
|
5
|
-
<r
|
|
6
|
-
columnTickValues={
|
|
7
|
-
Array [
|
|
8
|
-
0,
|
|
9
|
-
1,
|
|
10
|
-
]
|
|
11
|
-
}
|
|
12
|
-
height={400}
|
|
13
|
-
innerRef={[Function]}
|
|
14
|
-
rowTickValues={
|
|
15
|
-
Array [
|
|
16
|
-
0,
|
|
17
|
-
1,
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
stroke="#D3D3D3"
|
|
21
|
-
width={400}
|
|
22
|
-
xScale={
|
|
23
|
-
[MockFunction] {
|
|
24
|
-
"calls": Array [
|
|
25
|
-
Array [
|
|
26
|
-
0,
|
|
27
|
-
],
|
|
28
|
-
],
|
|
29
|
-
"results": Array [
|
|
30
|
-
Object {
|
|
31
|
-
"type": "return",
|
|
32
|
-
"value": 0,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
yScale={
|
|
38
|
-
[MockFunction] {
|
|
39
|
-
"calls": Array [
|
|
40
|
-
Array [
|
|
41
|
-
0,
|
|
42
|
-
],
|
|
43
|
-
],
|
|
44
|
-
"results": Array [
|
|
45
|
-
Object {
|
|
46
|
-
"type": "return",
|
|
47
|
-
"value": 0,
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/>
|
|
53
|
-
</Fragment>
|
|
54
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Labels snapshot renders 1`] = `
|
|
4
|
-
<Fragment>
|
|
5
|
-
<WithStyles(RawLabel)
|
|
6
|
-
key="left"
|
|
7
|
-
mathMlOptions={Object {}}
|
|
8
|
-
onChange={[Function]}
|
|
9
|
-
side="left"
|
|
10
|
-
/>
|
|
11
|
-
<WithStyles(RawLabel)
|
|
12
|
-
key="top"
|
|
13
|
-
mathMlOptions={Object {}}
|
|
14
|
-
onChange={[Function]}
|
|
15
|
-
side="top"
|
|
16
|
-
/>
|
|
17
|
-
<WithStyles(RawLabel)
|
|
18
|
-
key="bottom"
|
|
19
|
-
mathMlOptions={Object {}}
|
|
20
|
-
onChange={[Function]}
|
|
21
|
-
side="bottom"
|
|
22
|
-
/>
|
|
23
|
-
<WithStyles(RawLabel)
|
|
24
|
-
key="right"
|
|
25
|
-
mathMlOptions={Object {}}
|
|
26
|
-
onChange={[Function]}
|
|
27
|
-
side="right"
|
|
28
|
-
/>
|
|
29
|
-
</Fragment>
|
|
30
|
-
`;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`MarkLabel snapshot renders 1`] = `
|
|
4
|
-
<AutosizeInput
|
|
5
|
-
injectStyles={true}
|
|
6
|
-
inputClassName=""
|
|
7
|
-
inputRef={[Function]}
|
|
8
|
-
minWidth={1}
|
|
9
|
-
onChange={[Function]}
|
|
10
|
-
style={
|
|
11
|
-
Object {
|
|
12
|
-
"left": -9,
|
|
13
|
-
"pointerEvents": "auto",
|
|
14
|
-
"position": "fixed",
|
|
15
|
-
"top": -9,
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/>
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
exports[`MarkLabel snapshot renders 2`] = `
|
|
22
|
-
<AutosizeInput
|
|
23
|
-
injectStyles={true}
|
|
24
|
-
inputClassName=""
|
|
25
|
-
inputRef={[Function]}
|
|
26
|
-
minWidth={1}
|
|
27
|
-
onChange={[Function]}
|
|
28
|
-
style={
|
|
29
|
-
Object {
|
|
30
|
-
"left": 0,
|
|
31
|
-
"pointerEvents": "auto",
|
|
32
|
-
"position": "fixed",
|
|
33
|
-
"top": 0,
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
/>
|
|
37
|
-
`;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`ToolMenu snapshot renders 1`] = `
|
|
4
|
-
<ToolMenu
|
|
5
|
-
className="className"
|
|
6
|
-
classes={
|
|
7
|
-
Object {
|
|
8
|
-
"lineNameFont": "ToolMenu-lineNameFont-7",
|
|
9
|
-
"lineTypeButtonLeftSelected": "ToolMenu-lineTypeButtonLeftSelected-8",
|
|
10
|
-
"lineTypeButtonLeftSelectedDisabled": "ToolMenu-lineTypeButtonLeftSelectedDisabled-13",
|
|
11
|
-
"lineTypeButtonLeftUnSelected": "ToolMenu-lineTypeButtonLeftUnSelected-9",
|
|
12
|
-
"lineTypeButtonLeftUnSelectedDisabled": "ToolMenu-lineTypeButtonLeftUnSelectedDisabled-14",
|
|
13
|
-
"lineTypeButtonRightSelected": "ToolMenu-lineTypeButtonRightSelected-10",
|
|
14
|
-
"lineTypeButtonRightSelectedDisabled": "ToolMenu-lineTypeButtonRightSelectedDisabled-15",
|
|
15
|
-
"lineTypeButtonRightUnSelected": "ToolMenu-lineTypeButtonRightUnSelected-11",
|
|
16
|
-
"lineTypeButtonRightUnSelectedDisabled": "ToolMenu-lineTypeButtonRightUnSelectedDisabled-16",
|
|
17
|
-
"lineTypeRadio": "ToolMenu-lineTypeRadio-12",
|
|
18
|
-
"lineTypeText": "ToolMenu-lineTypeText-6",
|
|
19
|
-
"radioButtonClass": "ToolMenu-radioButtonClass-1",
|
|
20
|
-
"radioFieldButtons": "ToolMenu-radioFieldButtons-5",
|
|
21
|
-
"radioFieldInner": "ToolMenu-radioFieldInner-3",
|
|
22
|
-
"radioFieldOuter": "ToolMenu-radioFieldOuter-4",
|
|
23
|
-
"selectLineRadioGroup": "ToolMenu-selectLineRadioGroup-2",
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
currentTool="one"
|
|
27
|
-
onChange={[MockFunction]}
|
|
28
|
-
tools={
|
|
29
|
-
Array [
|
|
30
|
-
"one",
|
|
31
|
-
"two",
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
/>
|
|
35
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`UndoRedo snapshot renders 1`] = `
|
|
4
|
-
<UndoRedo
|
|
5
|
-
classes={
|
|
6
|
-
Object {
|
|
7
|
-
"button": "UndoRedo-button-1",
|
|
8
|
-
"undoRedoDiv": "UndoRedo-undoRedoDiv-2",
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
onRedo={[MockFunction]}
|
|
12
|
-
onReset={[MockFunction]}
|
|
13
|
-
onUndo={[MockFunction]}
|
|
14
|
-
/>
|
|
15
|
-
`;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Arrow snapshot down 1`] = `
|
|
4
|
-
<path
|
|
5
|
-
className="className"
|
|
6
|
-
d="m 0,0 8,-5 0,10 -8,-5"
|
|
7
|
-
transform="translate(0, 15) rotate(270)"
|
|
8
|
-
/>
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
exports[`Arrow snapshot left 1`] = `
|
|
12
|
-
<path
|
|
13
|
-
className="className"
|
|
14
|
-
d="m 0,0 8,-5 0,10 -8,-5"
|
|
15
|
-
transform="translate(-15, 0) rotate(0)"
|
|
16
|
-
/>
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
exports[`Arrow snapshot right 1`] = `
|
|
20
|
-
<path
|
|
21
|
-
className="className"
|
|
22
|
-
d="m 0,0 8,-5 0,10 -8,-5"
|
|
23
|
-
transform="translate(15, 0) rotate(180)"
|
|
24
|
-
/>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports[`Arrow snapshot up 1`] = `
|
|
28
|
-
<path
|
|
29
|
-
className="className"
|
|
30
|
-
d="m 0,0 8,-5 0,10 -8,-5"
|
|
31
|
-
transform="translate(0, -15) rotate(90)"
|
|
32
|
-
/>
|
|
33
|
-
`;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`RawXAxis snapshot renders 1`] = `
|
|
4
|
-
<Fragment>
|
|
5
|
-
<F
|
|
6
|
-
left={0}
|
|
7
|
-
scale={[MockFunction]}
|
|
8
|
-
tickFormat={[Function]}
|
|
9
|
-
tickLabelProps={[Function]}
|
|
10
|
-
top={0}
|
|
11
|
-
/>
|
|
12
|
-
<WithStyles(Arrow)
|
|
13
|
-
direction="left"
|
|
14
|
-
scale={
|
|
15
|
-
Object {
|
|
16
|
-
"x": [MockFunction],
|
|
17
|
-
"y": [MockFunction] {
|
|
18
|
-
"calls": Array [
|
|
19
|
-
Array [
|
|
20
|
-
0,
|
|
21
|
-
],
|
|
22
|
-
],
|
|
23
|
-
"results": Array [
|
|
24
|
-
Object {
|
|
25
|
-
"type": "return",
|
|
26
|
-
"value": 0,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
x={0}
|
|
33
|
-
y={0}
|
|
34
|
-
/>
|
|
35
|
-
<WithStyles(Arrow)
|
|
36
|
-
direction="right"
|
|
37
|
-
scale={
|
|
38
|
-
Object {
|
|
39
|
-
"x": [MockFunction],
|
|
40
|
-
"y": [MockFunction] {
|
|
41
|
-
"calls": Array [
|
|
42
|
-
Array [
|
|
43
|
-
0,
|
|
44
|
-
],
|
|
45
|
-
],
|
|
46
|
-
"results": Array [
|
|
47
|
-
Object {
|
|
48
|
-
"type": "return",
|
|
49
|
-
"value": 0,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
x={1}
|
|
56
|
-
y={0}
|
|
57
|
-
/>
|
|
58
|
-
</Fragment>
|
|
59
|
-
`;
|
|
60
|
-
|
|
61
|
-
exports[`RawYAxis snapshot renders 1`] = `
|
|
62
|
-
<Fragment>
|
|
63
|
-
<F
|
|
64
|
-
height={400}
|
|
65
|
-
hideZero={true}
|
|
66
|
-
left={0}
|
|
67
|
-
orientation="left"
|
|
68
|
-
scale={[MockFunction]}
|
|
69
|
-
tickFormat={[Function]}
|
|
70
|
-
tickLabelProps={[Function]}
|
|
71
|
-
tickLength={10}
|
|
72
|
-
tickTextAnchor="bottom"
|
|
73
|
-
top={0}
|
|
74
|
-
/>
|
|
75
|
-
<WithStyles(Arrow)
|
|
76
|
-
direction="down"
|
|
77
|
-
scale={
|
|
78
|
-
Object {
|
|
79
|
-
"x": [MockFunction] {
|
|
80
|
-
"calls": Array [
|
|
81
|
-
Array [
|
|
82
|
-
0,
|
|
83
|
-
],
|
|
84
|
-
],
|
|
85
|
-
"results": Array [
|
|
86
|
-
Object {
|
|
87
|
-
"type": "return",
|
|
88
|
-
"value": 0,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
"y": [MockFunction],
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
x={0}
|
|
96
|
-
y={0}
|
|
97
|
-
/>
|
|
98
|
-
<WithStyles(Arrow)
|
|
99
|
-
direction="up"
|
|
100
|
-
scale={
|
|
101
|
-
Object {
|
|
102
|
-
"x": [MockFunction] {
|
|
103
|
-
"calls": Array [
|
|
104
|
-
Array [
|
|
105
|
-
0,
|
|
106
|
-
],
|
|
107
|
-
],
|
|
108
|
-
"results": Array [
|
|
109
|
-
Object {
|
|
110
|
-
"type": "return",
|
|
111
|
-
"value": 0,
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
},
|
|
115
|
-
"y": [MockFunction],
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
x={0}
|
|
119
|
-
y={1}
|
|
120
|
-
/>
|
|
121
|
-
</Fragment>
|
|
122
|
-
`;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`ArrowedLine snapshot renders 1`] = `
|
|
4
|
-
<g>
|
|
5
|
-
<defs>
|
|
6
|
-
<ArrowMarker
|
|
7
|
-
className=""
|
|
8
|
-
id="1-enabled"
|
|
9
|
-
size={5}
|
|
10
|
-
/>
|
|
11
|
-
</defs>
|
|
12
|
-
<line
|
|
13
|
-
className="className"
|
|
14
|
-
markerEnd="url(#1-enabled)"
|
|
15
|
-
markerId="1"
|
|
16
|
-
markerStart="url(#1-enabled)"
|
|
17
|
-
onChange={[MockFunction]}
|
|
18
|
-
/>
|
|
19
|
-
</g>
|
|
20
|
-
`;
|