@webviz/well-log-viewer 2.6.4 → 2.6.5
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/SyncLogViewer.js +1 -1
- package/dist/SyncLogViewer.js.map +1 -1
- package/dist/components/AxisSelector.d.ts +3 -7
- package/dist/components/AxisSelector.js +12 -34
- package/dist/components/AxisSelector.js.map +1 -1
- package/dist/components/CallbackManager.js.map +1 -1
- package/dist/components/InfoPanel.d.ts +2 -9
- package/dist/components/InfoPanel.js +17 -31
- package/dist/components/InfoPanel.js.map +1 -1
- package/dist/components/LocalMenus.d.ts +6 -25
- package/dist/components/LocalMenus.js +91 -89
- package/dist/components/LocalMenus.js.map +1 -1
- package/dist/components/Scroller.d.ts +3 -24
- package/dist/components/Scroller.js +65 -56
- package/dist/components/Scroller.js.map +1 -1
- package/dist/components/WellLogAxesPanel.js +1 -1
- package/dist/components/WellLogAxesPanel.js.map +1 -1
- package/dist/components/WellLogScaleSelector.d.ts +2 -15
- package/dist/components/WellLogScaleSelector.js +33 -77
- package/dist/components/WellLogScaleSelector.js.map +1 -1
- package/dist/components/WellLogViewWithScroller.d.ts +3 -3
- package/dist/components/WellLogViewWithScroller.js +4 -3
- package/dist/components/WellLogViewWithScroller.js.map +1 -1
- package/dist/components/WellLogZoomSlider.d.ts +2 -15
- package/dist/components/WellLogZoomSlider.js +32 -72
- package/dist/components/WellLogZoomSlider.js.map +1 -1
- package/dist/components/ZoomSlider.d.ts +2 -10
- package/dist/components/ZoomSlider.js +21 -51
- package/dist/components/ZoomSlider.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,83 +1,39 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useCallback, useEffect, useState } from "react";
|
|
2
2
|
import ScaleSelector from "./ScaleSelector";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
this.onChange = this.onChange.bind(this);
|
|
10
|
-
this.onContentRescale = this.onContentRescale.bind(this);
|
|
11
|
-
}
|
|
12
|
-
registerCallbacks(callbackManager) {
|
|
13
|
-
callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.registerCallback("onContentRescale", this.onContentRescale);
|
|
14
|
-
}
|
|
15
|
-
unregisterCallbacks(callbackManager) {
|
|
16
|
-
callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.unregisterCallback("onContentRescale", this.onContentRescale);
|
|
17
|
-
}
|
|
18
|
-
componentDidMount() {
|
|
19
|
-
// TODO: Fix this the next time the file is edited.
|
|
20
|
-
// eslint-disable-next-line react/prop-types
|
|
21
|
-
this.registerCallbacks(this.props.callbackManager);
|
|
22
|
-
}
|
|
23
|
-
componentWillUnmount() {
|
|
24
|
-
// TODO: Fix this the next time the file is edited.
|
|
25
|
-
// eslint-disable-next-line react/prop-types
|
|
26
|
-
this.unregisterCallbacks(this.props.callbackManager);
|
|
27
|
-
}
|
|
28
|
-
componentDidUpdate(prevProps) {
|
|
29
|
-
// TODO: Fix this the next time the file is edited.
|
|
30
|
-
// eslint-disable-next-line react/prop-types
|
|
31
|
-
if (prevProps.callbackManager !== this.props.callbackManager) {
|
|
32
|
-
// TODO: Fix this the next time the file is edited.
|
|
33
|
-
// eslint-disable-next-line react/prop-types
|
|
34
|
-
this.unregisterCallbacks(prevProps.callbackManager);
|
|
35
|
-
// TODO: Fix this the next time the file is edited.
|
|
36
|
-
// eslint-disable-next-line react/prop-types
|
|
37
|
-
this.registerCallbacks(this.props.callbackManager);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
// callback function from Vertical Scale combobox
|
|
41
|
-
onChange(value) {
|
|
42
|
-
var _a;
|
|
43
|
-
// TODO: Fix this the next time the file is edited.
|
|
44
|
-
// eslint-disable-next-line react/prop-types
|
|
45
|
-
const controller = (_a = this.props.callbackManager) === null || _a === void 0 ? void 0 : _a.controller;
|
|
3
|
+
export const WellLogScaleSelector = ({ callbackManager, label, values, round, }) => {
|
|
4
|
+
const [value, setValue] = useState(1.0);
|
|
5
|
+
// callback function from content rescale
|
|
6
|
+
const onContentRescale = useCallback(() => {
|
|
7
|
+
const controller = callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.controller;
|
|
46
8
|
if (!controller)
|
|
47
9
|
return;
|
|
48
|
-
controller.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// TODO: Fix this the next time the file is edited.
|
|
54
|
-
// eslint-disable-next-line react/prop-types
|
|
55
|
-
const controller = (_a = this.props.callbackManager) === null || _a === void 0 ? void 0 : _a.controller;
|
|
56
|
-
if (!controller)
|
|
57
|
-
return null;
|
|
58
|
-
const value = controller.getContentScale();
|
|
59
|
-
if (Math.abs(state.value - value) < 1)
|
|
60
|
-
return null;
|
|
61
|
-
return {
|
|
62
|
-
value: value,
|
|
63
|
-
};
|
|
10
|
+
const newValue = controller.getContentScale();
|
|
11
|
+
setValue((currentValue) => {
|
|
12
|
+
if (Math.abs(currentValue - newValue) < 1)
|
|
13
|
+
return currentValue;
|
|
14
|
+
return newValue;
|
|
64
15
|
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
16
|
+
}, [callbackManager]);
|
|
17
|
+
// callback function from Vertical Scale combobox
|
|
18
|
+
const onChange = useCallback((newValue) => {
|
|
19
|
+
const controller = callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.controller;
|
|
20
|
+
if (!controller)
|
|
21
|
+
return;
|
|
22
|
+
controller.setContentScale(newValue);
|
|
23
|
+
}, [callbackManager]);
|
|
24
|
+
// Handle callback registration/unregistration
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (!callbackManager)
|
|
27
|
+
return;
|
|
28
|
+
callbackManager.registerCallback("onContentRescale", onContentRescale);
|
|
29
|
+
return () => {
|
|
30
|
+
callbackManager.unregisterCallback("onContentRescale", onContentRescale);
|
|
31
|
+
};
|
|
32
|
+
}, [callbackManager, onContentRescale]);
|
|
33
|
+
return (React.createElement("div", { className: "scale" },
|
|
34
|
+
label && React.createElement("span", { className: "scale-label" }, label),
|
|
35
|
+
React.createElement("span", { className: "scale-value" },
|
|
36
|
+
React.createElement(ScaleSelector, { onChange: onChange, values: values, value: value, round: round }))));
|
|
37
|
+
};
|
|
82
38
|
export default WellLogScaleSelector;
|
|
83
39
|
//# sourceMappingURL=WellLogScaleSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WellLogScaleSelector.js","sourceRoot":"","sources":["../../src/components/WellLogScaleSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WellLogScaleSelector.js","sourceRoot":"","sources":["../../src/components/WellLogScaleSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAY5C,MAAM,CAAC,MAAM,oBAAoB,GAAoB,CAAC,EAClD,eAAe,EACf,KAAK,EACL,MAAM,EACN,KAAK,GACR,EAAE,EAAE;IACD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,GAAG,CAAC,CAAC;IAEhD,yCAAyC;IACzC,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,EAAE;QACtC,MAAM,UAAU,GAAG,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,UAAU,CAAC;QAC/C,IAAI,CAAC,UAAU;YAAE,OAAO;QAExB,MAAM,QAAQ,GAAG,UAAU,CAAC,eAAe,EAAE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
|
+
import React, { Component } from "react";
|
|
2
2
|
import type { WellLogViewProps } from "./WellLogView";
|
|
3
3
|
import type { WellLogController } from "./WellLogView";
|
|
4
|
-
import
|
|
4
|
+
import type { ScrollerRef } from "./Scroller";
|
|
5
5
|
export type WellLogViewWithScrollerProps = WellLogViewProps;
|
|
6
6
|
export declare const argTypesWellLogViewScrollerProp: {
|
|
7
7
|
horizontal: {
|
|
@@ -53,7 +53,7 @@ export declare const argTypesWellLogViewScrollerProp: {
|
|
|
53
53
|
declare class WellLogViewWithScroller extends Component<WellLogViewWithScrollerProps> {
|
|
54
54
|
static propTypes: Record<string, any>;
|
|
55
55
|
controller: WellLogController | null;
|
|
56
|
-
scroller:
|
|
56
|
+
scroller: React.RefObject<ScrollerRef>;
|
|
57
57
|
constructor(props: WellLogViewWithScrollerProps);
|
|
58
58
|
componentDidMount(): void;
|
|
59
59
|
shouldComponentUpdate(nextProps: WellLogViewWithScrollerProps): boolean;
|
|
@@ -9,7 +9,7 @@ class WellLogViewWithScroller extends Component {
|
|
|
9
9
|
super(props);
|
|
10
10
|
this.skipScrollNotification = 0;
|
|
11
11
|
this.controller = null;
|
|
12
|
-
this.scroller =
|
|
12
|
+
this.scroller = React.createRef();
|
|
13
13
|
this.onCreateController = this.onCreateController.bind(this);
|
|
14
14
|
this.onScrollerScroll = this.onScrollerScroll.bind(this);
|
|
15
15
|
this.onTrackScroll = this.onTrackScroll.bind(this);
|
|
@@ -97,9 +97,10 @@ class WellLogViewWithScroller extends Component {
|
|
|
97
97
|
: 0.0;
|
|
98
98
|
}
|
|
99
99
|
setScrollerPosAndZoom() {
|
|
100
|
+
var _a;
|
|
100
101
|
let x, y;
|
|
101
102
|
let xZoom, yZoom;
|
|
102
|
-
const scroller = this.scroller;
|
|
103
|
+
const scroller = (_a = this.scroller) === null || _a === void 0 ? void 0 : _a.current;
|
|
103
104
|
if (!scroller)
|
|
104
105
|
return;
|
|
105
106
|
const controller = this.controller;
|
|
@@ -163,7 +164,7 @@ class WellLogViewWithScroller extends Component {
|
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
render() {
|
|
166
|
-
return (React.createElement(Scroller, { ref:
|
|
167
|
+
return (React.createElement(Scroller, { ref: this.scroller, onScroll: this.onScrollerScroll },
|
|
167
168
|
React.createElement(WellLogView
|
|
168
169
|
// copy all props
|
|
169
170
|
, Object.assign({}, this.props, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WellLogViewWithScroller.js","sourceRoot":"","sources":["../../src/components/WellLogViewWithScroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"WellLogViewWithScroller.js","sourceRoot":"","sources":["../../src/components/WellLogViewWithScroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAKtD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CAAC;AAEvE,MAAM,uBAAwB,SAAQ,SAAuC;IAOzE,YAAY,KAAmC;QAC3C,KAAK,CAAC,KAAK,CAAC,CAAC;QAqDjB,2BAAsB,GAAW,CAAC,CAAC;QAnD/B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,EAAe,CAAC;QAE/C,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB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kB,EAAE,IAAI,CAAC,kBAAkB,EAC3C,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,IAC7C,CACK,CACd,CAAC;IACN,CAAC;CACJ;AAED,uBAAuB,CAAC,SAAS,GAAG,qBAAqB,EAAE,CAAC,CAAC,yBAAyB;AAEtF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import type { CallbackManager } from "./CallbackManager";
|
|
3
3
|
interface Props {
|
|
4
4
|
callbackManager: CallbackManager | undefined;
|
|
5
5
|
label?: string | JSX.Element;
|
|
6
6
|
max?: number;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
zoomValue: number;
|
|
10
|
-
}
|
|
11
|
-
export declare class WellLogZoomSlider extends Component<Props, State> {
|
|
12
|
-
constructor(props: Props);
|
|
13
|
-
registerCallbacks(callbackManager: CallbackManager | undefined): void;
|
|
14
|
-
unregisterCallbacks(callbackManager: CallbackManager | undefined): void;
|
|
15
|
-
componentDidMount(): void;
|
|
16
|
-
componentWillUnmount(): void;
|
|
17
|
-
componentDidUpdate(prevProps: Props): void;
|
|
18
|
-
onContentRescale(): void;
|
|
19
|
-
onZoomSliderChange(zoom: number): void;
|
|
20
|
-
render(): JSX.Element;
|
|
21
|
-
}
|
|
8
|
+
export declare const WellLogZoomSlider: React.FC<Props>;
|
|
22
9
|
export default WellLogZoomSlider;
|
|
@@ -1,77 +1,37 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState, useEffect, useCallback } from "react";
|
|
2
2
|
import ZoomSlider from "./ZoomSlider";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
registerCallbacks(callbackManager) {
|
|
13
|
-
callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.registerCallback("onContentRescale", this.onContentRescale);
|
|
14
|
-
}
|
|
15
|
-
unregisterCallbacks(callbackManager) {
|
|
16
|
-
callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.unregisterCallback("onContentRescale", this.onContentRescale);
|
|
17
|
-
}
|
|
18
|
-
componentDidMount() {
|
|
19
|
-
// TODO: Fix this the next time the file is edited.
|
|
20
|
-
// eslint-disable-next-line react/prop-types
|
|
21
|
-
this.registerCallbacks(this.props.callbackManager);
|
|
22
|
-
}
|
|
23
|
-
componentWillUnmount() {
|
|
24
|
-
// TODO: Fix this the next time the file is edited.
|
|
25
|
-
// eslint-disable-next-line react/prop-types
|
|
26
|
-
this.unregisterCallbacks(this.props.callbackManager);
|
|
27
|
-
}
|
|
28
|
-
componentDidUpdate(prevProps) {
|
|
29
|
-
// TODO: Fix this the next time the file is edited.
|
|
30
|
-
// eslint-disable-next-line react/prop-types
|
|
31
|
-
if (prevProps.callbackManager !== this.props.callbackManager) {
|
|
32
|
-
// TODO: Fix this the next time the file is edited.
|
|
33
|
-
// eslint-disable-next-line react/prop-types
|
|
34
|
-
this.unregisterCallbacks(prevProps.callbackManager);
|
|
35
|
-
// TODO: Fix this the next time the file is edited.
|
|
36
|
-
// eslint-disable-next-line react/prop-types
|
|
37
|
-
this.registerCallbacks(this.props.callbackManager);
|
|
3
|
+
export const WellLogZoomSlider = ({ callbackManager, label, max, }) => {
|
|
4
|
+
const [zoomValue, setZoomValue] = useState(1.0);
|
|
5
|
+
const onContentRescale = useCallback(() => {
|
|
6
|
+
const controller = callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.controller;
|
|
7
|
+
if (!controller)
|
|
8
|
+
return;
|
|
9
|
+
const zoom = controller.getContentZoom();
|
|
10
|
+
if (Math.abs(Math.log(zoomValue / zoom)) >= 0.01) {
|
|
11
|
+
setZoomValue(zoom);
|
|
38
12
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
zoomValue: zoom,
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
}
|
|
13
|
+
}, [callbackManager, zoomValue]);
|
|
14
|
+
const registerCallbacks = useCallback((cm) => {
|
|
15
|
+
cm === null || cm === void 0 ? void 0 : cm.registerCallback("onContentRescale", onContentRescale);
|
|
16
|
+
}, [onContentRescale]);
|
|
17
|
+
const unregisterCallbacks = useCallback((cm) => {
|
|
18
|
+
cm === null || cm === void 0 ? void 0 : cm.unregisterCallback("onContentRescale", onContentRescale);
|
|
19
|
+
}, [onContentRescale]);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
registerCallbacks(callbackManager);
|
|
22
|
+
return () => {
|
|
23
|
+
unregisterCallbacks(callbackManager);
|
|
24
|
+
};
|
|
25
|
+
}, [callbackManager, registerCallbacks, unregisterCallbacks]);
|
|
56
26
|
// callback function from zoom slider
|
|
57
|
-
onZoomSliderChange(zoom) {
|
|
58
|
-
var _a
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
// TODO: Fix this the next time the file is edited.
|
|
67
|
-
// eslint-disable-next-line react/prop-types
|
|
68
|
-
React.createElement("span", { className: "zoom-label" }, this.props.label)),
|
|
69
|
-
React.createElement("span", { className: "zoom-value" },
|
|
70
|
-
React.createElement(ZoomSlider, { value: this.state.zoomValue,
|
|
71
|
-
// TODO: Fix this the next time the file is edited.
|
|
72
|
-
// eslint-disable-next-line react/prop-types
|
|
73
|
-
max: this.props.max, onChange: this.onZoomSliderChange }))));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
27
|
+
const onZoomSliderChange = useCallback((zoom) => {
|
|
28
|
+
var _a;
|
|
29
|
+
(_a = callbackManager === null || callbackManager === void 0 ? void 0 : callbackManager.controller) === null || _a === void 0 ? void 0 : _a.zoomContent(zoom);
|
|
30
|
+
}, [callbackManager]);
|
|
31
|
+
return (React.createElement("div", { className: "zoom" },
|
|
32
|
+
label && React.createElement("span", { className: "zoom-label" }, label),
|
|
33
|
+
React.createElement("span", { className: "zoom-value" },
|
|
34
|
+
React.createElement(ZoomSlider, { value: zoomValue, max: max, onChange: onZoomSliderChange }))));
|
|
35
|
+
};
|
|
76
36
|
export default WellLogZoomSlider;
|
|
77
37
|
//# sourceMappingURL=WellLogZoomSlider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WellLogZoomSlider.js","sourceRoot":"","sources":["../../src/components/WellLogZoomSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WellLogZoomSlider.js","sourceRoot":"","sources":["../../src/components/WellLogZoomSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAIhE,OAAO,UAAU,MAAM,cAAc,CAAC;AAStC,MAAM,CAAC,MAAM,iBAAiB,GAAoB,CAAC,EAC/C,eAAe,EACf,KAAK,EACL,GAAG,GACN,EAAE,EAAE;IACD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAS,GAAG,CAAC,CAAC;IAExD,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,EAAE;QACtC,MAAM,UAAU,GAAG,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,UAAU,CAAC;QAC/C,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,MAAM,IAAI,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;QACzC,IAAI,IAAI,CAAC,GAAG,CAAC,IA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E,GAAG,EACR,QAAQ,EAAE,kBAAkB,GAC9B,CACC,CACL,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface ZoomSliderProps {
|
|
3
3
|
onChange: (value: number) => void;
|
|
4
4
|
value: number;
|
|
5
5
|
max?: number;
|
|
6
6
|
step?: number;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
level: number;
|
|
10
|
-
}
|
|
11
|
-
declare class ZoomSlider extends Component<ZoomSliderProps, State> {
|
|
12
|
-
constructor(props: ZoomSliderProps);
|
|
13
|
-
componentDidUpdate(prevProps: ZoomSliderProps): void;
|
|
14
|
-
onChange(_event: Event, level: number | number[]): void;
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
}
|
|
8
|
+
declare const ZoomSlider: React.FC<ZoomSliderProps>;
|
|
17
9
|
export default ZoomSlider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
2
|
import Slider from "@mui/material/Slider";
|
|
3
3
|
function convertLevelToValue(level) {
|
|
4
4
|
// convert zoom level to zoom value
|
|
@@ -11,59 +11,29 @@ function convertValueToLevel(value) {
|
|
|
11
11
|
function valueLabelFormat(value /*, index: number*/) {
|
|
12
12
|
return value.toFixed(Number.isInteger(value) || value > 20 ? 0 : 1);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.state = {
|
|
21
|
-
level: level,
|
|
22
|
-
};
|
|
23
|
-
this.onChange = this.onChange.bind(this);
|
|
24
|
-
}
|
|
25
|
-
componentDidUpdate(prevProps) {
|
|
26
|
-
// TODO: Fix this the next time the file is edited.
|
|
27
|
-
// eslint-disable-next-line react/prop-types
|
|
28
|
-
if (this.props.value !== prevProps.value) {
|
|
29
|
-
this.setState((state) => {
|
|
30
|
-
// TODO: Fix this the next time the file is edited.
|
|
31
|
-
// eslint-disable-next-line react/prop-types
|
|
32
|
-
const level = convertValueToLevel(this.props.value);
|
|
33
|
-
if (state.level === level)
|
|
34
|
-
return null;
|
|
35
|
-
return { level: level };
|
|
36
|
-
});
|
|
14
|
+
const ZoomSlider = ({ onChange, value, max = 256, step = 0.5, }) => {
|
|
15
|
+
const [level, setLevel] = useState(convertValueToLevel(value));
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const newLevel = convertValueToLevel(value);
|
|
18
|
+
if (level !== newLevel) {
|
|
19
|
+
setLevel(newLevel);
|
|
37
20
|
}
|
|
38
|
-
}
|
|
21
|
+
}, [value, level]);
|
|
39
22
|
// callback function from Zoom slider
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (typeof level !== "number")
|
|
23
|
+
const handleChange = React.useCallback((_event, newLevel) => {
|
|
24
|
+
if (typeof newLevel !== "number")
|
|
43
25
|
return;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// TODO: Fix this the next time the file is edited.
|
|
51
|
-
// eslint-disable-next-line react/prop-types
|
|
52
|
-
this.props.onChange(convertLevelToValue(level));
|
|
53
|
-
else
|
|
26
|
+
if (level !== newLevel) {
|
|
27
|
+
setLevel(newLevel);
|
|
28
|
+
if (onChange) {
|
|
29
|
+
onChange(convertLevelToValue(newLevel));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
54
32
|
console.error("ZoomSlider props.onChange not set");
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// TODO: Fix this the next time the file is edited.
|
|
61
|
-
// eslint-disable-next-line react/prop-types
|
|
62
|
-
step: this.props.step || 0.5,
|
|
63
|
-
// TODO: Fix this the next time the file is edited.
|
|
64
|
-
// eslint-disable-next-line react/prop-types
|
|
65
|
-
max: convertValueToLevel(this.props.max || 256), scale: convertLevelToValue, onChange: this.onChange, getAriaValueText: valueLabelFormat, valueLabelFormat: valueLabelFormat, "aria-labelledby": "non-linear-slider", valueLabelDisplay: "auto" }));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, [level, onChange]);
|
|
36
|
+
return (React.createElement(Slider, { value: level, defaultValue: 0, min: 0, step: step, max: convertValueToLevel(max), scale: convertLevelToValue, onChange: handleChange, getAriaValueText: valueLabelFormat, valueLabelFormat: valueLabelFormat, "aria-labelledby": "non-linear-slider", valueLabelDisplay: "auto" }));
|
|
37
|
+
};
|
|
68
38
|
export default ZoomSlider;
|
|
69
39
|
//# sourceMappingURL=ZoomSlider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoomSlider.js","sourceRoot":"","sources":["../../src/components/ZoomSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ZoomSlider.js","sourceRoot":"","sources":["../../src/components/ZoomSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAU1C,SAAS,mBAAmB,CAAC,KAAa;IACtC,mCAAmC;IACnC,OAAO,SAAA,CAAC,EAAI,KAAK,CAAA,CAAC;AACtB,CAAC;AACD,SAAS,mBAAmB,CAAC,KAAa;IACtC,mCAAmC;IACnC,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa,CAAC,mBAAmB;IACvD,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,C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KAAK,EAAE,mBAAmB,EAC1B,QAAQ,EAAE,YAAY,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,gBAAgB,qBAClB,mBAAmB,EACnC,iBAAiB,EAAC,MAAM,GAC1B,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webviz/well-log-viewer",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@emerson-eps/color-tables": "^0.4.92",
|
|
25
25
|
"@equinor/videx-wellog": "^0.11.3",
|
|
26
|
-
"@webviz/wsc-common": "1.3.
|
|
26
|
+
"@webviz/wsc-common": "1.3.5",
|
|
27
27
|
"convert-units": "^2.3.4",
|
|
28
28
|
"d3": "^7.8.2"
|
|
29
29
|
},
|