@pie-lib/graphing-solution-set 2.34.3-next.0 → 2.34.3-next.155

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 (142) hide show
  1. package/CHANGELOG.md +7 -78
  2. package/esm/package.json +3 -0
  3. package/lib/axis/arrow.js +19 -55
  4. package/lib/axis/arrow.js.map +1 -1
  5. package/lib/axis/axes.js +103 -193
  6. package/lib/axis/axes.js.map +1 -1
  7. package/lib/axis/index.js +1 -6
  8. package/lib/axis/index.js.map +1 -1
  9. package/lib/bg.js +21 -49
  10. package/lib/bg.js.map +1 -1
  11. package/lib/container/actions.js +2 -8
  12. package/lib/container/actions.js.map +1 -1
  13. package/lib/container/index.js +14 -60
  14. package/lib/container/index.js.map +1 -1
  15. package/lib/container/marks.js +1 -6
  16. package/lib/container/marks.js.map +1 -1
  17. package/lib/container/middleware.js +2 -8
  18. package/lib/container/middleware.js.map +1 -1
  19. package/lib/container/reducer.js +1 -8
  20. package/lib/container/reducer.js.map +1 -1
  21. package/lib/coordinates-label.js +23 -55
  22. package/lib/coordinates-label.js.map +1 -1
  23. package/lib/graph-with-controls.js +129 -203
  24. package/lib/graph-with-controls.js.map +1 -1
  25. package/lib/graph.js +61 -126
  26. package/lib/graph.js.map +1 -1
  27. package/lib/grid-setup.js +168 -224
  28. package/lib/grid-setup.js.map +1 -1
  29. package/lib/grid.js +29 -74
  30. package/lib/grid.js.map +1 -1
  31. package/lib/index.js +1 -12
  32. package/lib/index.js.map +1 -1
  33. package/lib/labels.js +84 -184
  34. package/lib/labels.js.map +1 -1
  35. package/lib/mark-label.js +39 -88
  36. package/lib/mark-label.js.map +1 -1
  37. package/lib/toggle-bar.js +155 -243
  38. package/lib/toggle-bar.js.map +1 -1
  39. package/lib/tool-menu.js +93 -200
  40. package/lib/tool-menu.js.map +1 -1
  41. package/lib/tools/index.js +2 -7
  42. package/lib/tools/index.js.map +1 -1
  43. package/lib/tools/line/component.js +48 -62
  44. package/lib/tools/line/component.js.map +1 -1
  45. package/lib/tools/line/index.js +1 -6
  46. package/lib/tools/line/index.js.map +1 -1
  47. package/lib/tools/polygon/component.js +76 -173
  48. package/lib/tools/polygon/component.js.map +1 -1
  49. package/lib/tools/polygon/index.js +6 -23
  50. package/lib/tools/polygon/index.js.map +1 -1
  51. package/lib/tools/polygon/line.js +48 -85
  52. package/lib/tools/polygon/line.js.map +1 -1
  53. package/lib/tools/polygon/polygon.js +62 -102
  54. package/lib/tools/polygon/polygon.js.map +1 -1
  55. package/lib/tools/shared/arrow-head.js +7 -20
  56. package/lib/tools/shared/arrow-head.js.map +1 -1
  57. package/lib/tools/shared/line/index.js +89 -185
  58. package/lib/tools/shared/line/index.js.map +1 -1
  59. package/lib/tools/shared/line/line-path.js +71 -95
  60. package/lib/tools/shared/line/line-path.js.map +1 -1
  61. package/lib/tools/shared/line/with-root-edge.js +22 -56
  62. package/lib/tools/shared/line/with-root-edge.js.map +1 -1
  63. package/lib/tools/shared/point/arrow-point.js +18 -45
  64. package/lib/tools/shared/point/arrow-point.js.map +1 -1
  65. package/lib/tools/shared/point/arrow.js +16 -42
  66. package/lib/tools/shared/point/arrow.js.map +1 -1
  67. package/lib/tools/shared/point/base-point.js +44 -58
  68. package/lib/tools/shared/point/base-point.js.map +1 -1
  69. package/lib/tools/shared/point/index.js +38 -52
  70. package/lib/tools/shared/point/index.js.map +1 -1
  71. package/lib/tools/shared/styles.js +8 -31
  72. package/lib/tools/shared/styles.js.map +1 -1
  73. package/lib/tools/shared/types.js +1 -5
  74. package/lib/tools/shared/types.js.map +1 -1
  75. package/lib/undo-redo.js +27 -67
  76. package/lib/undo-redo.js.map +1 -1
  77. package/lib/use-debounce.js +4 -11
  78. package/lib/use-debounce.js.map +1 -1
  79. package/lib/utils.js +56 -131
  80. package/lib/utils.js.map +1 -1
  81. package/package.json +34 -23
  82. package/src/__tests__/graph-with-controls.test.jsx +23 -10
  83. package/src/__tests__/graph.test.jsx +36 -171
  84. package/src/__tests__/grid.test.jsx +9 -6
  85. package/src/__tests__/labels.test.jsx +11 -8
  86. package/src/__tests__/mark-label.test.jsx +15 -17
  87. package/src/__tests__/toggle-bar.test.jsx +46 -17
  88. package/src/__tests__/tool-menu.test.jsx +12 -8
  89. package/src/__tests__/undo-redo.test.jsx +9 -8
  90. package/src/__tests__/utils.js +3 -0
  91. package/src/axis/__tests__/arrow.test.jsx +21 -17
  92. package/src/axis/__tests__/axes.test.jsx +117 -155
  93. package/src/axis/arrow.jsx +7 -12
  94. package/src/axis/axes.jsx +41 -51
  95. package/src/coordinates-label.jsx +13 -18
  96. package/src/graph-with-controls.jsx +90 -93
  97. package/src/grid-setup.jsx +210 -206
  98. package/src/grid.jsx +2 -4
  99. package/src/labels.jsx +83 -124
  100. package/src/mark-label.jsx +14 -25
  101. package/src/toggle-bar.jsx +135 -163
  102. package/src/tool-menu.jsx +136 -195
  103. package/src/tools/line/__tests__/component.test.jsx +7 -7
  104. package/src/tools/line/component.jsx +29 -29
  105. package/src/tools/polygon/__tests__/component.test.jsx +13 -152
  106. package/src/tools/polygon/__tests__/line.test.jsx +7 -9
  107. package/src/tools/polygon/__tests__/polygon.test.jsx +8 -8
  108. package/src/tools/polygon/component.jsx +2 -4
  109. package/src/tools/polygon/line.jsx +26 -24
  110. package/src/tools/polygon/polygon.jsx +35 -40
  111. package/src/tools/shared/__tests__/arrow-head.test.jsx +16 -17
  112. package/src/tools/shared/line/__tests__/index.test.jsx +26 -163
  113. package/src/tools/shared/line/__tests__/line-path.test.jsx +9 -9
  114. package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +14 -24
  115. package/src/tools/shared/line/index.jsx +3 -3
  116. package/src/tools/shared/line/line-path.jsx +51 -48
  117. package/src/tools/shared/line/with-root-edge.jsx +1 -1
  118. package/src/tools/shared/point/__tests__/arrow-point.test.jsx +15 -11
  119. package/src/tools/shared/point/__tests__/base-point.test.jsx +14 -11
  120. package/src/tools/shared/point/base-point.jsx +33 -6
  121. package/src/tools/shared/point/index.jsx +30 -32
  122. package/src/undo-redo.jsx +16 -24
  123. package/src/__tests__/__snapshots__/graph-with-controls.test.jsx.snap +0 -114
  124. package/src/__tests__/__snapshots__/graph.test.jsx.snap +0 -213
  125. package/src/__tests__/__snapshots__/grid.test.jsx.snap +0 -54
  126. package/src/__tests__/__snapshots__/labels.test.jsx.snap +0 -30
  127. package/src/__tests__/__snapshots__/mark-label.test.jsx.snap +0 -37
  128. package/src/__tests__/__snapshots__/toggle-bar.test.jsx.snap +0 -7
  129. package/src/__tests__/__snapshots__/tool-menu.test.jsx.snap +0 -35
  130. package/src/__tests__/__snapshots__/undo-redo.test.jsx.snap +0 -15
  131. package/src/axis/__tests__/__snapshots__/arrow.test.jsx.snap +0 -33
  132. package/src/axis/__tests__/__snapshots__/axes.test.jsx.snap +0 -122
  133. package/src/tools/line/__tests__/__snapshots__/component.test.jsx.snap +0 -20
  134. package/src/tools/polygon/__tests__/__snapshots__/component.test.jsx.snap +0 -94
  135. package/src/tools/polygon/__tests__/__snapshots__/line.test.jsx.snap +0 -44
  136. package/src/tools/polygon/__tests__/__snapshots__/polygon.test.jsx.snap +0 -53
  137. package/src/tools/shared/__tests__/__snapshots__/arrow-head.test.jsx.snap +0 -32
  138. package/src/tools/shared/line/__tests__/__snapshots__/index.test.jsx.snap +0 -360
  139. package/src/tools/shared/line/__tests__/__snapshots__/line-path.test.jsx.snap +0 -57
  140. package/src/tools/shared/line/__tests__/__snapshots__/with-root-edge.test.jsx.snap +0 -63
  141. package/src/tools/shared/point/__tests__/__snapshots__/arrow-point.test.jsx.snap +0 -55
  142. package/src/tools/shared/point/__tests__/__snapshots__/base-point.test.jsx.snap +0 -43
@@ -1,15 +1,38 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import classNames from 'classnames';
4
3
  import { types } from '@pie-lib/plot';
5
4
  import CoordinatesLabel from '../../../coordinates-label';
6
5
  import ReactDOM from 'react-dom';
7
6
  import { thinnerShapesNeeded } from '../../../utils';
8
7
  import { color } from '@pie-lib/render-ui';
8
+ import { styled } from '@mui/material/styles';
9
+ import { disabled as disabledStyle, correct, incorrect, missing } from '../styles';
10
+
11
+ const StyledPointGroup = styled('g')(({ disabled, correctness }) => ({
12
+ cursor: 'pointer',
13
+ '& circle': {
14
+ fill: 'currentColor',
15
+ },
16
+ ...(disabled && {
17
+ ...disabledStyle('fill'),
18
+ ...disabledStyle('color'),
19
+ }),
20
+ ...(correctness === 'correct' && {
21
+ ...correct('fill'),
22
+ ...correct('color'),
23
+ }),
24
+ ...(correctness === 'incorrect' && {
25
+ ...incorrect('fill'),
26
+ ...incorrect('color'),
27
+ }),
28
+ ...(correctness === 'missing' && {
29
+ ...missing('fill'),
30
+ ...missing('color'),
31
+ }),
32
+ }));
9
33
 
10
34
  export class RawBp extends React.Component {
11
35
  static propTypes = {
12
- classes: PropTypes.object,
13
36
  className: PropTypes.string,
14
37
  coordinatesOnHover: PropTypes.bool,
15
38
  correctness: PropTypes.string,
@@ -18,6 +41,9 @@ export class RawBp extends React.Component {
18
41
  x: PropTypes.number,
19
42
  y: PropTypes.number,
20
43
  graphProps: types.GraphPropsType.isRequired,
44
+ onClick: PropTypes.func,
45
+ onTouchStart: PropTypes.func,
46
+ onTouchEnd: PropTypes.func,
21
47
  };
22
48
 
23
49
  constructor(props) {
@@ -27,7 +53,6 @@ export class RawBp extends React.Component {
27
53
 
28
54
  render() {
29
55
  const {
30
- classes,
31
56
  className,
32
57
  coordinatesOnHover,
33
58
  x,
@@ -63,8 +88,10 @@ export class RawBp extends React.Component {
63
88
  onTouchEnd={onTouchEnd}
64
89
  onClick={onClick}
65
90
  />
66
- <g
67
- className={classNames(classes.point, disabled && classes.disabled, classes[correctness], className)}
91
+ <StyledPointGroup
92
+ disabled={disabled}
93
+ correctness={correctness}
94
+ className={className}
68
95
  onMouseEnter={() => this.setState({ showCoordinates: true })}
69
96
  onMouseLeave={() => this.setState({ showCoordinates: false })}
70
97
  >
@@ -79,7 +106,7 @@ export class RawBp extends React.Component {
79
106
  coordinatesOnHover &&
80
107
  showCoordinates &&
81
108
  ReactDOM.createPortal(<CoordinatesLabel graphProps={graphProps} x={x} y={y} />, labelNode)}
82
- </g>
109
+ </StyledPointGroup>
83
110
  </>
84
111
  );
85
112
  }
@@ -1,4 +1,6 @@
1
- import { withStyles } from '@material-ui/core/styles/index';
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { styled } from '@mui/material/styles';
2
4
  import { gridDraggable } from '@pie-lib/plot';
3
5
  import * as utils from '../../../utils';
4
6
  import { disabled, correct, incorrect, missing } from '../styles';
@@ -24,37 +26,33 @@ const opts = {
24
26
  },
25
27
  };
26
28
 
27
- const styles = () => {
28
- return {
29
- point: {
30
- '& circle, & polygon': {
31
- cursor: 'pointer',
32
- fill: color.defaults.SECONDARY,
33
- },
34
- },
35
- disabled: {
36
- '& circle, & polygon': {
37
- ...disabled(),
38
- },
39
- },
40
- correct: {
41
- '& circle, & polygon': {
42
- ...correct(),
43
- },
44
- },
45
- incorrect: {
46
- '& circle, & polygon': {
47
- ...incorrect(),
48
- },
49
- },
50
- missing: {
51
- '& circle, & polygon': {
52
- ...missing(),
53
- },
54
- },
29
+ const StyledPointWrapper = styled('g', {
30
+ shouldForwardProp: (prop) => !['disabled', 'correctness'].includes(prop),
31
+ })(({ disabled: isDisabled, correctness }) => ({
32
+ '& circle, & polygon': {
33
+ cursor: 'pointer',
34
+ fill: color.defaults.SECONDARY,
35
+ ...(isDisabled && disabled()),
36
+ ...(correctness === 'correct' && correct()),
37
+ ...(correctness === 'incorrect' && incorrect()),
38
+ ...(correctness === 'missing' && missing()),
39
+ },
40
+ }));
41
+
42
+ const withStyledWrapper = (WrappedComponent) => {
43
+ const WrappedComponentWithStyles = (props) => (
44
+ <StyledPointWrapper disabled={props.disabled} correctness={props.correctness}>
45
+ <WrappedComponent {...props} />
46
+ </StyledPointWrapper>
47
+ );
48
+ WrappedComponentWithStyles.displayName = `withStyledWrapper(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;
49
+ WrappedComponentWithStyles.propTypes = {
50
+ disabled: PropTypes.bool,
51
+ correctness: PropTypes.string,
55
52
  };
53
+ return WrappedComponentWithStyles;
56
54
  };
57
55
 
58
- export const BasePoint = withStyles(styles)(gridDraggable(opts)(RawBp));
59
- export const ArrowPoint = withStyles(styles)(gridDraggable(opts)(RawArrow));
60
- export const Arrow = withStyles(styles)(gridDraggable(opts)(BaseArrow));
56
+ export const BasePoint = gridDraggable(opts)(withStyledWrapper(RawBp));
57
+ export const ArrowPoint = gridDraggable(opts)(withStyledWrapper(RawArrow));
58
+ export const Arrow = gridDraggable(opts)(withStyledWrapper(BaseArrow));
package/src/undo-redo.jsx CHANGED
@@ -1,16 +1,23 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import classNames from 'classnames';
4
- import Button from '@material-ui/core/Button';
5
- import { withStyles } from '@material-ui/core';
3
+ import { styled } from '@mui/material/styles';
4
+ import Button from '@mui/material/Button';
6
5
  import { color } from '@pie-lib/render-ui';
7
6
  import Translator from '@pie-lib/translator';
8
7
 
9
8
  const { translator } = Translator;
10
9
 
10
+ const StyledButton = styled(Button)(({ theme }) => ({
11
+ color: color.text(),
12
+ fontWeight: 'bold',
13
+ marginBottom: theme.spacing(0.5),
14
+ '&:not(:last-of-type)': {
15
+ marginRight: theme.spacing(0.5),
16
+ },
17
+ }));
18
+
11
19
  export class UndoRedo extends React.Component {
12
20
  static propTypes = {
13
- classes: PropTypes.object,
14
21
  className: PropTypes.string,
15
22
  onReset: PropTypes.func.isRequired,
16
23
  language: PropTypes.string,
@@ -18,30 +25,15 @@ export class UndoRedo extends React.Component {
18
25
  static defaultProps = {};
19
26
 
20
27
  render() {
21
- const { classes, className, onReset = false, language } = this.props;
28
+ const { className, onReset = false, language } = this.props;
22
29
  return (
23
- <div className={classNames(className)}>
24
- <Button classes={{ root: classes.button }} onClick={() => onReset()}>
30
+ <div className={className}>
31
+ <StyledButton onClick={() => onReset()}>
25
32
  {translator.t('graphing.reset', { lng: language })}
26
- </Button>
33
+ </StyledButton>
27
34
  </div>
28
35
  );
29
36
  }
30
37
  }
31
38
 
32
- const styles = (theme) => ({
33
- button: {
34
- color: color.text(),
35
- fontWeight: 'bold',
36
- marginBottom: theme.spacing.unit / 2,
37
- '&:not(:last-of-type)': {
38
- marginRight: theme.spacing.unit / 2,
39
- },
40
- },
41
- undoRedoDiv: {
42
- display: 'flex',
43
- flexDirection: 'row',
44
- },
45
- });
46
-
47
- export default withStyles(styles)(UndoRedo);
39
+ export default UndoRedo;
@@ -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,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
- `;