@pie-lib/graphing 2.46.0-mui-update.0 → 3.0.0-next.0

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.
Files changed (118) hide show
  1. package/CHANGELOG.md +8 -97
  2. package/lib/axis/axes.js +7 -13
  3. package/lib/axis/axes.js.map +1 -1
  4. package/lib/coordinates-label.js +2 -0
  5. package/lib/coordinates-label.js.map +1 -1
  6. package/lib/grid-setup.js +30 -36
  7. package/lib/grid-setup.js.map +1 -1
  8. package/lib/grid.js +1 -1
  9. package/lib/grid.js.map +1 -1
  10. package/lib/key-legend.js +6 -7
  11. package/lib/key-legend.js.map +1 -1
  12. package/lib/labels.js +4 -2
  13. package/lib/labels.js.map +1 -1
  14. package/lib/mark-label.js +16 -9
  15. package/lib/mark-label.js.map +1 -1
  16. package/lib/toggle-bar.js +12 -16
  17. package/lib/toggle-bar.js.map +1 -1
  18. package/lib/tool-menu.js +1 -3
  19. package/lib/tool-menu.js.map +1 -1
  20. package/lib/tools/circle/component.js +1 -2
  21. package/lib/tools/circle/component.js.map +1 -1
  22. package/lib/tools/point/component.js +1 -1
  23. package/lib/tools/point/component.js.map +1 -1
  24. package/lib/tools/polygon/component.js +2 -2
  25. package/lib/tools/polygon/component.js.map +1 -1
  26. package/lib/tools/polygon/line.js +2 -2
  27. package/lib/tools/polygon/line.js.map +1 -1
  28. package/lib/tools/shared/icons/CorrectSVG.js +9 -0
  29. package/lib/tools/shared/icons/CorrectSVG.js.map +1 -1
  30. package/lib/tools/shared/icons/IncorrectSVG.js +9 -0
  31. package/lib/tools/shared/icons/IncorrectSVG.js.map +1 -1
  32. package/lib/tools/shared/icons/MissingSVG.js +9 -0
  33. package/lib/tools/shared/icons/MissingSVG.js.map +1 -1
  34. package/lib/tools/shared/line/index.js +14 -6
  35. package/lib/tools/shared/line/index.js.map +1 -1
  36. package/lib/tools/shared/line/line-path.js +2 -3
  37. package/lib/tools/shared/line/line-path.js.map +1 -1
  38. package/lib/tools/shared/line/with-root-edge.js +1 -1
  39. package/lib/tools/shared/line/with-root-edge.js.map +1 -1
  40. package/lib/tools/shared/point/arrow-point.js +1 -3
  41. package/lib/tools/shared/point/arrow-point.js.map +1 -1
  42. package/lib/tools/shared/point/arrow.js +1 -2
  43. package/lib/tools/shared/point/arrow.js.map +1 -1
  44. package/package.json +25 -16
  45. package/src/__tests__/graph-with-controls.test.jsx +28 -11
  46. package/src/__tests__/graph.test.jsx +104 -168
  47. package/src/__tests__/grid.test.jsx +8 -6
  48. package/src/__tests__/labels.test.jsx +25 -8
  49. package/src/__tests__/mark-label.test.jsx +12 -17
  50. package/src/__tests__/toggle-bar.test.jsx +92 -17
  51. package/src/__tests__/tool-menu.test.jsx +61 -12
  52. package/src/__tests__/undo-redo.test.jsx +7 -8
  53. package/src/__tests__/utils.js +3 -0
  54. package/src/axis/__tests__/arrow.test.jsx +16 -17
  55. package/src/axis/__tests__/axes.test.jsx +118 -122
  56. package/src/axis/axes.jsx +7 -12
  57. package/src/coordinates-label.jsx +1 -0
  58. package/src/grid-setup.jsx +6 -6
  59. package/src/grid.jsx +1 -1
  60. package/src/key-legend.jsx +1 -1
  61. package/src/labels.jsx +2 -0
  62. package/src/mark-label.jsx +10 -1
  63. package/src/toggle-bar.jsx +7 -25
  64. package/src/tool-menu.jsx +1 -1
  65. package/src/tools/circle/__tests__/bg-circle.test.jsx +7 -9
  66. package/src/tools/circle/__tests__/component.test.jsx +17 -189
  67. package/src/tools/circle/component.jsx +1 -1
  68. package/src/tools/line/__tests__/component.test.jsx +7 -7
  69. package/src/tools/point/__tests__/component.test.jsx +18 -43
  70. package/src/tools/point/component.jsx +1 -1
  71. package/src/tools/polygon/__tests__/component.test.jsx +18 -162
  72. package/src/tools/polygon/__tests__/line.test.jsx +7 -10
  73. package/src/tools/polygon/__tests__/polygon.test.jsx +7 -8
  74. package/src/tools/polygon/component.jsx +2 -2
  75. package/src/tools/polygon/line.jsx +3 -2
  76. package/src/tools/ray/__tests__/component.test.jsx +7 -8
  77. package/src/tools/segment/__tests__/component.test.jsx +7 -8
  78. package/src/tools/shared/__tests__/arrow-head.test.jsx +14 -17
  79. package/src/tools/shared/icons/CorrectSVG.jsx +10 -0
  80. package/src/tools/shared/icons/IncorrectSVG.jsx +10 -0
  81. package/src/tools/shared/icons/MissingSVG.jsx +10 -0
  82. package/src/tools/shared/line/__tests__/index.test.jsx +19 -165
  83. package/src/tools/shared/line/__tests__/line-path.test.jsx +8 -8
  84. package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +22 -22
  85. package/src/tools/shared/line/index.jsx +13 -5
  86. package/src/tools/shared/line/line-path.jsx +2 -2
  87. package/src/tools/shared/line/with-root-edge.jsx +1 -1
  88. package/src/tools/shared/point/__tests__/arrow-point.test.jsx +15 -11
  89. package/src/tools/shared/point/__tests__/base-point.test.jsx +14 -11
  90. package/src/tools/shared/point/arrow-point.jsx +1 -1
  91. package/src/tools/shared/point/arrow.jsx +1 -1
  92. package/src/tools/vector/__tests__/component.test.jsx +7 -8
  93. package/src/__tests__/__snapshots__/graph-with-controls.test.jsx.snap +0 -237
  94. package/src/__tests__/__snapshots__/graph.test.jsx.snap +0 -211
  95. package/src/__tests__/__snapshots__/grid.test.jsx.snap +0 -54
  96. package/src/__tests__/__snapshots__/labels.test.jsx.snap +0 -30
  97. package/src/__tests__/__snapshots__/mark-label.test.jsx.snap +0 -45
  98. package/src/__tests__/__snapshots__/toggle-bar.test.jsx.snap +0 -7
  99. package/src/__tests__/__snapshots__/tool-menu.test.jsx.snap +0 -13
  100. package/src/__tests__/__snapshots__/undo-redo.test.jsx.snap +0 -14
  101. package/src/axis/__tests__/__snapshots__/arrow.test.jsx.snap +0 -33
  102. package/src/axis/__tests__/__snapshots__/axes.test.jsx.snap +0 -122
  103. package/src/tools/circle/__tests__/__snapshots__/bg-circle.test.jsx.snap +0 -46
  104. package/src/tools/circle/__tests__/__snapshots__/component.test.jsx.snap +0 -293
  105. package/src/tools/line/__tests__/__snapshots__/component.test.jsx.snap +0 -20
  106. package/src/tools/point/__tests__/__snapshots__/component.test.jsx.snap +0 -40
  107. package/src/tools/polygon/__tests__/__snapshots__/component.test.jsx.snap +0 -415
  108. package/src/tools/polygon/__tests__/__snapshots__/line.test.jsx.snap +0 -45
  109. package/src/tools/polygon/__tests__/__snapshots__/polygon.test.jsx.snap +0 -52
  110. package/src/tools/ray/__tests__/__snapshots__/component.test.jsx.snap +0 -23
  111. package/src/tools/segment/__tests__/__snapshots__/component.test.jsx.snap +0 -14
  112. package/src/tools/shared/__tests__/__snapshots__/arrow-head.test.jsx.snap +0 -27
  113. package/src/tools/shared/line/__tests__/__snapshots__/index.test.jsx.snap +0 -360
  114. package/src/tools/shared/line/__tests__/__snapshots__/line-path.test.jsx.snap +0 -58
  115. package/src/tools/shared/line/__tests__/__snapshots__/with-root-edge.test.jsx.snap +0 -63
  116. package/src/tools/shared/point/__tests__/__snapshots__/arrow-point.test.jsx.snap +0 -56
  117. package/src/tools/shared/point/__tests__/__snapshots__/base-point.test.jsx.snap +0 -44
  118. package/src/tools/vector/__tests__/__snapshots__/component.test.jsx.snap +0 -12
@@ -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="#E1E6EC"
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,45 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`MarkLabel snapshot renders 1`] = `
4
- <div
5
- style={
6
- Object {
7
- "alignItems": "center",
8
- "display": "flex",
9
- "gap": "3px",
10
- "left": 6,
11
- "pointerEvents": "auto",
12
- "position": "fixed",
13
- "top": -4,
14
- }
15
- }
16
- >
17
- <LabelInput
18
- _ref={[Function]}
19
- inputClassName=""
20
- onChange={[Function]}
21
- />
22
- </div>
23
- `;
24
-
25
- exports[`MarkLabel snapshot renders 2`] = `
26
- <div
27
- style={
28
- Object {
29
- "alignItems": "center",
30
- "display": "flex",
31
- "gap": "3px",
32
- "left": 5,
33
- "pointerEvents": "auto",
34
- "position": "fixed",
35
- "top": 5,
36
- }
37
- }
38
- >
39
- <LabelInput
40
- _ref={[Function]}
41
- inputClassName=""
42
- onChange={[Function]}
43
- />
44
- </div>
45
- `;
@@ -1,7 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ToggleBar snapshot renders 1`] = `
4
- <div
5
- className="className"
6
- />
7
- `;
@@ -1,13 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ToolMenu snapshot renders 1`] = `
4
- <div
5
- className="className"
6
- >
7
- <Component
8
- onChange={[MockFunction]}
9
- onChangeToolsOrder={[Function]}
10
- options={Array []}
11
- />
12
- </div>
13
- `;
@@ -1,14 +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
- }
9
- }
10
- onRedo={[MockFunction]}
11
- onReset={[MockFunction]}
12
- onUndo={[MockFunction]}
13
- />
14
- `;
@@ -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,46 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`BgCircle snapshot renders 1`] = `
4
- <RawCircle
5
- className="className"
6
- classes={
7
- Object {
8
- "bgCircle": "RawCircle-bgCircle-1",
9
- "correct": "RawCircle-correct-4",
10
- "disabled": "RawCircle-disabled-2",
11
- "disabledSecondary": "RawCircle-disabledSecondary-3",
12
- "incorrect": "RawCircle-incorrect-5",
13
- "missing": "RawCircle-missing-6",
14
- }
15
- }
16
- graphProps={
17
- Object {
18
- "domain": Object {
19
- "max": 1,
20
- "min": 0,
21
- "step": 1,
22
- },
23
- "range": Object {
24
- "max": 1,
25
- "min": 0,
26
- "step": 1,
27
- },
28
- "scale": Object {
29
- "x": [MockFunction],
30
- "y": [MockFunction],
31
- },
32
- "size": Object {
33
- "height": 400,
34
- "width": 400,
35
- },
36
- "snap": Object {
37
- "x": [MockFunction],
38
- "y": [MockFunction],
39
- },
40
- }
41
- }
42
- onChange={[MockFunction]}
43
- x={0}
44
- y={0}
45
- />
46
- `;
@@ -1,293 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Component snapshot renders 1`] = `
4
- <g>
5
- <GridDraggable
6
- className=""
7
- graphProps={
8
- Object {
9
- "domain": Object {
10
- "max": 1,
11
- "min": 0,
12
- "step": 1,
13
- },
14
- "range": Object {
15
- "max": 1,
16
- "min": 0,
17
- "step": 1,
18
- },
19
- "scale": Object {
20
- "x": [MockFunction],
21
- "y": [MockFunction],
22
- },
23
- "size": Object {
24
- "height": 400,
25
- "width": 400,
26
- },
27
- "snap": Object {
28
- "x": [MockFunction],
29
- "y": [MockFunction],
30
- },
31
- }
32
- }
33
- onClick={[Function]}
34
- onDrag={[Function]}
35
- radius={1.4142135623730951}
36
- x={0}
37
- y={0}
38
- />
39
- <WithStyles(GridDraggable)
40
- graphProps={
41
- Object {
42
- "domain": Object {
43
- "max": 1,
44
- "min": 0,
45
- "step": 1,
46
- },
47
- "range": Object {
48
- "max": 1,
49
- "min": 0,
50
- "step": 1,
51
- },
52
- "scale": Object {
53
- "x": [MockFunction],
54
- "y": [MockFunction],
55
- },
56
- "size": Object {
57
- "height": 400,
58
- "width": 400,
59
- },
60
- "snap": Object {
61
- "x": [MockFunction],
62
- "y": [MockFunction],
63
- },
64
- }
65
- }
66
- onClick={[Function]}
67
- onDrag={[Function]}
68
- x={1}
69
- y={1}
70
- />
71
- <WithStyles(GridDraggable)
72
- graphProps={
73
- Object {
74
- "domain": Object {
75
- "max": 1,
76
- "min": 0,
77
- "step": 1,
78
- },
79
- "range": Object {
80
- "max": 1,
81
- "min": 0,
82
- "step": 1,
83
- },
84
- "scale": Object {
85
- "x": [MockFunction],
86
- "y": [MockFunction],
87
- },
88
- "size": Object {
89
- "height": 400,
90
- "width": 400,
91
- },
92
- "snap": Object {
93
- "x": [MockFunction],
94
- "y": [MockFunction],
95
- },
96
- }
97
- }
98
- onClick={[Function]}
99
- onDrag={[Function]}
100
- x={0}
101
- y={0}
102
- />
103
- </g>
104
- `;
105
-
106
- exports[`Component snapshot renders with labels 1`] = `
107
- <g>
108
- <GridDraggable
109
- className=""
110
- graphProps={
111
- Object {
112
- "domain": Object {
113
- "max": 1,
114
- "min": 0,
115
- "step": 1,
116
- },
117
- "range": Object {
118
- "max": 1,
119
- "min": 0,
120
- "step": 1,
121
- },
122
- "scale": Object {
123
- "x": [MockFunction],
124
- "y": [MockFunction],
125
- },
126
- "size": Object {
127
- "height": 400,
128
- "width": 400,
129
- },
130
- "snap": Object {
131
- "x": [MockFunction],
132
- "y": [MockFunction],
133
- },
134
- }
135
- }
136
- onClick={[Function]}
137
- onDrag={[Function]}
138
- radius={1.4142135623730951}
139
- x={0}
140
- y={0}
141
- />
142
- <WithStyles(GridDraggable)
143
- graphProps={
144
- Object {
145
- "domain": Object {
146
- "max": 1,
147
- "min": 0,
148
- "step": 1,
149
- },
150
- "range": Object {
151
- "max": 1,
152
- "min": 0,
153
- "step": 1,
154
- },
155
- "scale": Object {
156
- "x": [MockFunction],
157
- "y": [MockFunction],
158
- },
159
- "size": Object {
160
- "height": 400,
161
- "width": 400,
162
- },
163
- "snap": Object {
164
- "x": [MockFunction],
165
- "y": [MockFunction],
166
- },
167
- }
168
- }
169
- labelNode={<foreignobject />}
170
- onClick={[Function]}
171
- onDrag={[Function]}
172
- x={1}
173
- y={1}
174
- />
175
- <Portal
176
- containerInfo={<foreignobject />}
177
- >
178
- <WithStyles(MarkLabel)
179
- disabled={true}
180
- graphProps={
181
- Object {
182
- "domain": Object {
183
- "max": 1,
184
- "min": 0,
185
- "step": 1,
186
- },
187
- "range": Object {
188
- "max": 1,
189
- "min": 0,
190
- "step": 1,
191
- },
192
- "scale": Object {
193
- "x": [MockFunction],
194
- "y": [MockFunction],
195
- },
196
- "size": Object {
197
- "height": 400,
198
- "width": 400,
199
- },
200
- "snap": Object {
201
- "x": [MockFunction],
202
- "y": [MockFunction],
203
- },
204
- }
205
- }
206
- inputRef={[Function]}
207
- mark={
208
- Object {
209
- "label": "B",
210
- "x": 1,
211
- "y": 1,
212
- }
213
- }
214
- onChange={[Function]}
215
- />
216
- </Portal>
217
- <WithStyles(GridDraggable)
218
- graphProps={
219
- Object {
220
- "domain": Object {
221
- "max": 1,
222
- "min": 0,
223
- "step": 1,
224
- },
225
- "range": Object {
226
- "max": 1,
227
- "min": 0,
228
- "step": 1,
229
- },
230
- "scale": Object {
231
- "x": [MockFunction],
232
- "y": [MockFunction],
233
- },
234
- "size": Object {
235
- "height": 400,
236
- "width": 400,
237
- },
238
- "snap": Object {
239
- "x": [MockFunction],
240
- "y": [MockFunction],
241
- },
242
- }
243
- }
244
- labelNode={<foreignobject />}
245
- onClick={[Function]}
246
- onDrag={[Function]}
247
- x={0}
248
- y={0}
249
- />
250
- <Portal
251
- containerInfo={<foreignobject />}
252
- >
253
- <WithStyles(MarkLabel)
254
- disabled={true}
255
- graphProps={
256
- Object {
257
- "domain": Object {
258
- "max": 1,
259
- "min": 0,
260
- "step": 1,
261
- },
262
- "range": Object {
263
- "max": 1,
264
- "min": 0,
265
- "step": 1,
266
- },
267
- "scale": Object {
268
- "x": [MockFunction],
269
- "y": [MockFunction],
270
- },
271
- "size": Object {
272
- "height": 400,
273
- "width": 400,
274
- },
275
- "snap": Object {
276
- "x": [MockFunction],
277
- "y": [MockFunction],
278
- },
279
- }
280
- }
281
- inputRef={[Function]}
282
- mark={
283
- Object {
284
- "label": "A",
285
- "x": 0,
286
- "y": 0,
287
- }
288
- }
289
- onChange={[Function]}
290
- />
291
- </Portal>
292
- </g>
293
- `;
@@ -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
- `;