@pie-lib/graphing-solution-set 2.15.1-beta.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.
- package/CHANGELOG.json +1 -0
- package/CHANGELOG.md +28 -0
- package/LICENSE.md +5 -0
- package/NEXT.CHANGELOG.json +1 -0
- package/package.json +58 -0
- package/src/__tests__/__snapshots__/graph-with-controls.test.jsx.snap +114 -0
- package/src/__tests__/__snapshots__/graph.test.jsx.snap +213 -0
- package/src/__tests__/__snapshots__/grid.test.jsx.snap +54 -0
- package/src/__tests__/__snapshots__/labels.test.jsx.snap +30 -0
- package/src/__tests__/__snapshots__/mark-label.test.jsx.snap +37 -0
- package/src/__tests__/__snapshots__/toggle-bar.test.jsx.snap +7 -0
- package/src/__tests__/__snapshots__/tool-menu.test.jsx.snap +35 -0
- package/src/__tests__/__snapshots__/undo-redo.test.jsx.snap +15 -0
- package/src/__tests__/graph-with-controls.test.jsx +131 -0
- package/src/__tests__/graph.test.jsx +230 -0
- package/src/__tests__/grid.test.jsx +20 -0
- package/src/__tests__/labels.test.jsx +38 -0
- package/src/__tests__/mark-label.test.jsx +68 -0
- package/src/__tests__/toggle-bar.test.jsx +36 -0
- package/src/__tests__/tool-menu.test.jsx +29 -0
- package/src/__tests__/undo-redo.test.jsx +25 -0
- package/src/__tests__/use-debounce.test.js +21 -0
- package/src/__tests__/utils.js +38 -0
- package/src/__tests__/utils.test.js +151 -0
- package/src/axis/__tests__/__snapshots__/arrow.test.jsx.snap +33 -0
- package/src/axis/__tests__/__snapshots__/axes.test.jsx.snap +122 -0
- package/src/axis/__tests__/arrow.test.jsx +39 -0
- package/src/axis/__tests__/axes.test.jsx +220 -0
- package/src/axis/arrow.jsx +62 -0
- package/src/axis/axes.jsx +307 -0
- package/src/axis/index.js +2 -0
- package/src/bg.jsx +96 -0
- package/src/container/actions.js +8 -0
- package/src/container/index.jsx +86 -0
- package/src/container/marks.js +14 -0
- package/src/container/middleware.js +7 -0
- package/src/container/reducer.js +5 -0
- package/src/coordinates-label.jsx +73 -0
- package/src/graph-with-controls.jsx +263 -0
- package/src/graph.jsx +334 -0
- package/src/grid-setup.jsx +424 -0
- package/src/grid.jsx +135 -0
- package/src/index.js +7 -0
- package/src/labels.jsx +214 -0
- package/src/mark-label.jsx +136 -0
- package/src/toggle-bar.jsx +242 -0
- package/src/tool-menu.jsx +294 -0
- package/src/tools/index.js +8 -0
- package/src/tools/line/__tests__/__snapshots__/component.test.jsx.snap +20 -0
- package/src/tools/line/__tests__/component.test.jsx +36 -0
- package/src/tools/line/component.jsx +77 -0
- package/src/tools/line/index.js +4 -0
- package/src/tools/polygon/__tests__/__snapshots__/component.test.jsx.snap +94 -0
- package/src/tools/polygon/__tests__/__snapshots__/line.test.jsx.snap +44 -0
- package/src/tools/polygon/__tests__/__snapshots__/polygon.test.jsx.snap +53 -0
- package/src/tools/polygon/__tests__/component.test.jsx +214 -0
- package/src/tools/polygon/__tests__/index.test.js +65 -0
- package/src/tools/polygon/__tests__/line.test.jsx +25 -0
- package/src/tools/polygon/__tests__/polygon.test.jsx +44 -0
- package/src/tools/polygon/component.jsx +336 -0
- package/src/tools/polygon/index.js +52 -0
- package/src/tools/polygon/line.jsx +78 -0
- package/src/tools/polygon/polygon.jsx +101 -0
- package/src/tools/shared/__tests__/__snapshots__/arrow-head.test.jsx.snap +32 -0
- package/src/tools/shared/__tests__/arrow-head.test.jsx +34 -0
- package/src/tools/shared/arrow-head.jsx +46 -0
- package/src/tools/shared/line/__tests__/__snapshots__/index.test.jsx.snap +360 -0
- package/src/tools/shared/line/__tests__/__snapshots__/line-path.test.jsx.snap +57 -0
- package/src/tools/shared/line/__tests__/__snapshots__/with-root-edge.test.jsx.snap +63 -0
- package/src/tools/shared/line/__tests__/index.test.jsx +247 -0
- package/src/tools/shared/line/__tests__/line-path.test.jsx +53 -0
- package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +73 -0
- package/src/tools/shared/line/index.jsx +473 -0
- package/src/tools/shared/line/line-path.jsx +88 -0
- package/src/tools/shared/line/with-root-edge.jsx +97 -0
- package/src/tools/shared/point/__tests__/__snapshots__/arrow-point.test.jsx.snap +55 -0
- package/src/tools/shared/point/__tests__/__snapshots__/base-point.test.jsx.snap +43 -0
- package/src/tools/shared/point/__tests__/arrow-point.test.jsx +87 -0
- package/src/tools/shared/point/__tests__/base-point.test.jsx +84 -0
- package/src/tools/shared/point/arrow-point.jsx +60 -0
- package/src/tools/shared/point/arrow.jsx +40 -0
- package/src/tools/shared/point/base-point.jsx +86 -0
- package/src/tools/shared/point/index.jsx +60 -0
- package/src/tools/shared/styles.js +20 -0
- package/src/tools/shared/types.js +8 -0
- package/src/undo-redo.jsx +47 -0
- package/src/use-debounce.js +13 -0
- package/src/utils.js +234 -0
package/CHANGELOG.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 2.15.1-beta.0 (2025-07-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-lib/graphing-solution-set
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 2.15.0-beta.0 (2025-07-20)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-lib/graphing-solution-set
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# 2.16.0-beta.0 (2025-07-15)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/graphing-solution-set
|
|
25
|
+
|
|
26
|
+
# 2.15.0-beta.0 (2025-07-15)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @pie-lib/graphing-solution-set
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Copyright 2019 CoreSpring Inc
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
4
|
+
|
|
5
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pie-lib/graphing-solution-set",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "2.15.1-beta.0",
|
|
7
|
+
"description": "Graphing components",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"react",
|
|
10
|
+
"pie",
|
|
11
|
+
"graphing"
|
|
12
|
+
],
|
|
13
|
+
"repository": "pie-framework/pie-lib",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"module": "src/index.js",
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@mapbox/point-geometry": "^0.1.0",
|
|
20
|
+
"@material-ui/core": "^3.8.3",
|
|
21
|
+
"@material-ui/icons": "^3.0.2",
|
|
22
|
+
"@pie-lib/config-ui": "beta",
|
|
23
|
+
"@pie-lib/drag": "^2.3.1-beta.0",
|
|
24
|
+
"@pie-lib/editable-html": "beta",
|
|
25
|
+
"@pie-lib/graphing-utils": "^1.2.1-beta.0",
|
|
26
|
+
"@pie-lib/plot": "^2.8.1-beta.0",
|
|
27
|
+
"@pie-lib/render-ui": "^4.16.1-beta.0",
|
|
28
|
+
"@pie-lib/tools": "beta",
|
|
29
|
+
"@pie-lib/translator": "^2.4.1-beta.0",
|
|
30
|
+
"@vx/axis": "^0.0.189",
|
|
31
|
+
"@vx/clip-path": "^0.0.189",
|
|
32
|
+
"@vx/curve": "^0.0.189",
|
|
33
|
+
"@vx/event": "^0.0.189",
|
|
34
|
+
"@vx/grid": "^0.0.189",
|
|
35
|
+
"@vx/group": "^0.0.183",
|
|
36
|
+
"@vx/point": "^0.0.189",
|
|
37
|
+
"@vx/shape": "^0.0.189",
|
|
38
|
+
"classnames": "^2.2.6",
|
|
39
|
+
"d3-scale": "^2.1.2",
|
|
40
|
+
"d3-selection": "^1.3.2",
|
|
41
|
+
"debug": "^4.1.1",
|
|
42
|
+
"invariant": "^2.2.4",
|
|
43
|
+
"lodash": "^4.17.11",
|
|
44
|
+
"prop-types": "^15.7.2",
|
|
45
|
+
"react": "^16.8.1",
|
|
46
|
+
"react-dom": "^16.9.0",
|
|
47
|
+
"react-draggable": "^3.3.0",
|
|
48
|
+
"react-input-autosize": "^2.2.1",
|
|
49
|
+
"react-redux": "^6.0.0",
|
|
50
|
+
"redux": "^4.0.1",
|
|
51
|
+
"redux-undo": "beta"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"react": "^16.8.1"
|
|
55
|
+
},
|
|
56
|
+
"gitHead": "e2aa3ddac60f49bcb8c2562370f496323642f453",
|
|
57
|
+
"scripts": {}
|
|
58
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
`;
|