@webviz/subsurface-viewer 0.0.1-alpha.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/DashSubsurfaceViewer.d.ts +56 -0
- package/dist/DashSubsurfaceViewer.js +160 -0
- package/dist/DashSubsurfaceViewer.js.map +1 -0
- package/dist/SubsurfaceViewer.d.ts +65 -0
- package/dist/SubsurfaceViewer.js +208 -0
- package/dist/SubsurfaceViewer.js.map +1 -0
- package/dist/assets/glTF/north_arrow/scene.bin +0 -0
- package/dist/assets/glTF/north_arrow/scene.gltf +315 -0
- package/dist/assets/glTF/north_arrow/textures/Arrow5_baseColor.png +0 -0
- package/dist/assets/glTF/north_arrow/textures/Arrow5_metallicRoughness.png +0 -0
- package/dist/assets/glTF/north_arrow/textures/Arrow5_normal.png +0 -0
- package/dist/components/ColorLegend.d.ts +26 -0
- package/dist/components/ColorLegend.js +19 -0
- package/dist/components/ColorLegend.js.map +1 -0
- package/dist/components/ColorLegends.d.ts +12 -0
- package/dist/components/ColorLegends.js +10 -0
- package/dist/components/ColorLegends.js.map +1 -0
- package/dist/components/DistanceScale.d.ts +12 -0
- package/dist/components/DistanceScale.js +45 -0
- package/dist/components/DistanceScale.js.map +1 -0
- package/dist/components/InfoCard.d.ts +11 -0
- package/dist/components/InfoCard.js +149 -0
- package/dist/components/InfoCard.js.map +1 -0
- package/dist/components/Map.d.ts +158 -0
- package/dist/components/Map.js +867 -0
- package/dist/components/Map.js.map +1 -0
- package/dist/components/StatusIndicator.d.ts +8 -0
- package/dist/components/StatusIndicator.js +20 -0
- package/dist/components/StatusIndicator.js.map +1 -0
- package/dist/components/ViewAnnotation.d.ts +7 -0
- package/dist/components/ViewAnnotation.js +13 -0
- package/dist/components/ViewAnnotation.js.map +1 -0
- package/dist/components/ViewFooter.d.ts +6 -0
- package/dist/components/ViewFooter.js +21 -0
- package/dist/components/ViewFooter.js.map +1 -0
- package/dist/components/settings/DrawModeSelector.d.ts +18 -0
- package/dist/components/settings/DrawModeSelector.js +20 -0
- package/dist/components/settings/DrawModeSelector.js.map +1 -0
- package/dist/components/settings/LayerProperty.d.ts +6 -0
- package/dist/components/settings/LayerProperty.js +39 -0
- package/dist/components/settings/LayerProperty.js.map +1 -0
- package/dist/components/settings/LayerSettingsButton.d.ts +7 -0
- package/dist/components/settings/LayerSettingsButton.js +51 -0
- package/dist/components/settings/LayerSettingsButton.js.map +1 -0
- package/dist/components/settings/LayersButton.d.ts +8 -0
- package/dist/components/settings/LayersButton.js +45 -0
- package/dist/components/settings/LayersButton.js.map +1 -0
- package/dist/components/settings/NumericInput.d.ts +20 -0
- package/dist/components/settings/NumericInput.js +25 -0
- package/dist/components/settings/NumericInput.js.map +1 -0
- package/dist/components/settings/Settings.d.ts +7 -0
- package/dist/components/settings/Settings.js +39 -0
- package/dist/components/settings/Settings.js.map +1 -0
- package/dist/components/settings/SliderInput.d.ts +29 -0
- package/dist/components/settings/SliderInput.js +21 -0
- package/dist/components/settings/SliderInput.js.map +1 -0
- package/dist/components/settings/ToggleButton.d.ts +17 -0
- package/dist/components/settings/ToggleButton.js +19 -0
- package/dist/components/settings/ToggleButton.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/inputSchema/ColorTables.json +51 -0
- package/dist/inputSchema/FaultPolygons.json +80 -0
- package/dist/inputSchema/Grid.json +39 -0
- package/dist/inputSchema/PieChart.json +72 -0
- package/dist/inputSchema/WellLog.json +126 -0
- package/dist/inputSchema/WellLogTemplate.json +136 -0
- package/dist/inputSchema/WellLogs.json +5 -0
- package/dist/inputSchema/Wells.json +106 -0
- package/dist/inputSchema/schemaValidationUtil.d.ts +5 -0
- package/dist/inputSchema/schemaValidationUtil.js +48 -0
- package/dist/inputSchema/schemaValidationUtil.js.map +1 -0
- package/dist/inputSchema/validator.d.ts +1 -0
- package/dist/inputSchema/validator.js +64 -0
- package/dist/inputSchema/validator.js.map +1 -0
- package/dist/inputSchema/wellCompletions.json +108 -0
- package/dist/layers/BoxSelectionLayer/boxSelectionLayer.d.ts +37 -0
- package/dist/layers/BoxSelectionLayer/boxSelectionLayer.js +86 -0
- package/dist/layers/BoxSelectionLayer/boxSelectionLayer.js.map +1 -0
- package/dist/layers/axes/axes-fragment.glsl.d.ts +2 -0
- package/dist/layers/axes/axes-fragment.glsl.js +15 -0
- package/dist/layers/axes/axes-fragment.glsl.js.map +1 -0
- package/dist/layers/axes/axesLayer.d.ts +38 -0
- package/dist/layers/axes/axesLayer.js +485 -0
- package/dist/layers/axes/axesLayer.js.map +1 -0
- package/dist/layers/axes/boxLayer.d.ts +20 -0
- package/dist/layers/axes/boxLayer.js +52 -0
- package/dist/layers/axes/boxLayer.js.map +1 -0
- package/dist/layers/axes/grid-vertex.glsl.d.ts +2 -0
- package/dist/layers/axes/grid-vertex.glsl.js +14 -0
- package/dist/layers/axes/grid-vertex.glsl.js.map +1 -0
- package/dist/layers/axes2d/axes2DLayer.d.ts +58 -0
- package/dist/layers/axes2d/axes2DLayer.js +613 -0
- package/dist/layers/axes2d/axes2DLayer.js.map +1 -0
- package/dist/layers/axes2d/font-atlas.png +0 -0
- package/dist/layers/axes2d/label-fragment.glsl.d.ts +2 -0
- package/dist/layers/axes2d/label-fragment.glsl.js +38 -0
- package/dist/layers/axes2d/label-fragment.glsl.js.map +1 -0
- package/dist/layers/axes2d/label-vertex.glsl.d.ts +2 -0
- package/dist/layers/axes2d/label-vertex.glsl.js +21 -0
- package/dist/layers/axes2d/label-vertex.glsl.js.map +1 -0
- package/dist/layers/axes2d/line-fragment.glsl.d.ts +2 -0
- package/dist/layers/axes2d/line-fragment.glsl.js +15 -0
- package/dist/layers/axes2d/line-fragment.glsl.js.map +1 -0
- package/dist/layers/axes2d/line-vertex.glsl.d.ts +2 -0
- package/dist/layers/axes2d/line-vertex.glsl.js +14 -0
- package/dist/layers/axes2d/line-vertex.glsl.js.map +1 -0
- package/dist/layers/colormap/colormap.fs.glsl.d.ts +2 -0
- package/dist/layers/colormap/colormap.fs.glsl.js +42 -0
- package/dist/layers/colormap/colormap.fs.glsl.js.map +1 -0
- package/dist/layers/colormap/colormapLayer.d.ts +24 -0
- package/dist/layers/colormap/colormapLayer.js +150 -0
- package/dist/layers/colormap/colormapLayer.js.map +1 -0
- package/dist/layers/drawing/drawingLayer.d.ts +17 -0
- package/dist/layers/drawing/drawingLayer.js +202 -0
- package/dist/layers/drawing/drawingLayer.js.map +1 -0
- package/dist/layers/fault_polygons/faultPolygonsLayer.d.ts +9 -0
- package/dist/layers/fault_polygons/faultPolygonsLayer.js +43 -0
- package/dist/layers/fault_polygons/faultPolygonsLayer.js.map +1 -0
- package/dist/layers/grid3d/fragment.fs.glsl.d.ts +2 -0
- package/dist/layers/grid3d/fragment.fs.glsl.js +109 -0
- package/dist/layers/grid3d/fragment.fs.glsl.js.map +1 -0
- package/dist/layers/grid3d/fragment_lines.glsl.d.ts +2 -0
- package/dist/layers/grid3d/fragment_lines.glsl.js +21 -0
- package/dist/layers/grid3d/fragment_lines.glsl.js.map +1 -0
- package/dist/layers/grid3d/grid3dLayer.d.ts +73 -0
- package/dist/layers/grid3d/grid3dLayer.js +134 -0
- package/dist/layers/grid3d/grid3dLayer.js.map +1 -0
- package/dist/layers/grid3d/privateLayer.d.ts +73 -0
- package/dist/layers/grid3d/privateLayer.js +174 -0
- package/dist/layers/grid3d/privateLayer.js.map +1 -0
- package/dist/layers/grid3d/vertex.glsl.d.ts +2 -0
- package/dist/layers/grid3d/vertex.glsl.js +43 -0
- package/dist/layers/grid3d/vertex.glsl.js.map +1 -0
- package/dist/layers/grid3d/vertex_lines.glsl.d.ts +2 -0
- package/dist/layers/grid3d/vertex_lines.glsl.js +16 -0
- package/dist/layers/grid3d/vertex_lines.glsl.js.map +1 -0
- package/dist/layers/grid3d/webworker.d.ts +4 -0
- package/dist/layers/grid3d/webworker.js +140 -0
- package/dist/layers/grid3d/webworker.js.map +1 -0
- package/dist/layers/hillshading2d/hillshading2d.fs.glsl.d.ts +2 -0
- package/dist/layers/hillshading2d/hillshading2d.fs.glsl.js +62 -0
- package/dist/layers/hillshading2d/hillshading2d.fs.glsl.js.map +1 -0
- package/dist/layers/hillshading2d/hillshading2dLayer.d.ts +22 -0
- package/dist/layers/hillshading2d/hillshading2dLayer.js +101 -0
- package/dist/layers/hillshading2d/hillshading2dLayer.js.map +1 -0
- package/dist/layers/index.d.ts +34 -0
- package/dist/layers/index.js +19 -0
- package/dist/layers/index.js.map +1 -0
- package/dist/layers/intersection/unfoldedGeoJsonLayer.d.ts +10 -0
- package/dist/layers/intersection/unfoldedGeoJsonLayer.js +64 -0
- package/dist/layers/intersection/unfoldedGeoJsonLayer.js.map +1 -0
- package/dist/layers/map/fragment.fs.glsl.d.ts +2 -0
- package/dist/layers/map/fragment.fs.glsl.js +127 -0
- package/dist/layers/map/fragment.fs.glsl.js.map +1 -0
- package/dist/layers/map/fragment_lines.glsl.d.ts +2 -0
- package/dist/layers/map/fragment_lines.glsl.js +21 -0
- package/dist/layers/map/fragment_lines.glsl.js.map +1 -0
- package/dist/layers/map/mapLayer.d.ts +120 -0
- package/dist/layers/map/mapLayer.js +275 -0
- package/dist/layers/map/mapLayer.js.map +1 -0
- package/dist/layers/map/privateMapLayer.d.ts +76 -0
- package/dist/layers/map/privateMapLayer.js +190 -0
- package/dist/layers/map/privateMapLayer.js.map +1 -0
- package/dist/layers/map/vertex.glsl.d.ts +2 -0
- package/dist/layers/map/vertex.glsl.js +45 -0
- package/dist/layers/map/vertex.glsl.js.map +1 -0
- package/dist/layers/map/vertex_lines.glsl.d.ts +2 -0
- package/dist/layers/map/vertex_lines.glsl.js +16 -0
- package/dist/layers/map/vertex_lines.glsl.js.map +1 -0
- package/dist/layers/map/webworker.d.ts +4 -0
- package/dist/layers/map/webworker.js +362 -0
- package/dist/layers/map/webworker.js.map +1 -0
- package/dist/layers/northarrow/northArrow3DLayer.d.ts +20 -0
- package/dist/layers/northarrow/northArrow3DLayer.js +144 -0
- package/dist/layers/northarrow/northArrow3DLayer.js.map +1 -0
- package/dist/layers/northarrow/northarrow-fragment.glsl.d.ts +2 -0
- package/dist/layers/northarrow/northarrow-fragment.glsl.js +15 -0
- package/dist/layers/northarrow/northarrow-fragment.glsl.js.map +1 -0
- package/dist/layers/northarrow/northarrow-vertex.glsl.d.ts +2 -0
- package/dist/layers/northarrow/northarrow-vertex.glsl.js +14 -0
- package/dist/layers/northarrow/northarrow-vertex.glsl.js.map +1 -0
- package/dist/layers/piechart/fragment.glsl.d.ts +2 -0
- package/dist/layers/piechart/fragment.glsl.js +43 -0
- package/dist/layers/piechart/fragment.glsl.js.map +1 -0
- package/dist/layers/piechart/pieChartLayer.d.ts +40 -0
- package/dist/layers/piechart/pieChartLayer.js +174 -0
- package/dist/layers/piechart/pieChartLayer.js.map +1 -0
- package/dist/layers/piechart/vertex.glsl.d.ts +2 -0
- package/dist/layers/piechart/vertex.glsl.js +43 -0
- package/dist/layers/piechart/vertex.glsl.js.map +1 -0
- package/dist/layers/points/pointsLayer.d.ts +34 -0
- package/dist/layers/points/pointsLayer.js +78 -0
- package/dist/layers/points/pointsLayer.js.map +1 -0
- package/dist/layers/polylines/polylinesLayer.d.ts +50 -0
- package/dist/layers/polylines/polylinesLayer.js +157 -0
- package/dist/layers/polylines/polylinesLayer.js.map +1 -0
- package/dist/layers/selectable_geojson/selectableGeoJsonLayer.d.ts +6 -0
- package/dist/layers/selectable_geojson/selectableGeoJsonLayer.js +22 -0
- package/dist/layers/selectable_geojson/selectableGeoJsonLayer.js.map +1 -0
- package/dist/layers/shader_modules/decoder.d.ts +15 -0
- package/dist/layers/shader_modules/decoder.fs.glsl.d.ts +2 -0
- package/dist/layers/shader_modules/decoder.fs.glsl.js +40 -0
- package/dist/layers/shader_modules/decoder.fs.glsl.js.map +1 -0
- package/dist/layers/shader_modules/decoder.js +29 -0
- package/dist/layers/shader_modules/decoder.js.map +1 -0
- package/dist/layers/shader_modules/index.d.ts +1 -0
- package/dist/layers/shader_modules/index.js +2 -0
- package/dist/layers/shader_modules/index.js.map +1 -0
- package/dist/layers/terrain/map3DLayer.d.ts +42 -0
- package/dist/layers/terrain/map3DLayer.js +324 -0
- package/dist/layers/terrain/map3DLayer.js.map +1 -0
- package/dist/layers/terrain/terrainMapLayer.d.ts +45 -0
- package/dist/layers/terrain/terrainMapLayer.js +183 -0
- package/dist/layers/terrain/terrainMapLayer.js.map +1 -0
- package/dist/layers/terrain/terrainmap.fs.glsl.d.ts +2 -0
- package/dist/layers/terrain/terrainmap.fs.glsl.js +134 -0
- package/dist/layers/terrain/terrainmap.fs.glsl.js.map +1 -0
- package/dist/layers/triangle/fragment.fs.glsl.d.ts +2 -0
- package/dist/layers/triangle/fragment.fs.glsl.js +126 -0
- package/dist/layers/triangle/fragment.fs.glsl.js.map +1 -0
- package/dist/layers/triangle/fragment_lines.glsl.d.ts +2 -0
- package/dist/layers/triangle/fragment_lines.glsl.js +21 -0
- package/dist/layers/triangle/fragment_lines.glsl.js.map +1 -0
- package/dist/layers/triangle/privateTriangleLayer.d.ts +70 -0
- package/dist/layers/triangle/privateTriangleLayer.js +108 -0
- package/dist/layers/triangle/privateTriangleLayer.js.map +1 -0
- package/dist/layers/triangle/test_data/surfacePoints.d.ts +2 -0
- package/dist/layers/triangle/test_data/surfacePoints.js +4345 -0
- package/dist/layers/triangle/test_data/surfacePoints.js.map +1 -0
- package/dist/layers/triangle/test_data/surfaceTriangles.d.ts +2 -0
- package/dist/layers/triangle/test_data/surfaceTriangles.js +7393 -0
- package/dist/layers/triangle/test_data/surfaceTriangles.js.map +1 -0
- package/dist/layers/triangle/triangleLayer.d.ts +60 -0
- package/dist/layers/triangle/triangleLayer.js +170 -0
- package/dist/layers/triangle/triangleLayer.js.map +1 -0
- package/dist/layers/triangle/vertex.glsl.d.ts +2 -0
- package/dist/layers/triangle/vertex.glsl.js +35 -0
- package/dist/layers/triangle/vertex.glsl.js.map +1 -0
- package/dist/layers/triangle/vertex_lines.glsl.d.ts +2 -0
- package/dist/layers/triangle/vertex_lines.glsl.js +16 -0
- package/dist/layers/triangle/vertex_lines.glsl.js.map +1 -0
- package/dist/layers/triangle/webworker.d.ts +4 -0
- package/dist/layers/triangle/webworker.js +132 -0
- package/dist/layers/triangle/webworker.js.map +1 -0
- package/dist/layers/utils/layerTools.d.ts +52 -0
- package/dist/layers/utils/layerTools.js +91 -0
- package/dist/layers/utils/layerTools.js.map +1 -0
- package/dist/layers/utils/propertyMapTools.d.ts +8 -0
- package/dist/layers/utils/propertyMapTools.js +21 -0
- package/dist/layers/utils/propertyMapTools.js.map +1 -0
- package/dist/layers/wells/utils/spline.d.ts +28 -0
- package/dist/layers/wells/utils/spline.js +236 -0
- package/dist/layers/wells/utils/spline.js.map +1 -0
- package/dist/layers/wells/wellsLayer.d.ts +89 -0
- package/dist/layers/wells/wellsLayer.js +939 -0
- package/dist/layers/wells/wellsLayer.js.map +1 -0
- package/dist/package.json +35 -0
- package/dist/redux/actions.d.ts +1 -0
- package/dist/redux/actions.js +3 -0
- package/dist/redux/actions.js.map +1 -0
- package/dist/redux/reducer.d.ts +11 -0
- package/dist/redux/reducer.js +28 -0
- package/dist/redux/reducer.js.map +1 -0
- package/dist/redux/store.d.ts +4 -0
- package/dist/redux/store.js +10 -0
- package/dist/redux/store.js.map +1 -0
- package/dist/redux/types.d.ts +43 -0
- package/dist/redux/types.js +79 -0
- package/dist/redux/types.js.map +1 -0
- package/dist/storybook/SubsurfaceViewer.stories.d.ts +455 -0
- package/dist/storybook/SubsurfaceViewer.stories.js +537 -0
- package/dist/storybook/SubsurfaceViewer.stories.js.map +1 -0
- package/dist/storybook/components/InfoCard.stories.d.ts +48 -0
- package/dist/storybook/components/InfoCard.stories.js +36 -0
- package/dist/storybook/components/InfoCard.stories.js.map +1 -0
- package/dist/storybook/components/colorLegends/ContinuousLegend.stories.d.ts +31 -0
- package/dist/storybook/components/colorLegends/ContinuousLegend.stories.js +30 -0
- package/dist/storybook/components/colorLegends/ContinuousLegend.stories.js.map +1 -0
- package/dist/storybook/components/colorLegends/DiscreteLegend.stories.d.ts +31 -0
- package/dist/storybook/components/colorLegends/DiscreteLegend.stories.js +30 -0
- package/dist/storybook/components/colorLegends/DiscreteLegend.stories.js.map +1 -0
- package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.d.ts +20 -0
- package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.js +66 -0
- package/dist/storybook/components/colorLegends/IndividualScaleForMap.stories.js.map +1 -0
- package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.d.ts +65 -0
- package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.js +94 -0
- package/dist/storybook/components/colorLegends/SingleScaleForMap.stories.js.map +1 -0
- package/dist/storybook/components/settings/LayerSettingsButton.stories.d.ts +34 -0
- package/dist/storybook/components/settings/LayerSettingsButton.stories.js +31 -0
- package/dist/storybook/components/settings/LayerSettingsButton.stories.js.map +1 -0
- package/dist/storybook/components/settings/NumericInput.stories.d.ts +14 -0
- package/dist/storybook/components/settings/NumericInput.stories.js +15 -0
- package/dist/storybook/components/settings/NumericInput.stories.js.map +1 -0
- package/dist/storybook/components/settings/ToggleButton.stories.d.ts +13 -0
- package/dist/storybook/components/settings/ToggleButton.stories.js +14 -0
- package/dist/storybook/components/settings/ToggleButton.stories.js.map +1 -0
- package/dist/storybook/schemaValidation/sampleData.d.ts +122 -0
- package/dist/storybook/schemaValidation/sampleData.js +172 -0
- package/dist/storybook/schemaValidation/sampleData.js.map +1 -0
- package/dist/storybook/schemaValidation/schemaValidation.stories.d.ts +31 -0
- package/dist/storybook/schemaValidation/schemaValidation.stories.js +42 -0
- package/dist/storybook/schemaValidation/schemaValidation.stories.js.map +1 -0
- package/dist/utils/configuration.d.ts +631 -0
- package/dist/utils/configuration.js +36 -0
- package/dist/utils/configuration.js.map +1 -0
- package/dist/utils/fit-bounds.d.ts +15 -0
- package/dist/utils/fit-bounds.js +66 -0
- package/dist/utils/fit-bounds.js.map +1 -0
- package/dist/utils/measurement.d.ts +6 -0
- package/dist/utils/measurement.js +47 -0
- package/dist/utils/measurement.js.map +1 -0
- package/dist/utils/northArrow.d.ts +113 -0
- package/dist/utils/northArrow.js +5 -0
- package/dist/utils/northArrow.js.map +1 -0
- package/dist/utils/specExtractor.d.ts +3 -0
- package/dist/utils/specExtractor.js +24 -0
- package/dist/utils/specExtractor.js.map +1 -0
- package/dist/viewports/index.d.ts +1 -0
- package/dist/viewports/index.js +2 -0
- package/dist/viewports/index.js.map +1 -0
- package/dist/viewports/intersectionViewport.d.ts +35 -0
- package/dist/viewports/intersectionViewport.js +65 -0
- package/dist/viewports/intersectionViewport.js.map +1 -0
- package/dist/views/index.d.ts +1 -0
- package/dist/views/index.js +2 -0
- package/dist/views/index.js.map +1 -0
- package/dist/views/intersectionView.d.ts +18 -0
- package/dist/views/intersectionView.js +17 -0
- package/dist/views/intersectionView.js.map +1 -0
- package/package.json +35 -0
- package/src/DashSubsurfaceViewer.tsx +270 -0
- package/src/SubsurfaceViewer.stories.tsx +449 -0
- package/src/SubsurfaceViewer.test.tsx +98 -0
- package/src/SubsurfaceViewer.tsx +356 -0
- package/src/__snapshots__/SubsurfaceViewer.test.tsx.snap +178 -0
- package/src/assets/glTF/north_arrow/scene.bin +0 -0
- package/src/assets/glTF/north_arrow/scene.gltf +315 -0
- package/src/assets/glTF/north_arrow/textures/Arrow5_baseColor.png +0 -0
- package/src/assets/glTF/north_arrow/textures/Arrow5_metallicRoughness.png +0 -0
- package/src/assets/glTF/north_arrow/textures/Arrow5_normal.png +0 -0
- package/src/components/ColorLegend.test.tsx +32 -0
- package/src/components/ColorLegend.tsx +80 -0
- package/src/components/ColorLegends.test.tsx +97 -0
- package/src/components/ColorLegends.tsx +46 -0
- package/src/components/DistanceScale.stories.tsx +28 -0
- package/src/components/DistanceScale.test.tsx +36 -0
- package/src/components/DistanceScale.tsx +84 -0
- package/src/components/InfoCard.test.tsx +110 -0
- package/src/components/InfoCard.tsx +263 -0
- package/src/components/Map.test.tsx +142 -0
- package/src/components/Map.tsx +1435 -0
- package/src/components/StatusIndicator.test.tsx +14 -0
- package/src/components/StatusIndicator.tsx +38 -0
- package/src/components/ViewAnnotation.tsx +16 -0
- package/src/components/ViewFooter.test.tsx +12 -0
- package/src/components/ViewFooter.tsx +30 -0
- package/src/components/__snapshots__/ColorLegends.test.tsx.snap +15 -0
- package/src/components/__snapshots__/DistanceScale.test.tsx.snap +33 -0
- package/src/components/__snapshots__/InfoCard.test.tsx.snap +561 -0
- package/src/components/__snapshots__/Map.test.tsx.snap +119 -0
- package/src/components/__snapshots__/StatusIndicator.test.tsx.snap +3 -0
- package/src/components/__snapshots__/ViewFooter.test.tsx.snap +7 -0
- package/src/components/settings/DrawModeSelector.test.tsx +45 -0
- package/src/components/settings/DrawModeSelector.tsx +58 -0
- package/src/components/settings/DrawModeSelector_performance.test.tsx +35 -0
- package/src/components/settings/LayerProperty.test.tsx +35 -0
- package/src/components/settings/LayerProperty.tsx +153 -0
- package/src/components/settings/LayerProperty_performance.test.tsx +39 -0
- package/src/components/settings/LayerSettingsButton.test.tsx +133 -0
- package/src/components/settings/LayerSettingsButton.tsx +95 -0
- package/src/components/settings/LayersButton.test.tsx +102 -0
- package/src/components/settings/LayersButton.tsx +97 -0
- package/src/components/settings/NumericInput.test.tsx +25 -0
- package/src/components/settings/NumericInput.tsx +67 -0
- package/src/components/settings/Settings.tsx +71 -0
- package/src/components/settings/SliderInput.test.tsx +28 -0
- package/src/components/settings/SliderInput.tsx +71 -0
- package/src/components/settings/ToggleButton.test.tsx +25 -0
- package/src/components/settings/ToggleButton.tsx +53 -0
- package/src/components/settings/__snapshots__/DrawModeSelector.test.tsx.snap +124 -0
- package/src/components/settings/__snapshots__/LayerProperty.test.tsx.snap +124 -0
- package/src/components/settings/__snapshots__/LayerSettingsButton.test.tsx.snap +36 -0
- package/src/components/settings/__snapshots__/LayersButton.test.tsx.snap +83 -0
- package/src/components/settings/__snapshots__/NumericInput.test.tsx.snap +123 -0
- package/src/components/settings/__snapshots__/SliderInput.test.tsx.snap +244 -0
- package/src/components/settings/__snapshots__/ToggleButton.test.tsx.snap +182 -0
- package/src/custom.d.ts +9 -0
- package/src/index.ts +5 -0
- package/src/inputSchema/ColorTables.json +51 -0
- package/src/inputSchema/FaultPolygons.json +80 -0
- package/src/inputSchema/Grid.json +39 -0
- package/src/inputSchema/PieChart.json +72 -0
- package/src/inputSchema/WellLog.json +126 -0
- package/src/inputSchema/WellLogTemplate.json +136 -0
- package/src/inputSchema/WellLogs.json +5 -0
- package/src/inputSchema/Wells.json +106 -0
- package/src/inputSchema/schemaValidationUtil.tsx +55 -0
- package/src/inputSchema/validator.tsx +72 -0
- package/src/inputSchema/wellCompletions.json +108 -0
- package/src/layers/BoxSelectionLayer/boxSelectionLayer.stories.tsx +172 -0
- package/src/layers/BoxSelectionLayer/boxSelectionLayer.tsx +136 -0
- package/src/layers/axes/axes-fragment.glsl.ts +15 -0
- package/src/layers/axes/axesLayer.stories.tsx +87 -0
- package/src/layers/axes/axesLayer.ts +692 -0
- package/src/layers/axes/boxLayer.ts +71 -0
- package/src/layers/axes/grid-vertex.glsl.ts +14 -0
- package/src/layers/axes2d/axes2DLayer.stories.tsx +150 -0
- package/src/layers/axes2d/axes2DLayer.ts +841 -0
- package/src/layers/axes2d/font-atlas.png +0 -0
- package/src/layers/axes2d/label-fragment.glsl.js +37 -0
- package/src/layers/axes2d/label-vertex.glsl.js +20 -0
- package/src/layers/axes2d/line-fragment.glsl.js +14 -0
- package/src/layers/axes2d/line-vertex.glsl.js +13 -0
- package/src/layers/colormap/colormap.fs.glsl.ts +42 -0
- package/src/layers/colormap/colormapLayer.ts +247 -0
- package/src/layers/drawing/drawingLayer.tsx +256 -0
- package/src/layers/fault_polygons/faultPolygonsLayer.ts +54 -0
- package/src/layers/grid3d/fragment.fs.glsl.ts +109 -0
- package/src/layers/grid3d/fragment_lines.glsl.ts +21 -0
- package/src/layers/grid3d/grid3dLayer.stories.tsx +172 -0
- package/src/layers/grid3d/grid3dLayer.ts +248 -0
- package/src/layers/grid3d/privateLayer.ts +292 -0
- package/src/layers/grid3d/vertex.glsl.ts +43 -0
- package/src/layers/grid3d/vertex_lines.glsl.ts +15 -0
- package/src/layers/grid3d/webworker.ts +173 -0
- package/src/layers/hillshading2d/hillshading2d.fs.glsl.ts +62 -0
- package/src/layers/hillshading2d/hillshading2dLayer.ts +172 -0
- package/src/layers/index.ts +35 -0
- package/src/layers/intersection/intersectionView.stories.tsx +294 -0
- package/src/layers/intersection/unfoldedGeoJsonLayer.ts +92 -0
- package/src/layers/map/fragment.fs.glsl.ts +127 -0
- package/src/layers/map/fragment_lines.glsl.ts +21 -0
- package/src/layers/map/mapLayer.stories.tsx +1369 -0
- package/src/layers/map/mapLayer.ts +470 -0
- package/src/layers/map/privateMapLayer.ts +317 -0
- package/src/layers/map/vertex.glsl.ts +45 -0
- package/src/layers/map/vertex_lines.glsl.ts +15 -0
- package/src/layers/map/webworker.ts +479 -0
- package/src/layers/northarrow/northArrow.stories.tsx +108 -0
- package/src/layers/northarrow/northArrow3DLayer.ts +204 -0
- package/src/layers/northarrow/northarrow-fragment.glsl.js +14 -0
- package/src/layers/northarrow/northarrow-vertex.glsl.js +13 -0
- package/src/layers/piechart/fragment.glsl.js +42 -0
- package/src/layers/piechart/pieChartLayer.ts +246 -0
- package/src/layers/piechart/vertex.glsl.js +42 -0
- package/src/layers/points/pointsLayer.stories.tsx +141 -0
- package/src/layers/points/pointsLayer.ts +143 -0
- package/src/layers/polylines/polylinesLayer.stories.tsx +144 -0
- package/src/layers/polylines/polylinesLayer.ts +263 -0
- package/src/layers/selectable_geojson/selectableGeoJsonLayer.ts +25 -0
- package/src/layers/shader_modules/decoder.fs.glsl.ts +41 -0
- package/src/layers/shader_modules/decoder.ts +46 -0
- package/src/layers/shader_modules/index.ts +1 -0
- package/src/layers/terrain/map3DLayer.stories.tsx +340 -0
- package/src/layers/terrain/map3DLayer.ts +556 -0
- package/src/layers/terrain/terrainMapLayer.ts +334 -0
- package/src/layers/terrain/terrainmap.fs.glsl.ts +134 -0
- package/src/layers/triangle/fragment.fs.glsl.ts +126 -0
- package/src/layers/triangle/fragment_lines.glsl.ts +21 -0
- package/src/layers/triangle/privateTriangleLayer.ts +203 -0
- package/src/layers/triangle/test_data/surfacePoints.ts +4344 -0
- package/src/layers/triangle/test_data/surfaceTriangles.ts +7392 -0
- package/src/layers/triangle/triangleLayer.stories.tsx +191 -0
- package/src/layers/triangle/triangleLayer.ts +273 -0
- package/src/layers/triangle/vertex.glsl.ts +35 -0
- package/src/layers/triangle/vertex_lines.glsl.ts +15 -0
- package/src/layers/triangle/webworker.ts +165 -0
- package/src/layers/utils/glsl.d.ts +4 -0
- package/src/layers/utils/layerTools.ts +182 -0
- package/src/layers/utils/propertyMapTools.ts +43 -0
- package/src/layers/wells/utils/spline.ts +318 -0
- package/src/layers/wells/wellsLayer.stories.tsx +625 -0
- package/src/layers/wells/wellsLayer.ts +1377 -0
- package/src/redux/actions.ts +8 -0
- package/src/redux/reducer.ts +43 -0
- package/src/redux/store.ts +15 -0
- package/src/redux/types.ts +114 -0
- package/src/storybook/SubsurfaceViewer.stories.jsx +644 -0
- package/src/storybook/components/InfoCard.stories.jsx +39 -0
- package/src/storybook/components/colorLegends/ContinuousLegend.stories.jsx +32 -0
- package/src/storybook/components/colorLegends/DiscreteLegend.stories.jsx +33 -0
- package/src/storybook/components/colorLegends/IndividualScaleForMap.stories.jsx +99 -0
- package/src/storybook/components/colorLegends/SingleScaleForMap.stories.jsx +120 -0
- package/src/storybook/components/settings/LayerSettingsButton.stories.jsx +34 -0
- package/src/storybook/components/settings/NumericInput.stories.jsx +17 -0
- package/src/storybook/components/settings/ToggleButton.stories.jsx +16 -0
- package/src/storybook/schemaValidation/sampleData.js +177 -0
- package/src/storybook/schemaValidation/schemaValidation.stories.jsx +91 -0
- package/src/test/TestWrapper.tsx +13 -0
- package/src/utils/configuration.ts +61 -0
- package/src/utils/fit-bounds.js +85 -0
- package/src/utils/measurement.ts +61 -0
- package/src/utils/northArrow.ts +4 -0
- package/src/utils/specExtractor.ts +36 -0
- package/src/viewports/index.js +1 -0
- package/src/viewports/intersectionViewport.ts +137 -0
- package/src/views/index.js +1 -0
- package/src/views/intersectionView.ts +38 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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";
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndividualScaleForMap.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/colorLegends/IndividualScaleForMap.stories.jsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
}[];
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SingleScaleForMap.stories.js","sourceRoot":"","sources":["../../../../src/storybook/components/colorLegends/SingleScaleForMap.stories.jsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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";
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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";
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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";
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export const sampleLogData: {
|
|
2
|
+
header: {
|
|
3
|
+
name: string;
|
|
4
|
+
well: string;
|
|
5
|
+
source: string;
|
|
6
|
+
operator: string;
|
|
7
|
+
startIndex: number;
|
|
8
|
+
endIndex: number;
|
|
9
|
+
step: number;
|
|
10
|
+
};
|
|
11
|
+
curves: ({
|
|
12
|
+
_wrongName: string;
|
|
13
|
+
description: string;
|
|
14
|
+
quantity: string;
|
|
15
|
+
unit: string;
|
|
16
|
+
valueType: string;
|
|
17
|
+
dimensions: number;
|
|
18
|
+
name?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
quantity: string;
|
|
23
|
+
unit: string;
|
|
24
|
+
valueType: string;
|
|
25
|
+
dimensions: number;
|
|
26
|
+
_wrongName?: undefined;
|
|
27
|
+
})[];
|
|
28
|
+
data: number[][];
|
|
29
|
+
}[];
|
|
30
|
+
export namespace sampleWellsData {
|
|
31
|
+
const type: string;
|
|
32
|
+
const features: {
|
|
33
|
+
type: string;
|
|
34
|
+
geometry: {
|
|
35
|
+
_wrongType: string;
|
|
36
|
+
geometries: ({
|
|
37
|
+
type: string;
|
|
38
|
+
coordinates: number[];
|
|
39
|
+
} | {
|
|
40
|
+
type: string;
|
|
41
|
+
coordinates: number[][];
|
|
42
|
+
})[];
|
|
43
|
+
};
|
|
44
|
+
properties: {
|
|
45
|
+
name: string;
|
|
46
|
+
color: number[];
|
|
47
|
+
md: number[][];
|
|
48
|
+
};
|
|
49
|
+
}[];
|
|
50
|
+
}
|
|
51
|
+
export namespace samplePieData {
|
|
52
|
+
const pies: {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
R: number;
|
|
56
|
+
fractions: ({
|
|
57
|
+
value: number;
|
|
58
|
+
idx: number;
|
|
59
|
+
} | {
|
|
60
|
+
value: string;
|
|
61
|
+
idx: number;
|
|
62
|
+
})[];
|
|
63
|
+
}[];
|
|
64
|
+
const properties: {
|
|
65
|
+
color: number[];
|
|
66
|
+
label: string;
|
|
67
|
+
}[];
|
|
68
|
+
}
|
|
69
|
+
export const sampleGridData: ({
|
|
70
|
+
i: number;
|
|
71
|
+
j: number;
|
|
72
|
+
z: number;
|
|
73
|
+
cs: number[][];
|
|
74
|
+
vs: number[];
|
|
75
|
+
} | {
|
|
76
|
+
i: number;
|
|
77
|
+
j: number;
|
|
78
|
+
z: number;
|
|
79
|
+
cs: number[][];
|
|
80
|
+
vs: number;
|
|
81
|
+
})[];
|
|
82
|
+
export namespace sampleFaultPolygonsData {
|
|
83
|
+
const type_1: string;
|
|
84
|
+
export { type_1 as type };
|
|
85
|
+
const features_1: {
|
|
86
|
+
type: string;
|
|
87
|
+
geometry: {
|
|
88
|
+
type: string;
|
|
89
|
+
coordinates: number[][][];
|
|
90
|
+
};
|
|
91
|
+
properties: {
|
|
92
|
+
name: string;
|
|
93
|
+
color: number[];
|
|
94
|
+
};
|
|
95
|
+
}[];
|
|
96
|
+
export { features_1 as features };
|
|
97
|
+
}
|
|
98
|
+
export const sampleColorTable: ({
|
|
99
|
+
name: string;
|
|
100
|
+
discrete: boolean;
|
|
101
|
+
description: string;
|
|
102
|
+
colorNaN: number[];
|
|
103
|
+
colorBelow: number[];
|
|
104
|
+
colorAbove: number[];
|
|
105
|
+
colors: number[][];
|
|
106
|
+
} | {
|
|
107
|
+
name: string;
|
|
108
|
+
discrete: string;
|
|
109
|
+
colors: number[][];
|
|
110
|
+
description?: undefined;
|
|
111
|
+
colorNaN?: undefined;
|
|
112
|
+
colorBelow?: undefined;
|
|
113
|
+
colorAbove?: undefined;
|
|
114
|
+
} | {
|
|
115
|
+
name: string;
|
|
116
|
+
discrete: boolean;
|
|
117
|
+
colors: number[][];
|
|
118
|
+
description?: undefined;
|
|
119
|
+
colorNaN?: undefined;
|
|
120
|
+
colorBelow?: undefined;
|
|
121
|
+
colorAbove?: undefined;
|
|
122
|
+
})[];
|