@emerson-eps/color-tables 0.4.47 → 0.4.49
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/dist/component/BreakPoint/Canvas.d.ts +2 -2
- package/dist/component/BreakPoint/Canvas.js +9 -15
- package/dist/component/BreakPoint/Canvas.js.map +1 -1
- package/dist/component/BreakPoint/ColorScale.js +7 -12
- package/dist/component/BreakPoint/ColorScale.js.map +1 -1
- package/dist/component/BreakPoint/Legend.js +67 -63
- package/dist/component/BreakPoint/Legend.js.map +1 -1
- package/dist/component/BreakPoint/Modal.js +6 -3
- package/dist/component/BreakPoint/Modal.js.map +1 -1
- package/dist/component/ColorSelector/BreakPointModule.js +98 -96
- package/dist/component/ColorSelector/BreakPointModule.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorAccordion.js +39 -42
- package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorComponent.js +10 -18
- package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorWrapper.js +11 -16
- package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
- package/dist/component/Legend/ColorLegend.js +16 -12
- package/dist/component/Legend/ColorLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.stories.d.ts +2 -4
- package/dist/component/Legend/ContinuousLegend.stories.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.js.map +1 -1
- package/dist/component/Utils/discreteLegend.js +0 -2
- package/dist/component/Utils/discreteLegend.js.map +1 -1
- package/dist/component/Utils/legendCommonFunction.js +2 -4
- package/dist/component/Utils/legendCommonFunction.js.map +1 -1
- package/dist/component/Utils/legendCommonFunction.stories.d.ts +2 -4
- package/dist/component/Utils/legendCommonFunction.stories.js.map +1 -1
- package/package.json +32 -32
|
@@ -3,6 +3,6 @@ declare type Props = {
|
|
|
3
3
|
drawCallback?: () => void;
|
|
4
4
|
onResize?: (width: number, height: number) => void;
|
|
5
5
|
};
|
|
6
|
-
export declare const Canvas: React.ForwardRefExoticComponent<
|
|
7
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
|
6
|
+
export declare const Canvas: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLCanvasElement> & React.CanvasHTMLAttributes<HTMLCanvasElement> & Props, "ref"> & React.RefAttributes<HTMLCanvasElement>>;
|
|
7
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLCanvasElement> & React.CanvasHTMLAttributes<HTMLCanvasElement> & Props, "ref"> & React.RefAttributes<HTMLCanvasElement>>>;
|
|
8
8
|
export default _default;
|
|
@@ -20,25 +20,19 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { createStyles, makeStyles } from "@material-ui/core";
|
|
24
23
|
import React from "react";
|
|
25
24
|
import ReactResizeDetector from "react-resize-detector";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
pointerEvents: "none",
|
|
35
|
-
},
|
|
36
|
-
});
|
|
25
|
+
import { styled } from "@mui/system";
|
|
26
|
+
var StyledCanvas = styled("canvas")({
|
|
27
|
+
position: "absolute",
|
|
28
|
+
left: 0,
|
|
29
|
+
right: 0,
|
|
30
|
+
height: "100%",
|
|
31
|
+
width: "100%",
|
|
32
|
+
pointerEvents: "none",
|
|
37
33
|
});
|
|
38
34
|
export var Canvas = React.forwardRef(function (_a, ref) {
|
|
39
35
|
var drawCallback = _a.drawCallback, onResize = _a.onResize, props = __rest(_a, ["drawCallback", "onResize"]);
|
|
40
|
-
// Style
|
|
41
|
-
var classes = useStyles();
|
|
42
36
|
// State
|
|
43
37
|
var _b = React.useState(0), width = _b[0], setWidth = _b[1];
|
|
44
38
|
var _c = React.useState(0), height = _c[0], setHeight = _c[1];
|
|
@@ -57,7 +51,7 @@ export var Canvas = React.forwardRef(function (_a, ref) {
|
|
|
57
51
|
return function () { return cancelAnimationFrame(frameId); };
|
|
58
52
|
}, [drawCallback, width, height]);
|
|
59
53
|
return (React.createElement(ReactResizeDetector, { handleHeight: true, handleWidth: true, onResize: onResizeHandler },
|
|
60
|
-
React.createElement(
|
|
54
|
+
React.createElement(StyledCanvas, __assign({ ref: ref }, props))));
|
|
61
55
|
});
|
|
62
56
|
export default React.memo(Canvas);
|
|
63
57
|
//# sourceMappingURL=Canvas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Canvas.js","sourceRoot":"","sources":["../../../src/component/BreakPoint/Canvas.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Canvas.js","sourceRoot":"","sources":["../../../src/component/BreakPoint/Canvas.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,IAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACpC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,aAAa,EAAE,MAAM;CACtB,CAAC,CAAC;AAOH,MAAM,CAAC,IAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAOpC,UAAC,EAAoC,EAAE,GAAG;IAAvC,IAAA,YAAY,kBAAA,EAAE,QAAQ,cAAA,EAAK,KAAK,cAAlC,4BAAoC,CAAF;IACnC,QAAQ;IACF,IAAA,KAAoB,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAApC,KAAK,QAAA,EAAE,QAAQ,QAAqB,CAAC;IACtC,IAAA,KAAsB,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAtC,MAAM,QAAA,EAAE,SAAS,QAAqB,CAAC;IAE9C,YAAY;IACZ,IAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CACvC,UAAC,CAAS,EAAE,CAAS;QACnB,QAAQ,CAAC,CAAC,CAAC,CAAC;QACZ,SAAS,CAAC,CAAC,CAAC,CAAC;QACb,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACnB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,UAAU;IACV,KAAK,CAAC,eAAe,CAAC;QACpB,IAAI,CAAC,YAAY,EAAE;YACjB,OAAO;SACR;QACD,IAAM,OAAO,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;QACpD,OAAO,cAAM,OAAA,oBAAoB,CAAC,OAAO,CAAC,EAA7B,CAA6B,CAAC;IAC7C,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAElC,OAAO,CACL,oBAAC,mBAAmB,IAAC,YAAY,QAAC,WAAW,QAAC,QAAQ,EAAE,eAAe;QACrE,oBAAC,YAAY,aAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CACjB,CACvB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { createStyles, makeStyles } from "@material-ui/core";
|
|
2
1
|
import * as d3 from "d3";
|
|
3
2
|
import React, { useCallback, useRef } from "react";
|
|
4
3
|
import Canvas from "./Canvas";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
cursor: "pointer",
|
|
12
|
-
},
|
|
13
|
-
});
|
|
4
|
+
import { styled } from "@mui/system";
|
|
5
|
+
var StyledRootContainer = styled("div")({
|
|
6
|
+
height: "100%",
|
|
7
|
+
width: "100%",
|
|
8
|
+
position: "relative",
|
|
9
|
+
cursor: "pointer",
|
|
14
10
|
});
|
|
15
11
|
export var get2DContext = function (canvas, options) {
|
|
16
12
|
var dpi = window.devicePixelRatio || 1;
|
|
@@ -23,7 +19,6 @@ export var get2DContext = function (canvas, options) {
|
|
|
23
19
|
};
|
|
24
20
|
export var ColorScale = React.memo(function (_a) {
|
|
25
21
|
var arrayOfColors = _a.arrayOfColors, vertical = _a.vertical;
|
|
26
|
-
var classes = useStyles();
|
|
27
22
|
var canvasRef = useRef(null);
|
|
28
23
|
var drawCanvas = useCallback(function () {
|
|
29
24
|
var canvas = canvasRef.current;
|
|
@@ -58,7 +53,7 @@ export var ColorScale = React.memo(function (_a) {
|
|
|
58
53
|
}
|
|
59
54
|
}
|
|
60
55
|
}, [arrayOfColors, vertical]);
|
|
61
|
-
return (React.createElement(
|
|
56
|
+
return (React.createElement(StyledRootContainer, null,
|
|
62
57
|
React.createElement(Canvas, { ref: canvasRef, drawCallback: drawCanvas })));
|
|
63
58
|
});
|
|
64
59
|
//# sourceMappingURL=ColorScale.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorScale.js","sourceRoot":"","sources":["../../../src/component/BreakPoint/ColorScale.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ColorScale.js","sourceRoot":"","sources":["../../../src/component/BreakPoint/ColorScale.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAQrC,IAAM,mB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,EAAE,UAAU,GAAI,CAChC,CACvB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ColorScale } from "../BreakPoint/ColorScale";
|
|
3
|
-
import {
|
|
3
|
+
import { IconButton, ThemeProvider } from "@mui/material";
|
|
4
4
|
import { getColorArrayFromBreakPoints } from "../Utils/legendCommonFunction";
|
|
5
5
|
import { CustomizedDialogs } from "../../component/BreakPoint/Modal";
|
|
6
6
|
import { Popover } from "@mui/material";
|
|
@@ -8,6 +8,41 @@ import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
|
|
|
8
8
|
import EditIcon from "@mui/icons-material/Edit";
|
|
9
9
|
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
|
10
10
|
import { useRef } from "react";
|
|
11
|
+
import { useTheme } from "@mui/material/styles";
|
|
12
|
+
import { styled } from "@mui/system";
|
|
13
|
+
var StyledRootContainer = styled("div")(function (_a) {
|
|
14
|
+
var theme = _a.theme;
|
|
15
|
+
return ({
|
|
16
|
+
display: "flex",
|
|
17
|
+
gap: theme.spacing(2),
|
|
18
|
+
height: 20,
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
var StyledColorScaleContainer = styled("div")({
|
|
22
|
+
display: "flex",
|
|
23
|
+
marginTop: 8,
|
|
24
|
+
marginLeft: -10,
|
|
25
|
+
height: 27,
|
|
26
|
+
width: 248,
|
|
27
|
+
"&:hover": {
|
|
28
|
+
backgroundColor: "#f1f1f1",
|
|
29
|
+
cursor: "pointer",
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
var StyledTextureContainer = styled("div")({
|
|
33
|
+
height: "13px",
|
|
34
|
+
width: "100px",
|
|
35
|
+
marginTop: "6px",
|
|
36
|
+
marginLeft: "5px",
|
|
37
|
+
});
|
|
38
|
+
var StyledEditContainer = styled("div")({
|
|
39
|
+
"&:hover": {
|
|
40
|
+
backgroundColor: "#f1f1f1",
|
|
41
|
+
},
|
|
42
|
+
height: "50%",
|
|
43
|
+
width: "100%",
|
|
44
|
+
cursor: "pointer",
|
|
45
|
+
});
|
|
11
46
|
export var LegendComp = function (_a) {
|
|
12
47
|
var colorScaleBreakpoints = _a.colorScaleBreakpoints, editedData = _a.editedData, isModal = _a.isModal, handleModalClick = _a.handleModalClick, customScalesName = _a.customScalesName;
|
|
13
48
|
var _b = React.useState(colorScaleBreakpoints), breakpointValues = _b[0], setBreakPointValues = _b[1];
|
|
@@ -27,37 +62,6 @@ export var LegendComp = function (_a) {
|
|
|
27
62
|
? getColorArrayFromBreakPoints(orderedSelectedColors)
|
|
28
63
|
: [];
|
|
29
64
|
}, [orderedSelectedColors]);
|
|
30
|
-
var useStyles = makeStyles(function (theme) {
|
|
31
|
-
return createStyles({
|
|
32
|
-
root: {
|
|
33
|
-
display: "flex",
|
|
34
|
-
gap: theme.spacing(2),
|
|
35
|
-
height: 20,
|
|
36
|
-
},
|
|
37
|
-
colorScaleContainer: {
|
|
38
|
-
display: "flex",
|
|
39
|
-
marginTop: 8,
|
|
40
|
-
marginLeft: -10,
|
|
41
|
-
height: 27,
|
|
42
|
-
width: 248,
|
|
43
|
-
"&:hover": {
|
|
44
|
-
backgroundColor: "#f1f1f1",
|
|
45
|
-
cursor: "pointer",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
texture: {
|
|
49
|
-
height: "13px",
|
|
50
|
-
width: "100px",
|
|
51
|
-
marginTop: "6px",
|
|
52
|
-
marginLeft: "5px",
|
|
53
|
-
},
|
|
54
|
-
edit: {
|
|
55
|
-
"&:hover": {
|
|
56
|
-
backgroundColor: "#f1f1f1",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
65
|
var _d = React.useState(false), popUpState = _d[0], setPopUpState = _d[1];
|
|
62
66
|
var _e = React.useState(null), anchorEl = _e[0], setAnchorEl = _e[1];
|
|
63
67
|
var handleClick = function (event) {
|
|
@@ -85,15 +89,13 @@ export var LegendComp = function (_a) {
|
|
|
85
89
|
}
|
|
86
90
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
87
91
|
}, [popUpState]);
|
|
88
|
-
var classes = useStyles();
|
|
89
92
|
var scaleBreakpoints = React.useCallback(function (value) {
|
|
90
93
|
if (value) {
|
|
91
94
|
editedData({ colorArray: value, customizeFlag: true });
|
|
92
95
|
setBreakPointValues(value);
|
|
93
96
|
setCustomizedBreakpoints(value);
|
|
94
97
|
}
|
|
95
|
-
|
|
96
|
-
}, []);
|
|
98
|
+
}, [editedData]);
|
|
97
99
|
var appendCustomizedBreakPoints = React.useCallback(function () {
|
|
98
100
|
// if breakpoints are editted then use customizedBreakpoints
|
|
99
101
|
editedData({
|
|
@@ -107,33 +109,35 @@ export var LegendComp = function (_a) {
|
|
|
107
109
|
var open = Boolean(anchorEl);
|
|
108
110
|
var id = open ? "simple-popover" : undefined;
|
|
109
111
|
var divRef = useRef(null);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
112
|
+
var theme = useTheme();
|
|
113
|
+
return (arrayOfColors.length > 0 && (React.createElement(ThemeProvider, { theme: theme },
|
|
114
|
+
React.createElement(StyledRootContainer, { ref: divRef },
|
|
115
|
+
React.createElement(StyledColorScaleContainer, { onClick: appendCustomizedBreakPoints },
|
|
116
|
+
React.createElement(StyledTextureContainer, null,
|
|
117
|
+
React.createElement(ColorScale, { arrayOfColors: arrayOfColors })),
|
|
118
|
+
React.createElement("div", { style: {
|
|
119
|
+
whiteSpace: "nowrap",
|
|
120
|
+
fontSize: "small",
|
|
121
|
+
fontWeight: "700",
|
|
122
|
+
margin: "6px 0px 0px 6px",
|
|
123
|
+
cursor: "pointer",
|
|
124
|
+
} }, customScalesName + " Copy")),
|
|
125
|
+
React.createElement("div", { className: "breadCrumbs" },
|
|
126
|
+
React.createElement(IconButton, { size: "small", style: { marginTop: "8px" }, onClick: handleClick },
|
|
127
|
+
React.createElement(MoreHorizIcon, { fontSize: "small" }))),
|
|
128
|
+
React.createElement(Popover, { id: id, open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: {
|
|
129
|
+
vertical: "top",
|
|
130
|
+
horizontal: "right",
|
|
131
|
+
} },
|
|
132
|
+
React.createElement("div", { style: { height: "60px", width: "80px" } },
|
|
133
|
+
React.createElement(StyledEditContainer, { onClick: openEditModal },
|
|
134
|
+
React.createElement(EditIcon, { style: { margin: "5px 3px -5px 5px", cursor: "pointer" }, fontSize: "small" }),
|
|
135
|
+
" ",
|
|
136
|
+
"Edit"),
|
|
137
|
+
React.createElement(StyledEditContainer, { onClick: deleteLegend },
|
|
138
|
+
React.createElement(DeleteOutlinedIcon, { style: { margin: "5px 3px -5px 5px", cursor: "pointer" }, fontSize: "small" }),
|
|
139
|
+
" ",
|
|
140
|
+
"Delete"))),
|
|
141
|
+
popUpState === true && (React.createElement(CustomizedDialogs, { openModal: openEditModal, scaleBreakpoints: scaleBreakpoints, scaleData: orderedSelectedColors, customScalesName: customScalesName }))))));
|
|
138
142
|
};
|
|
139
143
|
//# sourceMappingURL=Legend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.js","sourceRoot":"","sources":["../../../src/component/BreakPoint/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Leg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8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { ThemeProvider, styled } from "@mui/material/styles";
|
|
3
3
|
import Dialog from "@mui/material/Dialog";
|
|
4
4
|
import { BreakPointComp } from "../../component/ColorSelector/BreakPointModule";
|
|
5
|
+
import { useTheme } from "@mui/material/styles";
|
|
5
6
|
var BootstrapDialog = styled(Dialog)(function (_a) {
|
|
6
7
|
var theme = _a.theme;
|
|
7
8
|
return ({
|
|
@@ -30,7 +31,9 @@ export var CustomizedDialogs = function (_a) {
|
|
|
30
31
|
},
|
|
31
32
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
33
|
[setColorScaleBreakpoints, colorScaleBreakpoints]);
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var theme = useTheme();
|
|
35
|
+
return (React.createElement("div", null, openDialog && (React.createElement(ThemeProvider, { theme: theme },
|
|
36
|
+
React.createElement(BootstrapDialog, { onClose: handleClose, "aria-labelledby": "customized-dialog-title", open: openDialog },
|
|
37
|
+
React.createElement(BreakPointComp, { colorScaleBreakpoints: colorScaleBreakpoints, setColorScaleBreakpoints: setColorScaleBreakpoints, editedBreakpoint: editedBreakpoint, customScalesName: customScalesName }))))));
|
|
35
38
|
};
|
|
36
39
|
//# sourceMappingURL=Modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/component/BreakPoint/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/component/BreakPoint/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC7D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AAU,IAAI,CACb,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK;QACzB,oBAAC,eAAe,IACd,OAAO,EAAE,WAAW,qBACJ,yBAAyB,EACzC,IAAI,EAAE,UAAU;YAEhB,oBAAC,cAAc,IACb,qBAAqB,EAAE,qBAAqB,EAC5C,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,gBAAgB,GAClC,CACc,CACJ,CACjB,CACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -21,15 +21,91 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
21
21
|
import * as React from "react";
|
|
22
22
|
import { ColorScale } from "../BreakPoint/ColorScale";
|
|
23
23
|
import { useRef } from "react";
|
|
24
|
-
import
|
|
25
|
-
import { createStyles, IconButton, makeStyles } from "@material-ui/core";
|
|
24
|
+
import { IconButton } from "@mui/material";
|
|
26
25
|
import { scaleLinear } from "d3";
|
|
27
26
|
import { clamp } from "lodash";
|
|
28
27
|
import { getColorArrayFromBreakPoints } from "../Utils/legendCommonFunction";
|
|
29
|
-
import AddCircleOutlineSharpIcon from "@
|
|
30
|
-
import RemoveCircleOutlineSharpIcon from "@
|
|
28
|
+
import AddCircleOutlineSharpIcon from "@mui/icons-material/AddCircleOutlineSharp";
|
|
29
|
+
import RemoveCircleOutlineSharpIcon from "@mui/icons-material/RemoveCircleOutlineSharp";
|
|
31
30
|
import { SketchPicker } from "react-color";
|
|
32
|
-
import ColorizeIcon from "@
|
|
31
|
+
import ColorizeIcon from "@mui/icons-material/Colorize";
|
|
32
|
+
import { styled } from "@mui/system";
|
|
33
|
+
var RAIL_HEIGHT = 16;
|
|
34
|
+
var pointer_width = 12;
|
|
35
|
+
var StyledControllersContainer = styled("div")({
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "row",
|
|
38
|
+
marginTop: "18px",
|
|
39
|
+
marginLeft: "30px",
|
|
40
|
+
});
|
|
41
|
+
var StyledRail = styled("div")({
|
|
42
|
+
position: "absolute",
|
|
43
|
+
width: "100%",
|
|
44
|
+
height: "100%",
|
|
45
|
+
});
|
|
46
|
+
var StyledPointerContainer = styled("div")({
|
|
47
|
+
userSelect: "none",
|
|
48
|
+
cursor: "pointer",
|
|
49
|
+
});
|
|
50
|
+
var StyledRoot = styled("div")(function (_a) {
|
|
51
|
+
var theme = _a.theme;
|
|
52
|
+
return ({
|
|
53
|
+
display: "flex",
|
|
54
|
+
flexDirection: "column",
|
|
55
|
+
gap: theme.spacing(2),
|
|
56
|
+
marginTop: "17px",
|
|
57
|
+
marginLeft: "37px",
|
|
58
|
+
height: "140px",
|
|
59
|
+
width: "240px",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
var StyledColorScaleContainer = styled("div")(function (_a) {
|
|
63
|
+
var theme = _a.theme;
|
|
64
|
+
return ({
|
|
65
|
+
height: RAIL_HEIGHT,
|
|
66
|
+
borderRadius: theme.shape.borderRadius,
|
|
67
|
+
overflow: "visible",
|
|
68
|
+
position: "relative",
|
|
69
|
+
marginTop: "9px",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var StyledTextureContainer = styled("div")(function (_a) {
|
|
73
|
+
var theme = _a.theme;
|
|
74
|
+
return ({
|
|
75
|
+
position: "absolute",
|
|
76
|
+
width: "100%",
|
|
77
|
+
height: "100%",
|
|
78
|
+
borderRadius: theme.shape.borderRadius,
|
|
79
|
+
cursor: "pointer",
|
|
80
|
+
overflow: "hidden",
|
|
81
|
+
zIndex: 999,
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
var StyledPointer = styled("div")(function (_a) {
|
|
85
|
+
var theme = _a.theme;
|
|
86
|
+
return ({
|
|
87
|
+
position: "absolute",
|
|
88
|
+
top: 20,
|
|
89
|
+
width: pointer_width,
|
|
90
|
+
height: RAIL_HEIGHT,
|
|
91
|
+
borderWidth: "thin",
|
|
92
|
+
borderStyle: "solid",
|
|
93
|
+
borderColor: "white",
|
|
94
|
+
borderTopLeftRadius: theme.shape.borderRadius,
|
|
95
|
+
borderTopRightRadius: theme.shape.borderRadius,
|
|
96
|
+
boxSizing: "border-box",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
var StyledPointerArrow = styled("div")({
|
|
100
|
+
position: "absolute",
|
|
101
|
+
top: 16,
|
|
102
|
+
width: 0,
|
|
103
|
+
height: 0,
|
|
104
|
+
borderLeft: "".concat(pointer_width / 2, "px solid transparent"),
|
|
105
|
+
borderRight: "".concat(pointer_width / 2, "px solid transparent"),
|
|
106
|
+
borderTop: "4px solid black",
|
|
107
|
+
transform: "rotate(180deg)",
|
|
108
|
+
});
|
|
33
109
|
export var BreakPointComp = function (_a) {
|
|
34
110
|
var colorScaleBreakpoints = _a.colorScaleBreakpoints, setColorScaleBreakpoints = _a.setColorScaleBreakpoints, editedBreakpoint = _a.editedBreakpoint, customScalesName = _a.customScalesName;
|
|
35
111
|
var divRef = useRef(null);
|
|
@@ -103,84 +179,13 @@ export var BreakPointComp = function (_a) {
|
|
|
103
179
|
setIndex(index);
|
|
104
180
|
setSelectedIndex(index);
|
|
105
181
|
}, []);
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
marginTop: "17px",
|
|
114
|
-
marginLeft: "37px",
|
|
115
|
-
height: "140px",
|
|
116
|
-
width: "240px",
|
|
117
|
-
},
|
|
118
|
-
controllersContainer: {
|
|
119
|
-
display: "flex",
|
|
120
|
-
flexDirection: "row",
|
|
121
|
-
marginTop: "18px",
|
|
122
|
-
marginLeft: "30px",
|
|
123
|
-
},
|
|
124
|
-
colorScaleContainer: {
|
|
125
|
-
height: RAIL_HEIGHT,
|
|
126
|
-
borderRadius: theme.shape.borderRadius,
|
|
127
|
-
overflow: "visible",
|
|
128
|
-
position: "relative",
|
|
129
|
-
marginTop: "9px",
|
|
130
|
-
},
|
|
131
|
-
texture: {
|
|
132
|
-
position: "absolute",
|
|
133
|
-
width: "100%",
|
|
134
|
-
height: "100%",
|
|
135
|
-
borderRadius: theme.shape.borderRadius,
|
|
136
|
-
cursor: "pointer",
|
|
137
|
-
overflow: "hidden",
|
|
138
|
-
zIndex: 999,
|
|
139
|
-
},
|
|
140
|
-
rail: {
|
|
141
|
-
position: "absolute",
|
|
142
|
-
width: "100%",
|
|
143
|
-
height: "100%",
|
|
144
|
-
},
|
|
145
|
-
pointerContainer: {
|
|
146
|
-
userSelect: "none",
|
|
147
|
-
cursor: "pointer",
|
|
148
|
-
},
|
|
149
|
-
pointer: {
|
|
150
|
-
position: "absolute",
|
|
151
|
-
top: 20,
|
|
152
|
-
width: pointer_width,
|
|
153
|
-
height: RAIL_HEIGHT,
|
|
154
|
-
borderWidth: "thin",
|
|
155
|
-
borderStyle: "solid",
|
|
156
|
-
borderColor: "white",
|
|
157
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
158
|
-
borderTopRightRadius: theme.shape.borderRadius,
|
|
159
|
-
boxSizing: "border-box",
|
|
160
|
-
},
|
|
161
|
-
selectedPointer: {
|
|
162
|
-
borderColor: "black",
|
|
163
|
-
borderWidth: 2,
|
|
164
|
-
},
|
|
165
|
-
pointerArrow: {
|
|
166
|
-
position: "absolute",
|
|
167
|
-
top: 16,
|
|
168
|
-
width: 0,
|
|
169
|
-
height: 0,
|
|
170
|
-
borderLeft: "".concat(pointer_width / 2, "px solid transparent"),
|
|
171
|
-
borderRight: "".concat(pointer_width / 2, "px solid transparent"),
|
|
172
|
-
borderTop: "4px solid black",
|
|
173
|
-
transform: "rotate(180deg)",
|
|
174
|
-
},
|
|
175
|
-
selectedPointerArrow: {
|
|
176
|
-
borderTopColor: "black",
|
|
177
|
-
},
|
|
178
|
-
grow: {
|
|
179
|
-
flexGrow: 1,
|
|
180
|
-
},
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
var classes = useStyles();
|
|
182
|
+
var selectedPointerArrowStyle = {
|
|
183
|
+
borderTopColor: "black",
|
|
184
|
+
};
|
|
185
|
+
var selectedPointerStyle = {
|
|
186
|
+
borderColor: "black",
|
|
187
|
+
borderWidth: 2,
|
|
188
|
+
};
|
|
184
189
|
var width = 200;
|
|
185
190
|
var onChangeComplete = React.useCallback(function (color) {
|
|
186
191
|
setColorScaleBreakpoints(function (items) {
|
|
@@ -225,29 +230,26 @@ export var BreakPointComp = function (_a) {
|
|
|
225
230
|
colorScaleBreakpoints,
|
|
226
231
|
colorScaleBreakpoints.length,
|
|
227
232
|
]);
|
|
228
|
-
return (React.createElement(
|
|
233
|
+
return (React.createElement(StyledRoot, null,
|
|
229
234
|
React.createElement("label", { style: { fontWeight: "bold" } },
|
|
230
235
|
"Edit : ",
|
|
231
236
|
customScalesName + " Copy"),
|
|
232
|
-
React.createElement(
|
|
233
|
-
React.createElement(
|
|
237
|
+
React.createElement(StyledColorScaleContainer, { style: { width: width } },
|
|
238
|
+
React.createElement(StyledTextureContainer, null,
|
|
234
239
|
React.createElement(ColorScale, { arrayOfColors: arrayOfColors })),
|
|
235
|
-
React.createElement(
|
|
240
|
+
React.createElement(StyledRail, { ref: setBoundingClientRect },
|
|
236
241
|
colorScaleBreakpoints.map(function (_a, index) {
|
|
237
|
-
var _b, _c;
|
|
238
242
|
var color = _a.color, position = _a.position;
|
|
239
243
|
var left = position * rectBox.width - pointer_width / 2;
|
|
240
244
|
var onMoveStart = function () { return onMouseDown(index); };
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
React.createElement(
|
|
246
|
-
_c[classes.selectedPointer] = selectedIndex === index,
|
|
247
|
-
_c)), style: { left: left, backgroundColor: color } })));
|
|
245
|
+
var pointerArrowStyle = selectedIndex === index ? selectedPointerArrowStyle : {};
|
|
246
|
+
var pointerStyle = selectedIndex === index ? selectedPointerStyle : {};
|
|
247
|
+
return (React.createElement(StyledPointerContainer, { key: index, onMouseDown: onMoveStart },
|
|
248
|
+
React.createElement(StyledPointerArrow, { sx: pointerArrowStyle, style: { left: left } }),
|
|
249
|
+
React.createElement(StyledPointer, { sx: pointerStyle, style: { left: left, backgroundColor: color } })));
|
|
248
250
|
}),
|
|
249
251
|
React.createElement("div", { style: { marginTop: "120px", position: "fixed" }, ref: divRef }, popUpState ? (React.createElement(SketchPicker, { color: "red", onChangeComplete: onChangeComplete })) : null))),
|
|
250
|
-
React.createElement(
|
|
252
|
+
React.createElement(StyledControllersContainer, null,
|
|
251
253
|
React.createElement(IconButton, { size: "medium", color: "primary", onClick: addBreakpoint },
|
|
252
254
|
React.createElement(AddCircleOutlineSharpIcon, { fontSize: "medium" })),
|
|
253
255
|
React.createElement(IconButton, { size: "medium", color: "secondary", onClick: function () { return deleteBreakPoint(selectedIndexRef.current); }, disabled: colorScaleBreakpoints.length === 1 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreakPointModule.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/BreakPointModule.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"BreakPointModule.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/BreakPointModule.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,4BAA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