@webviz/well-completions-plot 1.9.12 → 2.0.1
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/WellCompletionsPlot.js +2 -5
- package/dist/WellCompletionsPlot.js.map +1 -1
- package/dist/components/CompletionsPlot.js +35 -41
- package/dist/components/CompletionsPlot.js.map +1 -1
- package/dist/components/StratigraphyPlot.js +4 -6
- package/dist/components/StratigraphyPlot.js.map +1 -1
- package/dist/components/TooltipProvider.js +2 -3
- package/dist/components/TooltipProvider.js.map +1 -1
- package/dist/components/WellsPlot.js +12 -22
- package/dist/components/WellsPlot.js.map +1 -1
- package/dist/types/dataTypes.d.ts +1 -2
- package/dist/types/dataTypes.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { useResizeDetector } from "react-resize-detector";
|
|
3
4
|
import { TooltipProvider } from "./components/TooltipProvider";
|
|
@@ -18,11 +19,7 @@ export const WellCompletionsPlot = React.memo((props) => {
|
|
|
18
19
|
const layout = width !== undefined && height !== undefined
|
|
19
20
|
? createLayout(width, height, padding)
|
|
20
21
|
: undefined;
|
|
21
|
-
return (
|
|
22
|
-
React.createElement("div", { ref: ref, id: props.id, className: "WellCompletionsPlot", "data-tooltip-id": "plot-tooltip", "data-tooltip-float": true }, layout && props.plotData && (React.createElement("svg", { id: `${props.id}-svg-context`, width: width, height: height, style: { position: "relative" } },
|
|
23
|
-
React.createElement(StratigraphyPlot, { data: props.plotData.stratigraphy, layout: layout, padding: padding }),
|
|
24
|
-
React.createElement(WellsPlot, { sortedCompletionDates: props.sortedCompletionDates, plotData: props.plotData, layout: layout, padding: padding }),
|
|
25
|
-
props.plotData && (React.createElement(CompletionsPlot, { plotData: props.plotData, layout: layout, padding: padding })))))));
|
|
22
|
+
return (_jsx(TooltipProvider, { children: _jsx("div", { ref: ref, id: props.id, className: "WellCompletionsPlot", "data-tooltip-id": "plot-tooltip", "data-tooltip-float": true, children: layout && props.plotData && (_jsxs("svg", { id: `${props.id}-svg-context`, width: width, height: height, style: { position: "relative" }, children: [_jsx(StratigraphyPlot, { data: props.plotData.stratigraphy, layout: layout, padding: padding }), _jsx(WellsPlot, { sortedCompletionDates: props.sortedCompletionDates, plotData: props.plotData, layout: layout, padding: padding }), props.plotData && (_jsx(CompletionsPlot, { plotData: props.plotData, layout: layout, padding: padding }))] })) }) }));
|
|
26
23
|
});
|
|
27
24
|
WellCompletionsPlot.displayName = "WellCompletionsPlot";
|
|
28
25
|
//# sourceMappingURL=WellCompletionsPlot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WellCompletionsPlot.js","sourceRoot":"","sources":["../src/WellCompletionsPlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAInD,OAAO,2BAA2B,CAAC;AAQnC,MAAM,OAAO,GAAY,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AACtE,uCAAuC;AACvC,qCAAqC;AACrC,MAAM,CAAC,MAAM,mBAAmB,GAC5B,KAAK,CAAC,IAAI,CAAC,CAAC,KAA+B,EAAE,EAAE;IAC3C,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GA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AAM,MAAM,GACR,KAAK,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS;QACvC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;QACtC,CAAC,CAAC,SAAS,CAAC;IAEpB,OAAO,CACH,KAAC,eAAe,cACZ,cACI,GAAG,EAAE,GAAsC,EAC3C,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,qBAAqB,qBAChB,cAAc,wBACV,IAAI,YAEvB,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,CACzB,eACI,EAAE,EAAE,GAAG,KAAK,CAAC,EAAE,cAAc,EAC7B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,aAE/B,KAAC,gBAAgB,IACb,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,YAAY,EACjC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAClB,EACF,KAAC,SAAS,IACN,qBAAqB,EACjB,KAAK,CAAC,qBAAqB,EAE/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAClB,EACD,KAAK,CAAC,QAAQ,IAAI,CACf,KAAC,eAAe,IACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAClB,CACL,IACC,CACT,GACC,GACQ,CACrB,CAAC;AACN,CAAC,CAAC,CAAC;AAEP,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
/* eslint-disable react-hooks/exhaustive-deps */ // remove when ready to fix these.
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { useTooltip } from "./TooltipProvider";
|
|
4
5
|
const CompletionTooltipContent = (props) => {
|
|
5
|
-
return (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
],
|
|
23
|
-
].map(([key, value]) => (React.createElement("tr", { key: `tooltip-${key}-${value}` },
|
|
24
|
-
React.createElement("td", null,
|
|
25
|
-
React.createElement("b", null, key)),
|
|
26
|
-
React.createElement("td", null, value)))))));
|
|
6
|
+
return (_jsx("table", { style: { color: "#fff" }, children: _jsx("tbody", { children: [
|
|
7
|
+
["Well name", props.wellName],
|
|
8
|
+
["Stratigraphy", props.zoneName],
|
|
9
|
+
["Open", props.completionData.open],
|
|
10
|
+
["Shut", props.completionData.shut],
|
|
11
|
+
[
|
|
12
|
+
"Kh Mean",
|
|
13
|
+
`${props.completionData.khMean.toFixed(props.decimalPlaces)}${props.khUnit}`,
|
|
14
|
+
],
|
|
15
|
+
[
|
|
16
|
+
"Kh Min",
|
|
17
|
+
`${props.completionData.khMin.toFixed(props.decimalPlaces)}${props.khUnit}`,
|
|
18
|
+
],
|
|
19
|
+
[
|
|
20
|
+
"Kh Max",
|
|
21
|
+
`${props.completionData.khMax.toFixed(props.decimalPlaces)}${props.khUnit}`,
|
|
22
|
+
],
|
|
23
|
+
].map(([key, value]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx("b", { children: key }) }), _jsx("td", { children: value })] }, `tooltip-${key}-${value}`))) }) }));
|
|
27
24
|
};
|
|
28
25
|
CompletionTooltipContent.displayName = "CompletionTooltipContent";
|
|
29
26
|
/* eslint-disable react/prop-types */
|
|
@@ -37,29 +34,26 @@ export const CompletionsPlot = (props) => {
|
|
|
37
34
|
const barHeight = props.layout.yExtent / Math.max(props.plotData.stratigraphy.length, 1);
|
|
38
35
|
const onMouseMove = React.useCallback(function onMouseOver(e, well, completion) {
|
|
39
36
|
const zoneName = props.plotData.stratigraphy[Math.floor((e.nativeEvent.offsetY - props.padding.top) / barHeight)].name;
|
|
40
|
-
setContent(() => (
|
|
37
|
+
setContent(() => (_jsx(CompletionTooltipContent, { zoneName: zoneName, wellName: well.name, completionData: completion, khUnit: khUnit, decimalPlaces: decimalPlaces })));
|
|
41
38
|
}, [setContent, props.plotData.stratigraphy, barHeight]);
|
|
42
39
|
const onMouseOut = React.useCallback(function onMouseOut() {
|
|
43
40
|
setContent(() => null);
|
|
44
41
|
}, [setContent]);
|
|
45
|
-
return (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
props.padding.top})`, width: (completion.shut * wellWidth) / 4, height: barHeight * (end - start), fill: "#f00", onMouseMove: (e) => onMouseMove(e, well, completion), onMouseOut: onMouseOut })));
|
|
61
|
-
})));
|
|
62
|
-
})));
|
|
42
|
+
return (_jsx("g", { children: props.plotData.wells.map((well, i) => {
|
|
43
|
+
return (_jsx("g", { transform: `translate(${props.padding.left + (i + 0.5) * wellWidth}, ${0})`, children: well.completions.map((completion, j) => {
|
|
44
|
+
const start = completion.zoneIndex;
|
|
45
|
+
const end = j === well.completions.length - 1
|
|
46
|
+
? props.plotData.stratigraphy.length
|
|
47
|
+
: well.completions[j + 1].zoneIndex;
|
|
48
|
+
const totalWidth = completion.open + completion.shut;
|
|
49
|
+
return (_jsxs("g", { children: [_jsx("rect", { transform: `translate(${-totalWidth * wellWidth * 0.25}, ${start * barHeight +
|
|
50
|
+
props.padding.top})`, width: (completion.shut * wellWidth) / 4, height: barHeight * (end - start), fill: "#f00", onMouseMove: (e) => onMouseMove(e, well, completion), onMouseOut: onMouseOut }, `well-${well.name}-completions-${j}-shut-left`), _jsx("rect", { transform: `translate(${-completion.open * wellWidth * 0.25}, ${start * barHeight +
|
|
51
|
+
props.padding.top})`, width: (completion.open * wellWidth) / 2, height: barHeight * (end - start), fill: "#111", onMouseMove: (e) => onMouseMove(e, well, completion), onMouseOut: onMouseOut }, `well-${well.name}-completions-${j}-open`), _jsx("rect", { transform: `translate(${(totalWidth - completion.shut) *
|
|
52
|
+
wellWidth *
|
|
53
|
+
0.25}, ${start * barHeight +
|
|
54
|
+
props.padding.top})`, width: (completion.shut * wellWidth) / 4, height: barHeight * (end - start), fill: "#f00", onMouseMove: (e) => onMouseMove(e, well, completion), onMouseOut: onMouseOut }, `well-${well.name}-completions-${j}-shut-right`)] }, `well-${well.name}-completions-${j}`));
|
|
55
|
+
}) }, `well-${well.name}-completions`));
|
|
56
|
+
}) }));
|
|
63
57
|
};
|
|
64
58
|
CompletionsPlot.displayName = "CompletionsPlot";
|
|
65
59
|
//# sourceMappingURL=CompletionsPlot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompletionsPlot.js","sourceRoot":"","sources":["../../src/components/CompletionsPlot.tsx"],"names":[],"mappings":"AAAA,gDAAgD,CAAC,kCAAkC;AAEnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAW/C,MAAM,wBAAwB,GAA4C,CACtE,KAAoC,EACtC,EAAE;IACA,OAAO,CACH
|
|
1
|
+
{"version":3,"file":"CompletionsPlot.js","sourceRoot":"","sources":["../../src/components/CompletionsPlot.tsx"],"names":[],"mappings":";AAAA,gDAAgD,CAAC,kCAAkC;AAEnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAW/C,MAAM,wBAAwB,GAA4C,CACtE,KAAoC,EACtC,EAAE;IACA,OAAO,CACH,gBAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAC3B,0BACK;gBACG,CAAC,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Name = (str) => str.length >= 13 ? "..." + str.substring(str.length - 10, str.length) : str;
|
|
3
4
|
/* eslint-disable react/prop-types */
|
|
4
5
|
export const StratigraphyPlot = React.memo((props) => {
|
|
5
6
|
const barHeight = props.layout.yExtent / Math.max(props.data.length, 1);
|
|
6
|
-
return (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
React.createElement("title", null, zone.name),
|
|
10
|
-
React.createElement("text", { style: { fontSize: "11px" }, textAnchor: "end", x: props.padding.left - 4, y: barHeight / 2, dy: ".35em", fontFamily: "sans-serif" }, shortenName(zone.name))));
|
|
11
|
-
})));
|
|
7
|
+
return (_jsx("g", { children: props.data.map((zone, i) => {
|
|
8
|
+
return (_jsxs("g", { transform: `translate(0,${props.padding.top + i * barHeight})`, children: [_jsx("rect", { transform: `translate(${props.padding.left}, 0)`, width: props.layout.xExtent, height: barHeight, fill: zone.color }), _jsx("title", { children: zone.name }), _jsx("text", { style: { fontSize: "11px" }, textAnchor: "end", x: props.padding.left - 4, y: barHeight / 2, dy: ".35em", fontFamily: "sans-serif", children: shortenName(zone.name) })] }, `zone-${zone.name}`));
|
|
9
|
+
}) }));
|
|
12
10
|
});
|
|
13
11
|
StratigraphyPlot.displayName = "StratigraphyPlot";
|
|
14
12
|
//# sourceMappingURL=StratigraphyPlot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StratigraphyPlot.js","sourceRoot":"","sources":["../../src/components/StratigraphyPlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CAChC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAChF,qCAAqC;AACrC,MAAM,CAAC,MAAM,gBAAg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C1B,eACI,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAC3B,UAAU,EAAC,KAAK,EAChB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,EACzB,CAAC,EAAE,SAAS,GAAG,CAAC,EAChB,EAAE,EAAE,OAAO,EACX,UAAU,EAAE,YAAY,YAEvB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GACpB,KAlBF,QAAQ,IAAI,CAAC,IAAI,EAAE,CAmBxB,CACP,CAAC;QACN,CAAC,CAAC,GACF,CACP,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { Tooltip as ReactTooltip } from "react-tooltip";
|
|
3
4
|
const TooltipContext = React.createContext({
|
|
@@ -16,9 +17,7 @@ const TooltipProvider = ({ children, }) => {
|
|
|
16
17
|
const value = React.useMemo(() => ({
|
|
17
18
|
setContent,
|
|
18
19
|
}), [setContent]);
|
|
19
|
-
return (
|
|
20
|
-
children,
|
|
21
|
-
React.createElement(ReactTooltip, { id: "plot-tooltip" }, Content)));
|
|
20
|
+
return (_jsxs(TooltipContext.Provider, { value: value, children: [children, _jsx(ReactTooltip, { id: "plot-tooltip", children: Content })] }));
|
|
22
21
|
};
|
|
23
22
|
/**
|
|
24
23
|
* A hook for displaying tooltips
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipProvider.js","sourceRoot":"","sources":["../../src/components/TooltipProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAEvC;IACC,UAAU,EAAE,GAA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AC;AAC5C,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
/* eslint-disable react-hooks/exhaustive-deps */ // remove when ready to fix these.
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { SortWellsBy, SortWellsByEnumToStringMapping, } from "../types/dataTypes";
|
|
4
5
|
import { capitalizeFirstLetter } from "../private-utils/stringUtils";
|
|
5
6
|
import { useTooltip } from "./TooltipProvider";
|
|
6
7
|
const WellTooltipContent = (props) => {
|
|
7
|
-
return (
|
|
8
|
-
React.createElement("tbody", null,
|
|
9
|
-
React.createElement("tr", { key: `well-tooltip-${props.name}-earliest-comp` },
|
|
10
|
-
React.createElement("td", null,
|
|
11
|
-
React.createElement("b", null, SortWellsByEnumToStringMapping[SortWellsBy.EARLIEST_COMPLETION_DATE])),
|
|
12
|
-
React.createElement("td", null, props.earliestCompDate)),
|
|
13
|
-
Object.entries(props.attributes).map(([key, value]) => (React.createElement("tr", { key: `well-tooltip-${name}-${key}` },
|
|
14
|
-
React.createElement("td", null,
|
|
15
|
-
React.createElement("b", null, capitalizeFirstLetter(key))),
|
|
16
|
-
React.createElement("td", null, value || "Undefined")))))));
|
|
8
|
+
return (_jsx("table", { style: { color: "#fff" }, children: _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { children: _jsx("b", { children: SortWellsByEnumToStringMapping[SortWellsBy.EARLIEST_COMPLETION_DATE] }) }), _jsx("td", { children: props.earliestCompDate })] }, `well-tooltip-${props.name}-earliest-comp`), Object.entries(props.attributes).map(([key, value]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx("b", { children: capitalizeFirstLetter(key) }) }), _jsx("td", { children: value || "Undefined" })] }, `well-tooltip-${name}-${key}`)))] }) }));
|
|
17
9
|
};
|
|
18
10
|
WellTooltipContent.displayName = "WellTooltipContent";
|
|
19
11
|
/* eslint-disable react/prop-types */
|
|
@@ -22,22 +14,20 @@ export const WellsPlot = (props) => {
|
|
|
22
14
|
const wellWidth = props.layout.xExtent / Math.max(props.plotData.wells.length, 1);
|
|
23
15
|
const barHeight = props.layout.yExtent / Math.max(props.plotData.stratigraphy.length, 1);
|
|
24
16
|
const onMouseOver = React.useCallback(function onMouseOver(well) {
|
|
25
|
-
setContent(() => (
|
|
17
|
+
setContent(() => (_jsx(WellTooltipContent, { name: well.name, earliestCompDate: props.sortedCompletionDates[well.earliestCompDateIndex], attributes: well.attributes })));
|
|
26
18
|
}, [setContent, props.sortedCompletionDates]);
|
|
27
19
|
const onMouseOut = React.useCallback(function onMouseOut() {
|
|
28
20
|
setContent(() => null);
|
|
29
21
|
}, [setContent]);
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
React.createElement("rect", { transform: `translate(0,${props.padding.top - 4})`, width: 0.5, height: height + 4, fill: "#111" })));
|
|
40
|
-
})));
|
|
22
|
+
return (_jsx("g", { children: props.plotData.wells.map((well, i) => {
|
|
23
|
+
const lastCompletion = Array.from(well.completions)
|
|
24
|
+
.reverse()
|
|
25
|
+
.find((comp) => comp.open + comp.shut > 0);
|
|
26
|
+
const height = lastCompletion
|
|
27
|
+
? (lastCompletion.zoneIndex + 1) * barHeight
|
|
28
|
+
: 0;
|
|
29
|
+
return (_jsxs("g", { transform: `translate(${props.padding.left + (i + 0.5) * wellWidth},0)`, children: [_jsx("text", { style: { fontSize: "9px" }, textAnchor: "start", transform: `translate(0,${props.padding.top - 10}) rotate(-60)`, x: 0, y: 0, dy: ".35em", fontFamily: "sans-serif", onMouseOver: () => onMouseOver(well), onMouseOut: onMouseOut, children: well.name }), _jsx("rect", { transform: `translate(0,${props.padding.top - 4})`, width: 0.5, height: height + 4, fill: "#111" })] }, `well-${well.name}`));
|
|
30
|
+
}) }));
|
|
41
31
|
};
|
|
42
32
|
WellsPlot.displayName = "WellsPlot";
|
|
43
33
|
//# sourceMappingURL=WellsPlot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WellsPlot.js","sourceRoot":"","sources":["../../src/components/WellsPlot.tsx"],"names":[],"mappings":"AAAA,gDAAgD,CAAC,kCAAkC;AAEnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,WAAW,EACX,8BAA8B,GACjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAS/C,MAAM,kBAAkB,GAAsC,CAC1D,KAA8B,EAChC,EAAE;IACA,OAAO,CACH
|
|
1
|
+
{"version":3,"file":"WellsPlot.js","sourceRoot":"","sources":["../../src/components/WellsPlot.tsx"],"names":[],"mappings":";AAAA,gDAAgD,CAAC,kCAAkC;AAEnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,WAAW,EACX,8BAA8B,GACjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAS/C,MAAM,kBAAkB,GAAsC,CAC1D,KAA8B,EAChC,EAAE;IACA,OAAO,CACH,gBAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAC3B,4BACI,yBACI,uBACI,sBAEQ,8BAA8B,CAC1B,WAAW,CAAC,wBAAwB,CACvC,GAEL,GACH,EACL,uBAAK,KAAK,CAAC,gBAAgB,GAAM,KAV5B,gBAAgB,KAAK,CAAC,IAAI,gBAAgB,CAW9C,EACJ,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,E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AC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
|
-
import type React from "react";
|
|
3
2
|
export type AttributeType = string | number | boolean | undefined;
|
|
4
3
|
export declare enum SortDirection {
|
|
5
4
|
ASCENDING = "Ascending",
|
|
@@ -48,7 +47,7 @@ export interface PlotData {
|
|
|
48
47
|
wells: WellPlotData[];
|
|
49
48
|
units: Units;
|
|
50
49
|
}
|
|
51
|
-
export declare const ZonePropTypes: PropTypes.Validator<NonNullable<PropTypes.InferProps<
|
|
50
|
+
export declare const ZonePropTypes: PropTypes.Validator<NonNullable<PropTypes.InferProps<Record<string, PropTypes.Validator<unknown>>>>>;
|
|
52
51
|
export declare const AttributeTypePropType: PropTypes.Requireable<NonNullable<string | number | boolean | null | undefined>>;
|
|
53
52
|
export declare const WellInfoPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
54
53
|
name: PropTypes.Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataTypes.js","sourceRoot":"","sources":["../../src/types/dataTypes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"dataTypes.js","sourceRoot":"","sources":["../../src/types/dataTypes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;AAC7B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,sCAAuB,CAAA;IACvB,wDAAyC,CAAA;IACzC,oEAAqD,CAAA;AACzD,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC1C,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,WAAW;IACpC,CAAC,WAAW,C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
|
1
1
|
{
|
|
2
2
|
"name": "@webviz/well-completions-plot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Equinor <opensource@equinor.com>",
|
|
26
26
|
"license": "MPL-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"react-resize-detector": "^
|
|
28
|
+
"react-resize-detector": "^12.3.0",
|
|
29
29
|
"react-tooltip": "^5.28.0"
|
|
30
30
|
},
|
|
31
31
|
"volta": {
|