@equinor/videx-3d 1.0.2 → 1.0.3
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/main.js +398 -398
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("svg.well-map g.tracks g.track:hover{cursor:help}svg.well-map g.tracks g.track.interactive:hover{cursor:pointer;filter:brightness(1.1)}svg.well-map g.tracks g.track.interactive.selected:hover{cursor:pointer;filter:none}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import * as K from "three";
|
|
3
|
-
import { OrthographicCamera as hi, BufferGeometry as vi, Float32BufferAttribute as Qt, RawShaderMaterial as gi, Uniform as S, Mesh as mt, MeshBasicMaterial as Nt, Vector3 as X, Vector2 as pe, createCanvasElement as xi, WebGLRenderTarget as xt, NoColorSpace as zn, NearestFilter as et, UnsignedByteType as yi, RedFormat as In, ShaderMaterial as
|
|
3
|
+
import { OrthographicCamera as hi, BufferGeometry as vi, Float32BufferAttribute as Qt, RawShaderMaterial as gi, Uniform as S, Mesh as mt, MeshBasicMaterial as Nt, Vector3 as X, Vector2 as pe, createCanvasElement as xi, WebGLRenderTarget as xt, NoColorSpace as zn, NearestFilter as et, UnsignedByteType as yi, RedFormat as In, ShaderMaterial as Ge, GLSL3 as bi, Matrix4 as tt, CanvasTexture as Ln, DataTexture as Dn, RGBAFormat as yt, FloatType as jt, DepthTexture as _i, HalfFloatType as Un, Layers as kn, DoubleSide as ge, NoBlending as wi, Color as Z, Ray as Mi, Plane as Ai, BackSide as On, FrontSide as ht, LinearFilter as Ue, Box3 as Wn, AdditiveBlending as Gn, InstancedMesh as Gt, Line as Fn, SRGBColorSpace as Ti, UniformsUtils as ke, Matrix3 as Pi, ShaderLib as Vt, MultiplyOperation as Ci, TangentSpaceNormalMap as Si, InstancedBufferAttribute as Ri, LineBasicMaterial as Ei, InstancedInterleavedBuffer as Bn, Sphere as Hn, InstancedBufferGeometry as Nn, BufferAttribute as De, InterleavedBufferAttribute as le, MeshStandardMaterial as Te, MeshLambertMaterial as zi, CylinderGeometry as Ii, ConeGeometry as jn } from "three";
|
|
4
4
|
import { jsx as w, jsxs as H, Fragment as Oe } from "react/jsx-runtime";
|
|
5
|
-
import { useThree as
|
|
6
|
-
import { createRef as Li, useMemo as
|
|
5
|
+
import { useThree as We, useFrame as Pe, extend as Vn } from "@react-three/fiber";
|
|
6
|
+
import { createRef as Li, useMemo as T, forwardRef as xe, useCallback as re, useEffect as E, useLayoutEffect as $n, useRef as N, createContext as Ce, useContext as ie, useState as W, startTransition as Jt, Fragment as $t, useImperativeHandle as Fe } from "react";
|
|
7
7
|
import { createRoot as Di } from "react-dom/client";
|
|
8
|
-
import { create as bt, useStore as
|
|
9
|
-
import { subscribeWithSelector as
|
|
10
|
-
import { createEndpoint as Yt, transfer as Oi, proxy as
|
|
8
|
+
import { create as bt, useStore as Ui } from "zustand";
|
|
9
|
+
import { subscribeWithSelector as ki } from "zustand/middleware";
|
|
10
|
+
import { createEndpoint as Yt, transfer as Oi, proxy as Wi } from "comlink";
|
|
11
11
|
import "p-limit";
|
|
12
12
|
import "curve-interpolator";
|
|
13
|
-
import { n as
|
|
13
|
+
import { n as Gi, s as Fi, P as Ze, a as Je, b as Zt, c as Bi, d as de, m as Yn, e as Hi, f as Ni, g as ji, h as qn, i as Kn, u as Be, W as Vi, j as $i, k as en, l as tn, o as Yi, p as qi } from "./chunk-iY0wQ9Z6.js";
|
|
14
14
|
import { C as $a, q as Ya, r as qa, w as Ka, t as Xa, v as Qa } from "./chunk-iY0wQ9Z6.js";
|
|
15
15
|
import "three/src/math/MathUtils.js";
|
|
16
16
|
import "proj4";
|
|
@@ -31,7 +31,7 @@ import so from "p-queue";
|
|
|
31
31
|
import { c as ao } from "./chunk-DuRASjkF.js";
|
|
32
32
|
import { a as Za } from "./chunk-DuRASjkF.js";
|
|
33
33
|
const me = bt(
|
|
34
|
-
|
|
34
|
+
ki((n, t) => ({
|
|
35
35
|
visible: !0,
|
|
36
36
|
update: {
|
|
37
37
|
required: !1,
|
|
@@ -171,7 +171,7 @@ me.subscribe(
|
|
|
171
171
|
);
|
|
172
172
|
const je = (n, t) => {
|
|
173
173
|
const e = me((s) => s.addLayerAnnotations), o = me((s) => s.removeLayerAnnotations);
|
|
174
|
-
return
|
|
174
|
+
return T(() => ({
|
|
175
175
|
addAnnotations: (s) => {
|
|
176
176
|
if (s.length)
|
|
177
177
|
return e(n, t, s), () => {
|
|
@@ -213,7 +213,7 @@ const je = (n, t) => {
|
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
215
|
), po = () => {
|
|
216
|
-
const n =
|
|
216
|
+
const n = Ui(me, (t) => t.instances);
|
|
217
217
|
return /* @__PURE__ */ w("div", { style: co, children: n.map((t) => /* @__PURE__ */ w(
|
|
218
218
|
fo,
|
|
219
219
|
{
|
|
@@ -404,14 +404,14 @@ const lt = new X(), _o = [
|
|
|
404
404
|
t[1] + e[1] * 100,
|
|
405
405
|
t[2] + e[2] * 100
|
|
406
406
|
), lt.project(o);
|
|
407
|
-
const i =
|
|
407
|
+
const i = Gi(
|
|
408
408
|
Fi([lt.x, lt.y], [n[0], n[1]])
|
|
409
409
|
);
|
|
410
410
|
let s = Math.atan2(i[1], i[0]);
|
|
411
411
|
return isNaN(s) ? 0 : (s < 0 && (s = Ze + s), Math.floor((s + Bi) / Je) % 4);
|
|
412
412
|
}
|
|
413
413
|
return 0;
|
|
414
|
-
}, Bt = 1, ln = Bt * 2, cn = 3,
|
|
414
|
+
}, Bt = 1, ln = Bt * 2, cn = 3, Ao = 5, Ke = new X();
|
|
415
415
|
let un = 0, Et, zt, It, Lt, Dt;
|
|
416
416
|
const fn = new Xn(), dn = new Xn();
|
|
417
417
|
function pn(n, t, e) {
|
|
@@ -431,7 +431,7 @@ function pn(n, t, e) {
|
|
|
431
431
|
function mn(n, t, e, o) {
|
|
432
432
|
n.state.visible && (n.state.positionSlot !== t || n.state.prevQuadrant && n.state.prevQuadrant !== n.state.quadrant) && e && (n.state.inTransition = !0, n.state.transitionTime = 0, n.state.prevLabelPosition = e, o && (n.state.prevAnchorPosition = o));
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function To(n, t, e, o) {
|
|
435
435
|
const i = e.elapsedTime - un, s = t.fov * Ze / 360;
|
|
436
436
|
let u = 0;
|
|
437
437
|
const a = [];
|
|
@@ -444,7 +444,7 @@ function Ao(n, t, e, o) {
|
|
|
444
444
|
)) : r.state.health < 1 && (r.state.health = Math.min(
|
|
445
445
|
1,
|
|
446
446
|
Math.max(0, r.state.health + i * cn)
|
|
447
|
-
)), r.state.inTransition && (r.state.transitionTime += i *
|
|
447
|
+
)), r.state.inTransition && (r.state.transitionTime += i * Ao, r.state.transitionTime >= 1 && (r.state.inTransition = !1, r.state.transitionTime = 0, r.state.prevAnchorPosition = void 0, r.state.prevLabelPosition = void 0)), r.state.inViewSpace) {
|
|
448
448
|
if (Ke.set(...r.state.position), r.state.distance = Ke.distanceTo(t.position), r.state.scaleFactor = Math.max(
|
|
449
449
|
0.25,
|
|
450
450
|
Math.min(
|
|
@@ -524,7 +524,7 @@ function Co(n) {
|
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
const ue = new pe(), So = Math.PI * 2;
|
|
527
|
-
let ct, ut,
|
|
527
|
+
let ct, ut, Ut, kt;
|
|
528
528
|
class Ro {
|
|
529
529
|
maxVisible;
|
|
530
530
|
camera;
|
|
@@ -560,7 +560,7 @@ class Ro {
|
|
|
560
560
|
generateMipmaps: !1
|
|
561
561
|
}
|
|
562
562
|
), this.annotationsBuffer = new Uint8Array(this.annotationsTexSize);
|
|
563
|
-
const a = 2 / (Math.log(t.far + 1) / Math.LN2), l = new
|
|
563
|
+
const a = 2 / (Math.log(t.far + 1) / Math.LN2), l = new Ge({
|
|
564
564
|
vertexShader: bo,
|
|
565
565
|
fragmentShader: yo,
|
|
566
566
|
uniforms: {
|
|
@@ -606,16 +606,16 @@ class Ro {
|
|
|
606
606
|
ct = (s.state.screenPosition[0] * 0.5 + 0.5) * ue.x, ut = (-s.state.screenPosition[1] * 0.5 + 0.5) * ue.y;
|
|
607
607
|
let u = s.layer.anchorSize * s.state.scaleFactor, a = !1;
|
|
608
608
|
if (Math.abs(i[0] - ct) <= u && Math.abs(i[1] - ut) <= u && (s.state.visible ? a = !0 : s.state.boost = !0), (s.state.labelHovered || a) && (u *= 1.5), s.layer.labelOffset > 0 && s.state.visible) {
|
|
609
|
-
s.state.inTransition && s.state.prevAnchorPosition ? [
|
|
609
|
+
s.state.inTransition && s.state.prevAnchorPosition ? [Ut, kt] = Yn(
|
|
610
610
|
s.state.prevAnchorPosition,
|
|
611
611
|
s.state.anchorPosition,
|
|
612
612
|
s.state.transitionTime
|
|
613
|
-
) : [
|
|
613
|
+
) : [Ut, kt] = s.state.anchorPosition;
|
|
614
614
|
let l = Math.max(
|
|
615
615
|
0.1,
|
|
616
616
|
s.layer.connectorWidth * s.state.scaleFactor
|
|
617
617
|
);
|
|
618
|
-
(s.state.labelHovered || a) && (l *= 2), e.globalAlpha = s.state.opacity || 0, e.beginPath(), e.moveTo(ct, ut), e.lineTo(
|
|
618
|
+
(s.state.labelHovered || a) && (l *= 2), e.globalAlpha = s.state.opacity || 0, e.beginPath(), e.moveTo(ct, ut), e.lineTo(Ut, kt), e.strokeStyle = s.layer.connectorColor, e.lineWidth = l, e.stroke();
|
|
619
619
|
}
|
|
620
620
|
e.beginPath(), e.arc(ct, ut, u, 0, So), e.globalAlpha = s.state.visible ? 1 : 0.5, e.fillStyle = s.layer.anchorColor, e.fill(), e.globalAlpha = s.state.opacity || 0, e.strokeStyle = "black", e.lineWidth = 0.75, e.stroke();
|
|
621
621
|
}), this.overlayTexture.needsUpdate = !0;
|
|
@@ -662,7 +662,7 @@ class Ro {
|
|
|
662
662
|
).then((p) => this.updateAnnotationsData(p)).finally(() => {
|
|
663
663
|
this.isBusy = !1;
|
|
664
664
|
}));
|
|
665
|
-
const r =
|
|
665
|
+
const r = To(
|
|
666
666
|
a,
|
|
667
667
|
o,
|
|
668
668
|
this.clock,
|
|
@@ -672,20 +672,20 @@ class Ro {
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
const Eo = 8, hn = 1, zo = ({ maxVisible: n }) => {
|
|
675
|
-
const { gl: t, scene: e, camera: o, pointer: i, clock: s } =
|
|
675
|
+
const { gl: t, scene: e, camera: o, pointer: i, clock: s } = We(), u = We((c) => c.size), a = T(() => {
|
|
676
676
|
const m = new _i(1, 1);
|
|
677
677
|
return new xt(1, 1, {
|
|
678
678
|
format: yt,
|
|
679
|
-
type:
|
|
679
|
+
type: Un,
|
|
680
680
|
depthBuffer: !0,
|
|
681
681
|
depthTexture: m,
|
|
682
682
|
generateMipmaps: !1,
|
|
683
683
|
samples: Eo
|
|
684
684
|
});
|
|
685
|
-
}, []), l =
|
|
685
|
+
}, []), l = T(
|
|
686
686
|
() => new go(e, o),
|
|
687
687
|
[e, o]
|
|
688
|
-
), r =
|
|
688
|
+
), r = T(() => new xo(), []), p = T(
|
|
689
689
|
() => new Ro(o, s, i, n),
|
|
690
690
|
[o, s, i, n]
|
|
691
691
|
);
|
|
@@ -712,7 +712,7 @@ const Eo = 8, hn = 1, zo = ({ maxVisible: n }) => {
|
|
|
712
712
|
autoUpdate: t = !0,
|
|
713
713
|
children: e
|
|
714
714
|
}) => {
|
|
715
|
-
const o =
|
|
715
|
+
const o = We((u) => u.gl), i = me((u) => u.clear), s = T(() => {
|
|
716
716
|
const u = o.domElement.parentElement;
|
|
717
717
|
if (!u) throw Error("Unable to create root!");
|
|
718
718
|
u.querySelector(`#${vn}`)?.remove();
|
|
@@ -767,7 +767,7 @@ const Eo = 8, hn = 1, zo = ({ maxVisible: n }) => {
|
|
|
767
767
|
onClick: h,
|
|
768
768
|
children: v
|
|
769
769
|
}) => {
|
|
770
|
-
const x = me((b) => b.createLayer), y = me((b) => b.updateLayer), f = me((b) => b.layerExist), _ = N(null), g =
|
|
770
|
+
const x = me((b) => b.createLayer), y = me((b) => b.updateLayer), f = me((b) => b.layerExist), _ = N(null), g = T(() => ({
|
|
771
771
|
id: n,
|
|
772
772
|
name: t,
|
|
773
773
|
priority: e,
|
|
@@ -817,7 +817,7 @@ const Eo = 8, hn = 1, zo = ({ maxVisible: n }) => {
|
|
|
817
817
|
depthWrite: l = !1,
|
|
818
818
|
children: r
|
|
819
819
|
}) => {
|
|
820
|
-
const p =
|
|
820
|
+
const p = We((d) => d.controls), c = N(null);
|
|
821
821
|
return E(() => {
|
|
822
822
|
function d() {
|
|
823
823
|
const m = p;
|
|
@@ -854,7 +854,7 @@ const Eo = 8, hn = 1, zo = ({ maxVisible: n }) => {
|
|
|
854
854
|
onDemand: e = !1,
|
|
855
855
|
children: o
|
|
856
856
|
}) => {
|
|
857
|
-
const i = ie(ei), s = N(null), [u, a] =
|
|
857
|
+
const i = ie(ei), s = N(null), [u, a] = W(!e);
|
|
858
858
|
return Pe(() => {
|
|
859
859
|
if (i && s.current) {
|
|
860
860
|
const l = i.current >= n && i.current < t;
|
|
@@ -870,10 +870,10 @@ const Eo = 8, hn = 1, zo = ({ maxVisible: n }) => {
|
|
|
870
870
|
// used internally to flag an object as an event emitter
|
|
871
871
|
};
|
|
872
872
|
function Ve(...n) {
|
|
873
|
-
const t = new
|
|
873
|
+
const t = new kn();
|
|
874
874
|
return n.forEach((e) => t.enable(e)), t;
|
|
875
875
|
}
|
|
876
|
-
var
|
|
876
|
+
var Uo = `uniform int side;
|
|
877
877
|
|
|
878
878
|
varying vec3 vWorldPosition;
|
|
879
879
|
flat varying float vEmitterId;
|
|
@@ -883,7 +883,7 @@ void main() {
|
|
|
883
883
|
discard;
|
|
884
884
|
}
|
|
885
885
|
gl_FragColor = vec4(vEmitterId, vWorldPosition);
|
|
886
|
-
}`,
|
|
886
|
+
}`, ko = `#define PICK_MATERIAL
|
|
887
887
|
|
|
888
888
|
uniform float emitterId;
|
|
889
889
|
|
|
@@ -921,14 +921,14 @@ void main() {
|
|
|
921
921
|
|
|
922
922
|
vEmitterId = emitterId + float(gl_InstanceID);
|
|
923
923
|
}`;
|
|
924
|
-
class Oo extends
|
|
924
|
+
class Oo extends Ge {
|
|
925
925
|
listeners = /* @__PURE__ */ new Map();
|
|
926
926
|
emitters = /* @__PURE__ */ new Map();
|
|
927
927
|
currentObjectMap = null;
|
|
928
928
|
constructor() {
|
|
929
929
|
super({
|
|
930
|
-
vertexShader:
|
|
931
|
-
fragmentShader:
|
|
930
|
+
vertexShader: ko,
|
|
931
|
+
fragmentShader: Uo,
|
|
932
932
|
uniforms: {
|
|
933
933
|
emitterId: new S(0),
|
|
934
934
|
side: new S(2)
|
|
@@ -956,7 +956,7 @@ class Oo extends We {
|
|
|
956
956
|
this.uniforms.side.value = a.material.side, this.uniformsNeedUpdate = !0;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
const
|
|
959
|
+
const Wo = {
|
|
960
960
|
radius: 3
|
|
961
961
|
};
|
|
962
962
|
class gn {
|
|
@@ -966,7 +966,7 @@ class gn {
|
|
|
966
966
|
_buffer;
|
|
967
967
|
_material = new Oo();
|
|
968
968
|
constructor(t = {}) {
|
|
969
|
-
const { radius: e } = { ...
|
|
969
|
+
const { radius: e } = { ...Wo, ...t };
|
|
970
970
|
this._radius = Math.max(Math.min(10, e), 0), this._size = 2 * this._radius + 1, this._pbo = new xt(this._size, this._size, {
|
|
971
971
|
colorSpace: zn,
|
|
972
972
|
samples: 0,
|
|
@@ -1071,14 +1071,14 @@ class gn {
|
|
|
1071
1071
|
);
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
|
-
const
|
|
1074
|
+
const Go = 300, xn = 10, Js = ({
|
|
1075
1075
|
autoUpdate: n = !0,
|
|
1076
1076
|
autoUpdateRenderPriority: t,
|
|
1077
1077
|
threshold: e,
|
|
1078
1078
|
onResult: o,
|
|
1079
1079
|
children: i
|
|
1080
1080
|
}) => {
|
|
1081
|
-
const { gl: s, camera: u, scene: a, pointer: l } =
|
|
1081
|
+
const { gl: s, camera: u, scene: a, pointer: l } = We(), r = T(
|
|
1082
1082
|
() => ({
|
|
1083
1083
|
busy: !1,
|
|
1084
1084
|
currentResult: {
|
|
@@ -1104,7 +1104,7 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1104
1104
|
if (_ && (!f || f.emitter.listener !== _.emitter.listener || f.emitter.listener === _.emitter.listener && f.emitter.instanced && f.index !== _.index)) {
|
|
1105
1105
|
const b = v.getListener(_.emitter.listener);
|
|
1106
1106
|
if (b && b.handlers.leave) {
|
|
1107
|
-
const
|
|
1107
|
+
const A = {
|
|
1108
1108
|
target: b.object,
|
|
1109
1109
|
source: _.emitter.source,
|
|
1110
1110
|
ref: b.ref,
|
|
@@ -1115,18 +1115,18 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1115
1115
|
camera: u,
|
|
1116
1116
|
domElement: s.domElement
|
|
1117
1117
|
};
|
|
1118
|
-
setTimeout(() => b.handlers.leave(
|
|
1118
|
+
setTimeout(() => b.handlers.leave(A));
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
if (f) {
|
|
1122
1122
|
const b = v.getListener(f.emitter.listener);
|
|
1123
1123
|
if (!_ || f.emitter.listener !== _.emitter.listener || f.emitter.listener === _.emitter.listener && f.emitter.instanced && f.index !== _.index) {
|
|
1124
|
-
const
|
|
1125
|
-
if (
|
|
1124
|
+
const A = v.getListener(f.emitter.listener);
|
|
1125
|
+
if (A && A.handlers.enter) {
|
|
1126
1126
|
const P = {
|
|
1127
|
-
target:
|
|
1127
|
+
target: A.object,
|
|
1128
1128
|
source: f.emitter.source,
|
|
1129
|
-
ref:
|
|
1129
|
+
ref: A.ref,
|
|
1130
1130
|
instanceIndex: f.index,
|
|
1131
1131
|
pointer: h.point,
|
|
1132
1132
|
position: h.position,
|
|
@@ -1134,11 +1134,11 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1134
1134
|
camera: u,
|
|
1135
1135
|
domElement: s.domElement
|
|
1136
1136
|
};
|
|
1137
|
-
setTimeout(() =>
|
|
1137
|
+
setTimeout(() => A.handlers.enter(P));
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
if (b && b.handlers.move && (h.point[0] !== g[0] || h.point[1] !== g[1])) {
|
|
1141
|
-
const
|
|
1141
|
+
const A = {
|
|
1142
1142
|
target: b.object,
|
|
1143
1143
|
source: f.emitter.source,
|
|
1144
1144
|
ref: b.ref,
|
|
@@ -1149,7 +1149,7 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1149
1149
|
camera: u,
|
|
1150
1150
|
domElement: s.domElement
|
|
1151
1151
|
};
|
|
1152
|
-
setTimeout(() => b.handlers.move(
|
|
1152
|
+
setTimeout(() => b.handlers.move(A));
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
o && (f !== null || _ !== null) && setTimeout(() => o(h)), r.currentResult = h;
|
|
@@ -1177,7 +1177,7 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1177
1177
|
r?.pickingHelper && !r.busy && !r.buttonDown && (r.busy = !0, r.pickingHelper.updateListeners(), r.pickingHelper.render(l, s, a, u).then(p).finally(() => {
|
|
1178
1178
|
r.busy = !1;
|
|
1179
1179
|
}));
|
|
1180
|
-
}, [s, u, a, l, r, p]), m =
|
|
1180
|
+
}, [s, u, a, l, r, p]), m = T(() => ({
|
|
1181
1181
|
register: (h) => {
|
|
1182
1182
|
if (!h?.object)
|
|
1183
1183
|
throw Error(
|
|
@@ -1197,7 +1197,7 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1197
1197
|
function v(f) {
|
|
1198
1198
|
if (f.isPrimary) {
|
|
1199
1199
|
const _ = performance.now(), g = r.buttonDown;
|
|
1200
|
-
r.buttonDown = !1, g && _ - r.deltaTime <
|
|
1200
|
+
r.buttonDown = !1, g && _ - r.deltaTime < Go && Math.abs(f.pageX - r.posX) < xn && Math.abs(f.pageY - r.posY) < xn && c();
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
1203
|
function x(f) {
|
|
@@ -1240,7 +1240,7 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1240
1240
|
trimAxesLabels: p = !1,
|
|
1241
1241
|
renderOrder: c
|
|
1242
1242
|
}) => {
|
|
1243
|
-
const [d, m] =
|
|
1243
|
+
const [d, m] = W({ x: 0, y: 0, flipped: !1 });
|
|
1244
1244
|
Pe(({ camera: y }) => {
|
|
1245
1245
|
y.getWorldDirection(ve);
|
|
1246
1246
|
const f = {
|
|
@@ -1250,7 +1250,7 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1250
1250
|
};
|
|
1251
1251
|
a === "xz" ? (f.flipped = ve.y > 0, f.flipped ? (f.x = ve.z < 0 ? Math.PI : 0, f.y = ve.x < 0 ? Math.PI : 0) : (f.x = ve.z > 0 ? Math.PI : 0, f.y = ve.x > 0 ? Math.PI : 0)) : a === "xy" ? (f.flipped = ve.z > 0, f.x = 0, f.y = ve.x > 0 ? Math.PI : 0) : a === "zy" && (f.flipped = ve.x > 0, f.x = 0, f.y = ve.z < 0 ? Math.PI : 0), (d.x !== f.x || d.y !== f.y || d.flipped !== f.flipped) && m(f);
|
|
1252
1252
|
});
|
|
1253
|
-
const h =
|
|
1253
|
+
const h = T(() => o / 7.5, [o]), v = T(() => new Z(l || "#fff"), [l]), x = T(() => {
|
|
1254
1254
|
const y = [e[0] * 0.5, e[1] * 0.5], f = [
|
|
1255
1255
|
y[0] + i[0],
|
|
1256
1256
|
y[1] + i[1]
|
|
@@ -1263,7 +1263,7 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1263
1263
|
], b = [
|
|
1264
1264
|
-y[0] + f[0] % o,
|
|
1265
1265
|
-y[1] + f[1] % o
|
|
1266
|
-
],
|
|
1266
|
+
], A = [
|
|
1267
1267
|
Math.min(
|
|
1268
1268
|
1e3,
|
|
1269
1269
|
Math.floor((e[0] - f[0] % o) / o) + 1
|
|
@@ -1276,29 +1276,29 @@ const Wo = 300, xn = 10, Js = ({
|
|
|
1276
1276
|
de(s[1] + i[1], -y[1], +y[1]),
|
|
1277
1277
|
de(s[0] + i[0], -y[0], +y[0])
|
|
1278
1278
|
];
|
|
1279
|
-
for (let D = p ? 1 : 0; D <
|
|
1279
|
+
for (let D = p ? 1 : 0; D < A[0] - (p ? 1 : 0); D++) {
|
|
1280
1280
|
const M = [
|
|
1281
1281
|
b[0] + D * o,
|
|
1282
1282
|
I[0] + R
|
|
1283
|
-
],
|
|
1283
|
+
], U = Math.round(
|
|
1284
1284
|
10 * (t[0] + (D - g[0]) * o * n[0])
|
|
1285
1285
|
) / 10;
|
|
1286
1286
|
Math.abs(_[0] - (M[0] + y[0])) > o / 4 && P.push({
|
|
1287
1287
|
pos: M,
|
|
1288
|
-
value:
|
|
1288
|
+
value: U,
|
|
1289
1289
|
index: `x${D}`
|
|
1290
1290
|
});
|
|
1291
1291
|
}
|
|
1292
|
-
for (let D = p ? 1 : 0; D <
|
|
1292
|
+
for (let D = p ? 1 : 0; D < A[1] - (p ? 1 : 0); D++) {
|
|
1293
1293
|
const M = [
|
|
1294
1294
|
I[1] - R,
|
|
1295
1295
|
b[1] + D * o
|
|
1296
|
-
],
|
|
1296
|
+
], U = Math.round(
|
|
1297
1297
|
10 * (t[1] + (D - g[1]) * o * n[1])
|
|
1298
1298
|
) / 10;
|
|
1299
1299
|
Math.abs(_[1] - (M[1] + y[1])) > o / 4 && C.push({
|
|
1300
1300
|
pos: M,
|
|
1301
|
-
value:
|
|
1301
|
+
value: U,
|
|
1302
1302
|
index: `y${D}`
|
|
1303
1303
|
});
|
|
1304
1304
|
}
|
|
@@ -1566,7 +1566,7 @@ void main() {
|
|
|
1566
1566
|
|
|
1567
1567
|
#include <logdepthbuf_vertex>
|
|
1568
1568
|
}`;
|
|
1569
|
-
const jo = new
|
|
1569
|
+
const jo = new Ge(), yn = new X(), bn = new Mi(), Vo = [
|
|
1570
1570
|
[0, 0.1],
|
|
1571
1571
|
[2.5, 0.25],
|
|
1572
1572
|
[5, 0.5],
|
|
@@ -1600,17 +1600,17 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1600
1600
|
axesTickSize: _ = 0.1,
|
|
1601
1601
|
originValue: g = [0, 0],
|
|
1602
1602
|
radial: b = !1,
|
|
1603
|
-
dynamicSegments:
|
|
1603
|
+
dynamicSegments: A = !1,
|
|
1604
1604
|
showRulers: P = !1,
|
|
1605
1605
|
rulerColor: C = "#c59797",
|
|
1606
1606
|
rulerLineWidth: R = 1,
|
|
1607
1607
|
rulerOpacity: I = 0.5,
|
|
1608
1608
|
planeOffset: D = 0,
|
|
1609
1609
|
dynamicCellSize: M = !1,
|
|
1610
|
-
cellSizeDistanceFactors:
|
|
1610
|
+
cellSizeDistanceFactors: U = Vo,
|
|
1611
1611
|
side: O = "both",
|
|
1612
1612
|
onRulerUpdate: $ = null,
|
|
1613
|
-
texture:
|
|
1613
|
+
texture: G,
|
|
1614
1614
|
textureMix: z = 1,
|
|
1615
1615
|
enableProjection: L = !1,
|
|
1616
1616
|
projectionDistance: B = 1e3,
|
|
@@ -1620,15 +1620,15 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1620
1620
|
name: te,
|
|
1621
1621
|
userData: Ee,
|
|
1622
1622
|
renderOrder: fe,
|
|
1623
|
-
visible:
|
|
1624
|
-
castShadow:
|
|
1623
|
+
visible: k = !0,
|
|
1624
|
+
castShadow: At,
|
|
1625
1625
|
receiveShadow: $e,
|
|
1626
1626
|
layers: ne
|
|
1627
1627
|
}) => {
|
|
1628
|
-
const [q, be] =
|
|
1628
|
+
const [q, be] = W({
|
|
1629
1629
|
originOffset: [0, 0],
|
|
1630
1630
|
axesOffset: [0, 0]
|
|
1631
|
-
}), [_e, rt] =
|
|
1631
|
+
}), [_e, rt] = W(1), we = T(() => new Ai(), []), Me = T(() => new X(), []), ze = N(null), Tt = N(null), Pt = N(null), Ct = N(0), Y = N({
|
|
1632
1632
|
uSize: new S(new pe(0, 0)),
|
|
1633
1633
|
uBackground: new S(new Z(a || 1056816)),
|
|
1634
1634
|
uBackgroundOpacity: new S(1),
|
|
@@ -1654,25 +1654,25 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1654
1654
|
),
|
|
1655
1655
|
uTexture: new S(void 0),
|
|
1656
1656
|
uTextureMix: new S(1)
|
|
1657
|
-
}), Ye =
|
|
1657
|
+
}), Ye = We((J) => J.controls), qe = We((J) => J.camera), fi = T(
|
|
1658
1658
|
() => [
|
|
1659
1659
|
(n === "zy" ? D : 0) + e[0],
|
|
1660
1660
|
(n === "xz" ? D : 0) + e[1],
|
|
1661
1661
|
(n === "xy" ? D : 0) + e[2]
|
|
1662
1662
|
],
|
|
1663
1663
|
[n, D, e]
|
|
1664
|
-
), St =
|
|
1664
|
+
), St = T(() => n === "xz" ? [i[0], -i[1]] : n === "zy" ? [-i[0], i[1]] : [...i], [i, n]), di = T(() => O === "back" ? On : O === "both" ? ge : ht, [O]);
|
|
1665
1665
|
E(() => {
|
|
1666
1666
|
const J = ze.current;
|
|
1667
1667
|
if (J) {
|
|
1668
1668
|
J.getWorldPosition(Me);
|
|
1669
1669
|
const F = { originOffset: [0, 0], axesOffset: [0, 0] };
|
|
1670
|
-
o ? n === "xz" ? (F.originOffset[0] = o[0] - Me.x, F.originOffset[1] = -(o[1] - Me.z)) : n === "xy" ? (F.originOffset[0] = o[0] - Me.x, F.originOffset[1] = o[1] - Me.y) : n === "zy" && (F.originOffset[0] = -(o[0] - Me.z), F.originOffset[1] = o[1] - Me.y) : (F.originOffset[0] = 0, F.originOffset[1] = 0), x ? n === "xz" ? (F.axesOffset[0] = x[0] * i[0] - F.originOffset[0], F.axesOffset[1] = -x[1] * i[1] - F.originOffset[1]) : n === "xy" ? (F.axesOffset[0] = x[0] * i[0] - F.originOffset[0], F.axesOffset[1] = x[1] * i[1] - F.originOffset[1]) : n === "zy" && (F.axesOffset[0] = -x[0] * i[0] - F.originOffset[0], F.axesOffset[1] = x[1] * i[1] - F.originOffset[1]) : (F.axesOffset[0] = 0, F.axesOffset[1] = 0), n === "xz" ? we.normal.set(0, 1, 0) : n === "xy" ? we.normal.set(0, 0, 1) : n === "zy" && we.normal.set(1, 0, 0), we.constant = Me.length(), be((
|
|
1670
|
+
o ? n === "xz" ? (F.originOffset[0] = o[0] - Me.x, F.originOffset[1] = -(o[1] - Me.z)) : n === "xy" ? (F.originOffset[0] = o[0] - Me.x, F.originOffset[1] = o[1] - Me.y) : n === "zy" && (F.originOffset[0] = -(o[0] - Me.z), F.originOffset[1] = o[1] - Me.y) : (F.originOffset[0] = 0, F.originOffset[1] = 0), x ? n === "xz" ? (F.axesOffset[0] = x[0] * i[0] - F.originOffset[0], F.axesOffset[1] = -x[1] * i[1] - F.originOffset[1]) : n === "xy" ? (F.axesOffset[0] = x[0] * i[0] - F.originOffset[0], F.axesOffset[1] = x[1] * i[1] - F.originOffset[1]) : n === "zy" && (F.axesOffset[0] = -x[0] * i[0] - F.originOffset[0], F.axesOffset[1] = x[1] * i[1] - F.originOffset[1]) : (F.axesOffset[0] = 0, F.axesOffset[1] = 0), n === "xz" ? we.normal.set(0, 1, 0) : n === "xy" ? we.normal.set(0, 0, 1) : n === "zy" && we.normal.set(1, 0, 0), we.constant = Me.length(), be((Ae) => Ae.axesOffset[0] !== F.axesOffset[0] || Ae.axesOffset[1] !== F.axesOffset[1] || Ae.originOffset[0] !== F.originOffset[0] || Ae.originOffset[1] !== F.originOffset[1] ? F : Ae);
|
|
1671
1671
|
}
|
|
1672
1672
|
}, [n, o, x, i, we, Me]), E(() => {
|
|
1673
1673
|
Y.current.uBackground.value = new Z(
|
|
1674
1674
|
a ?? 7368816
|
|
1675
|
-
), Y.current.uBackgroundOpacity.value = l, Y.current.uSize.value.set(...t), Y.current.uOpacity.value = Number.isFinite(r) ? de(r, 0, 1) : 1, Y.current.uCellSize.value = s * _e, Y.current.uSubDivisions.value = u, Y.current.uGridColorMajor.value.set(p), Y.current.uGridColorMinor.value.set(c), Y.current.uGridLineWidth.value = d, Y.current.uAxesLineWidth.value = f, Y.current.uAxesColor.value.set(y), Y.current.uAxesTickSize.value = _, Y.current.uAxesOffset.value.set(...q.axesOffset), Y.current.uOriginOffset.value.set(...q.originOffset), Y.current.uRulerLineWidth.value = R, Y.current.uRulerColor.value.set(C), Y.current.uRulerOpacity.value = I, Y.current.uTexture.value =
|
|
1675
|
+
), Y.current.uBackgroundOpacity.value = l, Y.current.uSize.value.set(...t), Y.current.uOpacity.value = Number.isFinite(r) ? de(r, 0, 1) : 1, Y.current.uCellSize.value = s * _e, Y.current.uSubDivisions.value = u, Y.current.uGridColorMajor.value.set(p), Y.current.uGridColorMinor.value.set(c), Y.current.uGridLineWidth.value = d, Y.current.uAxesLineWidth.value = f, Y.current.uAxesColor.value.set(y), Y.current.uAxesTickSize.value = _, Y.current.uAxesOffset.value.set(...q.axesOffset), Y.current.uOriginOffset.value.set(...q.originOffset), Y.current.uRulerLineWidth.value = R, Y.current.uRulerColor.value.set(C), Y.current.uRulerOpacity.value = I, Y.current.uTexture.value = G, Y.current.uTextureMix.value = z, Y.current.uProjectionColor.value.set(j);
|
|
1676
1676
|
}, [
|
|
1677
1677
|
t,
|
|
1678
1678
|
s,
|
|
@@ -1691,7 +1691,7 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1691
1691
|
R,
|
|
1692
1692
|
I,
|
|
1693
1693
|
q,
|
|
1694
|
-
|
|
1694
|
+
G,
|
|
1695
1695
|
z,
|
|
1696
1696
|
j
|
|
1697
1697
|
]), E(() => {
|
|
@@ -1700,12 +1700,12 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1700
1700
|
qe.getWorldDirection(yn), bn.set(qe.position, yn);
|
|
1701
1701
|
const F = bn.distanceToPlane(we);
|
|
1702
1702
|
if (F) {
|
|
1703
|
-
const
|
|
1704
|
-
let Se =
|
|
1705
|
-
(at) => at[0] >=
|
|
1703
|
+
const Ae = Math.min(F, 1e3 * s) / s;
|
|
1704
|
+
let Se = U.findIndex(
|
|
1705
|
+
(at) => at[0] >= Ae
|
|
1706
1706
|
);
|
|
1707
|
-
Se === -1 ? Se =
|
|
1708
|
-
const st =
|
|
1707
|
+
Se === -1 ? Se = U.length - 1 : Se--, Se = Math.max(0, Se);
|
|
1708
|
+
const st = U[Se][1];
|
|
1709
1709
|
rt((at) => at !== st ? st : at);
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
@@ -1719,19 +1719,19 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1719
1719
|
we,
|
|
1720
1720
|
M,
|
|
1721
1721
|
s,
|
|
1722
|
-
|
|
1722
|
+
U,
|
|
1723
1723
|
t
|
|
1724
1724
|
]), E(() => {
|
|
1725
|
-
|
|
1726
|
-
}, [b, m,
|
|
1727
|
-
const Rt =
|
|
1728
|
-
minFilter:
|
|
1729
|
-
magFilter:
|
|
1730
|
-
type:
|
|
1725
|
+
Tt.current && (Tt.current.needsUpdate = !0);
|
|
1726
|
+
}, [b, m, A, P]);
|
|
1727
|
+
const Rt = T(() => L ? new xt(Q, Q, {
|
|
1728
|
+
minFilter: Ue,
|
|
1729
|
+
magFilter: Ue,
|
|
1730
|
+
type: Un,
|
|
1731
1731
|
samples: 4
|
|
1732
1732
|
}) : null, [L, Q]);
|
|
1733
|
-
Pe(({ gl: J, scene: F },
|
|
1734
|
-
if (L && Rt && (Ct.current +=
|
|
1733
|
+
Pe(({ gl: J, scene: F }, Ae) => {
|
|
1734
|
+
if (L && Rt && (Ct.current += Ae * 1e3, Ct.current >= ae && (Ct.current -= ae, Y.current.uProjectionTexture.value = Rt.texture, ze.current && Pt.current))) {
|
|
1735
1735
|
const Se = Pt.current, st = F.background;
|
|
1736
1736
|
J.setRenderTarget(Rt), F.overrideMaterial = jo, ze.current.visible = !1, F.background = null, J.clear(), J.render(F, Se), F.overrideMaterial = null, J.setRenderTarget(null), F.background = st, ze.current.visible = !0;
|
|
1737
1737
|
}
|
|
@@ -1761,7 +1761,7 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1761
1761
|
ref: ze,
|
|
1762
1762
|
name: te,
|
|
1763
1763
|
userData: Ee,
|
|
1764
|
-
visible:
|
|
1764
|
+
visible: k,
|
|
1765
1765
|
"rotation-x": n === "xz" ? -Math.PI / 2 : 0,
|
|
1766
1766
|
"rotation-y": n === "zy" ? Math.PI / 2 : 0,
|
|
1767
1767
|
position: fi,
|
|
@@ -1773,7 +1773,7 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1773
1773
|
onPointerMove: P ? pi : void 0,
|
|
1774
1774
|
onPointerLeave: P ? mi : void 0,
|
|
1775
1775
|
renderOrder: fe,
|
|
1776
|
-
castShadow:
|
|
1776
|
+
castShadow: At,
|
|
1777
1777
|
receiveShadow: $e,
|
|
1778
1778
|
layers: ne,
|
|
1779
1779
|
children: [
|
|
@@ -1781,11 +1781,11 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1781
1781
|
/* @__PURE__ */ w(
|
|
1782
1782
|
"shaderMaterial",
|
|
1783
1783
|
{
|
|
1784
|
-
ref:
|
|
1784
|
+
ref: Tt,
|
|
1785
1785
|
uniforms: Y.current,
|
|
1786
1786
|
defines: {
|
|
1787
1787
|
RADIAL: b,
|
|
1788
|
-
DYNAMICSEGMENTS:
|
|
1788
|
+
DYNAMICSEGMENTS: A,
|
|
1789
1789
|
AXES: !!m,
|
|
1790
1790
|
RULERS: !!P,
|
|
1791
1791
|
SATURATE: !0
|
|
@@ -1845,7 +1845,7 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1845
1845
|
}
|
|
1846
1846
|
);
|
|
1847
1847
|
}, wt = Ce(null), Zs = (n) => {
|
|
1848
|
-
const t = ie(wt), [e, o] =
|
|
1848
|
+
const t = ie(wt), [e, o] = W({
|
|
1849
1849
|
origin: [0, 0],
|
|
1850
1850
|
originValue: [0, 0],
|
|
1851
1851
|
gridScale: [1, 1]
|
|
@@ -1863,7 +1863,7 @@ const jo = new We(), yn = new X(), bn = new Mi(), Vo = [
|
|
|
1863
1863
|
gridScale: e.gridScale
|
|
1864
1864
|
}
|
|
1865
1865
|
);
|
|
1866
|
-
}, Ie = new
|
|
1866
|
+
}, Ie = new Wn();
|
|
1867
1867
|
function ni(n, t) {
|
|
1868
1868
|
n.updateWorldMatrix(!1, !1);
|
|
1869
1869
|
const e = n.geometry;
|
|
@@ -1873,7 +1873,7 @@ function ni(n, t) {
|
|
|
1873
1873
|
ni(o[i], t);
|
|
1874
1874
|
return t;
|
|
1875
1875
|
}
|
|
1876
|
-
const Xe = new X(), Qe = new X(), ee = new
|
|
1876
|
+
const Xe = new X(), Qe = new X(), ee = new Wn(), $o = (n) => {
|
|
1877
1877
|
const t = N(null), e = N({
|
|
1878
1878
|
center: [0, 0, 0],
|
|
1879
1879
|
size: [0, 0, 0]
|
|
@@ -1883,7 +1883,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
1883
1883
|
updateRate: s = 1e3,
|
|
1884
1884
|
enabled: u = !0,
|
|
1885
1885
|
onChange: a
|
|
1886
|
-
} = n, l =
|
|
1886
|
+
} = n, l = T(() => {
|
|
1887
1887
|
if (Number.isFinite(o)) {
|
|
1888
1888
|
const r = o;
|
|
1889
1889
|
return {
|
|
@@ -1971,23 +1971,23 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
1971
1971
|
gridColorMinor: _ = "#789",
|
|
1972
1972
|
axesColor: g = "#fff",
|
|
1973
1973
|
axesLineWidth: b = h || 0.05,
|
|
1974
|
-
axesTickSize:
|
|
1974
|
+
axesTickSize: A = 0.1,
|
|
1975
1975
|
enableProjection: P,
|
|
1976
1976
|
projectionColor: C,
|
|
1977
1977
|
projectionResolution: R = 2048,
|
|
1978
1978
|
projectionRefreshRate: I,
|
|
1979
1979
|
showRulers: D = !1,
|
|
1980
1980
|
autoSize: M = !1,
|
|
1981
|
-
autoSizePadding:
|
|
1981
|
+
autoSizePadding: U = 0,
|
|
1982
1982
|
autoSizeUpdateRate: O = 1e3,
|
|
1983
1983
|
children: $
|
|
1984
1984
|
}) => {
|
|
1985
|
-
const [
|
|
1985
|
+
const [G, z] = W(m), [L, B] = W(a), j = N(null), [Q, ae] = W(G);
|
|
1986
1986
|
return E(() => {
|
|
1987
1987
|
M || (z((te) => te[0] !== m[0] || te[1] !== m[1] || te[2] !== m[2] ? m : te), B((te) => te[0] !== a[0] || te[1] !== a[1] || te[2] !== a[2] ? a : te));
|
|
1988
1988
|
}, [a, m, M]), E(() => {
|
|
1989
1989
|
j.current && (j.current.getWorldPosition(_n), ae(_n.toArray()));
|
|
1990
|
-
}, [
|
|
1990
|
+
}, [G]), /* @__PURE__ */ H("group", { ref: j, name: n, userData: u, visible: t, children: [
|
|
1991
1991
|
/* @__PURE__ */ w(
|
|
1992
1992
|
Ne,
|
|
1993
1993
|
{
|
|
@@ -1996,9 +1996,9 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
1996
1996
|
cellSize: l,
|
|
1997
1997
|
size: [L[0], L[2]],
|
|
1998
1998
|
position: [
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1999
|
+
G[0],
|
|
2000
|
+
G[1] - L[1] * 0.5,
|
|
2001
|
+
G[2]
|
|
2002
2002
|
],
|
|
2003
2003
|
gridScale: [r[0], r[2]],
|
|
2004
2004
|
gridOrigin: [p[0], p[2]],
|
|
@@ -2011,7 +2011,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2011
2011
|
opacity: y,
|
|
2012
2012
|
axesColor: g,
|
|
2013
2013
|
axesLineWidth: b,
|
|
2014
|
-
axesTickSize:
|
|
2014
|
+
axesTickSize: A,
|
|
2015
2015
|
trimAxesLabels: !0,
|
|
2016
2016
|
side: "both",
|
|
2017
2017
|
enableProjection: P,
|
|
@@ -2034,13 +2034,13 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2034
2034
|
cellSize: l,
|
|
2035
2035
|
size: [L[0], L[1]],
|
|
2036
2036
|
position: [
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2037
|
+
G[0],
|
|
2038
|
+
G[1],
|
|
2039
|
+
G[2] - L[2] * 0.5
|
|
2040
2040
|
],
|
|
2041
2041
|
gridScale: [r[0], r[1]],
|
|
2042
2042
|
axesOffset: [
|
|
2043
|
-
(-Q[0] -
|
|
2043
|
+
(-Q[0] - G[0]) / r[0],
|
|
2044
2044
|
L[1] * 0.5 * r[1]
|
|
2045
2045
|
],
|
|
2046
2046
|
gridOrigin: [p[0], p[1]],
|
|
@@ -2053,7 +2053,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2053
2053
|
opacity: y,
|
|
2054
2054
|
axesColor: g,
|
|
2055
2055
|
axesLineWidth: b,
|
|
2056
|
-
axesTickSize:
|
|
2056
|
+
axesTickSize: A,
|
|
2057
2057
|
trimAxesLabels: !0,
|
|
2058
2058
|
side: "front",
|
|
2059
2059
|
enableProjection: P,
|
|
@@ -2076,13 +2076,13 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2076
2076
|
cellSize: l,
|
|
2077
2077
|
size: [L[2], L[1]],
|
|
2078
2078
|
position: [
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2079
|
+
G[0] - L[0] * 0.5,
|
|
2080
|
+
G[1],
|
|
2081
|
+
G[2]
|
|
2082
2082
|
],
|
|
2083
2083
|
gridScale: [r[2], r[1]],
|
|
2084
2084
|
axesOffset: [
|
|
2085
|
-
(-Q[2] -
|
|
2085
|
+
(-Q[2] - G[2]) / r[2],
|
|
2086
2086
|
L[1] * 0.5 * r[1]
|
|
2087
2087
|
],
|
|
2088
2088
|
gridOrigin: [p[2], p[1]],
|
|
@@ -2095,7 +2095,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2095
2095
|
opacity: y,
|
|
2096
2096
|
axesColor: g,
|
|
2097
2097
|
axesLineWidth: b,
|
|
2098
|
-
axesTickSize:
|
|
2098
|
+
axesTickSize: A,
|
|
2099
2099
|
trimAxesLabels: !0,
|
|
2100
2100
|
side: "front",
|
|
2101
2101
|
enableProjection: P,
|
|
@@ -2118,13 +2118,13 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2118
2118
|
cellSize: l,
|
|
2119
2119
|
size: [L[0], L[1]],
|
|
2120
2120
|
position: [
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2121
|
+
G[0],
|
|
2122
|
+
G[1],
|
|
2123
|
+
G[2] + L[2] * 0.5
|
|
2124
2124
|
],
|
|
2125
2125
|
gridScale: [r[0], r[1]],
|
|
2126
2126
|
axesOffset: [
|
|
2127
|
-
(-Q[0] -
|
|
2127
|
+
(-Q[0] - G[0]) / r[0],
|
|
2128
2128
|
L[1] * 0.5 * r[1]
|
|
2129
2129
|
],
|
|
2130
2130
|
gridOrigin: [p[0], p[1]],
|
|
@@ -2137,7 +2137,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2137
2137
|
opacity: y,
|
|
2138
2138
|
axesColor: g,
|
|
2139
2139
|
axesLineWidth: b,
|
|
2140
|
-
axesTickSize:
|
|
2140
|
+
axesTickSize: A,
|
|
2141
2141
|
trimAxesLabels: !0,
|
|
2142
2142
|
side: "back",
|
|
2143
2143
|
enableProjection: P,
|
|
@@ -2160,13 +2160,13 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2160
2160
|
cellSize: l,
|
|
2161
2161
|
size: [L[2], L[1]],
|
|
2162
2162
|
position: [
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2163
|
+
G[0] + L[0] * 0.5,
|
|
2164
|
+
G[1],
|
|
2165
|
+
G[2]
|
|
2166
2166
|
],
|
|
2167
2167
|
gridScale: [r[2], r[1]],
|
|
2168
2168
|
axesOffset: [
|
|
2169
|
-
(-Q[2] -
|
|
2169
|
+
(-Q[2] - G[2]) / r[2],
|
|
2170
2170
|
L[1] * 0.5 * r[1]
|
|
2171
2171
|
],
|
|
2172
2172
|
gridOrigin: [p[2], p[1]],
|
|
@@ -2179,7 +2179,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2179
2179
|
opacity: y,
|
|
2180
2180
|
axesColor: g,
|
|
2181
2181
|
axesLineWidth: b,
|
|
2182
|
-
axesTickSize:
|
|
2182
|
+
axesTickSize: A,
|
|
2183
2183
|
trimAxesLabels: !0,
|
|
2184
2184
|
side: "back",
|
|
2185
2185
|
enableProjection: P,
|
|
@@ -2197,7 +2197,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2197
2197
|
M && /* @__PURE__ */ w(
|
|
2198
2198
|
$o,
|
|
2199
2199
|
{
|
|
2200
|
-
padding:
|
|
2200
|
+
padding: U,
|
|
2201
2201
|
updateRate: O,
|
|
2202
2202
|
snapTo: l,
|
|
2203
2203
|
onChange: (te) => {
|
|
@@ -2208,7 +2208,7 @@ const Xe = new X(), Qe = new X(), ee = new Gn(), $o = (n) => {
|
|
|
2208
2208
|
),
|
|
2209
2209
|
!M && $
|
|
2210
2210
|
] });
|
|
2211
|
-
}, gt = (n, t) => t ? `${n.id}_${t}` : `${n.id}`;
|
|
2211
|
+
}, gt = (n, t) => t !== void 0 ? `${n.id}_${t}` : `${n.id}`;
|
|
2212
2212
|
function Yo(n, t, e) {
|
|
2213
2213
|
n.traverseVisible((o) => {
|
|
2214
2214
|
o.layers.isEnabled(se.NOT_EMITTER) || (o.type === "Mesh" || o.type === "Line") && (t[gt(o, e)] = {
|
|
@@ -2259,26 +2259,26 @@ const ii = bt((n) => ({
|
|
|
2259
2259
|
blending: t,
|
|
2260
2260
|
renderOrder: e
|
|
2261
2261
|
}) => {
|
|
2262
|
-
const { highlighted: o } = ii(), i =
|
|
2262
|
+
const { highlighted: o } = ii(), i = T(() => new Nt({
|
|
2263
2263
|
color: n || 4210752,
|
|
2264
2264
|
depthTest: !0,
|
|
2265
2265
|
depthWrite: !1,
|
|
2266
2266
|
transparent: !0,
|
|
2267
2267
|
opacity: 1,
|
|
2268
|
-
blending: t ||
|
|
2268
|
+
blending: t || Gn,
|
|
2269
2269
|
side: ge
|
|
2270
|
-
}), [n, t]), s =
|
|
2270
|
+
}), [n, t]), s = T(() => o.map((u) => {
|
|
2271
2271
|
let a;
|
|
2272
2272
|
const l = u.object.geometry;
|
|
2273
|
-
if (u.object instanceof
|
|
2273
|
+
if (u.object instanceof Gt) {
|
|
2274
2274
|
const r = u.object;
|
|
2275
|
-
if (u.instanceIndex)
|
|
2276
|
-
a = new mt(l, i),
|
|
2275
|
+
if (u.instanceIndex !== void 0)
|
|
2276
|
+
a = new mt(l, i), r.updateWorldMatrix(!0, !1), r.getMatrixAt(u.instanceIndex, wn), a.matrixAutoUpdate = !1, a.matrix.copy(r.matrixWorld).multiply(wn);
|
|
2277
2277
|
else {
|
|
2278
|
-
const p = new
|
|
2279
|
-
|
|
2278
|
+
const p = new Gt(l, i, r.count);
|
|
2279
|
+
r.updateWorldMatrix(!0, !1), p.matrixAutoUpdate = !1, p.matrix.copy(r.matrixWorld), p.instanceMatrix = r.instanceMatrix, a = p;
|
|
2280
2280
|
}
|
|
2281
|
-
} else u.object instanceof mt ? (a = new mt(l, i), u.object.
|
|
2281
|
+
} else u.object instanceof mt ? (a = new mt(l, i), u.object.updateWorldMatrix(!0, !1), a.matrixAutoUpdate = !1, a.matrix.copy(u.object.matrixWorld)) : (a = new Fn(l, i), u.object.updateWorldMatrix(!0, !1), a.matrixAutoUpdate = !1, a.matrix.copy(u.object.matrixWorld));
|
|
2282
2282
|
return a.visible = u.object.visible, a;
|
|
2283
2283
|
}), [o, i]);
|
|
2284
2284
|
return /* @__PURE__ */ w("group", { renderOrder: e, children: s.map((u) => /* @__PURE__ */ w("primitive", { object: u }, u.uuid)) });
|
|
@@ -2292,7 +2292,7 @@ const ii = bt((n) => ({
|
|
|
2292
2292
|
padding: s = 0,
|
|
2293
2293
|
children: u = null
|
|
2294
2294
|
}, a) => {
|
|
2295
|
-
const [l, r, p, c] =
|
|
2295
|
+
const [l, r, p, c] = T(() => n === "top-left" ? [`${o[0]}px`, void 0, void 0, `${o[1]}px`] : n === "top-right" ? [void 0, void 0, `${o[0]}px`, `${o[1]}px`] : n === "bottom-right" ? [void 0, `${o[1]}px`, `${o[0]}px`, void 0] : [`${o[0]}px`, `${o[1]}px`, void 0, void 0], [n, o]);
|
|
2296
2296
|
return /* @__PURE__ */ w(
|
|
2297
2297
|
"div",
|
|
2298
2298
|
{
|
|
@@ -2355,7 +2355,7 @@ const ii = bt((n) => ({
|
|
|
2355
2355
|
has: t
|
|
2356
2356
|
};
|
|
2357
2357
|
}, oa = (n) => {
|
|
2358
|
-
const t = Ht((o) => o.groups), e =
|
|
2358
|
+
const t = Ht((o) => o.groups), e = T(() => Object.values(t).sort(
|
|
2359
2359
|
(o, i) => (o.order || 0) - (i.order || 0)
|
|
2360
2360
|
), [t]);
|
|
2361
2361
|
return /* @__PURE__ */ w(Ko, { ...n, children: /* @__PURE__ */ w(
|
|
@@ -2450,24 +2450,24 @@ const ii = bt((n) => ({
|
|
|
2450
2450
|
width: e = 3,
|
|
2451
2451
|
dashed: o = !1
|
|
2452
2452
|
}) => {
|
|
2453
|
-
const i = Re(), s = i((b) => b.wellboresById), u = i((b) => b.wellboresByName), a = i((b) => b.measures.ratio), l = i((b) => b.domain), r = i((b) => b.measures.range), p = i((b) => b.slotsById), c = i((b) => b.styles), d = i((b) => b.measures.getSlotPosition), m =
|
|
2453
|
+
const i = Re(), s = i((b) => b.wellboresById), u = i((b) => b.wellboresByName), a = i((b) => b.measures.ratio), l = i((b) => b.domain), r = i((b) => b.measures.range), p = i((b) => b.slotsById), c = i((b) => b.styles), d = i((b) => b.measures.getSlotPosition), m = T(
|
|
2454
2454
|
() => s[n] || null,
|
|
2455
2455
|
[n, s]
|
|
2456
|
-
), h =
|
|
2456
|
+
), h = T(
|
|
2457
2457
|
() => He().domain(l).range(r),
|
|
2458
2458
|
[l, r]
|
|
2459
|
-
), v =
|
|
2459
|
+
), v = T(() => a > 0 ? a * 10 : 0, [a]), x = T(() => {
|
|
2460
2460
|
const b = [];
|
|
2461
2461
|
if (m) {
|
|
2462
|
-
let
|
|
2463
|
-
const C = d(
|
|
2462
|
+
let A = p[m.id], P = m;
|
|
2463
|
+
const C = d(A), R = h(m.depthMdMsl);
|
|
2464
2464
|
for (b.push([C, R]); P; ) {
|
|
2465
|
-
const I = P.parent ? u[P.parent] : void 0, D = P.kickoffDepthMsl !== null ? P.kickoffDepthMsl : -P.depthReferenceElevation, M = I ? p[I.id] :
|
|
2466
|
-
b.push([
|
|
2465
|
+
const I = P.parent ? u[P.parent] : void 0, D = P.kickoffDepthMsl !== null ? P.kickoffDepthMsl : -P.depthReferenceElevation, M = I ? p[I.id] : A, U = d(M), O = h(D);
|
|
2466
|
+
b.push([U, O]), A = M, P = I;
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
2469
|
return b.reverse();
|
|
2470
|
-
}, [m, h, d, p, u]), y =
|
|
2470
|
+
}, [m, h, d, p, u]), y = T(() => {
|
|
2471
2471
|
if (m) {
|
|
2472
2472
|
const b = m.kickoffDepthMsl !== null ? m.kickoffDepthMsl : -m.depthReferenceElevation;
|
|
2473
2473
|
return h(b);
|
|
@@ -2475,21 +2475,21 @@ const ii = bt((n) => ({
|
|
|
2475
2475
|
return null;
|
|
2476
2476
|
}, [m, h]), f = re(
|
|
2477
2477
|
(b) => {
|
|
2478
|
-
const
|
|
2478
|
+
const A = nt();
|
|
2479
2479
|
if (b.length < 2) return "";
|
|
2480
2480
|
let P = b[0][0], C = b[0][1];
|
|
2481
|
-
|
|
2481
|
+
A.moveTo(P, C);
|
|
2482
2482
|
for (let R = 1; R < b.length; R++) {
|
|
2483
2483
|
const I = b[R][0], D = b[R][1];
|
|
2484
|
-
if (
|
|
2484
|
+
if (A.lineTo(P, C), P !== I)
|
|
2485
2485
|
if (D - C > v) {
|
|
2486
2486
|
const M = C + v;
|
|
2487
|
-
|
|
2487
|
+
A.arcTo(I, C, I, M, v);
|
|
2488
2488
|
} else
|
|
2489
|
-
|
|
2490
|
-
|
|
2489
|
+
A.lineTo(I, C);
|
|
2490
|
+
A.lineTo(I, D), P = I, C = D;
|
|
2491
2491
|
}
|
|
2492
|
-
return
|
|
2492
|
+
return A.toString();
|
|
2493
2493
|
},
|
|
2494
2494
|
[v]
|
|
2495
2495
|
), _ = v / 2, g = `${_},${_ / 2}`;
|
|
@@ -2557,20 +2557,20 @@ const ii = bt((n) => ({
|
|
|
2557
2557
|
ruler: e = !0,
|
|
2558
2558
|
rulerWidth: o = 4.5
|
|
2559
2559
|
}) => {
|
|
2560
|
-
const i = N(null), s = Re(), u = s((y) => y.domain), a = s((y) => y.measures.range), l = s((y) => y.measures.tracksWidth), r = s((y) => y.styles), [p, c] =
|
|
2560
|
+
const i = N(null), s = Re(), u = s((y) => y.domain), a = s((y) => y.measures.range), l = s((y) => y.measures.tracksWidth), r = s((y) => y.styles), [p, c] = W(!1), d = T(
|
|
2561
2561
|
() => He().domain(u).range(a),
|
|
2562
2562
|
[u, a]
|
|
2563
|
-
), m =
|
|
2563
|
+
), m = T(() => {
|
|
2564
2564
|
const y = r.depthAxisWidth * 0.65, f = nt();
|
|
2565
2565
|
return f.moveTo(0, -y / 2), f.lineTo(r.depthAxisWidth / 2, -y / 2), f.lineTo(r.depthAxisWidth, 0), f.lineTo(r.depthAxisWidth / 2, y / 2), f.lineTo(0, y / 2), f.lineTo(0, -y / 2), f.toString();
|
|
2566
|
-
}, [r.depthAxisWidth]), h =
|
|
2566
|
+
}, [r.depthAxisWidth]), h = T(() => d(n), [n, d]), v = T(() => {
|
|
2567
2567
|
const y = r.darkMode ? 0 : 240;
|
|
2568
2568
|
return `rgba(${y}, ${y}, ${y}, .7)`;
|
|
2569
2569
|
}, [r.darkMode]);
|
|
2570
2570
|
E(() => {
|
|
2571
2571
|
function y(g) {
|
|
2572
2572
|
if (!i.current) return;
|
|
2573
|
-
const b = d.range(),
|
|
2573
|
+
const b = d.range(), A = de(g.y, b[0], b[1]), P = d.invert(A);
|
|
2574
2574
|
t && t(P);
|
|
2575
2575
|
}
|
|
2576
2576
|
function f() {
|
|
@@ -2658,22 +2658,22 @@ const ii = bt((n) => ({
|
|
|
2658
2658
|
interactive: u,
|
|
2659
2659
|
color: a = "white"
|
|
2660
2660
|
}) => {
|
|
2661
|
-
const l = Re(), r = l((z) => z.wellboresById), p = l((z) => z.wellboresByName), c = l((z) => z.measures.ratio), d = l((z) => z.domain), m = l((z) => z.measures.range), h = l((z) => z.activeDepths), v = l((z) => z.slotsById), x = l((z) => z.styles), y = l((z) => z.measures.getSlotPosition), f =
|
|
2661
|
+
const l = Re(), r = l((z) => z.wellboresById), p = l((z) => z.wellboresByName), c = l((z) => z.measures.ratio), d = l((z) => z.domain), m = l((z) => z.measures.range), h = l((z) => z.activeDepths), v = l((z) => z.slotsById), x = l((z) => z.styles), y = l((z) => z.measures.getSlotPosition), f = T(
|
|
2662
2662
|
() => r[n] || null,
|
|
2663
2663
|
[n, r]
|
|
2664
|
-
), _ =
|
|
2664
|
+
), _ = T(() => {
|
|
2665
2665
|
if (f && f.parent) {
|
|
2666
2666
|
const z = p[f.parent]?.id;
|
|
2667
2667
|
return z ? v[z] : 0;
|
|
2668
2668
|
}
|
|
2669
2669
|
return null;
|
|
2670
|
-
}, [f, p, v]), g =
|
|
2670
|
+
}, [f, p, v]), g = T(
|
|
2671
2671
|
() => He().domain(d).range(m),
|
|
2672
2672
|
[d, m]
|
|
2673
|
-
), [b,
|
|
2673
|
+
), [b, A] = T(() => [
|
|
2674
2674
|
y(_ !== null ? _ : t),
|
|
2675
2675
|
y(t)
|
|
2676
|
-
], [t, _, y]), P =
|
|
2676
|
+
], [t, _, y]), P = T(() => c ? Math.min(15, c * 24) : 0, [c]), C = T(() => c > 0 ? c * 10 : 0, [c]), R = re(
|
|
2677
2677
|
(z, L, B, j) => {
|
|
2678
2678
|
const Q = nt();
|
|
2679
2679
|
if (Q.moveTo(z, B), z !== L)
|
|
@@ -2685,24 +2685,24 @@ const ii = bt((n) => ({
|
|
|
2685
2685
|
return Q.lineTo(L, j), Q.toString();
|
|
2686
2686
|
},
|
|
2687
2687
|
[C]
|
|
2688
|
-
), { active: I, inactive: D, kickoff: M, termination:
|
|
2688
|
+
), { active: I, inactive: D, kickoff: M, termination: U } = T(() => {
|
|
2689
2689
|
let z = null, L = null, B = 0, j = 0, Q = null;
|
|
2690
2690
|
if (f) {
|
|
2691
2691
|
const ae = h[f.id];
|
|
2692
2692
|
let te = -f.depthReferenceElevation;
|
|
2693
2693
|
if (f.kickoffDepthMsl !== null && (te = f.kickoffDepthMsl, Q = g(f.kickoffDepthMsl)), j = g(te), B = g(f.depthMdMsl), ae !== void 0) {
|
|
2694
2694
|
const Ee = g(ae);
|
|
2695
|
-
z = [b,
|
|
2695
|
+
z = [b, A, j, Ee], Ee > j && (L = [A, A, Ee, B]);
|
|
2696
2696
|
} else
|
|
2697
|
-
L = [b,
|
|
2697
|
+
L = [b, A, j, B];
|
|
2698
2698
|
}
|
|
2699
2699
|
return { active: z, inactive: L, kickoff: Q, termination: B };
|
|
2700
|
-
}, [g, f, h, b,
|
|
2700
|
+
}, [g, f, h, b, A]), O = T(() => {
|
|
2701
2701
|
const z = x.darkMode ? 0 : 240;
|
|
2702
2702
|
return `rgba(${z}, ${z}, ${z}, .9)`;
|
|
2703
2703
|
}, [x.darkMode]);
|
|
2704
2704
|
if (!f) return null;
|
|
2705
|
-
const $ = C / 2,
|
|
2705
|
+
const $ = C / 2, G = `${$},${$ / 2}`;
|
|
2706
2706
|
return /* @__PURE__ */ H(
|
|
2707
2707
|
"g",
|
|
2708
2708
|
{
|
|
@@ -2749,7 +2749,7 @@ const ii = bt((n) => ({
|
|
|
2749
2749
|
stroke: a,
|
|
2750
2750
|
strokeWidth: C,
|
|
2751
2751
|
fill: "none",
|
|
2752
|
-
strokeDasharray:
|
|
2752
|
+
strokeDasharray: G,
|
|
2753
2753
|
style: {
|
|
2754
2754
|
filter: `drop-shadow( 1px 1px 2px ${O})`,
|
|
2755
2755
|
pointerEvents: "none"
|
|
@@ -2782,8 +2782,8 @@ const ii = bt((n) => ({
|
|
|
2782
2782
|
P >= 8 && /* @__PURE__ */ w(
|
|
2783
2783
|
"text",
|
|
2784
2784
|
{
|
|
2785
|
-
x:
|
|
2786
|
-
y:
|
|
2785
|
+
x: A,
|
|
2786
|
+
y: U + P,
|
|
2787
2787
|
fontSize: `${P - 2}px`,
|
|
2788
2788
|
fill: x.textColor,
|
|
2789
2789
|
fillOpacity: e ? 1 : 0.75,
|
|
@@ -2800,8 +2800,8 @@ const ii = bt((n) => ({
|
|
|
2800
2800
|
c >= 0.5 && /* @__PURE__ */ H(
|
|
2801
2801
|
"text",
|
|
2802
2802
|
{
|
|
2803
|
-
x:
|
|
2804
|
-
y:
|
|
2803
|
+
x: A,
|
|
2804
|
+
y: U + P * 2,
|
|
2805
2805
|
fontSize: `${P * 0.75 - 2}px`,
|
|
2806
2806
|
fill: x.textColor,
|
|
2807
2807
|
fillOpacity: e ? 1 : 0.75,
|
|
@@ -2829,44 +2829,44 @@ const ii = bt((n) => ({
|
|
|
2829
2829
|
depthCursor: l,
|
|
2830
2830
|
children: r
|
|
2831
2831
|
}) => {
|
|
2832
|
-
const [p, c] = Ji(), d = Re(), m = d((M) => M.wellboreIds), h = d((M) => M.wellboresById), v = d((M) => M.setMeasure), x = d((M) => M.domain), y = d((M) => M.measures.range), f = d((M) => M.measures.trackWidth), _ = d((M) => M.slotsById), g = d((M) => M.styles), b = N(null),
|
|
2832
|
+
const [p, c] = Ji(), d = Re(), m = d((M) => M.wellboreIds), h = d((M) => M.wellboresById), v = d((M) => M.setMeasure), x = d((M) => M.domain), y = d((M) => M.measures.range), f = d((M) => M.measures.trackWidth), _ = d((M) => M.slotsById), g = d((M) => M.styles), b = N(null), A = N(null), P = N(null);
|
|
2833
2833
|
E(() => {
|
|
2834
2834
|
v(c.width, c.height);
|
|
2835
2835
|
}, [c, v, m]);
|
|
2836
|
-
const C =
|
|
2836
|
+
const C = T(
|
|
2837
2837
|
() => He().domain(x).range(y),
|
|
2838
2838
|
[x, y]
|
|
2839
|
-
), R =
|
|
2840
|
-
const M = Math.floor(C.domain()[0] / 100) * 100,
|
|
2841
|
-
return rn(C).tickValues(Xi(0,
|
|
2842
|
-
}, [C, g]), I =
|
|
2839
|
+
), R = T(() => {
|
|
2840
|
+
const M = Math.floor(C.domain()[0] / 100) * 100, U = Math.ceil((C.domain()[1] - M) / 100);
|
|
2841
|
+
return rn(C).tickValues(Xi(0, U).map(($) => $ * 100 + M)).tickSizeInner(g.depthAxisWidth);
|
|
2842
|
+
}, [C, g]), I = T(() => {
|
|
2843
2843
|
const M = /* @__PURE__ */ new Set();
|
|
2844
2844
|
m.forEach((z) => {
|
|
2845
2845
|
const L = h[z];
|
|
2846
2846
|
L && L.kickoffDepthMsl && M.add(L.kickoffDepthMsl);
|
|
2847
2847
|
});
|
|
2848
|
-
const
|
|
2848
|
+
const U = 5.5, O = Array.from(M).sort((z, L) => z - L), $ = /* @__PURE__ */ new Set();
|
|
2849
2849
|
return O.forEach((z, L) => {
|
|
2850
2850
|
const B = L > 0 ? O[L - 1] : null;
|
|
2851
2851
|
if (B) {
|
|
2852
2852
|
const j = C(B), Q = C(z);
|
|
2853
|
-
Math.abs(Q - j) <
|
|
2853
|
+
Math.abs(Q - j) < U && $.add(z);
|
|
2854
2854
|
}
|
|
2855
2855
|
}), rn(C).tickValues(O).tickSizeInner(-c.width).tickSizeOuter(2).offset(0).tickPadding(4).tickFormat(
|
|
2856
2856
|
(z) => $.has(z.valueOf()) ? "" : Qi(",.0f")(z)
|
|
2857
2857
|
);
|
|
2858
|
-
}, [C, m, c.width, h]), D =
|
|
2858
|
+
}, [C, m, c.width, h]), D = T(
|
|
2859
2859
|
() => m.map((M) => ({
|
|
2860
2860
|
wellboreId: M,
|
|
2861
2861
|
slot: _[M]
|
|
2862
2862
|
})).sort(
|
|
2863
|
-
(M,
|
|
2863
|
+
(M, U) => (M.wellboreId === n ? 1 / 0 : 0) - (U.wellboreId === n ? 1 / 0 : 0) || M.slot - U.slot
|
|
2864
2864
|
),
|
|
2865
2865
|
[m, _, n]
|
|
2866
2866
|
);
|
|
2867
2867
|
return E(() => {
|
|
2868
|
-
if (
|
|
2869
|
-
const M = Ft(
|
|
2868
|
+
if (A.current) {
|
|
2869
|
+
const M = Ft(A.current);
|
|
2870
2870
|
M.call(R), M.selectAll(".tick>text").remove(), M.selectAll("path.domain").remove(), M.selectAll(".tick>line").attr("stroke", g.depthAxisColor);
|
|
2871
2871
|
}
|
|
2872
2872
|
}, [R, g]), E(() => {
|
|
@@ -2896,7 +2896,7 @@ const ii = bt((n) => ({
|
|
|
2896
2896
|
/* @__PURE__ */ w(
|
|
2897
2897
|
"g",
|
|
2898
2898
|
{
|
|
2899
|
-
ref:
|
|
2899
|
+
ref: A,
|
|
2900
2900
|
transform: `translate(${g.depthAxisWidth}, 0)`
|
|
2901
2901
|
}
|
|
2902
2902
|
),
|
|
@@ -3083,15 +3083,15 @@ const ii = bt((n) => ({
|
|
|
3083
3083
|
theme: d = { ...ri },
|
|
3084
3084
|
children: m
|
|
3085
3085
|
}) => {
|
|
3086
|
-
const h = ie(Mt), v =
|
|
3086
|
+
const h = ie(Mt), v = T(() => ir(), []), x = v((R) => R.setWellbores), y = v((R) => R.wellbores), f = v((R) => R.slotsById), _ = v((R) => R.measures.svgWidth), g = v((R) => R.domain), b = v((R) => R.setStyles), A = v((R) => R.setDepth), P = T(() => {
|
|
3087
3087
|
let R = i;
|
|
3088
3088
|
return R !== void 0 && (R = de(R, g[0], g[1])), R;
|
|
3089
3089
|
}, [i, g]);
|
|
3090
3090
|
E(() => {
|
|
3091
3091
|
b(d);
|
|
3092
3092
|
}, [d, b]), E(() => {
|
|
3093
|
-
|
|
3094
|
-
}, [P,
|
|
3093
|
+
A(P);
|
|
3094
|
+
}, [P, A]), E(() => {
|
|
3095
3095
|
if (h) {
|
|
3096
3096
|
const R = h.connect();
|
|
3097
3097
|
R && R.query("wellbore-headers", { well: n }).then((I) => {
|
|
@@ -3102,7 +3102,7 @@ const ii = bt((n) => ({
|
|
|
3102
3102
|
});
|
|
3103
3103
|
}
|
|
3104
3104
|
}, [h, n, x, t]);
|
|
3105
|
-
const C =
|
|
3105
|
+
const C = T(() => {
|
|
3106
3106
|
if (l)
|
|
3107
3107
|
return typeof l == "function" ? y.reduce(
|
|
3108
3108
|
(R, I) => ({
|
|
@@ -3172,11 +3172,11 @@ const ii = bt((n) => ({
|
|
|
3172
3172
|
);
|
|
3173
3173
|
}, it = () => {
|
|
3174
3174
|
const n = ie(Mt);
|
|
3175
|
-
return
|
|
3175
|
+
return T(() => n ? n.connect() : null, [n]);
|
|
3176
3176
|
}, aa = ({
|
|
3177
3177
|
color: n = "#ccc"
|
|
3178
3178
|
}) => {
|
|
3179
|
-
const t = it(), [e, o] =
|
|
3179
|
+
const t = it(), [e, o] = W(null), i = Re(), s = i((f) => f.wellboreIds), u = i((f) => f.wellboresById), a = i((f) => f.domain), l = i((f) => f.measures.range), r = i((f) => f.measures.ratio), p = i((f) => f.measures.tracksWidth), c = i((f) => f.slotsById), d = i((f) => f.styles), m = i((f) => f.measures.getSlotPosition), h = T(
|
|
3180
3180
|
() => He().domain(a).range(l),
|
|
3181
3181
|
[a, l]
|
|
3182
3182
|
);
|
|
@@ -3187,9 +3187,9 @@ const ii = bt((n) => ({
|
|
|
3187
3187
|
);
|
|
3188
3188
|
Promise.all(f).then((_) => {
|
|
3189
3189
|
const g = _.reduce(
|
|
3190
|
-
(b,
|
|
3190
|
+
(b, A, P) => ({
|
|
3191
3191
|
...b,
|
|
3192
|
-
[s[P]]:
|
|
3192
|
+
[s[P]]: A
|
|
3193
3193
|
}),
|
|
3194
3194
|
{}
|
|
3195
3195
|
);
|
|
@@ -3197,10 +3197,10 @@ const ii = bt((n) => ({
|
|
|
3197
3197
|
});
|
|
3198
3198
|
}
|
|
3199
3199
|
}, [s, t]);
|
|
3200
|
-
const v =
|
|
3200
|
+
const v = T(() => {
|
|
3201
3201
|
const f = [];
|
|
3202
3202
|
return e && s.forEach((_) => {
|
|
3203
|
-
const g = u[_], b = g.kickoffDepthMsl !== null ? g.kickoffDepthMsl : g.depthReferenceElevation,
|
|
3203
|
+
const g = u[_], b = g.kickoffDepthMsl !== null ? g.kickoffDepthMsl : g.depthReferenceElevation, A = c[_], P = m(A);
|
|
3204
3204
|
e[_] && e[_].filter(
|
|
3205
3205
|
(C) => C.isShoe && (b === null || C.mdBottomMsl > b)
|
|
3206
3206
|
).forEach((C) => {
|
|
@@ -3220,13 +3220,13 @@ const ii = bt((n) => ({
|
|
|
3220
3220
|
c,
|
|
3221
3221
|
s,
|
|
3222
3222
|
u
|
|
3223
|
-
]), x =
|
|
3223
|
+
]), x = T(() => {
|
|
3224
3224
|
if (r) {
|
|
3225
3225
|
const f = 7 * r, _ = 16 * r, g = _ - f, b = nt();
|
|
3226
3226
|
return b.moveTo(-f, -g * 2), b.lineTo(-f, 0), b.lineTo(-_, 0), b.lineTo(-f - 2, -g), b.lineTo(-f - 2, -g * 2), b.lineTo(-f, -g * 2), b.closePath(), b.moveTo(f, -g * 2), b.lineTo(f, 0), b.lineTo(_, 0), b.lineTo(f + 2, -g), b.lineTo(f + 2, -g * 2), b.lineTo(f, -g * 2), b.closePath(), b.toString();
|
|
3227
3227
|
}
|
|
3228
3228
|
return "";
|
|
3229
|
-
}, [r]), y =
|
|
3229
|
+
}, [r]), y = T(() => {
|
|
3230
3230
|
const f = d.darkMode ? 0 : 240;
|
|
3231
3231
|
return `rgba(${f}, ${f}, ${f}, .9)`;
|
|
3232
3232
|
}, [d.darkMode]);
|
|
@@ -3265,20 +3265,20 @@ const ii = bt((n) => ({
|
|
|
3265
3265
|
colorScreen: n = "gray",
|
|
3266
3266
|
colorPerforation: t = "orange"
|
|
3267
3267
|
}) => {
|
|
3268
|
-
const e = it(), [o, i] =
|
|
3268
|
+
const e = it(), [o, i] = W(null), [s, u] = W(null), a = Re(), l = a((g) => g.wellboreIds), r = a((g) => g.wellboresById), p = a((g) => g.domain), c = a((g) => g.measures.range), d = a((g) => g.measures.ratio), m = a((g) => g.slotsById), h = a((g) => g.styles), v = a((g) => g.measures.getSlotPosition), x = T(
|
|
3269
3269
|
() => He().domain(p).range(c),
|
|
3270
3270
|
[p, c]
|
|
3271
3271
|
);
|
|
3272
3272
|
E(() => {
|
|
3273
3273
|
if (e) {
|
|
3274
3274
|
const g = l.map(
|
|
3275
|
-
(
|
|
3275
|
+
(A) => e.get("completion-tools", A)
|
|
3276
3276
|
), b = l.map(
|
|
3277
|
-
(
|
|
3277
|
+
(A) => e.get("perforations", A)
|
|
3278
3278
|
);
|
|
3279
|
-
Promise.all(g).then((
|
|
3280
|
-
if (
|
|
3281
|
-
const P =
|
|
3279
|
+
Promise.all(g).then((A) => {
|
|
3280
|
+
if (A) {
|
|
3281
|
+
const P = A.reduce(
|
|
3282
3282
|
(C, R, I) => ({
|
|
3283
3283
|
...C,
|
|
3284
3284
|
[l[I]]: R !== null ? R.filter((D) => D.category === "screen") : []
|
|
@@ -3287,8 +3287,8 @@ const ii = bt((n) => ({
|
|
|
3287
3287
|
);
|
|
3288
3288
|
i(P);
|
|
3289
3289
|
}
|
|
3290
|
-
}), Promise.all(b).then((
|
|
3291
|
-
const P =
|
|
3290
|
+
}), Promise.all(b).then((A) => {
|
|
3291
|
+
const P = A.reduce(
|
|
3292
3292
|
(C, R, I) => ({
|
|
3293
3293
|
...C,
|
|
3294
3294
|
[l[I]]: R || []
|
|
@@ -3299,10 +3299,10 @@ const ii = bt((n) => ({
|
|
|
3299
3299
|
});
|
|
3300
3300
|
}
|
|
3301
3301
|
}, [l, e]);
|
|
3302
|
-
const y =
|
|
3302
|
+
const y = T(() => {
|
|
3303
3303
|
const g = [];
|
|
3304
3304
|
return o && s && l.forEach((b) => {
|
|
3305
|
-
const
|
|
3305
|
+
const A = r[b], P = A.kickoffDepthMsl !== null ? A.kickoffDepthMsl : A.depthReferenceElevation, C = m[b], R = v(C);
|
|
3306
3306
|
(o[b] ? an(
|
|
3307
3307
|
o[b].filter(
|
|
3308
3308
|
(M) => P === void 0 || M.mdBottomMsl > P
|
|
@@ -3344,13 +3344,13 @@ const ii = bt((n) => ({
|
|
|
3344
3344
|
]), f = re(
|
|
3345
3345
|
(g) => {
|
|
3346
3346
|
if (d) {
|
|
3347
|
-
const b = 10 * d,
|
|
3348
|
-
return P.moveTo(g.x -
|
|
3347
|
+
const b = 10 * d, A = 18 * d, P = nt();
|
|
3348
|
+
return P.moveTo(g.x - A, g.y1), P.lineTo(g.x - b, g.y1), P.lineTo(g.x - b, g.y2), P.lineTo(g.x - A, g.y2), P.moveTo(g.x + A, g.y1), P.lineTo(g.x + b, g.y1), P.lineTo(g.x + b, g.y2), P.lineTo(g.x + A, g.y2), P.toString();
|
|
3349
3349
|
}
|
|
3350
3350
|
return "";
|
|
3351
3351
|
},
|
|
3352
3352
|
[d]
|
|
3353
|
-
), _ =
|
|
3353
|
+
), _ = T(() => {
|
|
3354
3354
|
const g = h.darkMode ? 0 : 240;
|
|
3355
3355
|
return `rgba(${g}, ${g}, ${g}, .9)`;
|
|
3356
3356
|
}, [h.darkMode]);
|
|
@@ -3381,7 +3381,7 @@ const ii = bt((n) => ({
|
|
|
3381
3381
|
}, ca = ({
|
|
3382
3382
|
stratColumnId: n
|
|
3383
3383
|
}) => {
|
|
3384
|
-
const t = it(), [e, o] =
|
|
3384
|
+
const t = it(), [e, o] = W(null), i = Re(), s = i((v) => v.wellboreIds), u = i((v) => v.domain), a = i((v) => v.measures.range), l = i((v) => v.measures.ratio), r = i((v) => v.slotsById), p = i((v) => v.styles), c = i((v) => v.measures.getSlotPosition), d = T(
|
|
3385
3385
|
() => He().domain(u).range(a),
|
|
3386
3386
|
[u, a]
|
|
3387
3387
|
);
|
|
@@ -3404,7 +3404,7 @@ const ii = bt((n) => ({
|
|
|
3404
3404
|
});
|
|
3405
3405
|
}
|
|
3406
3406
|
}, [s, n, t]);
|
|
3407
|
-
const m =
|
|
3407
|
+
const m = T(() => {
|
|
3408
3408
|
const v = [];
|
|
3409
3409
|
return e && s.forEach((x) => {
|
|
3410
3410
|
if (e[x]) {
|
|
@@ -3423,7 +3423,7 @@ const ii = bt((n) => ({
|
|
|
3423
3423
|
});
|
|
3424
3424
|
}
|
|
3425
3425
|
}), v;
|
|
3426
|
-
}, [e, d, c, r, s]), h =
|
|
3426
|
+
}, [e, d, c, r, s]), h = T(() => {
|
|
3427
3427
|
const v = p.darkMode ? 0 : 240;
|
|
3428
3428
|
return `rgba(${v}, ${v}, ${v}, .9)`;
|
|
3429
3429
|
}, [p.darkMode]);
|
|
@@ -3478,7 +3478,7 @@ const ii = bt((n) => ({
|
|
|
3478
3478
|
}, ua = ({
|
|
3479
3479
|
color: n = "rgb(113, 216, 253)"
|
|
3480
3480
|
}) => {
|
|
3481
|
-
const t = it(), [e, o] =
|
|
3481
|
+
const t = it(), [e, o] = W(null), i = Re(), s = i((m) => m.tracksOrder), u = i((m) => m.depth), a = i((m) => m.measures.ratio), l = i((m) => m.measures.trackWidth), r = i((m) => m.measures.svgHeight), p = i((m) => m.measures.getSlotPosition);
|
|
3482
3482
|
E(() => {
|
|
3483
3483
|
if (t) {
|
|
3484
3484
|
const m = s.map(
|
|
@@ -3496,7 +3496,7 @@ const ii = bt((n) => ({
|
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
3498
|
}, [s, t]);
|
|
3499
|
-
const c =
|
|
3499
|
+
const c = T(() => {
|
|
3500
3500
|
const m = [];
|
|
3501
3501
|
return e && s.forEach((h, v) => {
|
|
3502
3502
|
const y = [p(v), null];
|
|
@@ -3509,7 +3509,7 @@ const ii = bt((n) => ({
|
|
|
3509
3509
|
}
|
|
3510
3510
|
m.push(y);
|
|
3511
3511
|
}), m;
|
|
3512
|
-
}, [u, p, s, e]), d =
|
|
3512
|
+
}, [u, p, s, e]), d = T(() => r - a * 15, [a, r]);
|
|
3513
3513
|
return !c || l < 50 ? null : /* @__PURE__ */ H("g", { children: [
|
|
3514
3514
|
/* @__PURE__ */ w(
|
|
3515
3515
|
"text",
|
|
@@ -4358,7 +4358,7 @@ void main() {
|
|
|
4358
4358
|
#include <logdepthbuf_vertex>
|
|
4359
4359
|
}`;
|
|
4360
4360
|
Vn({ MeshLineGeometry: ar, MeshLineMaterial: dr });
|
|
4361
|
-
const Mn = 800,
|
|
4361
|
+
const Mn = 800, An = 600, fa = ({
|
|
4362
4362
|
text: n,
|
|
4363
4363
|
inBias: t = 0,
|
|
4364
4364
|
outBias: e = 0,
|
|
@@ -4368,9 +4368,9 @@ const Mn = 800, Tn = 600, fa = ({
|
|
|
4368
4368
|
verticalAlign: u = 0,
|
|
4369
4369
|
horizontalAlign: a = 0
|
|
4370
4370
|
}) => {
|
|
4371
|
-
const l = ie(ot), r =
|
|
4371
|
+
const l = ie(ot), r = T(() => ({
|
|
4372
4372
|
time: new S(0),
|
|
4373
|
-
size: new S(new pe(Mn,
|
|
4373
|
+
size: new S(new pe(Mn, An)),
|
|
4374
4374
|
textPointersOffset: new S(0),
|
|
4375
4375
|
textPointersCount: new S(0),
|
|
4376
4376
|
glyphAtlas: new S(null),
|
|
@@ -4412,7 +4412,7 @@ const Mn = 800, Tn = 600, fa = ({
|
|
|
4412
4412
|
]), Pe(({ clock: p }) => {
|
|
4413
4413
|
r.time.value = p.elapsedTime;
|
|
4414
4414
|
}), l ? /* @__PURE__ */ w("group", { children: /* @__PURE__ */ H("mesh", { children: [
|
|
4415
|
-
/* @__PURE__ */ w("planeGeometry", { args: [Mn,
|
|
4415
|
+
/* @__PURE__ */ w("planeGeometry", { args: [Mn, An] }),
|
|
4416
4416
|
/* @__PURE__ */ w(
|
|
4417
4417
|
"shaderMaterial",
|
|
4418
4418
|
{
|
|
@@ -4641,7 +4641,7 @@ const ye = (n) => (t) => oo(ro, n)(Math.min(Math.max(0, t), 1)), gr = ye([
|
|
|
4641
4641
|
"#00d8ff",
|
|
4642
4642
|
"#00e4ff",
|
|
4643
4643
|
"#00f0ff"
|
|
4644
|
-
]),
|
|
4644
|
+
]), Ar = ye([
|
|
4645
4645
|
"#00004c",
|
|
4646
4646
|
"#000092",
|
|
4647
4647
|
"#0000db",
|
|
@@ -4653,7 +4653,7 @@ const ye = (n) => (t) => oo(ro, n)(Math.min(Math.max(0, t), 1)), gr = ye([
|
|
|
4653
4653
|
"#e60000",
|
|
4654
4654
|
"#b30000",
|
|
4655
4655
|
"#800000"
|
|
4656
|
-
]),
|
|
4656
|
+
]), Tr = ye([
|
|
4657
4657
|
"#ffffff",
|
|
4658
4658
|
"#FFFFBD",
|
|
4659
4659
|
"#FFFF71",
|
|
@@ -4702,15 +4702,15 @@ const ye = (n) => (t) => oo(ro, n)(Math.min(Math.max(0, t), 1)), gr = ye([
|
|
|
4702
4702
|
(n) => _r(1 - n),
|
|
4703
4703
|
(n) => wr(1 - n),
|
|
4704
4704
|
(n) => Mr(1 - n),
|
|
4705
|
-
(n) => Tr(1 - n),
|
|
4706
4705
|
(n) => Ar(1 - n),
|
|
4706
|
+
(n) => Tr(1 - n),
|
|
4707
4707
|
(n) => Pr(1 - n)
|
|
4708
4708
|
], Sr = Cr.map((n) => vr(n)), Rr = hr(Sr, 512), he = new Ln(Rr);
|
|
4709
|
-
he.magFilter =
|
|
4709
|
+
he.magFilter = Ue;
|
|
4710
4710
|
he.minFilter = et;
|
|
4711
4711
|
he.flipY = !1;
|
|
4712
4712
|
he.generateMipmaps = !1;
|
|
4713
|
-
he.colorSpace =
|
|
4713
|
+
he.colorSpace = Ti;
|
|
4714
4714
|
he.format = yt;
|
|
4715
4715
|
he.anisotropy = 4;
|
|
4716
4716
|
const si = Ce(
|
|
@@ -5250,8 +5250,8 @@ const dt = {
|
|
|
5250
5250
|
USE_DEBUG: !1,
|
|
5251
5251
|
GLYPHS_LENGTH: 1
|
|
5252
5252
|
},
|
|
5253
|
-
uniforms:
|
|
5254
|
-
|
|
5253
|
+
uniforms: ke.merge([
|
|
5254
|
+
ke.clone(Vt.lambert.uniforms),
|
|
5255
5255
|
{
|
|
5256
5256
|
colorRampIndex: { value: 0 },
|
|
5257
5257
|
colorRamps: { value: he.height },
|
|
@@ -5281,7 +5281,7 @@ const dt = {
|
|
|
5281
5281
|
vertexShader: Lr,
|
|
5282
5282
|
fragmentShader: Ir
|
|
5283
5283
|
};
|
|
5284
|
-
class Dr extends
|
|
5284
|
+
class Dr extends Ge {
|
|
5285
5285
|
isMeshSurfaceShader = !0;
|
|
5286
5286
|
normalScale;
|
|
5287
5287
|
map;
|
|
@@ -5292,7 +5292,7 @@ class Dr extends We {
|
|
|
5292
5292
|
combine;
|
|
5293
5293
|
normalMapType;
|
|
5294
5294
|
constructor(t) {
|
|
5295
|
-
super(), this.defines = Object.assign({}, dt.defines), this.uniforms =
|
|
5295
|
+
super(), this.defines = Object.assign({}, dt.defines), this.uniforms = ke.clone(dt.uniforms), this.vertexShader = dt.vertexShader, this.fragmentShader = dt.fragmentShader, this.combine = Ci, this.normalMapType = Si, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.lights = !0, this.clipping = !0, this.fog = !0;
|
|
5296
5296
|
const e = [
|
|
5297
5297
|
"map",
|
|
5298
5298
|
"lightMap",
|
|
@@ -5398,17 +5398,17 @@ const da = ({
|
|
|
5398
5398
|
normalScale: _,
|
|
5399
5399
|
name: g,
|
|
5400
5400
|
userData: b,
|
|
5401
|
-
receiveShadow:
|
|
5401
|
+
receiveShadow: A,
|
|
5402
5402
|
castShadow: P,
|
|
5403
5403
|
layers: C,
|
|
5404
5404
|
position: R,
|
|
5405
5405
|
renderOrder: I,
|
|
5406
5406
|
visible: D = !0,
|
|
5407
5407
|
debug: M = !1,
|
|
5408
|
-
onPointerClick:
|
|
5408
|
+
onPointerClick: U,
|
|
5409
5409
|
onPointerEnter: O,
|
|
5410
5410
|
onPointerLeave: $,
|
|
5411
|
-
onPointerMove:
|
|
5411
|
+
onPointerMove: G
|
|
5412
5412
|
}) => {
|
|
5413
5413
|
const z = N(null), L = oe(
|
|
5414
5414
|
Er,
|
|
@@ -5416,9 +5416,9 @@ const da = ({
|
|
|
5416
5416
|
), B = oe(
|
|
5417
5417
|
zr,
|
|
5418
5418
|
h
|
|
5419
|
-
), [j, Q] =
|
|
5419
|
+
), [j, Q] = W(null), [ae, te] = W(
|
|
5420
5420
|
null
|
|
5421
|
-
), Ee =
|
|
5421
|
+
), Ee = T(() => Ve(se.NOT_EMITTER), []), fe = ie(ot), k = T(() => new Dr({
|
|
5422
5422
|
useColorRamp: !0,
|
|
5423
5423
|
forceSinglePass: !0,
|
|
5424
5424
|
saturation: 1,
|
|
@@ -5437,11 +5437,11 @@ const da = ({
|
|
|
5437
5437
|
depthWrite: !1
|
|
5438
5438
|
}), []);
|
|
5439
5439
|
E(() => {
|
|
5440
|
-
M && fe ? (
|
|
5440
|
+
M && fe ? (k.uniformsGroups = [fe.glyphData], k.defines.GLYPHS_LENGTH = fe.glyphsCount, k.uniforms.glyphAtlas.value = fe.glyphAtlas, k.uniforms.digits.value = [
|
|
5441
5441
|
...fe.encodeText("0123456789.-").indices
|
|
5442
|
-
]) : (
|
|
5443
|
-
}, [M,
|
|
5444
|
-
const
|
|
5442
|
+
]) : (k.uniformsGroups = [], k.defines.GLYPHS_LENGTH = 1, k.uniforms.glyphAtlas.value = null, k.uniforms.digits.value = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), k.debug = M, k.needsUpdate = !0, k.uniformsNeedUpdate = !0;
|
|
5443
|
+
}, [M, k, fe]);
|
|
5444
|
+
const At = T(() => new Nt({
|
|
5445
5445
|
transparent: !0,
|
|
5446
5446
|
side: ge,
|
|
5447
5447
|
colorWrite: !1,
|
|
@@ -5451,7 +5451,7 @@ const da = ({
|
|
|
5451
5451
|
let ne = null;
|
|
5452
5452
|
if ($e && z.current) {
|
|
5453
5453
|
const q = {};
|
|
5454
|
-
|
|
5454
|
+
U && (q.click = U), O && (q.enter = O), $ && (q.leave = $), G && (q.move = G), Object.keys(q).length && (ne = $e.register({
|
|
5455
5455
|
object: z.current,
|
|
5456
5456
|
handlers: q,
|
|
5457
5457
|
ref: n.id
|
|
@@ -5462,15 +5462,15 @@ const da = ({
|
|
|
5462
5462
|
};
|
|
5463
5463
|
}, [
|
|
5464
5464
|
$e,
|
|
5465
|
-
|
|
5465
|
+
U,
|
|
5466
5466
|
O,
|
|
5467
5467
|
$,
|
|
5468
|
-
|
|
5468
|
+
G,
|
|
5469
5469
|
n.id
|
|
5470
5470
|
]), E(() => {
|
|
5471
|
-
|
|
5471
|
+
k.uniforms.colorRampIndex.value = e, k.uniforms.opacity.value = m, k.uniforms.contoursColorMode.value = r, k.uniforms.contoursColorModeFactor.value = p, k.uniforms.contoursInterval.value = l, k.uniforms.contoursThickness.value = c, k.uniforms.colorRampMin.value = o, k.uniforms.colorRampMax.value = i, k.uniforms.colorRampReverse.value = s, k.uniforms.referenceDepth.value = n.max, k.uniforms.size.value.set(n.header.nx, n.header.ny), k.uniforms.scale.value.set(n.header.xinc, n.header.yinc), k.uniforms.rotation.value = n.header.rot * (Math.PI / 180), k.uniformsNeedUpdate = !0, _ && k.uniforms.normalScale.value.set(..._);
|
|
5472
5472
|
}, [
|
|
5473
|
-
|
|
5473
|
+
k,
|
|
5474
5474
|
n,
|
|
5475
5475
|
e,
|
|
5476
5476
|
m,
|
|
@@ -5484,11 +5484,11 @@ const da = ({
|
|
|
5484
5484
|
s,
|
|
5485
5485
|
_
|
|
5486
5486
|
]), E(() => {
|
|
5487
|
-
|
|
5487
|
+
k.wireframe = y, k.showContours = a, k.contoursColor = d, k.useColorRamp = u, k.color = t || k.color, k.side = x ? ge : ht, f && (k.normalMap = f);
|
|
5488
5488
|
const ne = m === 1;
|
|
5489
|
-
ne !==
|
|
5489
|
+
ne !== k.depthWrite && (k.depthWrite = ne, k.needsUpdate = !0);
|
|
5490
5490
|
}, [
|
|
5491
|
-
|
|
5491
|
+
k,
|
|
5492
5492
|
u,
|
|
5493
5493
|
a,
|
|
5494
5494
|
y,
|
|
@@ -5514,13 +5514,13 @@ const da = ({
|
|
|
5514
5514
|
ne && (q = Be(ne)), Q((be) => (be && be.dispose(), q));
|
|
5515
5515
|
});
|
|
5516
5516
|
}, [L, n.id, v]), E(() => {
|
|
5517
|
-
if (ae &&
|
|
5517
|
+
if (ae && k) {
|
|
5518
5518
|
const { width: ne, height: q } = ae.image, be = (ne - 1) / ne, _e = (q - 1) / q, rt = (1 - be) / 2, we = (1 - _e) / 2;
|
|
5519
|
-
|
|
5519
|
+
k.uniforms.elevationTexture.value = ae, k.uniforms.gridUvMat.value.setUvTransform(rt, we, be, _e, 0, 0, 0);
|
|
5520
5520
|
}
|
|
5521
|
-
}, [ae,
|
|
5522
|
-
|
|
5523
|
-
}, [
|
|
5521
|
+
}, [ae, k]), E(() => () => {
|
|
5522
|
+
k.normalMap?.dispose(), k.dispose();
|
|
5523
|
+
}, [k]), M && !fe ? null : /* @__PURE__ */ H(
|
|
5524
5524
|
"group",
|
|
5525
5525
|
{
|
|
5526
5526
|
ref: z,
|
|
@@ -5533,7 +5533,7 @@ const da = ({
|
|
|
5533
5533
|
"mesh",
|
|
5534
5534
|
{
|
|
5535
5535
|
geometry: j,
|
|
5536
|
-
material:
|
|
5536
|
+
material: At,
|
|
5537
5537
|
layers: Ee,
|
|
5538
5538
|
renderOrder: (I || 0) - 0.1
|
|
5539
5539
|
}
|
|
@@ -5542,9 +5542,9 @@ const da = ({
|
|
|
5542
5542
|
"mesh",
|
|
5543
5543
|
{
|
|
5544
5544
|
castShadow: P,
|
|
5545
|
-
receiveShadow:
|
|
5545
|
+
receiveShadow: A,
|
|
5546
5546
|
geometry: j,
|
|
5547
|
-
material:
|
|
5547
|
+
material: k,
|
|
5548
5548
|
layers: C,
|
|
5549
5549
|
renderOrder: I
|
|
5550
5550
|
}
|
|
@@ -5570,12 +5570,12 @@ const da = ({
|
|
|
5570
5570
|
onPointerLeave: m,
|
|
5571
5571
|
onPointerMove: h
|
|
5572
5572
|
}, v) => {
|
|
5573
|
-
const x = _t(), y = N(null), f =
|
|
5573
|
+
const x = _t(), y = N(null), f = T(() => {
|
|
5574
5574
|
const _ = a.transformations.length / 16;
|
|
5575
5575
|
if (_ === 0) return null;
|
|
5576
|
-
const g = new
|
|
5576
|
+
const g = new Gt(l, r, _);
|
|
5577
5577
|
if (g.instanceMatrix.set(a.transformations), g.instanceMatrix.needsUpdate = !0, a.colors && (g.instanceColor = new Ri(a.colors, 3), g.instanceColor.needsUpdate = !0), p) {
|
|
5578
|
-
const b = p instanceof
|
|
5578
|
+
const b = p instanceof kn ? p.mask : p;
|
|
5579
5579
|
g.layers.mask = b;
|
|
5580
5580
|
}
|
|
5581
5581
|
return g.castShadow = !!o, g.receiveShadow = !!i, g;
|
|
@@ -5622,7 +5622,7 @@ const da = ({
|
|
|
5622
5622
|
offset: i = [0, 0, 0],
|
|
5623
5623
|
children: s
|
|
5624
5624
|
}, u) => {
|
|
5625
|
-
const a = N(null), l =
|
|
5625
|
+
const a = N(null), l = T(() => {
|
|
5626
5626
|
if (n) return n;
|
|
5627
5627
|
if (t) {
|
|
5628
5628
|
const p = to(t.toUpperCase());
|
|
@@ -5633,7 +5633,7 @@ const da = ({
|
|
|
5633
5633
|
);
|
|
5634
5634
|
}, [n, t, e, o]);
|
|
5635
5635
|
Fe(u, () => l, [l]);
|
|
5636
|
-
const r =
|
|
5636
|
+
const r = T(() => {
|
|
5637
5637
|
const p = (f, _, g = 0) => {
|
|
5638
5638
|
const b = l.utmToWorld(f, _, g);
|
|
5639
5639
|
return [b.x, b.y, b.z];
|
|
@@ -5689,7 +5689,7 @@ const da = ({
|
|
|
5689
5689
|
altitude: e = 0,
|
|
5690
5690
|
children: o
|
|
5691
5691
|
}) => {
|
|
5692
|
-
const i = ie(wt), s =
|
|
5692
|
+
const i = ie(wt), s = T(
|
|
5693
5693
|
() => i.utmToArea(n, t, e),
|
|
5694
5694
|
[n, t, e, i]
|
|
5695
5695
|
);
|
|
@@ -5700,7 +5700,7 @@ const da = ({
|
|
|
5700
5700
|
altitude: e = 0,
|
|
5701
5701
|
children: o
|
|
5702
5702
|
}) => {
|
|
5703
|
-
const i = ie(wt), s =
|
|
5703
|
+
const i = ie(wt), s = T(
|
|
5704
5704
|
() => i.wgs84ToArea(n, t, e),
|
|
5705
5705
|
[n, t, e, i]
|
|
5706
5706
|
);
|
|
@@ -5712,7 +5712,7 @@ const da = ({
|
|
|
5712
5712
|
"useWellboreContext may only be used within a Wellbore component!"
|
|
5713
5713
|
);
|
|
5714
5714
|
return n;
|
|
5715
|
-
},
|
|
5715
|
+
}, Ur = "basicTrajectory";
|
|
5716
5716
|
Vn({ ThreeLine: Fn });
|
|
5717
5717
|
const va = ({
|
|
5718
5718
|
name: n,
|
|
@@ -5731,20 +5731,20 @@ const va = ({
|
|
|
5731
5731
|
priority: m = 0
|
|
5732
5732
|
}) => {
|
|
5733
5733
|
const { id: h, fromMsl: v, segmentsPerMeter: x, simplificationThreshold: y } = ce(), f = oe(
|
|
5734
|
-
|
|
5734
|
+
Ur,
|
|
5735
5735
|
m
|
|
5736
|
-
), [_, g] =
|
|
5736
|
+
), [_, g] = W(null), b = T(() => c || ((P, C) => {
|
|
5737
5737
|
const R = C;
|
|
5738
5738
|
R.color = new Z(P.color);
|
|
5739
|
-
}), [c]),
|
|
5739
|
+
}), [c]), A = T(() => p || new Ei({ transparent: !0, opacity: 0.95 }), [p]);
|
|
5740
5740
|
return E(() => {
|
|
5741
5741
|
b(
|
|
5742
5742
|
{
|
|
5743
5743
|
color: d
|
|
5744
5744
|
},
|
|
5745
|
-
|
|
5745
|
+
A
|
|
5746
5746
|
);
|
|
5747
|
-
}, [d,
|
|
5747
|
+
}, [d, A, b]), E(() => {
|
|
5748
5748
|
f && f(
|
|
5749
5749
|
h,
|
|
5750
5750
|
x,
|
|
@@ -5777,12 +5777,12 @@ const va = ({
|
|
|
5777
5777
|
receiveShadow: i,
|
|
5778
5778
|
visible: a,
|
|
5779
5779
|
geometry: _,
|
|
5780
|
-
material:
|
|
5780
|
+
material: A,
|
|
5781
5781
|
customDepthMaterial: l,
|
|
5782
5782
|
customDistanceMaterial: r
|
|
5783
5783
|
}
|
|
5784
5784
|
) : null;
|
|
5785
|
-
},
|
|
5785
|
+
}, kr = "casings";
|
|
5786
5786
|
function ci(n, t, e, o, i, s, u, a) {
|
|
5787
5787
|
const l = new Nn();
|
|
5788
5788
|
return l.instanceCount = a, l.setIndex(new De(t, 1)), l.setAttribute("vertex", new De(e, 3)), l.setAttribute("normal", new De(o, 3)), l.setAttribute("uv", new De(i, 2)), l.setAttribute("id", new De(s, 1)), l.setAttribute(
|
|
@@ -5860,7 +5860,7 @@ function Or(n, t, e) {
|
|
|
5860
5860
|
);
|
|
5861
5861
|
return x.addGroup(0, e * 6, 0), x.addGroup(s.innerTube * 3, e * 6, 1), x.addGroup(s.edge1 * 3, 12, 2), x;
|
|
5862
5862
|
}
|
|
5863
|
-
function
|
|
5863
|
+
function Wr(n, t, e) {
|
|
5864
5864
|
const o = e + 1, i = {
|
|
5865
5865
|
top: 0,
|
|
5866
5866
|
bottom: o * 2
|
|
@@ -5893,7 +5893,7 @@ function Gr(n, t, e) {
|
|
|
5893
5893
|
1
|
|
5894
5894
|
);
|
|
5895
5895
|
}
|
|
5896
|
-
function
|
|
5896
|
+
function Gr(n, t) {
|
|
5897
5897
|
const e = new Bn(
|
|
5898
5898
|
n.attributesBuffer,
|
|
5899
5899
|
12,
|
|
@@ -5902,7 +5902,7 @@ function Wr(n, t) {
|
|
|
5902
5902
|
e,
|
|
5903
5903
|
n.segments,
|
|
5904
5904
|
t
|
|
5905
|
-
), i =
|
|
5905
|
+
), i = Wr(
|
|
5906
5906
|
e,
|
|
5907
5907
|
n.segments,
|
|
5908
5908
|
t
|
|
@@ -6153,7 +6153,7 @@ void main() {
|
|
|
6153
6153
|
|
|
6154
6154
|
#endif
|
|
6155
6155
|
}`;
|
|
6156
|
-
class
|
|
6156
|
+
class Wt extends Te {
|
|
6157
6157
|
uniforms = {
|
|
6158
6158
|
sizeMultiplier: new S(1),
|
|
6159
6159
|
radius: new S(0),
|
|
@@ -6216,15 +6216,15 @@ const Br = ({
|
|
|
6216
6216
|
opacity: a = 1,
|
|
6217
6217
|
renderOrder: l
|
|
6218
6218
|
}) => {
|
|
6219
|
-
const { tubeGeometry: r, capsGeometry: p } =
|
|
6220
|
-
() =>
|
|
6219
|
+
const { tubeGeometry: r, capsGeometry: p } = T(
|
|
6220
|
+
() => Gr(n, e),
|
|
6221
6221
|
[n, e]
|
|
6222
|
-
), c =
|
|
6223
|
-
const d = new
|
|
6222
|
+
), c = T(() => {
|
|
6223
|
+
const d = new Wt(t.primary);
|
|
6224
6224
|
return [
|
|
6225
6225
|
d,
|
|
6226
|
-
t.inner ? new
|
|
6227
|
-
t.slice ? new
|
|
6226
|
+
t.inner ? new Wt(t.inner) : d,
|
|
6227
|
+
t.slice ? new Wt(t.slice) : d
|
|
6228
6228
|
];
|
|
6229
6229
|
}, [t]);
|
|
6230
6230
|
return E(() => {
|
|
@@ -6288,13 +6288,13 @@ const Br = ({
|
|
|
6288
6288
|
id: _,
|
|
6289
6289
|
fromMsl: g,
|
|
6290
6290
|
segmentsPerMeter: b,
|
|
6291
|
-
simplificationThreshold:
|
|
6292
|
-
} = ce(), P = oe(
|
|
6291
|
+
simplificationThreshold: A
|
|
6292
|
+
} = ce(), P = oe(kr, y), [C, R] = W(null), [I, D] = W(!1), { segmentsPerMeter: M, simplificationThreshold: U } = T(() => ({
|
|
6293
6293
|
segmentsPerMeter: d !== void 0 ? d : b || 0.1,
|
|
6294
|
-
simplificationThreshold: m !== void 0 ? m :
|
|
6294
|
+
simplificationThreshold: m !== void 0 ? m : A || 0
|
|
6295
6295
|
}), [
|
|
6296
6296
|
b,
|
|
6297
|
-
|
|
6297
|
+
A,
|
|
6298
6298
|
d,
|
|
6299
6299
|
m
|
|
6300
6300
|
]);
|
|
@@ -6304,7 +6304,7 @@ const Br = ({
|
|
|
6304
6304
|
g,
|
|
6305
6305
|
l,
|
|
6306
6306
|
M,
|
|
6307
|
-
|
|
6307
|
+
U
|
|
6308
6308
|
).then(($) => {
|
|
6309
6309
|
R($), $ || D(!0);
|
|
6310
6310
|
});
|
|
@@ -6315,9 +6315,9 @@ const Br = ({
|
|
|
6315
6315
|
u,
|
|
6316
6316
|
l,
|
|
6317
6317
|
M,
|
|
6318
|
-
|
|
6318
|
+
U
|
|
6319
6319
|
]);
|
|
6320
|
-
const O =
|
|
6320
|
+
const O = T(() => C?.map(h) || null, [C, h]);
|
|
6321
6321
|
return /* @__PURE__ */ H(
|
|
6322
6322
|
"group",
|
|
6323
6323
|
{
|
|
@@ -6329,10 +6329,10 @@ const Br = ({
|
|
|
6329
6329
|
renderOrder: e,
|
|
6330
6330
|
layers: o,
|
|
6331
6331
|
children: [
|
|
6332
|
-
C && O && C.map(($,
|
|
6332
|
+
C && O && C.map(($, G) => /* @__PURE__ */ w(
|
|
6333
6333
|
Br,
|
|
6334
6334
|
{
|
|
6335
|
-
materialOptions: O[
|
|
6335
|
+
materialOptions: O[G],
|
|
6336
6336
|
opacity: x,
|
|
6337
6337
|
sliceAngle: r,
|
|
6338
6338
|
sliceOffset: p,
|
|
@@ -6340,9 +6340,9 @@ const Br = ({
|
|
|
6340
6340
|
section: $,
|
|
6341
6341
|
radialSegments: u,
|
|
6342
6342
|
sizeMultiplier: a,
|
|
6343
|
-
renderOrder:
|
|
6343
|
+
renderOrder: G
|
|
6344
6344
|
},
|
|
6345
|
-
|
|
6345
|
+
G
|
|
6346
6346
|
)),
|
|
6347
6347
|
I && v && v()
|
|
6348
6348
|
]
|
|
@@ -6350,7 +6350,7 @@ const Br = ({
|
|
|
6350
6350
|
);
|
|
6351
6351
|
}
|
|
6352
6352
|
), Nr = "casingToolAnnotations", xa = () => {
|
|
6353
|
-
const { id: n } = ce(), t = N(null), e = oe(Nr, 1), { addAnnotations: o } = je("casings", n), [i, s] =
|
|
6353
|
+
const { id: n } = ce(), t = N(null), e = oe(Nr, 1), { addAnnotations: o } = je("casings", n), [i, s] = W([]);
|
|
6354
6354
|
return E(() => {
|
|
6355
6355
|
e && n && e(n).then((u) => {
|
|
6356
6356
|
u && t.current && (u.forEach((a, l) => {
|
|
@@ -6359,7 +6359,7 @@ const Br = ({
|
|
|
6359
6359
|
});
|
|
6360
6360
|
}, [n, e, t]), E(() => o(i), [i, o]), /* @__PURE__ */ w("object3D", { ref: t, visible: !1 });
|
|
6361
6361
|
}, ya = ({ id: n, name: t, data: e }) => {
|
|
6362
|
-
const o =
|
|
6362
|
+
const o = T(() => e.isShoe ? "#00ffa2" : "#00d0ff", [e]);
|
|
6363
6363
|
return /* @__PURE__ */ w(
|
|
6364
6364
|
"div",
|
|
6365
6365
|
{
|
|
@@ -6519,11 +6519,11 @@ void main() {
|
|
|
6519
6519
|
#include <dithering_fragment>
|
|
6520
6520
|
|
|
6521
6521
|
}`;
|
|
6522
|
-
class
|
|
6522
|
+
class Tn extends Ge {
|
|
6523
6523
|
constructor(t = {}) {
|
|
6524
6524
|
super({
|
|
6525
|
-
uniforms:
|
|
6526
|
-
|
|
6525
|
+
uniforms: ke.merge([
|
|
6526
|
+
ke.clone(Vt.lambert.uniforms),
|
|
6527
6527
|
{
|
|
6528
6528
|
uColor1: new S(new Z(t.color || "white")),
|
|
6529
6529
|
uColor2: new S(new Z(t.color || "black"))
|
|
@@ -6573,7 +6573,7 @@ const ba = ({
|
|
|
6573
6573
|
} = ce(), b = oe(
|
|
6574
6574
|
ao,
|
|
6575
6575
|
v
|
|
6576
|
-
), [
|
|
6576
|
+
), [A, P] = W(null), [C, R] = W(!1), { segmentsPerMeter: I, simplificationThreshold: D } = T(() => ({
|
|
6577
6577
|
segmentsPerMeter: m !== void 0 ? m : _ || 0.1,
|
|
6578
6578
|
simplificationThreshold: h !== void 0 ? h : g || 0
|
|
6579
6579
|
}), [
|
|
@@ -6581,39 +6581,39 @@ const ba = ({
|
|
|
6581
6581
|
g,
|
|
6582
6582
|
m,
|
|
6583
6583
|
h
|
|
6584
|
-
]), M =
|
|
6584
|
+
]), M = T(() => l || [
|
|
6585
6585
|
// blank pipe
|
|
6586
|
-
new
|
|
6586
|
+
new Te({
|
|
6587
6587
|
color: "#999",
|
|
6588
6588
|
metalness: 1,
|
|
6589
6589
|
roughness: 0.25
|
|
6590
6590
|
}),
|
|
6591
6591
|
// tube
|
|
6592
|
-
new
|
|
6592
|
+
new Te({
|
|
6593
6593
|
color: "#999",
|
|
6594
6594
|
metalness: 0.8,
|
|
6595
6595
|
roughness: 0.5
|
|
6596
6596
|
}),
|
|
6597
6597
|
// packer
|
|
6598
|
-
new
|
|
6598
|
+
new Te({
|
|
6599
6599
|
color: "#000",
|
|
6600
6600
|
metalness: 0,
|
|
6601
6601
|
roughness: 0.95
|
|
6602
6602
|
}),
|
|
6603
6603
|
// gauge
|
|
6604
|
-
new
|
|
6604
|
+
new Te({
|
|
6605
6605
|
color: "#097",
|
|
6606
6606
|
metalness: 0,
|
|
6607
6607
|
roughness: 1
|
|
6608
6608
|
}),
|
|
6609
6609
|
// plug
|
|
6610
|
-
new
|
|
6610
|
+
new Te({
|
|
6611
6611
|
color: "#444",
|
|
6612
6612
|
metalness: 0.2,
|
|
6613
6613
|
roughness: 1
|
|
6614
6614
|
}),
|
|
6615
6615
|
// pbr
|
|
6616
|
-
new
|
|
6616
|
+
new Te({
|
|
6617
6617
|
color: "#ff0000",
|
|
6618
6618
|
metalness: 0,
|
|
6619
6619
|
roughness: 1,
|
|
@@ -6621,24 +6621,24 @@ const ba = ({
|
|
|
6621
6621
|
opacity: 0.9
|
|
6622
6622
|
}),
|
|
6623
6623
|
// safety valve
|
|
6624
|
-
new
|
|
6624
|
+
new Te({
|
|
6625
6625
|
color: "#c00",
|
|
6626
6626
|
metalness: 0.5,
|
|
6627
6627
|
roughness: 0.75
|
|
6628
6628
|
}),
|
|
6629
6629
|
// spm
|
|
6630
|
-
new
|
|
6630
|
+
new Te({
|
|
6631
6631
|
color: "#4e3e86",
|
|
6632
6632
|
metalness: 0.5,
|
|
6633
6633
|
roughness: 0.75
|
|
6634
6634
|
}),
|
|
6635
6635
|
// screen
|
|
6636
|
-
new
|
|
6636
|
+
new Tn({
|
|
6637
6637
|
color1: "#777",
|
|
6638
6638
|
color2: "#fff"
|
|
6639
6639
|
}),
|
|
6640
6640
|
// tracer
|
|
6641
|
-
new
|
|
6641
|
+
new Tn({
|
|
6642
6642
|
color1: "#777",
|
|
6643
6643
|
color2: "orange"
|
|
6644
6644
|
}),
|
|
@@ -6655,8 +6655,8 @@ const ba = ({
|
|
|
6655
6655
|
d,
|
|
6656
6656
|
I,
|
|
6657
6657
|
D
|
|
6658
|
-
).then((
|
|
6659
|
-
P((O) => (O && O.dispose(),
|
|
6658
|
+
).then((U) => {
|
|
6659
|
+
P((O) => (O && O.dispose(), U ? Be(U) : null)), U || R(!0);
|
|
6660
6660
|
});
|
|
6661
6661
|
}, [
|
|
6662
6662
|
b,
|
|
@@ -6675,10 +6675,10 @@ const ba = ({
|
|
|
6675
6675
|
visible: s,
|
|
6676
6676
|
position: i,
|
|
6677
6677
|
children: [
|
|
6678
|
-
|
|
6678
|
+
A && /* @__PURE__ */ w(
|
|
6679
6679
|
"mesh",
|
|
6680
6680
|
{
|
|
6681
|
-
geometry:
|
|
6681
|
+
geometry: A,
|
|
6682
6682
|
material: M,
|
|
6683
6683
|
layers: o,
|
|
6684
6684
|
castShadow: u,
|
|
@@ -6686,7 +6686,7 @@ const ba = ({
|
|
|
6686
6686
|
customDepthMaterial: r,
|
|
6687
6687
|
customDistanceMaterial: p
|
|
6688
6688
|
},
|
|
6689
|
-
|
|
6689
|
+
A.uuid
|
|
6690
6690
|
),
|
|
6691
6691
|
C && x && x()
|
|
6692
6692
|
]
|
|
@@ -6696,7 +6696,7 @@ const ba = ({
|
|
|
6696
6696
|
const { id: n } = ce(), t = N(null), e = oe(
|
|
6697
6697
|
$r,
|
|
6698
6698
|
0
|
|
6699
|
-
), { addAnnotations: o } = je("completion", n), [i, s] =
|
|
6699
|
+
), { addAnnotations: o } = je("completion", n), [i, s] = W([]);
|
|
6700
6700
|
return E(() => {
|
|
6701
6701
|
e && n && e(n).then((u) => {
|
|
6702
6702
|
u && t.current && (u.forEach((a, l) => {
|
|
@@ -6710,7 +6710,7 @@ const ba = ({
|
|
|
6710
6710
|
interval: t = 100,
|
|
6711
6711
|
priority: e = 0
|
|
6712
6712
|
}, o) => {
|
|
6713
|
-
const i = N(null), { id: s, fromMsl: u } = ce(), a = oe(Yr, e), { addAnnotations: l } = je("depth-markers", s), [r, p] =
|
|
6713
|
+
const i = N(null), { id: s, fromMsl: u } = ce(), a = oe(Yr, e), { addAnnotations: l } = je("depth-markers", s), [r, p] = W([]);
|
|
6714
6714
|
return Fe(o, () => i.current), E(() => {
|
|
6715
6715
|
a && s && a(s, t, n, u).then((c) => {
|
|
6716
6716
|
c && i.current && (c.forEach((d) => {
|
|
@@ -6733,12 +6733,12 @@ const ba = ({
|
|
|
6733
6733
|
children: t
|
|
6734
6734
|
},
|
|
6735
6735
|
n
|
|
6736
|
-
), qr = "formationMarkerSymbols",
|
|
6736
|
+
), qr = "formationMarkerSymbols", Aa = ({
|
|
6737
6737
|
id: n,
|
|
6738
6738
|
name: t,
|
|
6739
6739
|
data: e
|
|
6740
6740
|
}) => {
|
|
6741
|
-
const o =
|
|
6741
|
+
const o = T(() => `#${e.color}`, [e]);
|
|
6742
6742
|
return /* @__PURE__ */ w(
|
|
6743
6743
|
"div",
|
|
6744
6744
|
{
|
|
@@ -6792,7 +6792,7 @@ const ba = ({
|
|
|
6792
6792
|
},
|
|
6793
6793
|
n
|
|
6794
6794
|
);
|
|
6795
|
-
}, Pn = new tt(), Cn = new X(), Sn = new Z(),
|
|
6795
|
+
}, Pn = new tt(), Cn = new X(), Sn = new Z(), Ta = xe(
|
|
6796
6796
|
({
|
|
6797
6797
|
radialSegments: n = 8,
|
|
6798
6798
|
baseRadius: t = 10,
|
|
@@ -6811,9 +6811,9 @@ const ba = ({
|
|
|
6811
6811
|
const h = N(null), { id: v, fromMsl: x } = ce(), y = oe(
|
|
6812
6812
|
qr,
|
|
6813
6813
|
d
|
|
6814
|
-
), { addAnnotations: f } = je("formation-markers", v), [_, g] =
|
|
6814
|
+
), { addAnnotations: f } = je("formation-markers", v), [_, g] = W(null);
|
|
6815
6815
|
Fe(m, () => h.current);
|
|
6816
|
-
const b =
|
|
6816
|
+
const b = T(() => new Ii(1, 1, 0.1, n, 1, !1), [n]), A = T(() => new qt(), []);
|
|
6817
6817
|
return E(() => {
|
|
6818
6818
|
y && v && y(v, e, x, t).then((P) => {
|
|
6819
6819
|
g(P);
|
|
@@ -6845,7 +6845,7 @@ const ba = ({
|
|
|
6845
6845
|
position: u,
|
|
6846
6846
|
data: _,
|
|
6847
6847
|
geometry: b,
|
|
6848
|
-
material:
|
|
6848
|
+
material: A,
|
|
6849
6849
|
layers: r,
|
|
6850
6850
|
castShadow: p,
|
|
6851
6851
|
receiveShadow: c
|
|
@@ -6957,12 +6957,12 @@ const Pa = xe(
|
|
|
6957
6957
|
time: 0,
|
|
6958
6958
|
baseRadius: 0,
|
|
6959
6959
|
lenght: 0
|
|
6960
|
-
}), { id: g, fromMsl: b } = ce(),
|
|
6960
|
+
}), { id: g, fromMsl: b } = ce(), A = oe(Kr, x), [P, C] = W(null);
|
|
6961
6961
|
Fe(y, () => f.current);
|
|
6962
|
-
const R =
|
|
6962
|
+
const R = T(() => {
|
|
6963
6963
|
const M = new jn(m, h, d);
|
|
6964
6964
|
return M.translate(0, h / 2, 0), M;
|
|
6965
|
-
}, [m, h, d]), I =
|
|
6965
|
+
}, [m, h, d]), I = T(() => l || new Ge({
|
|
6966
6966
|
uniforms: {
|
|
6967
6967
|
uTime: new S(0),
|
|
6968
6968
|
uRadius: new S(0),
|
|
@@ -6972,19 +6972,19 @@ const Pa = xe(
|
|
|
6972
6972
|
fragmentShader: Xr,
|
|
6973
6973
|
depthTest: !0,
|
|
6974
6974
|
depthWrite: !1,
|
|
6975
|
-
blending:
|
|
6975
|
+
blending: Gn,
|
|
6976
6976
|
transparent: !0
|
|
6977
|
-
}), [l]), D =
|
|
6978
|
-
const O =
|
|
6977
|
+
}), [l]), D = T(() => c || ((M, U) => {
|
|
6978
|
+
const O = U;
|
|
6979
6979
|
O.uniforms.uTime.value = M.time, O.uniforms.uRadius.value = M.baseRadius, O.uniforms.uLength.value = M.length;
|
|
6980
6980
|
}), [c]);
|
|
6981
6981
|
return E(() => {
|
|
6982
6982
|
_.current.baseRadius = m, _.current.length = h, D(_.current, I);
|
|
6983
6983
|
}, [m, h, I, D]), E(() => {
|
|
6984
|
-
|
|
6984
|
+
A && g && A(g, b, v).then((M) => {
|
|
6985
6985
|
C(M);
|
|
6986
6986
|
});
|
|
6987
|
-
}, [
|
|
6987
|
+
}, [A, g, b, v]), Pe(({ clock: M }) => {
|
|
6988
6988
|
_.current.time = M.elapsedTime, D(_.current, I);
|
|
6989
6989
|
}), /* @__PURE__ */ w("group", { ref: f, children: P && /* @__PURE__ */ w(
|
|
6990
6990
|
Kt,
|
|
@@ -7090,7 +7090,7 @@ const Ca = ({
|
|
|
7090
7090
|
onMaterialPropertiesChange: x,
|
|
7091
7091
|
priority: y = 0
|
|
7092
7092
|
}) => {
|
|
7093
|
-
const { id: f, segmentsPerMeter: _, simplificationThreshold: g } = ce(), b = N(null),
|
|
7093
|
+
const { id: f, segmentsPerMeter: _, simplificationThreshold: g } = ce(), b = N(null), A = N({
|
|
7094
7094
|
color: n,
|
|
7095
7095
|
opacity: i,
|
|
7096
7096
|
from: e,
|
|
@@ -7099,21 +7099,21 @@ const Ca = ({
|
|
|
7099
7099
|
}), P = oe(
|
|
7100
7100
|
Jr,
|
|
7101
7101
|
y
|
|
7102
|
-
), [C, R] =
|
|
7102
|
+
), [C, R] = W(null);
|
|
7103
7103
|
E(() => {
|
|
7104
7104
|
P && P(f, t, _, g).then(
|
|
7105
7105
|
(M) => {
|
|
7106
7106
|
if (M) {
|
|
7107
|
-
const
|
|
7108
|
-
|
|
7107
|
+
const U = Be(M);
|
|
7108
|
+
U.computeBoundingBox(), R((O) => (O && O.dispose(), U));
|
|
7109
7109
|
}
|
|
7110
7110
|
}
|
|
7111
7111
|
);
|
|
7112
7112
|
}, [P, f, t, _, g]);
|
|
7113
|
-
const I =
|
|
7114
|
-
const O =
|
|
7113
|
+
const I = T(() => x || ((M, U) => {
|
|
7114
|
+
const O = U;
|
|
7115
7115
|
O.uniforms.uColor.value = new Z(M.color), O.uniforms.uFrom.value = M.from, O.uniforms.uTo.value = M.to, O.uniforms.uOpacity.value = M.opacity, O.uniforms.uTime.value = M.time;
|
|
7116
|
-
}), [x]), D =
|
|
7116
|
+
}), [x]), D = T(() => v || new Ge({
|
|
7117
7117
|
transparent: !0,
|
|
7118
7118
|
side: ge,
|
|
7119
7119
|
vertexShader: es,
|
|
@@ -7127,9 +7127,9 @@ const Ca = ({
|
|
|
7127
7127
|
}
|
|
7128
7128
|
}), [v]);
|
|
7129
7129
|
return E(() => {
|
|
7130
|
-
|
|
7130
|
+
A.current.color = n, A.current.opacity = i, A.current.from = e, A.current.to = o, I(A.current, D);
|
|
7131
7131
|
}, [e, o, i, n, D, I]), Pe(({ clock: M }) => {
|
|
7132
|
-
|
|
7132
|
+
A.current.time = M.getElapsedTime(), I(A.current, D);
|
|
7133
7133
|
}), C ? /* @__PURE__ */ w(
|
|
7134
7134
|
"group",
|
|
7135
7135
|
{
|
|
@@ -7168,29 +7168,29 @@ const Ca = ({
|
|
|
7168
7168
|
color: p = "#ffbb00",
|
|
7169
7169
|
priority: c = 0
|
|
7170
7170
|
}, d) => {
|
|
7171
|
-
const m = N(null), { id: h, fromMsl: v } = ce(), x = oe(ts, c), { addAnnotations: y } = je("shoes", h), [f, _] =
|
|
7171
|
+
const m = N(null), { id: h, fromMsl: v } = ce(), x = oe(ts, c), { addAnnotations: y } = je("shoes", h), [f, _] = W(null);
|
|
7172
7172
|
Fe(d, () => m.current);
|
|
7173
|
-
const g =
|
|
7174
|
-
const
|
|
7175
|
-
return
|
|
7176
|
-
}, [l]), b =
|
|
7177
|
-
const
|
|
7178
|
-
return
|
|
7173
|
+
const g = T(() => {
|
|
7174
|
+
const A = new jn(1, 2, l || 16, 1, !1);
|
|
7175
|
+
return A.translate(0, 1, 0), A;
|
|
7176
|
+
}, [l]), b = T(() => {
|
|
7177
|
+
const A = new qt();
|
|
7178
|
+
return A.color.set(p), A;
|
|
7179
7179
|
}, [p]);
|
|
7180
7180
|
return E(() => {
|
|
7181
|
-
x && h && x(h, v, r).then((
|
|
7182
|
-
_(
|
|
7181
|
+
x && h && x(h, v, r).then((A) => {
|
|
7182
|
+
_(A);
|
|
7183
7183
|
});
|
|
7184
7184
|
}, [x, h, v, r]), E(() => {
|
|
7185
7185
|
if (f) {
|
|
7186
|
-
const
|
|
7186
|
+
const A = f.data.map((P, C) => (Rn.fromArray(f.transformations, C * 16), En.setFromMatrixPosition(Rn), {
|
|
7187
7187
|
id: P.id,
|
|
7188
7188
|
name: P.name,
|
|
7189
7189
|
position: En.toArray(),
|
|
7190
7190
|
matrixWorld: m.current?.matrixWorld,
|
|
7191
7191
|
direction: P.direction
|
|
7192
7192
|
}));
|
|
7193
|
-
return y(
|
|
7193
|
+
return y(A);
|
|
7194
7194
|
}
|
|
7195
7195
|
}, [f, y]), /* @__PURE__ */ w("group", { ref: m, children: f && f.transformations.length && /* @__PURE__ */ w(
|
|
7196
7196
|
Kt,
|
|
@@ -7230,10 +7230,10 @@ const Ca = ({
|
|
|
7230
7230
|
const { id: x, fromMsl: y, segmentsPerMeter: f, simplificationThreshold: _ } = ce(), g = oe(
|
|
7231
7231
|
ns,
|
|
7232
7232
|
v
|
|
7233
|
-
), [b,
|
|
7233
|
+
), [b, A] = W(null), P = T(() => c || ((R, I) => {
|
|
7234
7234
|
const D = I;
|
|
7235
7235
|
D.color = new Z(R.color);
|
|
7236
|
-
}), [c]), C =
|
|
7236
|
+
}), [c]), C = T(() => p || new qt(), [p]);
|
|
7237
7237
|
return E(() => {
|
|
7238
7238
|
P(
|
|
7239
7239
|
{
|
|
@@ -7252,7 +7252,7 @@ const Ca = ({
|
|
|
7252
7252
|
h
|
|
7253
7253
|
).then((R) => {
|
|
7254
7254
|
let I = null;
|
|
7255
|
-
R && (I = Be(R)),
|
|
7255
|
+
R && (I = Be(R)), A((D) => (D && D.dispose(), I));
|
|
7256
7256
|
});
|
|
7257
7257
|
}, [
|
|
7258
7258
|
g,
|
|
@@ -7293,7 +7293,7 @@ const Ca = ({
|
|
|
7293
7293
|
emitterThreshold: p = 3,
|
|
7294
7294
|
children: c
|
|
7295
7295
|
}) => {
|
|
7296
|
-
const d = N(null), m =
|
|
7296
|
+
const d = N(null), m = T(() => ({
|
|
7297
7297
|
id: n,
|
|
7298
7298
|
fromMsl: t,
|
|
7299
7299
|
segmentsPerMeter: e,
|
|
@@ -7346,7 +7346,7 @@ const Ca = ({
|
|
|
7346
7346
|
priority: i = 0,
|
|
7347
7347
|
children: s
|
|
7348
7348
|
}) => {
|
|
7349
|
-
const u = N(null), a = oe(os, i), [l, r] =
|
|
7349
|
+
const u = N(null), a = oe(os, i), [l, r] = W(null), p = T(
|
|
7350
7350
|
() => ({ current: 1 / 0 }),
|
|
7351
7351
|
[]
|
|
7352
7352
|
), c = re(
|
|
@@ -7555,9 +7555,9 @@ const Ia = ({
|
|
|
7555
7555
|
const { id: y, fromMsl: f, segmentsPerMeter: _, simplificationThreshold: g } = ce(), b = oe(
|
|
7556
7556
|
rs,
|
|
7557
7557
|
x
|
|
7558
|
-
), [
|
|
7559
|
-
() =>
|
|
7560
|
-
|
|
7558
|
+
), [A, P] = W(null), C = T(
|
|
7559
|
+
() => ke.merge([
|
|
7560
|
+
ke.clone(Vt.basic.uniforms),
|
|
7561
7561
|
{
|
|
7562
7562
|
opacity: new S(1)
|
|
7563
7563
|
}
|
|
@@ -7596,7 +7596,7 @@ const Ia = ({
|
|
|
7596
7596
|
v,
|
|
7597
7597
|
m,
|
|
7598
7598
|
d
|
|
7599
|
-
]),
|
|
7599
|
+
]), A ? /* @__PURE__ */ w(
|
|
7600
7600
|
"mesh",
|
|
7601
7601
|
{
|
|
7602
7602
|
name: n,
|
|
@@ -7607,7 +7607,7 @@ const Ia = ({
|
|
|
7607
7607
|
receiveShadow: s,
|
|
7608
7608
|
visible: l,
|
|
7609
7609
|
layers: a,
|
|
7610
|
-
geometry:
|
|
7610
|
+
geometry: A,
|
|
7611
7611
|
children: /* @__PURE__ */ w(
|
|
7612
7612
|
"shaderMaterial",
|
|
7613
7613
|
{
|
|
@@ -7649,7 +7649,7 @@ const Ia = ({
|
|
|
7649
7649
|
position: e = "bottom",
|
|
7650
7650
|
priority: o = 0
|
|
7651
7651
|
}) => {
|
|
7652
|
-
const { id: i, fromMsl: s } = ce(), u = N(null), a = oe(ls, o), { addAnnotations: l } = je("wellbore-labels", i), [r, p] =
|
|
7652
|
+
const { id: i, fromMsl: s } = ce(), u = N(null), a = oe(ls, o), { addAnnotations: l } = je("wellbore-labels", i), [r, p] = W(null);
|
|
7653
7653
|
return E(() => {
|
|
7654
7654
|
a && i && a(i, e, s).then((c) => {
|
|
7655
7655
|
if (c && c.length === 1 && u.current) {
|
|
@@ -7680,13 +7680,13 @@ function cs(n, t, e, o) {
|
|
|
7680
7680
|
new le(r, 3, 11)
|
|
7681
7681
|
), p;
|
|
7682
7682
|
}
|
|
7683
|
-
const
|
|
7684
|
-
const t = it(), { id: e, fromMsl: o, segmentsPerMeter: i, simplificationThreshold: s } = ce(), [u, a] =
|
|
7683
|
+
const Ua = ({ children: n }) => {
|
|
7684
|
+
const t = it(), { id: e, fromMsl: o, segmentsPerMeter: i, simplificationThreshold: s } = ce(), [u, a] = W(null), [l, r] = W([0, -1, 0]), p = T(() => u ? cs(
|
|
7685
7685
|
u,
|
|
7686
7686
|
i,
|
|
7687
7687
|
s,
|
|
7688
7688
|
o
|
|
7689
|
-
) : null, [u, i, s, o]), c =
|
|
7689
|
+
) : null, [u, i, s, o]), c = T(() => u && p ? {
|
|
7690
7690
|
trajectory: u,
|
|
7691
7691
|
direction: l,
|
|
7692
7692
|
geometry: p
|
|
@@ -8042,13 +8042,13 @@ void main() {
|
|
|
8042
8042
|
|
|
8043
8043
|
#include <logdepthbuf_vertex>
|
|
8044
8044
|
}`;
|
|
8045
|
-
const
|
|
8045
|
+
const ka = ({
|
|
8046
8046
|
width: n,
|
|
8047
8047
|
offset: t,
|
|
8048
8048
|
formationData: e,
|
|
8049
8049
|
level: o
|
|
8050
8050
|
}) => {
|
|
8051
|
-
const i = ie(Xt), s = ie(ot), [u, a] =
|
|
8051
|
+
const i = ie(Xt), s = ie(ot), [u, a] = W(null), l = T(() => ({
|
|
8052
8052
|
size: new S(new pe()),
|
|
8053
8053
|
direction: new S(new X(0, -1, 0)),
|
|
8054
8054
|
startDepth: new S(0),
|
|
@@ -8347,7 +8347,7 @@ const Oa = ({
|
|
|
8347
8347
|
offset: t,
|
|
8348
8348
|
stepSize: e = 50
|
|
8349
8349
|
}) => {
|
|
8350
|
-
const o = ie(Xt), i = ie(ot), s =
|
|
8350
|
+
const o = ie(Xt), i = ie(ot), s = T(() => ({
|
|
8351
8351
|
direction: new S(new X(0, -1, 0)),
|
|
8352
8352
|
width: new S(20),
|
|
8353
8353
|
offset: new S(0),
|
|
@@ -8458,7 +8458,7 @@ void main() {
|
|
|
8458
8458
|
#include <worldpos_vertex>
|
|
8459
8459
|
#include <fog_vertex>
|
|
8460
8460
|
}`;
|
|
8461
|
-
const
|
|
8461
|
+
const Wa = ({
|
|
8462
8462
|
id: n,
|
|
8463
8463
|
opacity: t = 1,
|
|
8464
8464
|
stepSize: e = 3,
|
|
@@ -8481,10 +8481,10 @@ const Ga = ({
|
|
|
8481
8481
|
onPointerLeave: _,
|
|
8482
8482
|
onPointerMove: g
|
|
8483
8483
|
}) => {
|
|
8484
|
-
const b = N(null), [
|
|
8484
|
+
const b = N(null), [A, P] = W(null), [C, R] = W(null), [I, D] = W([-1, 1]), M = oe(
|
|
8485
8485
|
ds,
|
|
8486
8486
|
l
|
|
8487
|
-
),
|
|
8487
|
+
), U = T(
|
|
8488
8488
|
() => ({
|
|
8489
8489
|
opacity: new S(1),
|
|
8490
8490
|
data: new S(null),
|
|
@@ -8495,7 +8495,7 @@ const Ga = ({
|
|
|
8495
8495
|
colorRampIndex: new S(6)
|
|
8496
8496
|
}),
|
|
8497
8497
|
[]
|
|
8498
|
-
), O =
|
|
8498
|
+
), O = T(
|
|
8499
8499
|
() => Math.max(Math.abs(I[0]), Math.abs(I[1])),
|
|
8500
8500
|
[I]
|
|
8501
8501
|
);
|
|
@@ -8512,24 +8512,24 @@ const Ga = ({
|
|
|
8512
8512
|
In,
|
|
8513
8513
|
jt
|
|
8514
8514
|
);
|
|
8515
|
-
B.anisotropy = 4, B.magFilter =
|
|
8515
|
+
B.anisotropy = 4, B.magFilter = Ue, B.minFilter = Ue, B.flipY = !0, B.needsUpdate = !0, D([z.data.min, z.data.max]), R((j) => (j && j.dispose(), B));
|
|
8516
8516
|
}
|
|
8517
8517
|
}
|
|
8518
8518
|
);
|
|
8519
8519
|
}, [M, n, e, i, o, a]);
|
|
8520
|
-
const $ =
|
|
8520
|
+
const $ = T(() => Ve(se.NOT_EMITTER), []);
|
|
8521
8521
|
E(() => {
|
|
8522
|
-
|
|
8523
|
-
}, [
|
|
8522
|
+
U.data.value = C, U.opacity.value = t;
|
|
8523
|
+
}, [U, t, C]), E(() => {
|
|
8524
8524
|
const z = O + O * s;
|
|
8525
|
-
|
|
8526
|
-
}, [
|
|
8527
|
-
const
|
|
8525
|
+
U.colorRampMin.value = -z, U.colorRampMax.value = z, U.colorRampIndex.value = u;
|
|
8526
|
+
}, [U, O, s, u]);
|
|
8527
|
+
const G = _t();
|
|
8528
8528
|
return E(() => {
|
|
8529
8529
|
let z = null;
|
|
8530
|
-
if (
|
|
8530
|
+
if (G && b.current) {
|
|
8531
8531
|
const L = {};
|
|
8532
|
-
y && (L.click = y), f && (L.enter = f), _ && (L.leave = _), g && (L.move = g), Object.keys(L).length && (z =
|
|
8532
|
+
y && (L.click = y), f && (L.enter = f), _ && (L.leave = _), g && (L.move = g), Object.keys(L).length && (z = G.register({
|
|
8533
8533
|
object: b.current,
|
|
8534
8534
|
handlers: L,
|
|
8535
8535
|
ref: n
|
|
@@ -8539,7 +8539,7 @@ const Ga = ({
|
|
|
8539
8539
|
z && z();
|
|
8540
8540
|
};
|
|
8541
8541
|
}, [
|
|
8542
|
-
|
|
8542
|
+
G,
|
|
8543
8543
|
y,
|
|
8544
8544
|
f,
|
|
8545
8545
|
_,
|
|
@@ -8554,19 +8554,19 @@ const Ga = ({
|
|
|
8554
8554
|
renderOrder: v,
|
|
8555
8555
|
position: h,
|
|
8556
8556
|
userData: p,
|
|
8557
|
-
children:
|
|
8557
|
+
children: A && /* @__PURE__ */ w(
|
|
8558
8558
|
"mesh",
|
|
8559
8559
|
{
|
|
8560
8560
|
castShadow: d,
|
|
8561
8561
|
receiveShadow: c,
|
|
8562
|
-
geometry:
|
|
8562
|
+
geometry: A,
|
|
8563
8563
|
layers: m || $,
|
|
8564
8564
|
children: /* @__PURE__ */ w(
|
|
8565
8565
|
"shaderMaterial",
|
|
8566
8566
|
{
|
|
8567
8567
|
vertexShader: ms,
|
|
8568
8568
|
fragmentShader: ps,
|
|
8569
|
-
uniforms:
|
|
8569
|
+
uniforms: U,
|
|
8570
8570
|
side: ge,
|
|
8571
8571
|
transparent: t < 1,
|
|
8572
8572
|
opacity: t
|
|
@@ -8593,7 +8593,7 @@ function hs(n, t, e) {
|
|
|
8593
8593
|
u = { ...u, ...c };
|
|
8594
8594
|
}), u;
|
|
8595
8595
|
}
|
|
8596
|
-
const
|
|
8596
|
+
const Ga = xe(
|
|
8597
8597
|
({
|
|
8598
8598
|
wellbores: n,
|
|
8599
8599
|
included: t = n.map((u) => u.id),
|
|
@@ -8601,20 +8601,20 @@ const Wa = xe(
|
|
|
8601
8601
|
renderWellbore: o,
|
|
8602
8602
|
children: i
|
|
8603
8603
|
}, s) => {
|
|
8604
|
-
const u =
|
|
8604
|
+
const u = T(
|
|
8605
8605
|
() => n.reduce(
|
|
8606
8606
|
(p, c) => ({ ...p, [c.id]: c }),
|
|
8607
8607
|
{}
|
|
8608
8608
|
),
|
|
8609
8609
|
[n]
|
|
8610
|
-
), a =
|
|
8610
|
+
), a = T(
|
|
8611
8611
|
() => hs(n, t, e),
|
|
8612
8612
|
[n, t, e]
|
|
8613
|
-
), l =
|
|
8613
|
+
), l = T(() => {
|
|
8614
8614
|
if (!e) return null;
|
|
8615
8615
|
const p = n.find((c) => c.id === e);
|
|
8616
8616
|
return p ? p.well : null;
|
|
8617
|
-
}, [e, n]), r =
|
|
8617
|
+
}, [e, n]), r = T(() => ({
|
|
8618
8618
|
getHeader: (c) => u[c]
|
|
8619
8619
|
}), [u]);
|
|
8620
8620
|
return Fe(s, () => r, [r]), a && /* @__PURE__ */ H(Oe, { children: [
|
|
@@ -8634,7 +8634,7 @@ function vs(n) {
|
|
|
8634
8634
|
return !!n[Yt];
|
|
8635
8635
|
}
|
|
8636
8636
|
const Fa = ({ store: n, children: t }) => {
|
|
8637
|
-
const e =
|
|
8637
|
+
const e = T(() => vs(n), [n]), o = re(() => n, [n]), i = re(() => e ? n[Yt]() : Promise.reject("Unable to connect to store!"), [n, e]);
|
|
8638
8638
|
return /* @__PURE__ */ w(Mt.Provider, { value: { isRemote: e, connect: o, connectByMessagePort: i }, children: t });
|
|
8639
8639
|
};
|
|
8640
8640
|
function gs(n) {
|
|
@@ -8646,7 +8646,7 @@ const Ba = ({
|
|
|
8646
8646
|
signal: e,
|
|
8647
8647
|
children: o
|
|
8648
8648
|
}) => {
|
|
8649
|
-
const [i, s] =
|
|
8649
|
+
const [i, s] = W(!1), u = N(new so({ concurrency: t })), a = N(!1), l = ie(Mt), r = T(() => gs(n), [n]), p = T(() => ({ invoke: async (d, m, h) => a.current ? Promise.reject("aborted") : u.current.add(
|
|
8650
8650
|
() => a.current ? Promise.reject("aborted") : n.invoke(d, ...h),
|
|
8651
8651
|
{ priority: m }
|
|
8652
8652
|
) }), [n]);
|
|
@@ -8668,7 +8668,7 @@ const Ba = ({
|
|
|
8668
8668
|
});
|
|
8669
8669
|
else {
|
|
8670
8670
|
const c = l.connect();
|
|
8671
|
-
c && (n.setStore(r ?
|
|
8671
|
+
c && (n.setStore(r ? Wi(c) : c), s(!0));
|
|
8672
8672
|
}
|
|
8673
8673
|
}, [l, n, r]), E(() => {
|
|
8674
8674
|
if (e && !e.aborted) {
|
|
@@ -8700,14 +8700,14 @@ const Ha = ({
|
|
|
8700
8700
|
children: e
|
|
8701
8701
|
}) => {
|
|
8702
8702
|
const o = Ki(n, (a) => {
|
|
8703
|
-
a.generateMipmaps = !1, a.magFilter =
|
|
8704
|
-
}), [i, s] =
|
|
8703
|
+
a.generateMipmaps = !1, a.magFilter = Ue, a.minFilter = Ue, a.flipY = !0;
|
|
8704
|
+
}), [i, s] = W(null);
|
|
8705
8705
|
E(() => {
|
|
8706
8706
|
xs(`${t}`).then((a) => {
|
|
8707
8707
|
s(io(a));
|
|
8708
8708
|
}).catch((a) => console.error(a));
|
|
8709
8709
|
}, [t]);
|
|
8710
|
-
const u =
|
|
8710
|
+
const u = T(() => i ? {
|
|
8711
8711
|
glyphAtlas: o,
|
|
8712
8712
|
encodeText: (a) => i.encodeText(a),
|
|
8713
8713
|
encodeTextTexture: (a) => i.encodeTextTexture(a),
|
|
@@ -8749,9 +8749,9 @@ export {
|
|
|
8749
8749
|
ei as DistanceContext,
|
|
8750
8750
|
Js as EventEmitter,
|
|
8751
8751
|
ti as EventEmitterContext,
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8752
|
+
Aa as FormationMarkerLabel,
|
|
8753
|
+
Ta as FormationMarkers,
|
|
8754
|
+
ka as FormationsStripe,
|
|
8755
8755
|
Jn as FullscreenRenderer,
|
|
8756
8756
|
si as GeneratorsContext,
|
|
8757
8757
|
Ba as GeneratorsProvider,
|
|
@@ -8773,7 +8773,7 @@ export {
|
|
|
8773
8773
|
gn as PickingHelper,
|
|
8774
8774
|
go as RenderPass,
|
|
8775
8775
|
fa as SDFTest,
|
|
8776
|
-
|
|
8776
|
+
Tn as ScreenMaterial,
|
|
8777
8777
|
Sa as Shoes,
|
|
8778
8778
|
da as Surface,
|
|
8779
8779
|
Dr as SurfaceMaterial,
|
|
@@ -8797,17 +8797,17 @@ export {
|
|
|
8797
8797
|
Ia as WellboreFormationColumn,
|
|
8798
8798
|
Da as WellboreLabel,
|
|
8799
8799
|
$i as WellboreRemovedEvent,
|
|
8800
|
-
|
|
8800
|
+
Ua as WellboreRibbon,
|
|
8801
8801
|
Xt as WellboreRibbonContext,
|
|
8802
|
-
|
|
8802
|
+
Wa as WellboreSeismicSection,
|
|
8803
8803
|
qa as WellboreSelectedEvent,
|
|
8804
|
-
|
|
8804
|
+
Ga as Wells,
|
|
8805
8805
|
ha as Wgs84Position,
|
|
8806
|
-
|
|
8806
|
+
Ur as basicTrajectory,
|
|
8807
8807
|
tn as cameraFocusAtPointEventType,
|
|
8808
8808
|
en as cameraSetPositionEventType,
|
|
8809
8809
|
Nr as casingAnnotations,
|
|
8810
|
-
|
|
8810
|
+
kr as casings,
|
|
8811
8811
|
Cr as colorRampInterpolators,
|
|
8812
8812
|
he as colorRampTexture,
|
|
8813
8813
|
Sr as colorRamps,
|