@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.
Files changed (84) hide show
  1. package/dist/SubsurfaceViewer.js +0 -4
  2. package/dist/SubsurfaceViewer.js.map +1 -1
  3. package/dist/components/ColorLegend.d.ts +1 -1
  4. package/dist/components/ColorLegends.d.ts +1 -1
  5. package/dist/components/InfoCard.js.map +1 -1
  6. package/dist/components/Map.d.ts +21 -19
  7. package/dist/components/Map.js +158 -245
  8. package/dist/components/Map.js.map +1 -1
  9. package/dist/layers/BoxSelectionLayer/boxSelectionLayer.d.ts +2 -3
  10. package/dist/layers/BoxSelectionLayer/boxSelectionLayer.js.map +1 -1
  11. package/dist/layers/axes/axesLayer.d.ts +2 -2
  12. package/dist/layers/axes/axesLayer.js.map +1 -1
  13. package/dist/layers/axes/boxLayer.d.ts +2 -2
  14. package/dist/layers/axes/boxLayer.js.map +1 -1
  15. package/dist/layers/axes2d/axes2DLayer.d.ts +2 -2
  16. package/dist/layers/axes2d/axes2DLayer.js.map +1 -1
  17. package/dist/layers/drawing/drawingLayer.d.ts +2 -2
  18. package/dist/layers/drawing/drawingLayer.js +1 -2
  19. package/dist/layers/drawing/drawingLayer.js.map +1 -1
  20. package/dist/layers/grid3d/grid3dLayer.d.ts +4 -4
  21. package/dist/layers/grid3d/grid3dLayer.js.map +1 -1
  22. package/dist/layers/grid3d/privateLayer.d.ts +2 -2
  23. package/dist/layers/grid3d/privateLayer.js +6 -3
  24. package/dist/layers/grid3d/privateLayer.js.map +1 -1
  25. package/dist/layers/map/mapLayer.d.ts +2 -2
  26. package/dist/layers/map/mapLayer.js.map +1 -1
  27. package/dist/layers/map/privateMapLayer.d.ts +2 -2
  28. package/dist/layers/map/privateMapLayer.js +2 -0
  29. package/dist/layers/map/privateMapLayer.js.map +1 -1
  30. package/dist/layers/northarrow/northArrow3DLayer.d.ts +2 -2
  31. package/dist/layers/northarrow/northArrow3DLayer.js.map +1 -1
  32. package/dist/layers/piechart/pieChartLayer.d.ts +1 -1
  33. package/dist/layers/points/pointsLayer.d.ts +2 -2
  34. package/dist/layers/points/pointsLayer.js.map +1 -1
  35. package/dist/layers/polylines/polylinesLayer.d.ts +2 -2
  36. package/dist/layers/polylines/polylinesLayer.js.map +1 -1
  37. package/dist/layers/terrain/map3DLayer.d.ts +4 -4
  38. package/dist/layers/terrain/map3DLayer.js.map +1 -1
  39. package/dist/layers/terrain/terrainMapLayer.js +6 -3
  40. package/dist/layers/terrain/terrainMapLayer.js.map +1 -1
  41. package/dist/layers/triangle/privateTriangleLayer.d.ts +2 -2
  42. package/dist/layers/triangle/privateTriangleLayer.js.map +1 -1
  43. package/dist/layers/triangle/triangleLayer.d.ts +2 -2
  44. package/dist/layers/triangle/triangleLayer.js.map +1 -1
  45. package/dist/layers/utils/layerTools.d.ts +2 -2
  46. package/dist/layers/wells/wellsLayer.d.ts +3 -3
  47. package/dist/layers/wells/wellsLayer.js.map +1 -1
  48. package/dist/package.json +3 -3
  49. package/dist/utils/fit-bounds.d.ts +0 -1
  50. package/dist/utils/fit-bounds.js +0 -3
  51. package/dist/utils/fit-bounds.js.map +1 -1
  52. package/dist/utils/specExtractor.d.ts +1 -1
  53. package/dist/utils/specExtractor.js.map +1 -1
  54. package/package.json +4 -4
  55. package/dist/storybook/SubsurfaceViewer.stories.d.ts +0 -455
  56. package/dist/storybook/SubsurfaceViewer.stories.js +0 -537
  57. package/dist/storybook/SubsurfaceViewer.stories.js.map +0 -1
  58. package/dist/storybook/components/InfoCard.stories.d.ts +0 -48
  59. package/dist/storybook/components/InfoCard.stories.js +0 -36
  60. package/dist/storybook/components/InfoCard.stories.js.map +0 -1
  61. package/dist/storybook/components/colorLegends/ContinuousLegend.stories.d.ts +0 -31
  62. package/dist/storybook/components/colorLegends/ContinuousLegend.stories.js +0 -30
  63. package/dist/storybook/components/colorLegends/ContinuousLegend.stories.js.map +0 -1
  64. package/dist/storybook/components/colorLegends/DiscreteLegend.stories.d.ts +0 -31
  65. package/dist/storybook/components/colorLegends/DiscreteLegend.stories.js +0 -30
  66. package/dist/storybook/components/colorLegends/DiscreteLegend.stories.js.map +0 -1
  67. package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.d.ts +0 -20
  68. package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.js +0 -66
  69. package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.js.map +0 -1
  70. package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.d.ts +0 -65
  71. package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.js +0 -94
  72. package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.js.map +0 -1
  73. package/dist/storybook/components/settings/LayerSettingsButton.stories.d.ts +0 -34
  74. package/dist/storybook/components/settings/LayerSettingsButton.stories.js +0 -31
  75. package/dist/storybook/components/settings/LayerSettingsButton.stories.js.map +0 -1
  76. package/dist/storybook/components/settings/NumericInput.stories.d.ts +0 -14
  77. package/dist/storybook/components/settings/NumericInput.stories.js +0 -15
  78. package/dist/storybook/components/settings/NumericInput.stories.js.map +0 -1
  79. package/dist/storybook/components/settings/ToggleButton.stories.d.ts +0 -13
  80. package/dist/storybook/components/settings/ToggleButton.stories.js +0 -14
  81. package/dist/storybook/components/settings/ToggleButton.stories.js.map +0 -1
  82. package/dist/storybook/schemaValidation/schemaValidation.stories.d.ts +0 -31
  83. package/dist/storybook/schemaValidation/schemaValidation.stories.js +0 -42
  84. package/dist/storybook/schemaValidation/schemaValidation.stories.js.map +0 -1
@@ -1,537 +0,0 @@
1
- import React from "react";
2
- import { styled } from "@mui/material/styles";
3
- import SubsurfaceViewer from "../SubsurfaceViewer";
4
- import exampleData from "../../../../demo/example-data/deckgl-map.json";
5
- import { default as MapLayer } from "../layers/map/mapLayer";
6
- import { default as Axes2DLayer } from "../layers/axes2d/axes2DLayer";
7
- const PREFIX = "Default";
8
- const classes = {
9
- main: `${PREFIX}-main`,
10
- };
11
- const Root = styled("div")({
12
- [`& .${classes.main}`]: {
13
- width: 500,
14
- height: 500,
15
- top: "50%",
16
- left: "50%",
17
- transform: "translate(-50%, -50%)",
18
- border: "1px solid black",
19
- background: "azure",
20
- position: "absolute",
21
- },
22
- });
23
- export default {
24
- component: SubsurfaceViewer,
25
- title: "SubsurfaceViewer",
26
- argTypes: {
27
- id: {
28
- description: "The ID of this component, used to identify dash components in callbacks. The ID needs to be unique across all of the components in an app.",
29
- },
30
- resources: {
31
- description: "Resource dictionary made available in the DeckGL specification as an enum. \
32
- The values can be accessed like this: `@@#resources.resourceId`, where \
33
- `resourceId` is the key in the `resources` dict. For more information, \
34
- see the DeckGL documentation on enums in the json spec: \
35
- https://deck.gl/docs/api-reference/json/conversion-reference#enumerations-and-using-the--prefix",
36
- },
37
- layers: {
38
- description: "List of JSON object containing layer specific data. \
39
- Each JSON object will consist of layer type with key as `@@type` and layer specific data, if any.",
40
- },
41
- bounds: {
42
- description: "Coordinate boundary for the view defined as [left, bottom, right, top].",
43
- },
44
- zoom: {
45
- description: "Zoom level for the view",
46
- },
47
- views: {
48
- description: "Views configuration for map. If not specified, all the layers will be displayed in a single 2D viewport.<br/>" +
49
- "Options:<br/>" +
50
- "layout: [number, number] — Layout for viewport in specified as [row, column],<br/>" +
51
- "viewports: [`ViewportType`] — Layers configuration for multiple viewport,<br/><br/>" +
52
- "`ViewportType` options: <br/>" +
53
- "id: string — Viewport id <br>" +
54
- "name: string — Viewport name <br>" +
55
- "show3D: boolean — Toggle 3D view <br>" +
56
- "layerIds: [string] — Layer ids to be displayed on viewport.",
57
- },
58
- coords: {
59
- description: "Options for readout panel.<br/>" +
60
- "visible: boolean — Show/hide readout,<br/>" +
61
- "multipicking: boolean — Enable or disable multi picking,<br/>" +
62
- "pickDepth: number — Number of objects to pick.",
63
- },
64
- scale: {
65
- description: "Options for distance scale component.<br/>" +
66
- "visible: boolean — Show/hide scale bar,<br/>" +
67
- "incrementValue: number — Increment value for the scale,<br/>" +
68
- "widthPerUnit: number — Scale bar width in pixels per unit value,<br/>" +
69
- "position: [number, number] — Scale bar position in pixels.",
70
- },
71
- coordinateUnit: {
72
- description: "Unit for the scale ruler",
73
- },
74
- legend: {
75
- description: "Options for color legend.<br/>" +
76
- "visible: boolean — Show/hide color legend,<br/>" +
77
- "position: [number, number] — Legend position in pixels,<br/>" +
78
- "horizontal: boolean — Orientation of color legend.",
79
- },
80
- colorTables: {
81
- description: "Prop containing color table data." +
82
- "See colorTables repo for reference:<br/>" +
83
- "https://github.com/emerson-eps/color-tables/blob/main/react-app/dist/component/color-tables.json",
84
- },
85
- editedData: {
86
- description: "Map data returned via editedData prop.<br/>" +
87
- "selectedWell: string — Selected well name,<br/>" +
88
- "selectedPie: object — Selected pie chart data,<br/>" +
89
- "selectedFeatureIndexes: [number] — Drawing layer data index,<br/>" +
90
- "data: object — Drawing layer data, indexed from selectedFeatureIndexes.",
91
- },
92
- setProps: {
93
- description: "For reacting to prop changes",
94
- },
95
- },
96
- };
97
- // Template for when edited data needs to be captured.
98
- const EditDataTemplate = (args) => {
99
- const [editedData, setEditedData] = React.useState(args.editedData);
100
- React.useEffect(() => {
101
- setEditedData(args.editedData);
102
- }, [args.editedData]);
103
- return (React.createElement(SubsurfaceViewer, Object.assign({}, args, { editedData: editedData, setProps: (updatedProps) => {
104
- setEditedData(updatedProps.editedData);
105
- } })));
106
- };
107
- // Blank template.
108
- const MinimalTemplate = (args) => {
109
- return React.createElement(SubsurfaceViewer, Object.assign({}, args));
110
- };
111
- // Data for custome geojson layer with polyline data
112
- const customLayerWithPolylineData = {
113
- "@@type": "GeoJsonLayer",
114
- id: "geojson-line-layer",
115
- name: "Line",
116
- data: {
117
- type: "FeatureCollection",
118
- features: [
119
- {
120
- type: "Feature",
121
- properties: {},
122
- geometry: {
123
- type: "LineString",
124
- coordinates: [
125
- [434000, 6477500],
126
- [435500, 6477500],
127
- ],
128
- },
129
- },
130
- ],
131
- },
132
- getLineWidth: 20,
133
- lineWidthMinPixels: 2,
134
- };
135
- // Data for custom geojson layer with polygon data
136
- const customLayerWithPolygonData = {
137
- "@@type": "GeoJsonLayer",
138
- id: "geojson-layer",
139
- name: "Polygon",
140
- data: {
141
- type: "Feature",
142
- properties: {},
143
- geometry: {
144
- type: "Polygon",
145
- coordinates: [
146
- [
147
- [434562, 6477595],
148
- [434562, 6478595],
149
- [435062, 6478595],
150
- [435062, 6477595],
151
- [434562, 6477595],
152
- ],
153
- ],
154
- },
155
- },
156
- getLineWidth: 20,
157
- lineWidthMinPixels: 2,
158
- getLineColor: [0, 255, 255],
159
- getFillColor: [0, 255, 0],
160
- opacity: 0.3,
161
- };
162
- // Data for custom text layer
163
- const customLayerWithTextData = {
164
- "@@type": "TextLayer",
165
- id: "text-layer",
166
- name: "Text",
167
- data: [
168
- {
169
- name: "Custom GeoJson layer",
170
- coordinates: [434800, 6478695],
171
- },
172
- ],
173
- pickable: true,
174
- getPosition: (d) => d.coordinates,
175
- getText: (d) => d.name,
176
- getColor: [255, 0, 0],
177
- getSize: 16,
178
- getAngle: 0,
179
- getTextAnchor: "middle",
180
- getAlignmentBaseline: "center",
181
- };
182
- // Layers data for storybook example 1
183
- const layersData1 = [
184
- customLayerWithPolylineData,
185
- customLayerWithPolygonData,
186
- customLayerWithTextData,
187
- ];
188
- // Layers data for storybook example 2
189
- const colormapLayer = exampleData[0].layers[0];
190
- const layersData2 = [
191
- colormapLayer,
192
- customLayerWithPolylineData,
193
- customLayerWithPolygonData,
194
- customLayerWithTextData,
195
- ];
196
- const hillshadingLayer = exampleData[0].layers[1];
197
- // Storybook example 1
198
- export const Default = EditDataTemplate.bind({});
199
- Default.args = Object.assign({}, exampleData[0]);
200
- // Minimal map example.
201
- export const Minimal = () => (React.createElement(SubsurfaceViewer, { id: "deckgl-map", bounds: [0, 0, 1, 1] }));
202
- Minimal.parameters = {
203
- docs: {
204
- description: {
205
- story: "An example showing the minimal required arguments, which will give an empty map viewer.",
206
- },
207
- },
208
- };
209
- // Volve kh netmap data, flat surface
210
- export const KhMapFlat = MinimalTemplate.bind({});
211
- KhMapFlat.args = {
212
- id: "kh-map-flat",
213
- resources: {
214
- propertyMap: "./volve_property_normalized.png",
215
- depthMap: "./volve_hugin_depth_normalized.png",
216
- },
217
- bounds: [432150, 6475800, 439400, 6481500],
218
- layers: [
219
- {
220
- "@@type": "ColormapLayer",
221
- id: "property_map",
222
- valueRange: [-3071, 41048],
223
- bounds: [432150, 6475800, 439400, 6481500],
224
- image: "@@#resources.propertyMap",
225
- },
226
- Object.assign(Object.assign({}, hillshadingLayer), { valueRange: [2725, 3397], bounds: [432150, 6475800, 439400, 6481500], opacity: 0.6 }),
227
- ],
228
- };
229
- KhMapFlat.parameters = {
230
- docs: {
231
- description: {
232
- story: "An example showing a kh property layer and a depth map hillshading layer.",
233
- },
234
- inlineStories: false,
235
- iframeHeight: 500,
236
- },
237
- };
238
- // Map3DLayer. Properties encoded in RGB.
239
- const meshMapLayer = {
240
- "@@type": "Map3DLayer",
241
- id: "mesh-layer",
242
- mesh: "hugin_depth_25_m_normalized_margin.png",
243
- meshValueRange: [2782, 3513],
244
- frame: {
245
- origin: [432205, 6475078],
246
- count: [229, 291],
247
- increment: [25, 25],
248
- rotDeg: 0,
249
- },
250
- propertyTexture: "kh_netmap_25_m_normalized_margin.png",
251
- propertyValueRange: [-3071, 41048],
252
- contours: [0, 100.0],
253
- isContoursDepth: true,
254
- colorMapName: "Physics",
255
- };
256
- const meshMapLayerPng = new MapLayer({
257
- id: "mesh-layer-png",
258
- meshUrl: "hugin_depth_25_m.png",
259
- frame: {
260
- origin: [432150, 6475800],
261
- count: [291, 229],
262
- increment: [25, 25],
263
- rotDeg: 0,
264
- },
265
- propertiesUrl: "kh_netmap_25_m.png",
266
- contours: [0, 100],
267
- isContoursDepth: true,
268
- gridLines: false,
269
- material: true,
270
- smoothShading: true,
271
- colorMapName: "Physics",
272
- });
273
- const axes2D = new Axes2DLayer({
274
- id: "axes-layer",
275
- marginH: 80,
276
- marginV: 30,
277
- isLeftRuler: true,
278
- isRightRuler: false,
279
- isBottomRuler: true,
280
- isTopRuler: false,
281
- backgroundColor: [155, 155, 155, 255],
282
- });
283
- export const KhMapMesh = MinimalTemplate.bind({});
284
- KhMapMesh.args = {
285
- id: "kh-mesh-map",
286
- layers: [
287
- Object.assign({}, meshMapLayer),
288
- ],
289
- toolbar: {
290
- visible: false,
291
- },
292
- bounds: [432150, 6475800, 439400, 6481500],
293
- views: {
294
- layout: [1, 1],
295
- viewports: [
296
- {
297
- id: "view_1",
298
- show3D: true,
299
- layerIds: [],
300
- },
301
- ],
302
- },
303
- };
304
- //Material property may take these values:
305
- // true = default material. See deck.gl documentation for what that is. This is default property value.
306
- // false = no material.
307
- // Full spec:
308
- // {
309
- // ambient: 0.35,
310
- // diffuse: 0.6,
311
- // shininess: 32,
312
- // specularColor: [255, 255, 255],
313
- // }
314
- const material = {
315
- ambient: 0.35,
316
- diffuse: 0.6,
317
- shininess: 32,
318
- specularColor: [255, 255, 255],
319
- };
320
- export const MapMaterial = MinimalTemplate.bind({});
321
- MapMaterial.args = {
322
- id: "material",
323
- layers: [Object.assign(Object.assign({}, meshMapLayer), { material })],
324
- bounds: [432150, 6475800, 439400, 6481500],
325
- views: {
326
- layout: [1, 1],
327
- viewports: [
328
- {
329
- id: "view_1",
330
- show3D: false,
331
- layerIds: [],
332
- },
333
- ],
334
- },
335
- };
336
- MapMaterial.parameters = {
337
- docs: {
338
- description: {
339
- story: "An example showing example usage of Map3D material property.",
340
- },
341
- inlineStories: false,
342
- iframeHeight: 500,
343
- },
344
- };
345
- // Exapmple of using "colorMapClampColor" property.
346
- // Clamps colormap to this color at ends.
347
- // Given as array of three values (r,g,b) e.g: [255, 0, 0]
348
- // If not set (undefined) or set to true, it will clamp to color map min and max values.
349
- // If set to false the clamp color will be completely transparent.
350
- const propertyValueRange = [2782, 3513];
351
- const colorMapRange = [3000, 3513];
352
- const colorMapClampColor = [0, 255, 0]; // a color e.g. [0, 255, 0], false, true or undefined.
353
- export const MapClampColor = MinimalTemplate.bind({});
354
- MapClampColor.args = {
355
- id: "clampcolor",
356
- layers: [
357
- Object.assign(Object.assign({}, meshMapLayer), { propertyValueRange,
358
- colorMapRange,
359
- colorMapClampColor }),
360
- ],
361
- bounds: [432150, 6475800, 439400, 6481500],
362
- views: {
363
- layout: [1, 1],
364
- viewports: [
365
- {
366
- id: "view_1",
367
- show3D: false,
368
- layerIds: [],
369
- },
370
- ],
371
- },
372
- };
373
- MapClampColor.parameters = {
374
- docs: {
375
- description: {
376
- story: 'An example usage of map property `"colorMapClampColor"',
377
- },
378
- inlineStories: false,
379
- iframeHeight: 500,
380
- },
381
- };
382
- // Example using "colorMapFunction" property.
383
- const layer = Object.assign(Object.assign({}, meshMapLayer), { isContoursDepth: true, colorMapFunction: (x) => [255 - x * 100, 255 - x * 100, 255 * x] });
384
- export const colorMapFunction = MinimalTemplate.bind({});
385
- colorMapFunction.args = {
386
- id: "colorMapFunction",
387
- layers: [
388
- // map layer
389
- layer,
390
- Object.assign(Object.assign({}, colormapLayer), { image: "https://raw.githubusercontent.com/equinor/webviz-subsurface-components/master/react/src/demo/example-data/propertyMap.png", colorMapFunction: (x) => [255 - x * 100, 255 - x * 100, 255 * x] }),
391
- ],
392
- bounds: [432150, 6475800, 439400, 6481500],
393
- views: {
394
- layout: [1, 1],
395
- viewports: [
396
- {
397
- id: "view_1",
398
- show3D: true,
399
- layerIds: [],
400
- },
401
- ],
402
- },
403
- };
404
- // custom layer example
405
- export const UserDefinedLayer1 = EditDataTemplate.bind({});
406
- UserDefinedLayer1.args = {
407
- id: exampleData[0].id,
408
- bounds: exampleData[0].bounds,
409
- layers: layersData1,
410
- };
411
- // custom layer with colormap
412
- export const UserDefinedLayer2 = EditDataTemplate.bind({});
413
- UserDefinedLayer2.args = {
414
- id: exampleData[0].id,
415
- resources: exampleData[0].resources,
416
- bounds: exampleData[0].bounds,
417
- layers: layersData2,
418
- };
419
- // multiple synced view
420
- export const MultiView = EditDataTemplate.bind({});
421
- MultiView.args = Object.assign(Object.assign({}, exampleData[0]), { legend: {
422
- visible: false,
423
- }, layers: [
424
- ...exampleData[0].layers,
425
- customLayerWithPolylineData,
426
- customLayerWithPolygonData,
427
- customLayerWithTextData,
428
- ], views: {
429
- layout: [2, 2],
430
- showLabel: true,
431
- viewports: [
432
- {
433
- id: "view_1",
434
- name: "Colormap layer",
435
- show3D: false,
436
- layerIds: ["colormap-layer"],
437
- zoom: -5,
438
- isSync: true,
439
- },
440
- {
441
- id: "view_2",
442
- name: "Hill-shading layer",
443
- show3D: false,
444
- layerIds: ["hillshading-layer"],
445
- zoom: -5,
446
- isSync: true,
447
- },
448
- {
449
- id: "view_3",
450
- name: "All layers",
451
- show3D: false,
452
- layerIds: [],
453
- zoom: -5,
454
- isSync: false,
455
- },
456
- {
457
- id: "view_4",
458
- name: "Custom layer",
459
- show3D: false,
460
- layerIds: ["geojson-line-layer", "geojson-layer", "text-layer"],
461
- zoom: -5,
462
- isSync: false,
463
- },
464
- ],
465
- } });
466
- // ---------Selectable GeoJson Layer example--------------- //
467
- export const SelectableFeatureExample = (args) => {
468
- const [editedData, setEditedData] = React.useState(args.editedData);
469
- React.useEffect(() => {
470
- setEditedData(args.editedData);
471
- }, [args.editedData]);
472
- return (React.createElement("div", null,
473
- React.createElement(SubsurfaceViewer, Object.assign({}, args, { editedData: editedData, setProps: (updatedProps) => {
474
- setEditedData(updatedProps.editedData);
475
- } })),
476
- React.createElement("pre", null, JSON.stringify(editedData, null, 2))));
477
- };
478
- SelectableFeatureExample.parameters = {
479
- docs: {
480
- description: {
481
- story: "An example showing selectable feature example from the map.",
482
- },
483
- },
484
- };
485
- const polylineUsingSelectableGeoJsonLayer = Object.assign(Object.assign({}, customLayerWithPolylineData), { "@@type": "SelectableGeoJsonLayer" });
486
- const polygonUsingSelectableGeoJsonLayer = Object.assign(Object.assign({}, customLayerWithPolygonData), { "@@type": "SelectableGeoJsonLayer" });
487
- SelectableFeatureExample.args = {
488
- id: "DeckGL-Map",
489
- bounds: [432205, 6475078, 437720, 6481113],
490
- layers: [
491
- polylineUsingSelectableGeoJsonLayer,
492
- polygonUsingSelectableGeoJsonLayer,
493
- ],
494
- };
495
- export const MapInContainer = (args) => {
496
- return (React.createElement(Root, { className: classes.main },
497
- React.createElement(SubsurfaceViewer, Object.assign({}, args))));
498
- };
499
- MapInContainer.args = Object.assign({}, exampleData[0]);
500
- export const ViewMatrixMargin = EditDataTemplate.bind({});
501
- ViewMatrixMargin.args = {
502
- id: "DeckGL-Map",
503
- layers: [meshMapLayerPng, axes2D],
504
- bounds: [432150, 6475800, 439400, 6481501],
505
- views: {
506
- layout: [2, 2],
507
- marginPixels: 10,
508
- showLabel: true,
509
- viewports: [
510
- {
511
- id: "view_1",
512
- show3D: false,
513
- layerIds: ["mesh-layer-png", "axes-layer"],
514
- isSync: true,
515
- },
516
- {
517
- id: "view_2",
518
- show3D: false,
519
- layerIds: ["mesh-layer-png", "axes-layer"],
520
- isSync: true,
521
- },
522
- {
523
- id: "view_3",
524
- show3D: false,
525
- layerIds: ["mesh-layer-png", "axes-layer"],
526
- isSync: false,
527
- },
528
- {
529
- id: "view_4",
530
- show3D: false,
531
- layerIds: ["mesh-layer-png", "axes-layer"],
532
- isSync: false,
533
- },
534
- ],
535
- },
536
- };
537
- //# sourceMappingURL=SubsurfaceViewer.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SubsurfaceViewer.stories.js","sourceRoot":"","sources":["../../src/storybook/SubsurfaceViewer.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,WAAW,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,M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C,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;IAC1C,KAAK,EAAE;QACH,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACd,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,IAAI;QACf,SAAS,EAAE;YACP;gBACI,EAAE,EAAE,QAAQ;gBACZ,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;gBAC1C,MAAM,EAAE,IAAI;aACf;YACD;gBACI,EAAE,EAAE,QAAQ;gBACZ,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;gBAC1C,MAAM,EAAE,IAAI;aACf;YACD;gBACI,EAAE,EAAE,QAAQ;gBACZ,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;gBAC1C,MAAM,EAAE,KAAK;aAChB;YACD;gBACI,EAAE,EAAE,QAAQ;gBACZ,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;gBAC1C,MAAM,EAAE,KAAK;aAChB;SACJ;KACJ;CACJ,CAAC"}
@@ -1,48 +0,0 @@
1
- declare namespace _default {
2
- export { InfoCard as component };
3
- export const title: string;
4
- }
5
- export default _default;
6
- export function SingleProperty(args: any): React.JSX.Element;
7
- export namespace SingleProperty {
8
- namespace args {
9
- const pickInfos: {
10
- x: number;
11
- y: number;
12
- radius: number;
13
- depth: number;
14
- coordinate: number[];
15
- }[];
16
- }
17
- }
18
- export function MutipleProperties(args: any): React.JSX.Element;
19
- export namespace MutipleProperties {
20
- export namespace args_1 {
21
- const pickInfos_1: ({
22
- x: number;
23
- y: number;
24
- radius: number;
25
- depth: number;
26
- coordinate: number[];
27
- layer?: undefined;
28
- property?: undefined;
29
- } | {
30
- layer: {
31
- id: string;
32
- };
33
- property: {
34
- name: string;
35
- value: number;
36
- };
37
- x?: undefined;
38
- y?: undefined;
39
- radius?: undefined;
40
- depth?: undefined;
41
- coordinate?: undefined;
42
- })[];
43
- export { pickInfos_1 as pickInfos };
44
- }
45
- export { args_1 as args };
46
- }
47
- import InfoCard from "../../components/InfoCard";
48
- import React from "react";
@@ -1,36 +0,0 @@
1
- import React from "react";
2
- import InfoCard from "../../components/InfoCard";
3
- export default {
4
- component: InfoCard,
5
- title: "SubsurfaceViewer/Components/InfoCard",
6
- };
7
- const Template = (args) => React.createElement(InfoCard, Object.assign({}, args));
8
- export const SingleProperty = Template.bind({});
9
- SingleProperty.args = {
10
- pickInfos: [
11
- {
12
- x: 152,
13
- y: 254,
14
- radius: 1,
15
- depth: 638,
16
- coordinate: [111, 222],
17
- },
18
- ],
19
- };
20
- export const MutipleProperties = Template.bind({});
21
- MutipleProperties.args = {
22
- pickInfos: [
23
- {
24
- x: 152,
25
- y: 254,
26
- radius: 1,
27
- depth: 638,
28
- coordinate: [111, 222],
29
- },
30
- {
31
- layer: { id: "wells-layer" },
32
- property: { name: "Poro WellA", value: 123 },
33
- },
34
- ],
35
- };
36
- //# sourceMappingURL=InfoCard.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InfoCard.stories.js","sourceRoot":"","sources":["../../../src/storybook/components/InfoCard.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAEjD,eAAe;IACX,SAAS,EAAE,QAAQ;IACnB,KAAK,EAAE,sCAAsC;CAChD,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IAClB,SAAS,EAAE;QACP;YACI,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,GAAG;YACV,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;SACzB;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACrB,SAAS,EAAE;QACP;YACI,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,GAAG;YACV,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;SACzB;QACD;YACI,KAAK,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE;YAC5B,QAAQ,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE;SAC/C;KACJ;CACJ,CAAC"}
@@ -1,31 +0,0 @@
1
- /// <reference path="../../../../src/custom.d.ts" />
2
- declare namespace _default {
3
- export { ContinuousLegend as component };
4
- export const title: string;
5
- }
6
- export default _default;
7
- export function ContinuousTemplate(args: any): React.JSX.Element;
8
- export namespace ContinuousTemplate {
9
- namespace args {
10
- export { min };
11
- export { max };
12
- export { dataObjectName };
13
- export { position };
14
- export { name };
15
- export { colorName };
16
- export { colorTables };
17
- export { horizontal };
18
- export { reverseRange };
19
- }
20
- }
21
- import { ContinuousLegend } from "@emerson-eps/color-tables";
22
- import React from "react";
23
- declare const min: 0;
24
- declare const max: 0.35;
25
- declare const dataObjectName: "Wells / PORO";
26
- declare const position: number[];
27
- declare const name: "PORO";
28
- declare const colorName: "Rainbow";
29
- import { colorTables } from "@emerson-eps/color-tables";
30
- declare const horizontal: false;
31
- declare const reverseRange: false;