@pie-lib/graphing-solution-set 3.0.0-next.0 → 3.1.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.
- package/lib/__tests__/graph-with-controls.test.js +199 -0
- package/lib/__tests__/graph.test.js +114 -0
- package/lib/__tests__/grid.test.js +29 -0
- package/lib/__tests__/labels.test.js +45 -0
- package/lib/__tests__/mark-label.test.js +133 -0
- package/lib/__tests__/toggle-bar.test.js +89 -0
- package/lib/__tests__/tool-menu.test.js +41 -0
- package/lib/__tests__/undo-redo.test.js +31 -0
- package/lib/__tests__/use-debounce.test.js +24 -0
- package/lib/__tests__/utils.js +70 -0
- package/lib/__tests__/utils.test.js +123 -0
- package/lib/axis/__tests__/arrow.test.js +60 -0
- package/lib/axis/__tests__/axes.test.js +162 -0
- package/lib/axis/arrow.js +1 -1
- package/lib/axis/axes.js +1 -1
- package/lib/axis/index.js +1 -1
- package/lib/bg.js +1 -1
- package/lib/container/actions.js +1 -1
- package/lib/container/index.js +1 -1
- package/lib/container/marks.js +1 -1
- package/lib/container/middleware.js +1 -1
- package/lib/container/reducer.js +1 -1
- package/lib/coordinates-label.js +1 -1
- package/lib/graph-with-controls.js +1 -1
- package/lib/graph.js +1 -1
- package/lib/grid-setup.js +3 -3
- package/lib/grid-setup.js.map +1 -1
- package/lib/grid.js +1 -1
- package/lib/index.js +1 -1
- package/lib/labels.js +3 -3
- package/lib/labels.js.map +1 -1
- package/lib/mark-label.js +1 -1
- package/lib/toggle-bar.js +1 -1
- package/lib/tool-menu.js +1 -1
- package/lib/tools/index.js +1 -1
- package/lib/tools/line/__tests__/component.test.js +45 -0
- package/lib/tools/line/component.js +1 -1
- package/lib/tools/line/index.js +1 -1
- package/lib/tools/polygon/__tests__/component.test.js +81 -0
- package/lib/tools/polygon/__tests__/index.test.js +92 -0
- package/lib/tools/polygon/__tests__/line.test.js +30 -0
- package/lib/tools/polygon/__tests__/polygon.test.js +61 -0
- package/lib/tools/polygon/component.js +1 -1
- package/lib/tools/polygon/index.js +1 -1
- package/lib/tools/polygon/line.js +1 -1
- package/lib/tools/polygon/polygon.js +1 -1
- package/lib/tools/shared/__tests__/arrow-head.test.js +45 -0
- package/lib/tools/shared/arrow-head.js +1 -1
- package/lib/tools/shared/line/__tests__/index.test.js +129 -0
- package/lib/tools/shared/line/__tests__/line-path.test.js +64 -0
- package/lib/tools/shared/line/__tests__/with-root-edge.test.js +83 -0
- package/lib/tools/shared/line/index.js +1 -1
- package/lib/tools/shared/line/line-path.js +1 -1
- package/lib/tools/shared/line/with-root-edge.js +1 -1
- package/lib/tools/shared/point/__tests__/arrow-point.test.js +127 -0
- package/lib/tools/shared/point/__tests__/base-point.test.js +122 -0
- package/lib/tools/shared/point/arrow-point.js +1 -1
- package/lib/tools/shared/point/arrow.js +1 -1
- package/lib/tools/shared/point/base-point.js +1 -1
- package/lib/tools/shared/point/index.js +1 -1
- package/lib/tools/shared/styles.js +1 -1
- package/lib/tools/shared/types.js +1 -1
- package/lib/undo-redo.js +1 -1
- package/lib/use-debounce.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +10 -18
- package/src/grid-setup.jsx +28 -34
- package/src/labels.jsx +1 -1
package/src/grid-setup.jsx
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { color, InputContainer } from '@pie-lib/render-ui';
|
|
4
|
-
import {
|
|
5
|
-
Accordion,
|
|
6
|
-
AccordionSummary,
|
|
7
|
-
AccordionDetails,
|
|
8
|
-
Typography,
|
|
9
|
-
} from '@mui/material';
|
|
4
|
+
import { Accordion, AccordionSummary, AccordionDetails, Typography } from '@mui/material';
|
|
10
5
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
11
6
|
import { NumberTextFieldCustom, Toggle } from '@pie-lib/config-ui';
|
|
12
|
-
import EditableHTML from '@pie-lib/editable-html';
|
|
7
|
+
import EditableHTML from '@pie-lib/editable-html-tip-tap';
|
|
13
8
|
import { styled } from '@mui/material/styles';
|
|
14
9
|
|
|
15
10
|
const Wrapper = styled('div')(() => ({
|
|
@@ -158,7 +153,7 @@ const AxisConfig = (props) => {
|
|
|
158
153
|
)}
|
|
159
154
|
{axisLabel && axisLabel.enabled && (
|
|
160
155
|
<TextFieldMedium>
|
|
161
|
-
<InputContainer label={axisLabel.label || ''}
|
|
156
|
+
<InputContainer label={axisLabel.label || ''}>
|
|
162
157
|
<AxisLabel>
|
|
163
158
|
<EditableHTML
|
|
164
159
|
onChange={(value) => onChange('axisLabel', value)}
|
|
@@ -325,32 +320,31 @@ const GridSetup = (props) => {
|
|
|
325
320
|
</>
|
|
326
321
|
);
|
|
327
322
|
|
|
328
|
-
const gridlinesConfig =
|
|
329
|
-
|
|
330
|
-
<
|
|
331
|
-
<
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
<
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
) : null;
|
|
323
|
+
const gridlinesConfig = max.enabled ? (
|
|
324
|
+
<ColumnView>
|
|
325
|
+
<TextFieldLarge>
|
|
326
|
+
<NumberTextFieldCustom
|
|
327
|
+
label="Number of Vertical Gridlines"
|
|
328
|
+
value={domain.max}
|
|
329
|
+
min={!includeAxes && gridProps.min}
|
|
330
|
+
max={!includeAxes && gridProps.max}
|
|
331
|
+
variant="outlined"
|
|
332
|
+
onChange={(e, v) => onDomainChanged('max', v)}
|
|
333
|
+
/>
|
|
334
|
+
</TextFieldLarge>
|
|
335
|
+
<TextFieldLarge>
|
|
336
|
+
<NumberTextFieldCustom
|
|
337
|
+
label="Number of Horizontal Gridlines"
|
|
338
|
+
value={range.max}
|
|
339
|
+
min={!includeAxes && gridProps.min}
|
|
340
|
+
max={!includeAxes && gridProps.max}
|
|
341
|
+
variant="outlined"
|
|
342
|
+
disabled={standardGrid}
|
|
343
|
+
onChange={(e, v) => onRangeChanged('max', v)}
|
|
344
|
+
/>
|
|
345
|
+
</TextFieldLarge>
|
|
346
|
+
</ColumnView>
|
|
347
|
+
) : null;
|
|
354
348
|
|
|
355
349
|
return (
|
|
356
350
|
<Wrapper>
|
package/src/labels.jsx
CHANGED
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
4
|
import { types } from '@pie-lib/plot';
|
|
5
5
|
import { color, Readable } from '@pie-lib/render-ui';
|
|
6
|
-
import EditableHtml from '@pie-lib/editable-html';
|
|
6
|
+
import EditableHtml from '@pie-lib/editable-html-tip-tap';
|
|
7
7
|
import cn from 'classnames';
|
|
8
8
|
|
|
9
9
|
const rotations = {
|