@webviz/subsurface-viewer 1.13.3 → 1.13.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/extensions/side-projection-extension.d.ts +1 -1
- package/dist/layers/axes/axesLayer.d.ts +0 -1
- package/dist/layers/colormap/colormapLayer.d.ts +0 -1
- package/dist/layers/gpglLayers/gpglValueMappedSurfaceLayer.js +4 -4
- package/dist/layers/hillshading2d/hillshading2dLayer.d.ts +0 -1
- package/dist/layers/map/webworker.d.ts +1 -1
- package/dist/layers/points/pointsLayer.d.ts +0 -1
- package/dist/layers/polylines/polylinesLayer.d.ts +0 -1
- package/dist/layers/shader_modules/test-precision/precisionForTests-shaders-glsl.js +3 -1
- package/dist/layers/shader_modules/test-precision/precisionForTests-shaders-glsl.js.map +1 -1
- package/dist/layers/wells/layers/wellLabelLayer.d.ts +6 -6
- package/dist/layers/wells/wellsLayer.d.ts +1 -2
- package/package.json +2 -2
|
@@ -23,7 +23,7 @@ export declare class SideProjectionExtension extends LayerExtension {
|
|
|
23
23
|
}];
|
|
24
24
|
readonly source: string;
|
|
25
25
|
readonly vs: string;
|
|
26
|
-
readonly getUniforms: (opts?:
|
|
26
|
+
readonly getUniforms: (opts?: import("@deck.gl/core").ProjectProps | {}) => {};
|
|
27
27
|
readonly uniformTypes: {
|
|
28
28
|
readonly wrapLongitude: "f32";
|
|
29
29
|
readonly coordinateSystem: "i32";
|
|
@@ -159,7 +159,7 @@ export class GpglValueMappedSurfaceLayer extends Layer {
|
|
|
159
159
|
const meshModels = [];
|
|
160
160
|
// Collect promises for all valueMappedTriangles
|
|
161
161
|
const triangleModelPromises = (_b = (_a = this.props.valueMappedTriangles) === null || _a === void 0 ? void 0 : _a.map((texturedTrgs, i) => __awaiter(this, void 0, void 0, function* () {
|
|
162
|
-
var
|
|
162
|
+
var _a, _b, _c;
|
|
163
163
|
const trglGeometry = {
|
|
164
164
|
topology: texturedTrgs.topology,
|
|
165
165
|
attributes: {
|
|
@@ -168,11 +168,11 @@ export class GpglValueMappedSurfaceLayer extends Layer {
|
|
|
168
168
|
size: 3,
|
|
169
169
|
},
|
|
170
170
|
normals: {
|
|
171
|
-
value: yield loadDataArray((
|
|
171
|
+
value: yield loadDataArray((_a = texturedTrgs.normals) !== null && _a !== void 0 ? _a : [], Float32Array),
|
|
172
172
|
size: 3,
|
|
173
173
|
},
|
|
174
174
|
texCoords: {
|
|
175
|
-
value: yield loadDataArray((
|
|
175
|
+
value: yield loadDataArray((_b = texturedTrgs.texCoords) !== null && _b !== void 0 ? _b : [], Float32Array),
|
|
176
176
|
size: 2,
|
|
177
177
|
},
|
|
178
178
|
},
|
|
@@ -210,7 +210,7 @@ export class GpglValueMappedSurfaceLayer extends Layer {
|
|
|
210
210
|
})), { bufferLayout: this.getAttributeManager().getBufferLayouts(), geometry: new Geometry(trglGeometry), bindings: bindings, isInstanced: false }));
|
|
211
211
|
// default mesh model if none if provided
|
|
212
212
|
let meshModel = undefined;
|
|
213
|
-
if (!((
|
|
213
|
+
if (!((_c = this.props.triangleMeshes) === null || _c === void 0 ? void 0 : _c.length) && this.props.showMesh) {
|
|
214
214
|
const indices = computeMeshIndices(texturedTrgs.vertexIndices.value, texturedTrgs.topology);
|
|
215
215
|
const meshGeometry = {
|
|
216
216
|
topology: meshTopology(texturedTrgs.topology),
|
|
@@ -4,4 +4,4 @@ import type { Params } from "./mapLayer";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare function makeFullMesh(e: {
|
|
6
6
|
data: Params;
|
|
7
|
-
}): [Float32Array
|
|
7
|
+
}): [Float32Array<ArrayBufferLike>, Float32Array<ArrayBufferLike>, Uint32Array<ArrayBufferLike>, Float32Array<ArrayBufferLike>, Uint32Array<ArrayBufferLike>, number[], number[]];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var _a, _b;
|
|
1
2
|
const TEST_PRECISION = /* glsl */ `\
|
|
2
3
|
// Enforce high precision for shaders for tests which are performed in a docker container
|
|
3
4
|
|
|
@@ -5,6 +6,7 @@ precision highp float;
|
|
|
5
6
|
`;
|
|
6
7
|
const PROD_PRECISION = /* glsl */ `\
|
|
7
8
|
`;
|
|
8
|
-
const
|
|
9
|
+
const mode = (_b = (_a = process.env["STORYBOOK_NODE_ENV"]) !== null && _a !== void 0 ? _a : process.env["CYPRESS_NODE_ENV"]) !== null && _b !== void 0 ? _b : process.env["NODE_ENV"];
|
|
10
|
+
const PRECISION = mode !== "production" ? TEST_PRECISION : PROD_PRECISION;
|
|
9
11
|
export { PRECISION };
|
|
10
12
|
//# sourceMappingURL=precisionForTests-shaders-glsl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"precisionForTests-shaders-glsl.js","sourceRoot":"","sources":["../../../../src/layers/shader_modules/test-precision/precisionForTests-shaders-glsl.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG,UAAU,CAAC;;;;CAIjC,CAAC;AAEF,MAAM,cAAc,GAAG,UAAU,CAAC;CACjC,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"precisionForTests-shaders-glsl.js","sourceRoot":"","sources":["../../../../src/layers/shader_modules/test-precision/precisionForTests-shaders-glsl.ts"],"names":[],"mappings":";AAAA,MAAM,cAAc,GAAG,UAAU,CAAC;;;;CAIjC,CAAC;AAEF,MAAM,cAAc,GAAG,UAAU,CAAC;CACjC,CAAC;AAEF,MAAM,IAAI,GACN,MAAA,MAAA,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,mCACjC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,mCAC/B,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAE5B,MAAM,SAAS,GAAG,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -75,17 +75,17 @@ export declare class WellLabelLayer extends MergedTextLayer<WellLabelLayerData,
|
|
|
75
75
|
info: PickingInfo;
|
|
76
76
|
}): {
|
|
77
77
|
color: Uint8Array | null;
|
|
78
|
-
layer: import("@deck.gl/core").Layer
|
|
79
|
-
sourceLayer?: import("@deck.gl/core").Layer
|
|
80
|
-
viewport?: import("@deck.gl/core").Viewport
|
|
78
|
+
layer: import("@deck.gl/core").Layer | null;
|
|
79
|
+
sourceLayer?: import("@deck.gl/core").Layer | null;
|
|
80
|
+
viewport?: import("@deck.gl/core").Viewport;
|
|
81
81
|
index: number;
|
|
82
82
|
picked: boolean;
|
|
83
83
|
object?: any;
|
|
84
84
|
x: number;
|
|
85
85
|
y: number;
|
|
86
|
-
pixel?: [number, number]
|
|
87
|
-
coordinate?: number[]
|
|
88
|
-
devicePixel?: [number, number]
|
|
86
|
+
pixel?: [number, number];
|
|
87
|
+
coordinate?: number[];
|
|
88
|
+
devicePixel?: [number, number];
|
|
89
89
|
pixelRatio: number;
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Color, Layer, LayersList, PickingInfo, UpdateParameters } from "@deck.gl/core";
|
|
3
2
|
import { CompositeLayer } from "@deck.gl/core";
|
|
4
3
|
import type { BinaryFeatureCollection } from "@loaders.gl/schema";
|
|
@@ -110,7 +109,7 @@ export default class WellsLayer extends CompositeLayer<WellsLayerProps> {
|
|
|
110
109
|
getSelectionLayer(): Layer;
|
|
111
110
|
getLogCurveData(): LogCurveDataType[] | undefined;
|
|
112
111
|
setupLegend(): void;
|
|
113
|
-
protected getWellLabelPosition(): number | ((d: Feature
|
|
112
|
+
protected getWellLabelPosition(): number | ((d: Feature) => number);
|
|
114
113
|
protected createWellLabelLayer(data: WellFeature[]): WellLabelLayer | null;
|
|
115
114
|
renderLayers(): LayersList;
|
|
116
115
|
getPickingInfo({ info }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webviz/subsurface-viewer",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4",
|
|
4
4
|
"description": "3D visualization component for subsurface reservoir data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"subsurface",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@equinor/eds-icons": "^0.21.0",
|
|
47
47
|
"@turf/simplify": "^7.1.0",
|
|
48
48
|
"@vivaxy/png": "^1.3.0",
|
|
49
|
-
"@webviz/wsc-common": "1.3.
|
|
49
|
+
"@webviz/wsc-common": "1.3.3",
|
|
50
50
|
"ajv": "^8.16.0",
|
|
51
51
|
"convert-units": "^2.3.4",
|
|
52
52
|
"d3": "^7.8.2",
|