@webviz/subsurface-viewer 0.0.2-alpha.2 → 0.0.2-alpha.4
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/SubsurfaceViewer.js +0 -4
- package/dist/SubsurfaceViewer.js.map +1 -1
- package/dist/components/ColorLegend.d.ts +1 -1
- package/dist/components/ColorLegends.d.ts +1 -1
- package/dist/components/InfoCard.js.map +1 -1
- package/dist/components/Map.d.ts +21 -19
- package/dist/components/Map.js +158 -245
- package/dist/components/Map.js.map +1 -1
- package/dist/layers/BoxSelectionLayer/boxSelectionLayer.d.ts +2 -3
- package/dist/layers/BoxSelectionLayer/boxSelectionLayer.js.map +1 -1
- package/dist/layers/axes/axesLayer.d.ts +2 -2
- package/dist/layers/axes/axesLayer.js.map +1 -1
- package/dist/layers/axes/boxLayer.d.ts +2 -2
- package/dist/layers/axes/boxLayer.js.map +1 -1
- package/dist/layers/axes2d/axes2DLayer.d.ts +2 -2
- package/dist/layers/axes2d/axes2DLayer.js.map +1 -1
- package/dist/layers/drawing/drawingLayer.d.ts +2 -2
- package/dist/layers/drawing/drawingLayer.js +1 -2
- package/dist/layers/drawing/drawingLayer.js.map +1 -1
- package/dist/layers/grid3d/grid3dLayer.d.ts +4 -4
- package/dist/layers/grid3d/grid3dLayer.js.map +1 -1
- package/dist/layers/grid3d/privateLayer.d.ts +2 -2
- package/dist/layers/grid3d/privateLayer.js +6 -3
- package/dist/layers/grid3d/privateLayer.js.map +1 -1
- package/dist/layers/map/mapLayer.d.ts +2 -2
- package/dist/layers/map/mapLayer.js.map +1 -1
- package/dist/layers/map/privateMapLayer.d.ts +2 -2
- package/dist/layers/map/privateMapLayer.js +2 -0
- package/dist/layers/map/privateMapLayer.js.map +1 -1
- package/dist/layers/northarrow/northArrow3DLayer.d.ts +2 -2
- package/dist/layers/northarrow/northArrow3DLayer.js.map +1 -1
- package/dist/layers/piechart/pieChartLayer.d.ts +1 -1
- package/dist/layers/points/pointsLayer.d.ts +2 -2
- package/dist/layers/points/pointsLayer.js.map +1 -1
- package/dist/layers/polylines/polylinesLayer.d.ts +2 -2
- package/dist/layers/polylines/polylinesLayer.js.map +1 -1
- package/dist/layers/terrain/map3DLayer.d.ts +4 -4
- package/dist/layers/terrain/map3DLayer.js.map +1 -1
- package/dist/layers/terrain/terrainMapLayer.js +6 -3
- package/dist/layers/terrain/terrainMapLayer.js.map +1 -1
- package/dist/layers/triangle/privateTriangleLayer.d.ts +2 -2
- package/dist/layers/triangle/privateTriangleLayer.js.map +1 -1
- package/dist/layers/triangle/triangleLayer.d.ts +2 -2
- package/dist/layers/triangle/triangleLayer.js.map +1 -1
- package/dist/layers/utils/layerTools.d.ts +2 -2
- package/dist/layers/wells/wellsLayer.d.ts +3 -3
- package/dist/layers/wells/wellsLayer.js.map +1 -1
- package/dist/package.json +3 -3
- package/dist/utils/fit-bounds.d.ts +0 -1
- package/dist/utils/fit-bounds.js +0 -3
- package/dist/utils/fit-bounds.js.map +1 -1
- package/dist/utils/specExtractor.d.ts +1 -1
- package/dist/utils/specExtractor.js.map +1 -1
- package/package.json +4 -4
- package/dist/storybook/SubsurfaceViewer.stories.d.ts +0 -455
- package/dist/storybook/SubsurfaceViewer.stories.js +0 -537
- package/dist/storybook/SubsurfaceViewer.stories.js.map +0 -1
- package/dist/storybook/components/InfoCard.stories.d.ts +0 -48
- package/dist/storybook/components/InfoCard.stories.js +0 -36
- package/dist/storybook/components/InfoCard.stories.js.map +0 -1
- package/dist/storybook/components/colorLegends/ContinuousLegend.stories.d.ts +0 -31
- package/dist/storybook/components/colorLegends/ContinuousLegend.stories.js +0 -30
- package/dist/storybook/components/colorLegends/ContinuousLegend.stories.js.map +0 -1
- package/dist/storybook/components/colorLegends/DiscreteLegend.stories.d.ts +0 -31
- package/dist/storybook/components/colorLegends/DiscreteLegend.stories.js +0 -30
- package/dist/storybook/components/colorLegends/DiscreteLegend.stories.js.map +0 -1
- package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.d.ts +0 -20
- package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.js +0 -66
- package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.js.map +0 -1
- package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.d.ts +0 -65
- package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.js +0 -94
- package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.js.map +0 -1
- package/dist/storybook/components/settings/LayerSettingsButton.stories.d.ts +0 -34
- package/dist/storybook/components/settings/LayerSettingsButton.stories.js +0 -31
- package/dist/storybook/components/settings/LayerSettingsButton.stories.js.map +0 -1
- package/dist/storybook/components/settings/NumericInput.stories.d.ts +0 -14
- package/dist/storybook/components/settings/NumericInput.stories.js +0 -15
- package/dist/storybook/components/settings/NumericInput.stories.js.map +0 -1
- package/dist/storybook/components/settings/ToggleButton.stories.d.ts +0 -13
- package/dist/storybook/components/settings/ToggleButton.stories.js +0 -14
- package/dist/storybook/components/settings/ToggleButton.stories.js.map +0 -1
- package/dist/storybook/schemaValidation/schemaValidation.stories.d.ts +0 -31
- package/dist/storybook/schemaValidation/schemaValidation.stories.js +0 -42
- package/dist/storybook/schemaValidation/schemaValidation.stories.js.map +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ContinuousLegend, colorTables } from "@emerson-eps/color-tables";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "SubsurfaceViewer/Components/ColorLegends/ContinuousLegend",
|
|
6
|
-
};
|
|
7
|
-
const min = 0;
|
|
8
|
-
const max = 0.35;
|
|
9
|
-
const dataObjectName = "Wells / PORO";
|
|
10
|
-
const position = [16, 10];
|
|
11
|
-
const name = "PORO";
|
|
12
|
-
const horizontal = false;
|
|
13
|
-
const colorName = "Rainbow";
|
|
14
|
-
const reverseRange = false;
|
|
15
|
-
const Template = (args) => {
|
|
16
|
-
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
|
-
};
|
|
18
|
-
export const ContinuousTemplate = Template.bind({});
|
|
19
|
-
ContinuousTemplate.args = {
|
|
20
|
-
min,
|
|
21
|
-
max,
|
|
22
|
-
dataObjectName,
|
|
23
|
-
position,
|
|
24
|
-
name,
|
|
25
|
-
colorName,
|
|
26
|
-
colorTables,
|
|
27
|
-
horizontal,
|
|
28
|
-
reverseRange,
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=ContinuousLegend.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContinuousLegend.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/colorLegends/ContinuousLegend.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC1E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,2DAA2D;CACrE,CAAC;AAEF,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,cAAc,GAAG,cAAc,CAAC;AACtC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,UAAU,GAAG,KAAK,CAAC;AACzB,MAAM,SAAS,GAAG,SAAS,CAAC;AAC5B,MAAM,YAAY,GAAG,KAAK,CAAC;AAE3B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,WAAW;IACX,UAAU;IACV,YAAY;CACf,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../src/custom.d.ts" />
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export { DiscreteColorLegend as component };
|
|
4
|
-
export const title: string;
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
export function DiscreteTemplate(args: any): React.JSX.Element;
|
|
8
|
-
export namespace DiscreteTemplate {
|
|
9
|
-
namespace args {
|
|
10
|
-
export { discreteData };
|
|
11
|
-
export { dataObjectName };
|
|
12
|
-
export { position };
|
|
13
|
-
export { colorName };
|
|
14
|
-
export { colorTables };
|
|
15
|
-
export { horizontal };
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
import { DiscreteColorLegend } from "@emerson-eps/color-tables";
|
|
19
|
-
import React from "react";
|
|
20
|
-
declare namespace discreteData {
|
|
21
|
-
const Above_BCU: (number | number[])[];
|
|
22
|
-
const ABOVE: (number | number[])[];
|
|
23
|
-
const H12: (number | number[])[];
|
|
24
|
-
const BELOW: (number | number[])[];
|
|
25
|
-
const H3: (number | number[])[];
|
|
26
|
-
}
|
|
27
|
-
declare const dataObjectName: "Wells / ZONELOG";
|
|
28
|
-
declare const position: number[];
|
|
29
|
-
declare const colorName: "Stratigraphy";
|
|
30
|
-
import { colorTables } from "@emerson-eps/color-tables";
|
|
31
|
-
declare const horizontal: false;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DiscreteColorLegend, colorTables } from "@emerson-eps/color-tables";
|
|
3
|
-
export default {
|
|
4
|
-
component: DiscreteColorLegend,
|
|
5
|
-
title: "SubsurfaceViewer/Components/ColorLegends/DiscreteColorLegend",
|
|
6
|
-
};
|
|
7
|
-
const discreteData = {
|
|
8
|
-
Above_BCU: [[255, 13, 186, 255], 0],
|
|
9
|
-
ABOVE: [[255, 64, 53, 255], 1],
|
|
10
|
-
H12: [[247, 255, 164, 255], 2],
|
|
11
|
-
BELOW: [[73, 255, 35, 255], 14],
|
|
12
|
-
H3: [[255, 144, 1, 255], 11],
|
|
13
|
-
};
|
|
14
|
-
const colorName = "Stratigraphy";
|
|
15
|
-
const dataObjectName = "Wells / ZONELOG";
|
|
16
|
-
const position = [16, 10];
|
|
17
|
-
const horizontal = false;
|
|
18
|
-
const Template = (args) => {
|
|
19
|
-
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
20
|
-
};
|
|
21
|
-
export const DiscreteTemplate = Template.bind({});
|
|
22
|
-
DiscreteTemplate.args = {
|
|
23
|
-
discreteData,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=DiscreteLegend.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DiscreteLegend.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/colorLegends/DiscreteLegend.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7E,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,8DAA8D;CACxE,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IACnC,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IAC9B,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;IAC/B,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;CAC/B,CAAC;AACF,MAAM,SAAS,GAAG,cAAc,CAAC;AACjC,MAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,KAAK,CAAC;AAEzB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACpB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { SubsurfaceViewer as component };
|
|
3
|
-
export const title: string;
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export function IndividualScaleForMap(args: any): React.JSX.Element;
|
|
7
|
-
export namespace IndividualScaleForMap {
|
|
8
|
-
const args: any;
|
|
9
|
-
namespace parameters {
|
|
10
|
-
namespace docs {
|
|
11
|
-
namespace description {
|
|
12
|
-
const story: string;
|
|
13
|
-
}
|
|
14
|
-
const inlineStories: boolean;
|
|
15
|
-
const iframeHeight: number;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
import SubsurfaceViewer from "../../../SubsurfaceViewer";
|
|
20
|
-
import React from "react";
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import exampleData from "../../../../../../demo/example-data/deckgl-map.json";
|
|
3
|
-
import SubsurfaceViewer from "../../../SubsurfaceViewer";
|
|
4
|
-
export default {
|
|
5
|
-
component: SubsurfaceViewer,
|
|
6
|
-
title: "SubsurfaceViewer/Components/ColorLegends/IndividualScaleForMap",
|
|
7
|
-
};
|
|
8
|
-
// Template for when edited data needs to be captured.
|
|
9
|
-
const EditDataTemplate = (args) => {
|
|
10
|
-
const [editedData, setEditedData] = React.useState(args.editedData);
|
|
11
|
-
React.useEffect(() => {
|
|
12
|
-
setEditedData(args.editedData);
|
|
13
|
-
}, [args.editedData]);
|
|
14
|
-
return (React.createElement(SubsurfaceViewer, Object.assign({}, args, { editedData: editedData, setProps: (updatedProps) => {
|
|
15
|
-
setEditedData(updatedProps.editedData);
|
|
16
|
-
} })));
|
|
17
|
-
};
|
|
18
|
-
// 4 maps with individual color scales for each map
|
|
19
|
-
export const IndividualScaleForMap = EditDataTemplate.bind({});
|
|
20
|
-
IndividualScaleForMap.args = Object.assign(Object.assign({}, exampleData[0]), { legend: {
|
|
21
|
-
visible: true,
|
|
22
|
-
}, zoom: -5, layers: [
|
|
23
|
-
exampleData[0].layers[0],
|
|
24
|
-
Object.assign(Object.assign({}, exampleData[0].layers[0]), { colorMapRange: [3000, 3100], valueRange: [3000, 3100], id: "colormap-2-layer", colorMapName: "Porosity" }),
|
|
25
|
-
Object.assign(Object.assign({}, exampleData[0].layers[0]), { colorMapRange: [3000, 3100], valueRange: [3000, 3100], id: "colormap-3-layer", colorMapName: "Permeability" }),
|
|
26
|
-
Object.assign(Object.assign({}, exampleData[0].layers[0]), { colorMapRange: [3000, 3100], valueRange: [3000, 3100], id: "colormap-4-layer", colorMapName: "Seismic" }),
|
|
27
|
-
], views: {
|
|
28
|
-
layout: [2, 2],
|
|
29
|
-
showLabel: true,
|
|
30
|
-
viewports: [
|
|
31
|
-
{
|
|
32
|
-
id: "view_1",
|
|
33
|
-
name: "Colormap 1 layer",
|
|
34
|
-
show3D: false,
|
|
35
|
-
layerIds: ["colormap-layer"],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: "view_2",
|
|
39
|
-
name: "Colormap 2 layer",
|
|
40
|
-
show3D: false,
|
|
41
|
-
layerIds: ["colormap-2-layer"],
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: "view_3",
|
|
45
|
-
name: "Colormap 3 layer",
|
|
46
|
-
show3D: false,
|
|
47
|
-
layerIds: ["colormap-3-layer"],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
id: "view_4",
|
|
51
|
-
name: "Colormap 4 layer",
|
|
52
|
-
show3D: false,
|
|
53
|
-
layerIds: ["colormap-4-layer"],
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
} });
|
|
57
|
-
IndividualScaleForMap.parameters = {
|
|
58
|
-
docs: {
|
|
59
|
-
description: {
|
|
60
|
-
story: "Four maps with individual color scales for each map",
|
|
61
|
-
},
|
|
62
|
-
inlineStories: false,
|
|
63
|
-
iframeHeight: 500,
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=IndividualScaleForMap.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IndividualScaleForMap.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/colorLegends/IndividualScaleForMap.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,qDAAqD,CAAC;AAC9E,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,gEAAgE;CAC1E,CAAC;AAEF,sDAAsD;AACtD,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,EAAE;IAC9B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,aAAa,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Y,EAAE,SAAS;KAE9B,EACD,KAAK,EAAE;QACH,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACd,SAAS,EAAE,IAAI;QACf,SAAS,EAAE;YACP;gBACI,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,kBAAkB;gBACxB,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,gBAAgB,CAAC;aAC/B;YACD;gBACI,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,kBAAkB;gBACxB,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,kBAAkB,CAAC;aACjC;YACD;gBACI,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,kBAAkB;gBACxB,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,kBAAkB,CAAC;aACjC;YACD;gBACI,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,kBAAkB;gBACxB,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,kBAAkB,CAAC;aACjC;SACJ;KACJ,GACJ,CAAC;AAEF,qBAAqB,CAAC,UAAU,GAAG;IAC/B,IAAI,EAAE;QACF,WAAW,EAAE;YACT,KAAK,EAAE,qDAAqD;SAC/D;QACD,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,GAAG;KACpB;CACJ,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../src/custom.d.ts" />
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export { SubsurfaceViewer as component };
|
|
4
|
-
export const title: string;
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
export function SingleScaleForMap(args: any): React.JSX.Element;
|
|
8
|
-
export namespace SingleScaleForMap {
|
|
9
|
-
namespace args {
|
|
10
|
-
export namespace legend {
|
|
11
|
-
const visible: boolean;
|
|
12
|
-
}
|
|
13
|
-
export const zoom: number;
|
|
14
|
-
export { reverseRange };
|
|
15
|
-
export namespace views {
|
|
16
|
-
const layout: number[];
|
|
17
|
-
const showLabel: boolean;
|
|
18
|
-
const viewports: {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
show3D: boolean;
|
|
22
|
-
layerIds: string[];
|
|
23
|
-
}[];
|
|
24
|
-
}
|
|
25
|
-
export const id: string;
|
|
26
|
-
export namespace resources {
|
|
27
|
-
const propertyMap: string;
|
|
28
|
-
}
|
|
29
|
-
export const bounds: number[];
|
|
30
|
-
export { min };
|
|
31
|
-
export { max };
|
|
32
|
-
export { dataObjectName };
|
|
33
|
-
export { position };
|
|
34
|
-
export { horizontal };
|
|
35
|
-
export { colorTables };
|
|
36
|
-
export const colorName: string;
|
|
37
|
-
export { layers };
|
|
38
|
-
}
|
|
39
|
-
namespace parameters {
|
|
40
|
-
namespace docs {
|
|
41
|
-
namespace description {
|
|
42
|
-
const story: string;
|
|
43
|
-
}
|
|
44
|
-
const inlineStories: boolean;
|
|
45
|
-
const iframeHeight: number;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
import SubsurfaceViewer from "../../../SubsurfaceViewer";
|
|
50
|
-
import React from "react";
|
|
51
|
-
declare const reverseRange: false;
|
|
52
|
-
declare const min: 0;
|
|
53
|
-
declare const max: 0.35;
|
|
54
|
-
declare const dataObjectName: "Legend";
|
|
55
|
-
declare const position: number[];
|
|
56
|
-
declare const horizontal: true;
|
|
57
|
-
import { colorTables } from "@emerson-eps/color-tables";
|
|
58
|
-
declare const layers: {
|
|
59
|
-
"@@type": string;
|
|
60
|
-
image: string;
|
|
61
|
-
rotDeg: number;
|
|
62
|
-
bounds: number[];
|
|
63
|
-
valueRange: number[];
|
|
64
|
-
colorMapRange: number[];
|
|
65
|
-
}[];
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ContinuousLegend, colorTables } from "@emerson-eps/color-tables";
|
|
3
|
-
import SubsurfaceViewer from "../../../SubsurfaceViewer";
|
|
4
|
-
export default {
|
|
5
|
-
component: SubsurfaceViewer,
|
|
6
|
-
title: "SubsurfaceViewer/Components/ColorLegends/SingleScaleForMap",
|
|
7
|
-
};
|
|
8
|
-
const defaultProps = {
|
|
9
|
-
id: "SubsurfaceViewer",
|
|
10
|
-
resources: {
|
|
11
|
-
propertyMap: "https://raw.githubusercontent.com/equinor/webviz-subsurface-components/master/react/src/demo/example-data/propertyMap.png",
|
|
12
|
-
},
|
|
13
|
-
bounds: [432150, 6475800, 439400, 6481500],
|
|
14
|
-
};
|
|
15
|
-
const layers = [
|
|
16
|
-
{
|
|
17
|
-
"@@type": "ColormapLayer",
|
|
18
|
-
image: "@@#resources.propertyMap",
|
|
19
|
-
rotDeg: 0,
|
|
20
|
-
bounds: [432205, 6475078, 437720, 6481113],
|
|
21
|
-
valueRange: [2782, 3513],
|
|
22
|
-
colorMapRange: [2782, 3513],
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
// prop for legend
|
|
26
|
-
const min = 0;
|
|
27
|
-
const max = 0.35;
|
|
28
|
-
const dataObjectName = "Legend";
|
|
29
|
-
const position = [16, 10];
|
|
30
|
-
const horizontal = true;
|
|
31
|
-
const reverseRange = false;
|
|
32
|
-
// 4 maps with same color scale for all maps
|
|
33
|
-
const mapWithScaleTemplate = (args) => {
|
|
34
|
-
const updatedLayerData = [
|
|
35
|
-
Object.assign(Object.assign({}, args.layers[0]), { colorMapName: args.colorName }),
|
|
36
|
-
];
|
|
37
|
-
return (React.createElement("div", null,
|
|
38
|
-
React.createElement("div", { style: {
|
|
39
|
-
float: "right",
|
|
40
|
-
zIndex: 999,
|
|
41
|
-
opacity: 1,
|
|
42
|
-
position: "relative",
|
|
43
|
-
} },
|
|
44
|
-
React.createElement(ContinuousLegend, Object.assign({}, args))),
|
|
45
|
-
React.createElement(SubsurfaceViewer, Object.assign({}, args, { layers: updatedLayerData }))));
|
|
46
|
-
};
|
|
47
|
-
export const SingleScaleForMap = mapWithScaleTemplate.bind({});
|
|
48
|
-
SingleScaleForMap.args = Object.assign(Object.assign({ min,
|
|
49
|
-
max,
|
|
50
|
-
dataObjectName,
|
|
51
|
-
position,
|
|
52
|
-
horizontal,
|
|
53
|
-
colorTables, colorName: "Rainbow", layers }, defaultProps), { legend: {
|
|
54
|
-
visible: false,
|
|
55
|
-
}, zoom: -5, reverseRange, views: {
|
|
56
|
-
layout: [2, 2],
|
|
57
|
-
showLabel: true,
|
|
58
|
-
viewports: [
|
|
59
|
-
{
|
|
60
|
-
id: "view_1",
|
|
61
|
-
name: "Colormap layer 1",
|
|
62
|
-
show3D: false,
|
|
63
|
-
layerIds: ["colormap-layer"],
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: "view_2",
|
|
67
|
-
name: "Colormap layer 2",
|
|
68
|
-
show3D: false,
|
|
69
|
-
layerIds: ["colormap-layer"],
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: "view_3",
|
|
73
|
-
name: "Colormap layer 3",
|
|
74
|
-
show3D: false,
|
|
75
|
-
layerIds: ["colormap-layer"],
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: "view_4",
|
|
79
|
-
name: "Colormap layer 4",
|
|
80
|
-
show3D: false,
|
|
81
|
-
layerIds: ["colormap-layer"],
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
} });
|
|
85
|
-
SingleScaleForMap.parameters = {
|
|
86
|
-
docs: {
|
|
87
|
-
description: {
|
|
88
|
-
story: "Four maps with same color scale for all maps",
|
|
89
|
-
},
|
|
90
|
-
inlineStories: false,
|
|
91
|
-
iframeHeight: 500,
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=SingleScaleForMap.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SingleScaleForMap.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/colorLegends/SingleScaleForMap.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO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,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,GAAG;KACpB;CACJ,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { LayerSettingsButton as component };
|
|
3
|
-
export const title: string;
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export function DrawingSettings(args: any): React.JSX.Element;
|
|
7
|
-
export namespace DrawingSettings {
|
|
8
|
-
namespace args {
|
|
9
|
-
const layer: {
|
|
10
|
-
name: string;
|
|
11
|
-
"@@type": string;
|
|
12
|
-
id: string;
|
|
13
|
-
visible: boolean;
|
|
14
|
-
mode: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export function WellsSettings(args: any): React.JSX.Element;
|
|
19
|
-
export namespace WellsSettings {
|
|
20
|
-
export namespace args_1 {
|
|
21
|
-
const layer_1: {
|
|
22
|
-
name: string;
|
|
23
|
-
"@@type": string;
|
|
24
|
-
id: string;
|
|
25
|
-
opacity: number;
|
|
26
|
-
pointRadiusScale: number;
|
|
27
|
-
visible: boolean;
|
|
28
|
-
};
|
|
29
|
-
export { layer_1 as layer };
|
|
30
|
-
}
|
|
31
|
-
export { args_1 as args };
|
|
32
|
-
}
|
|
33
|
-
import LayerSettingsButton from "../../../components/settings/LayerSettingsButton";
|
|
34
|
-
import React from "react";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import LayerSettingsButton from "../../../components/settings/LayerSettingsButton";
|
|
3
|
-
export default {
|
|
4
|
-
component: LayerSettingsButton,
|
|
5
|
-
title: "SubsurfaceViewer/Components/Settings/LayerSettingsButton",
|
|
6
|
-
};
|
|
7
|
-
const Template = (args) => {
|
|
8
|
-
return React.createElement(LayerSettingsButton, { layer: args.layer });
|
|
9
|
-
};
|
|
10
|
-
export const DrawingSettings = Template.bind({});
|
|
11
|
-
DrawingSettings.args = {
|
|
12
|
-
layer: {
|
|
13
|
-
name: "Drawing",
|
|
14
|
-
"@@type": "DrawingLayer",
|
|
15
|
-
id: "drawing-layer",
|
|
16
|
-
visible: true,
|
|
17
|
-
mode: "drawLineString",
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
export const WellsSettings = Template.bind({});
|
|
21
|
-
WellsSettings.args = {
|
|
22
|
-
layer: {
|
|
23
|
-
name: "Wells",
|
|
24
|
-
"@@type": "WellsLayer",
|
|
25
|
-
id: "wells-layer",
|
|
26
|
-
opacity: 1,
|
|
27
|
-
pointRadiusScale: 8,
|
|
28
|
-
visible: true,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=LayerSettingsButton.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayerSettingsButton.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/settings/LayerSettingsButton.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,MAAM,kDAAkD,CAAC;AAEnF,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,0DAA0D;CACpE,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAAC;AACtD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,KAAK,EAAE;QACH,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,cAAc;QACxB,EAAE,EAAE,eAAe;QACnB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,gBAAgB;KACzB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,aAAa,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,YAAY;QACtB,EAAE,EAAE,aAAa;QACjB,OAAO,EAAE,CAAC;QACV,gBAAgB,EAAE,CAAC;QACnB,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { NumericInput as component };
|
|
3
|
-
export const title: string;
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export function Default(args: any): React.JSX.Element;
|
|
7
|
-
export namespace Default {
|
|
8
|
-
namespace args {
|
|
9
|
-
const label: string;
|
|
10
|
-
const value: number;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import NumericInput from "../../../components/settings/NumericInput";
|
|
14
|
-
import React from "react";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import NumericInput from "../../../components/settings/NumericInput";
|
|
3
|
-
export default {
|
|
4
|
-
component: NumericInput,
|
|
5
|
-
title: "SubsurfaceViewer/Components/Settings/NumericInput",
|
|
6
|
-
};
|
|
7
|
-
const Template = (args) => {
|
|
8
|
-
return React.createElement(NumericInput, Object.assign({}, args));
|
|
9
|
-
};
|
|
10
|
-
export const Default = Template.bind({});
|
|
11
|
-
Default.args = {
|
|
12
|
-
label: "test",
|
|
13
|
-
value: 5,
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=NumericInput.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumericInput.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/settings/NumericInput.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,2CAA2C,CAAC;AAErE,eAAe;IACX,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,mDAAmD;CAC7D,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,YAAY,oBAAK,IAAI,EAAI,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACX,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,CAAC;CACX,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { ToggleButton as component };
|
|
3
|
-
export const title: string;
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export function Default(args: any): React.JSX.Element;
|
|
7
|
-
export namespace Default {
|
|
8
|
-
namespace args {
|
|
9
|
-
const label: string;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
import ToggleButton from "../../../components/settings/ToggleButton";
|
|
13
|
-
import React from "react";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ToggleButton from "../../../components/settings/ToggleButton";
|
|
3
|
-
export default {
|
|
4
|
-
component: ToggleButton,
|
|
5
|
-
title: "SubsurfaceViewer/Components/Settings/Switch",
|
|
6
|
-
};
|
|
7
|
-
const Template = (args) => {
|
|
8
|
-
return React.createElement(ToggleButton, Object.assign({}, args));
|
|
9
|
-
};
|
|
10
|
-
export const Default = Template.bind({});
|
|
11
|
-
Default.args = {
|
|
12
|
-
label: "test",
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=ToggleButton.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleButton.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/settings/ToggleButton.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,2CAA2C,CAAC;AAErE,eAAe;IACX,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,6CAA6C;CACvD,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,YAAY,oBAAK,IAAI,EAAI,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACX,KAAK,EAAE,MAAM;CAChB,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { SubsurfaceViewer as component };
|
|
3
|
-
export const title: string;
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export function WellsLayerValidation(args: any): React.JSX.Element;
|
|
7
|
-
export namespace WellsLayerValidation {
|
|
8
|
-
const args: any;
|
|
9
|
-
}
|
|
10
|
-
export function PieLayerValidation(args: any): React.JSX.Element;
|
|
11
|
-
export namespace PieLayerValidation {
|
|
12
|
-
const args_1: any;
|
|
13
|
-
export { args_1 as args };
|
|
14
|
-
}
|
|
15
|
-
export function GridLayerValidation(args: any): React.JSX.Element;
|
|
16
|
-
export namespace GridLayerValidation {
|
|
17
|
-
const args_2: any;
|
|
18
|
-
export { args_2 as args };
|
|
19
|
-
}
|
|
20
|
-
export function FaultPolygonsValidation(args: any): React.JSX.Element;
|
|
21
|
-
export namespace FaultPolygonsValidation {
|
|
22
|
-
const args_3: any;
|
|
23
|
-
export { args_3 as args };
|
|
24
|
-
}
|
|
25
|
-
export function ColorTableValidation(args: any): React.JSX.Element;
|
|
26
|
-
export namespace ColorTableValidation {
|
|
27
|
-
const args_4: any;
|
|
28
|
-
export { args_4 as args };
|
|
29
|
-
}
|
|
30
|
-
import SubsurfaceViewer from "../../SubsurfaceViewer";
|
|
31
|
-
import React from "react";
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import SubsurfaceViewer from "../../SubsurfaceViewer";
|
|
3
|
-
import { sampleLogData, sampleWellsData, samplePieData, sampleGridData, sampleColorTable, sampleFaultPolygonsData, } from "./sampleData";
|
|
4
|
-
import exampleData from "../../../../../demo/example-data/deckgl-map.json";
|
|
5
|
-
export default {
|
|
6
|
-
component: SubsurfaceViewer,
|
|
7
|
-
title: "SubsurfaceViewer/SchemaValidation",
|
|
8
|
-
};
|
|
9
|
-
// Template for when edited data needs to be captured.
|
|
10
|
-
const StoryTemplate = (args) => {
|
|
11
|
-
return React.createElement(SubsurfaceViewer, Object.assign({}, args));
|
|
12
|
-
};
|
|
13
|
-
export const WellsLayerValidation = StoryTemplate.bind();
|
|
14
|
-
WellsLayerValidation.args = Object.assign(Object.assign({}, exampleData[0]), { layers: [
|
|
15
|
-
Object.assign(Object.assign({}, exampleData[0].layers[4]), { data: sampleWellsData, logData: sampleLogData }),
|
|
16
|
-
Object.assign({}, exampleData[0].layers[6]),
|
|
17
|
-
], legend: {
|
|
18
|
-
visible: false,
|
|
19
|
-
}, checkDatafileSchema: true });
|
|
20
|
-
export const PieLayerValidation = StoryTemplate.bind();
|
|
21
|
-
PieLayerValidation.args = Object.assign(Object.assign({}, exampleData[0]), { layers: [
|
|
22
|
-
{
|
|
23
|
-
"@@type": "PieChartLayer",
|
|
24
|
-
data: samplePieData,
|
|
25
|
-
},
|
|
26
|
-
], checkDatafileSchema: true });
|
|
27
|
-
export const GridLayerValidation = StoryTemplate.bind();
|
|
28
|
-
GridLayerValidation.args = Object.assign(Object.assign({}, exampleData[0]), { layers: [
|
|
29
|
-
Object.assign(Object.assign({}, exampleData[0].layers[2]), { data: sampleGridData, visible: true }),
|
|
30
|
-
], checkDatafileSchema: true });
|
|
31
|
-
export const FaultPolygonsValidation = StoryTemplate.bind();
|
|
32
|
-
FaultPolygonsValidation.args = Object.assign(Object.assign({}, exampleData[0]), { layers: [
|
|
33
|
-
{
|
|
34
|
-
"@@type": "FaultPolygonsLayer",
|
|
35
|
-
data: sampleFaultPolygonsData,
|
|
36
|
-
},
|
|
37
|
-
], checkDatafileSchema: true });
|
|
38
|
-
export const ColorTableValidation = StoryTemplate.bind();
|
|
39
|
-
ColorTableValidation.args = Object.assign(Object.assign({}, exampleData[0]), { layers: [
|
|
40
|
-
Object.assign(Object.assign({}, exampleData[0].layers[4]), { logColor: "Colors_set_5", logRadius: 15 }),
|
|
41
|
-
], colorTables: sampleColorTable, checkDatafileSchema: true });
|
|
42
|
-
//# sourceMappingURL=schemaValidation.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemaValidation.stories.js","sourceRoot":"","sources":["../../../src/storybook/schemaValidation/schemaValidation.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,EACH,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,uBAAuB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,WAAW,MAAM,kDAAkD,CAAC;AAE3E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,mCAAmC;CAC7C,CAAC;AAEF,sDAAsD;AACtD,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,EAAE;IAC3B,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,IAAI,EAAE,CAAC;AACzD,oBAAoB,CAAC,IAAI,mCAClB,WAAW,CAAC,CAAC,CAAC,KACjB,MAAM,EAAE;wCAEG,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAC3B,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,aAAa;0BAGnB,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;KAElC,EACD,MAAM,EAAE;QACJ,OAAO,EAAE,KAAK;KACjB,EACD,mBAAmB,EAAE,IA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