@maqiuyao/dxf-viewer 0.2.5 → 0.2.6
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/dxf-viewer.js
CHANGED
|
@@ -2,7 +2,7 @@ var sl = Object.defineProperty;
|
|
|
2
2
|
var nl = (c, t, e) => t in c ? sl(c, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[t] = e;
|
|
3
3
|
var g = (c, t, e) => nl(c, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import * as p from "three";
|
|
5
|
-
import { Box3 as De, Matrix4 as at, BufferAttribute as wr, Vector3 as G, Line3 as Ot, Plane as po, Vector2 as
|
|
5
|
+
import { Box3 as De, Matrix4 as at, BufferAttribute as wr, Vector3 as G, Line3 as Ot, Plane as po, Vector2 as Ut, Triangle as Oi, BackSide as rl, DoubleSide as al, REVISION as mo, Ray as ol, FrontSide as Ar, Mesh as mn, LineSegments as go, LineLoop as yo, Line as xo, Points as bo, Sphere as ll, BatchedMesh as cl, Layers as hl, Object3D as dl } from "three";
|
|
6
6
|
import { Mesh as J0 } from "three";
|
|
7
7
|
import * as Ir from "loglevel";
|
|
8
8
|
import { CSS2DObject as ul, CSS2DRenderer as fl } from "three/examples/jsm/renderers/CSS2DRenderer.js";
|
|
@@ -36,9 +36,9 @@ import { GLTFLoader as Rl } from "three/examples/jsm/loaders/GLTFLoader.js";
|
|
|
36
36
|
import { MTLLoader as Fl } from "three/examples/jsm/loaders/MTLLoader.js";
|
|
37
37
|
import { OBJLoader as zl } from "three/examples/jsm/loaders/OBJLoader.js";
|
|
38
38
|
import { PLYLoader as Vl } from "three/examples/jsm/loaders/PLYLoader.js";
|
|
39
|
-
import { STLLoader as
|
|
39
|
+
import { STLLoader as jl } from "three/examples/jsm/loaders/STLLoader.js";
|
|
40
40
|
import Gi from "polygon-clipping";
|
|
41
|
-
import { EffectComposer as
|
|
41
|
+
import { EffectComposer as Ul } from "three/examples/jsm/postprocessing/EffectComposer.js";
|
|
42
42
|
import { RenderPass as Nl } from "three/examples/jsm/postprocessing/RenderPass.js";
|
|
43
43
|
import { ShaderPass as Hl } from "three/examples/jsm/postprocessing/ShaderPass.js";
|
|
44
44
|
import { SAOPass as Gl } from "three/examples/jsm/postprocessing/SAOPass.js";
|
|
@@ -400,21 +400,21 @@ class hc {
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
const ne = /* @__PURE__ */ new hc();
|
|
403
|
-
let
|
|
403
|
+
let jt, ki;
|
|
404
404
|
const di = [], Ts = /* @__PURE__ */ new Cr(() => new De());
|
|
405
405
|
function dc(c, t, e, i, s, n) {
|
|
406
|
-
|
|
406
|
+
jt = Ts.getPrimitive(), ki = Ts.getPrimitive(), di.push(jt, ki), ne.setBuffer(c._roots[t]);
|
|
407
407
|
const r = ur(0, c.geometry, e, i, s, n);
|
|
408
|
-
ne.clearBuffer(), Ts.releasePrimitive(
|
|
408
|
+
ne.clearBuffer(), Ts.releasePrimitive(jt), Ts.releasePrimitive(ki), di.pop(), di.pop();
|
|
409
409
|
const a = di.length;
|
|
410
|
-
return a > 0 && (ki = di[a - 1],
|
|
410
|
+
return a > 0 && (ki = di[a - 1], jt = di[a - 2]), r;
|
|
411
411
|
}
|
|
412
412
|
function ur(c, t, e, i, s = null, n = 0, r = 0) {
|
|
413
413
|
const { float32Array: a, uint16Array: o, uint32Array: l } = ne;
|
|
414
414
|
let h = c * 2;
|
|
415
415
|
if (he(h, o)) {
|
|
416
416
|
const u = Te(c, l), f = _e(h, o);
|
|
417
|
-
return le(c, a,
|
|
417
|
+
return le(c, a, jt), i(u, f, !1, r, n + c / xe, jt);
|
|
418
418
|
} else {
|
|
419
419
|
let _ = function(I) {
|
|
420
420
|
const { uint16Array: B, uint32Array: k } = ne;
|
|
@@ -431,12 +431,12 @@ function ur(c, t, e, i, s = null, n = 0, r = 0) {
|
|
|
431
431
|
};
|
|
432
432
|
const u = be(c), f = we(c, l);
|
|
433
433
|
let m = u, b = f, y, C, w, x;
|
|
434
|
-
if (s && (w =
|
|
434
|
+
if (s && (w = jt, x = ki, le(m, a, w), le(b, a, x), y = s(w), C = s(x), C < y)) {
|
|
435
435
|
m = f, b = u;
|
|
436
436
|
const I = y;
|
|
437
437
|
y = C, C = I, w = x;
|
|
438
438
|
}
|
|
439
|
-
w || (w =
|
|
439
|
+
w || (w = jt, le(m, a, w));
|
|
440
440
|
const E = he(m * 2, o), M = e(w, E, y, r + 1, n + m / xe);
|
|
441
441
|
let O;
|
|
442
442
|
if (M === Dr) {
|
|
@@ -1061,7 +1061,7 @@ const vc = /* @__PURE__ */ (function() {
|
|
|
1061
1061
|
y !== 0 ? C = (d * u - m * f) / y : C = 0, w = (d + C * u) / f, r.x = C, r.y = w;
|
|
1062
1062
|
};
|
|
1063
1063
|
})(), Er = /* @__PURE__ */ (function() {
|
|
1064
|
-
const c = /* @__PURE__ */ new
|
|
1064
|
+
const c = /* @__PURE__ */ new Ut(), t = /* @__PURE__ */ new G(), e = /* @__PURE__ */ new G();
|
|
1065
1065
|
return function(s, n, r, a) {
|
|
1066
1066
|
vc(s, n, c);
|
|
1067
1067
|
let o = c.x, l = c.y;
|
|
@@ -1101,7 +1101,7 @@ const vc = /* @__PURE__ */ (function() {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
return !1;
|
|
1103
1103
|
};
|
|
1104
|
-
})(), Tc = ["x", "y", "z"], Mt = 1e-15,
|
|
1104
|
+
})(), Tc = ["x", "y", "z"], Mt = 1e-15, jr = Mt * Mt;
|
|
1105
1105
|
function Ye(c) {
|
|
1106
1106
|
return Math.abs(c) < Mt;
|
|
1107
1107
|
}
|
|
@@ -1143,7 +1143,7 @@ ot.prototype.closestPointToSegment = /* @__PURE__ */ (function() {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
})();
|
|
1145
1145
|
ot.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
1146
|
-
const c = /* @__PURE__ */ new ot(), t = /* @__PURE__ */ new _t(), e = /* @__PURE__ */ new _t(), i = /* @__PURE__ */ new G(), s = /* @__PURE__ */ new G(), n = /* @__PURE__ */ new G(), r = /* @__PURE__ */ new G(), a = /* @__PURE__ */ new Ot(), o = /* @__PURE__ */ new Ot(), l = /* @__PURE__ */ new G(), h = /* @__PURE__ */ new
|
|
1146
|
+
const c = /* @__PURE__ */ new ot(), t = /* @__PURE__ */ new _t(), e = /* @__PURE__ */ new _t(), i = /* @__PURE__ */ new G(), s = /* @__PURE__ */ new G(), n = /* @__PURE__ */ new G(), r = /* @__PURE__ */ new G(), a = /* @__PURE__ */ new Ot(), o = /* @__PURE__ */ new Ot(), l = /* @__PURE__ */ new G(), h = /* @__PURE__ */ new Ut(), d = /* @__PURE__ */ new Ut();
|
|
1147
1147
|
function u(x, E, M, O) {
|
|
1148
1148
|
const S = i;
|
|
1149
1149
|
!x.isDegenerateIntoPoint && !x.isDegenerateIntoSegment ? S.copy(x.plane.normal) : S.copy(E.plane.normal);
|
|
@@ -1188,7 +1188,7 @@ ot.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
function C(x, E, M) {
|
|
1190
1190
|
const O = x.degenerateSegment, S = E.a;
|
|
1191
|
-
return O.closestPointToPoint(S, !0, i), S.distanceToSquared(i) <
|
|
1191
|
+
return O.closestPointToPoint(S, !0, i), S.distanceToSquared(i) < jr ? (M && (M.start.copy(S), M.end.copy(S)), !0) : !1;
|
|
1192
1192
|
}
|
|
1193
1193
|
function w(x, E, M, O) {
|
|
1194
1194
|
if (x.isDegenerateIntoSegment)
|
|
@@ -1206,7 +1206,7 @@ ot.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
|
1206
1206
|
} else return E.isDegenerateIntoPoint ? C(x, E, M) : b(E, x, M, O);
|
|
1207
1207
|
else {
|
|
1208
1208
|
if (x.isDegenerateIntoPoint)
|
|
1209
|
-
return E.isDegenerateIntoPoint ? E.a.distanceToSquared(x.a) <
|
|
1209
|
+
return E.isDegenerateIntoPoint ? E.a.distanceToSquared(x.a) < jr ? (M && (M.start.copy(x.a), M.end.copy(x.a)), !0) : !1 : E.isDegenerateIntoSegment ? C(E, x, M) : y(E, x, M);
|
|
1210
1210
|
if (E.isDegenerateIntoPoint)
|
|
1211
1211
|
return y(x, E, M);
|
|
1212
1212
|
if (E.isDegenerateIntoSegment)
|
|
@@ -1434,7 +1434,7 @@ function Sc(c, t, e = {}, i = 0, s = 1 / 0) {
|
|
|
1434
1434
|
const l = Math.sqrt(a);
|
|
1435
1435
|
return e.point ? e.point.copy(Bn) : e.point = Bn.clone(), e.distance = l, e.faceIndex = o, e;
|
|
1436
1436
|
}
|
|
1437
|
-
const Cs = parseInt(mo) >= 169, Ec = parseInt(mo) <= 161, Xt = /* @__PURE__ */ new G(), Zt = /* @__PURE__ */ new G(), Kt = /* @__PURE__ */ new G(), Ss = /* @__PURE__ */ new
|
|
1437
|
+
const Cs = parseInt(mo) >= 169, Ec = parseInt(mo) <= 161, Xt = /* @__PURE__ */ new G(), Zt = /* @__PURE__ */ new G(), Kt = /* @__PURE__ */ new G(), Ss = /* @__PURE__ */ new Ut(), Es = /* @__PURE__ */ new Ut(), Os = /* @__PURE__ */ new Ut(), Ur = /* @__PURE__ */ new G(), Nr = /* @__PURE__ */ new G(), Hr = /* @__PURE__ */ new G(), Yi = /* @__PURE__ */ new G();
|
|
1438
1438
|
function Oc(c, t, e, i, s, n, r, a) {
|
|
1439
1439
|
let o;
|
|
1440
1440
|
if (n === rl ? o = c.intersectTriangle(i, e, t, !0, s) : o = c.intersectTriangle(t, e, i, n !== al, s), o === null) return null;
|
|
@@ -1449,18 +1449,18 @@ function Gr(c, t, e, i, s, n, r, a, o, l, h) {
|
|
|
1449
1449
|
const d = Oc(c, Xt, Zt, Kt, Yi, o, l, h);
|
|
1450
1450
|
if (d) {
|
|
1451
1451
|
if (i) {
|
|
1452
|
-
Ss.fromBufferAttribute(i, n), Es.fromBufferAttribute(i, r), Os.fromBufferAttribute(i, a), d.uv = new
|
|
1452
|
+
Ss.fromBufferAttribute(i, n), Es.fromBufferAttribute(i, r), Os.fromBufferAttribute(i, a), d.uv = new Ut();
|
|
1453
1453
|
const f = Oi.getInterpolation(Yi, Xt, Zt, Kt, Ss, Es, Os, d.uv);
|
|
1454
1454
|
Cs || (d.uv = f);
|
|
1455
1455
|
}
|
|
1456
1456
|
if (s) {
|
|
1457
|
-
Ss.fromBufferAttribute(s, n), Es.fromBufferAttribute(s, r), Os.fromBufferAttribute(s, a), d.uv1 = new
|
|
1457
|
+
Ss.fromBufferAttribute(s, n), Es.fromBufferAttribute(s, r), Os.fromBufferAttribute(s, a), d.uv1 = new Ut();
|
|
1458
1458
|
const f = Oi.getInterpolation(Yi, Xt, Zt, Kt, Ss, Es, Os, d.uv1);
|
|
1459
1459
|
Cs || (d.uv1 = f), Ec && (d.uv2 = d.uv1);
|
|
1460
1460
|
}
|
|
1461
1461
|
if (e) {
|
|
1462
|
-
|
|
1463
|
-
const f = Oi.getInterpolation(Yi, Xt, Zt, Kt,
|
|
1462
|
+
Ur.fromBufferAttribute(e, n), Nr.fromBufferAttribute(e, r), Hr.fromBufferAttribute(e, a), d.normal = new G();
|
|
1463
|
+
const f = Oi.getInterpolation(Yi, Xt, Zt, Kt, Ur, Nr, Hr, d.normal);
|
|
1464
1464
|
d.normal.dot(c.direction) > 0 && d.normal.multiplyScalar(-1), Cs || (d.normal = f);
|
|
1465
1465
|
}
|
|
1466
1466
|
const u = {
|
|
@@ -1691,12 +1691,12 @@ function mr(c, t, e, i, s = null) {
|
|
|
1691
1691
|
return le(h, n, _s), !!(s.intersectsBox(_s) && mr(h, t, e, i, s) || (le(d, n, _s), s.intersectsBox(_s) && mr(d, t, e, i, s)));
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
|
-
const As = /* @__PURE__ */ new at(), kn = /* @__PURE__ */ new Re(), Zi = /* @__PURE__ */ new Re(), Vc = /* @__PURE__ */ new G(),
|
|
1694
|
+
const As = /* @__PURE__ */ new at(), kn = /* @__PURE__ */ new Re(), Zi = /* @__PURE__ */ new Re(), Vc = /* @__PURE__ */ new G(), jc = /* @__PURE__ */ new G(), Uc = /* @__PURE__ */ new G(), Nc = /* @__PURE__ */ new G();
|
|
1695
1695
|
function Hc(c, t, e, i = {}, s = {}, n = 0, r = 1 / 0) {
|
|
1696
1696
|
t.boundingBox || t.computeBoundingBox(), kn.set(t.boundingBox.min, t.boundingBox.max, e), kn.needsUpdate = !0;
|
|
1697
1697
|
const a = c.geometry, o = a.attributes.position, l = a.index, h = t.attributes.position, d = t.index, u = $e.getPrimitive(), f = $e.getPrimitive();
|
|
1698
|
-
let m = Vc, b =
|
|
1699
|
-
s && (y =
|
|
1698
|
+
let m = Vc, b = jc, y = null, C = null;
|
|
1699
|
+
s && (y = Uc, C = Nc);
|
|
1700
1700
|
let w = 1 / 0, x = null, E = null;
|
|
1701
1701
|
return As.copy(e).invert(), Zi.matrix.copy(As), c.shapecast(
|
|
1702
1702
|
{
|
|
@@ -3920,7 +3920,7 @@ class O0 {
|
|
|
3920
3920
|
this.beginTime = this.end();
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
|
-
const
|
|
3923
|
+
const jn = 1e-15, na = new p.Matrix4().set(0, 0, -1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1), ra = new p.Matrix4().set(0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
3924
3924
|
class F {
|
|
3925
3925
|
static roundNumber(t, e) {
|
|
3926
3926
|
return Math.round(t * Math.pow(10, e)) / Math.pow(10, e);
|
|
@@ -3948,7 +3948,7 @@ class F {
|
|
|
3948
3948
|
}
|
|
3949
3949
|
static getArcAngleSpanInRadian(t, e) {
|
|
3950
3950
|
const i = Math.PI * 2;
|
|
3951
|
-
return F.areNumbersClose(t, e,
|
|
3951
|
+
return F.areNumbersClose(t, e, jn) ? 0 : (t %= i, F.areNumbersClose(t, e % i, jn) ? i : (F.areNumbersClose(e, i, jn) && (e %= i), e < t && (e += i), e - t));
|
|
3952
3952
|
}
|
|
3953
3953
|
static getIntegerPartLength(t) {
|
|
3954
3954
|
return t = Math.abs(t), t < 1 ? 0 : Math.ceil(Math.log10(Math.abs(t) + 1));
|
|
@@ -4040,7 +4040,7 @@ class F {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
|
-
const
|
|
4043
|
+
const Un = 1e7, aa = new p.Box2(), oa = new p.Box2(), la = new p.Vector3(), ca = new p.Vector3(), ha = new p.Vector3(), It = new p.Triangle();
|
|
4044
4044
|
class N {
|
|
4045
4045
|
/**
|
|
4046
4046
|
* Compares two materials
|
|
@@ -4187,7 +4187,7 @@ class N {
|
|
|
4187
4187
|
* Checks if we should rebase a point in case its value is too large
|
|
4188
4188
|
*/
|
|
4189
4189
|
static shouldRebasePositionOnRTC(t) {
|
|
4190
|
-
return Math.abs(t.x) >
|
|
4190
|
+
return Math.abs(t.x) > Un || Math.abs(t.y) > Un || t instanceof p.Vector3 && Math.abs(t.z) > Un;
|
|
4191
4191
|
}
|
|
4192
4192
|
/**
|
|
4193
4193
|
* Calculates surface area
|
|
@@ -14650,7 +14650,7 @@ function ee(c, t) {
|
|
|
14650
14650
|
}
|
|
14651
14651
|
return !0;
|
|
14652
14652
|
}
|
|
14653
|
-
function
|
|
14653
|
+
function Ui(c, t) {
|
|
14654
14654
|
switch (t.code) {
|
|
14655
14655
|
case 0:
|
|
14656
14656
|
c.type = t.value;
|
|
@@ -14693,7 +14693,7 @@ function Vh(c, t, e, i, s) {
|
|
|
14693
14693
|
}
|
|
14694
14694
|
return a + o;
|
|
14695
14695
|
}
|
|
14696
|
-
function
|
|
14696
|
+
function jh(c) {
|
|
14697
14697
|
const t = /(\\M\+(?:[0-5])[0-9A-Fa-f]{4,})/g, e = c.match(t);
|
|
14698
14698
|
if (!e)
|
|
14699
14699
|
return c;
|
|
@@ -14724,7 +14724,7 @@ function ma(c) {
|
|
|
14724
14724
|
e = e.replace(n, ""), t.push(n);
|
|
14725
14725
|
}), { formatCodes: t, plainText: e };
|
|
14726
14726
|
}
|
|
14727
|
-
function
|
|
14727
|
+
function Uh(c, t) {
|
|
14728
14728
|
const e = ma(c.text).plainText, i = ma(t.text).plainText;
|
|
14729
14729
|
return e === i;
|
|
14730
14730
|
}
|
|
@@ -15078,7 +15078,7 @@ const vt = class vt {
|
|
|
15078
15078
|
if (s) {
|
|
15079
15079
|
if (t.text !== e.text)
|
|
15080
15080
|
return !1;
|
|
15081
|
-
} else if (!
|
|
15081
|
+
} else if (!Uh(t, e))
|
|
15082
15082
|
return !1;
|
|
15083
15083
|
return !!this.numberEqual(t.rotation, e.rotation);
|
|
15084
15084
|
}
|
|
@@ -15447,7 +15447,7 @@ class z {
|
|
|
15447
15447
|
});
|
|
15448
15448
|
}
|
|
15449
15449
|
}
|
|
15450
|
-
const
|
|
15450
|
+
const js = new p.Matrix4(), Nh = new p.Matrix4();
|
|
15451
15451
|
class kt {
|
|
15452
15452
|
static resetMergeInfo() {
|
|
15453
15453
|
this.MergeInfo.removedObjects = 0, this.MergeInfo.mergedMeshes = 0, this.MergeInfo.mergedLines = 0, this.MergeInfo.mergedPoints = 0, this.MergeInfo.mergedUnknownTypeObjects = 0, this.MergeInfo.elapsedTime = 0;
|
|
@@ -15657,9 +15657,9 @@ class kt {
|
|
|
15657
15657
|
*/
|
|
15658
15658
|
static applyMatrix(t, e, i) {
|
|
15659
15659
|
let s = e;
|
|
15660
|
-
for (
|
|
15660
|
+
for (js.identity(); s && s !== i && (js.premultiply(s.matrix), !!s.parent); )
|
|
15661
15661
|
s = s.parent;
|
|
15662
|
-
return
|
|
15662
|
+
return js.equals(Nh) ? t : t.applyMatrix4(js);
|
|
15663
15663
|
}
|
|
15664
15664
|
/**
|
|
15665
15665
|
* Merges geometries for lines
|
|
@@ -18513,7 +18513,7 @@ function Qi(c) {
|
|
|
18513
18513
|
}
|
|
18514
18514
|
return t;
|
|
18515
18515
|
}
|
|
18516
|
-
class
|
|
18516
|
+
class jd {
|
|
18517
18517
|
constructor() {
|
|
18518
18518
|
g(this, "ForEntityName", "SPLINE");
|
|
18519
18519
|
}
|
|
@@ -18581,7 +18581,7 @@ function es(c) {
|
|
|
18581
18581
|
}
|
|
18582
18582
|
return t;
|
|
18583
18583
|
}
|
|
18584
|
-
function
|
|
18584
|
+
function Ud(c, t, e) {
|
|
18585
18585
|
let i = c;
|
|
18586
18586
|
for (; i.code !== 304; )
|
|
18587
18587
|
switch (i.code) {
|
|
@@ -18620,7 +18620,7 @@ function Ea(c, t) {
|
|
|
18620
18620
|
break;
|
|
18621
18621
|
}
|
|
18622
18622
|
if (i.code === 301) {
|
|
18623
|
-
|
|
18623
|
+
Ud(i, e, t);
|
|
18624
18624
|
continue;
|
|
18625
18625
|
}
|
|
18626
18626
|
switch (i.code) {
|
|
@@ -19086,7 +19086,7 @@ class qd {
|
|
|
19086
19086
|
e = t.next();
|
|
19087
19087
|
break;
|
|
19088
19088
|
default:
|
|
19089
|
-
|
|
19089
|
+
Ui(s, e), e = t.next();
|
|
19090
19090
|
break;
|
|
19091
19091
|
}
|
|
19092
19092
|
if (n.length !== r.length)
|
|
@@ -19125,7 +19125,7 @@ class Yd {
|
|
|
19125
19125
|
s.resolutionUnits = e.value, e = t.next();
|
|
19126
19126
|
break;
|
|
19127
19127
|
default:
|
|
19128
|
-
|
|
19128
|
+
Ui(s, e), e = t.next();
|
|
19129
19129
|
break;
|
|
19130
19130
|
}
|
|
19131
19131
|
return s;
|
|
@@ -19201,7 +19201,7 @@ class Xd {
|
|
|
19201
19201
|
s.viewportHandle = e.value, e = t.next();
|
|
19202
19202
|
break;
|
|
19203
19203
|
default:
|
|
19204
|
-
|
|
19204
|
+
Ui(s, e), e = t.next();
|
|
19205
19205
|
break;
|
|
19206
19206
|
}
|
|
19207
19207
|
return s.blockTableHandle = s.ownerHandle, s;
|
|
@@ -19250,7 +19250,7 @@ class Zd {
|
|
|
19250
19250
|
r.push(e.value), e = t.next();
|
|
19251
19251
|
break;
|
|
19252
19252
|
default:
|
|
19253
|
-
|
|
19253
|
+
Ui(s, e), e = t.next();
|
|
19254
19254
|
break;
|
|
19255
19255
|
}
|
|
19256
19256
|
return s;
|
|
@@ -19308,7 +19308,7 @@ class Kd {
|
|
|
19308
19308
|
s.invertBlockMatrix = Ia(t, 40), s.matrix = Ia(t, 40), e = t.lastReadGroup;
|
|
19309
19309
|
break;
|
|
19310
19310
|
default:
|
|
19311
|
-
|
|
19311
|
+
Ui(s, e), e = t.next();
|
|
19312
19312
|
break;
|
|
19313
19313
|
}
|
|
19314
19314
|
return s;
|
|
@@ -19369,14 +19369,14 @@ class Jd {
|
|
|
19369
19369
|
e = t.next();
|
|
19370
19370
|
break;
|
|
19371
19371
|
default:
|
|
19372
|
-
|
|
19372
|
+
Ui(s, e), e = t.next();
|
|
19373
19373
|
break;
|
|
19374
19374
|
}
|
|
19375
19375
|
return s;
|
|
19376
19376
|
}
|
|
19377
19377
|
}
|
|
19378
19378
|
function Qd(c) {
|
|
19379
|
-
c.registerEntityHandler(sd), c.registerEntityHandler(nd), c.registerEntityHandler(ad), c.registerEntityHandler(od), c.registerEntityHandler(ld), c.registerEntityHandler(hd), c.registerEntityHandler(dd), c.registerEntityHandler(fd), c.registerEntityHandler(bd), c.registerEntityHandler(wd), c.registerEntityHandler(vd), c.registerEntityHandler(Td), c.registerEntityHandler(Sd), c.registerEntityHandler(Od), c.registerEntityHandler(_d), c.registerEntityHandler(Pd), c.registerEntityHandler(Ad), c.registerEntityHandler(Dd), c.registerEntityHandler(Rd), c.registerEntityHandler(Fd), c.registerEntityHandler(zd), c.registerEntityHandler(Vd), c.registerEntityHandler(
|
|
19379
|
+
c.registerEntityHandler(sd), c.registerEntityHandler(nd), c.registerEntityHandler(ad), c.registerEntityHandler(od), c.registerEntityHandler(ld), c.registerEntityHandler(hd), c.registerEntityHandler(dd), c.registerEntityHandler(fd), c.registerEntityHandler(bd), c.registerEntityHandler(wd), c.registerEntityHandler(vd), c.registerEntityHandler(Td), c.registerEntityHandler(Sd), c.registerEntityHandler(Od), c.registerEntityHandler(_d), c.registerEntityHandler(Pd), c.registerEntityHandler(Ad), c.registerEntityHandler(Dd), c.registerEntityHandler(Rd), c.registerEntityHandler(Fd), c.registerEntityHandler(zd), c.registerEntityHandler(Vd), c.registerEntityHandler(jd), c.registerEntityHandler(Nd), c.registerEntityHandler(Hd), c.registerEntityHandler(Gd), c.registerEntityHandler(Wd);
|
|
19380
19380
|
}
|
|
19381
19381
|
function e1(c) {
|
|
19382
19382
|
c.registerObjectHandler(qd), c.registerObjectHandler(Yd), c.registerObjectHandler(Xd), c.registerObjectHandler(Zd), c.registerObjectHandler(Kd), c.registerObjectHandler(Jd);
|
|
@@ -20021,7 +20021,7 @@ class i1 {
|
|
|
20021
20021
|
if (r === "\r" || r === `
|
|
20022
20022
|
`) {
|
|
20023
20023
|
let a = t.substring(i, s);
|
|
20024
|
-
a && a.indexOf("M+") > -1 && (a =
|
|
20024
|
+
a && a.indexOf("M+") > -1 && (a = jh(a)), a && (a = a), e.push(a), r === "\r" && t[s + 1] === `
|
|
20025
20025
|
` && s++, i = s + 1;
|
|
20026
20026
|
}
|
|
20027
20027
|
}
|
|
@@ -20303,7 +20303,7 @@ const si = class si extends Lo {
|
|
|
20303
20303
|
*/
|
|
20304
20304
|
g(si, "_instance");
|
|
20305
20305
|
let dn = si;
|
|
20306
|
-
const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vector3(0, 0, 1), Ba = new p.Vector3(0, 0, 0), Vt = 16777215, a1 = "CONTINUOUS",
|
|
20306
|
+
const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vector3(0, 0, 1), Ba = new p.Vector3(0, 0, 0), Vt = 16777215, a1 = "CONTINUOUS", Us = new p.PointsMaterial({
|
|
20307
20307
|
color: Vt
|
|
20308
20308
|
}), pe = new p.LineBasicMaterial({
|
|
20309
20309
|
color: Vt
|
|
@@ -20349,7 +20349,7 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
20349
20349
|
d.push(new p.Vector3(f.x, f.y, 0));
|
|
20350
20350
|
}
|
|
20351
20351
|
return d;
|
|
20352
|
-
},
|
|
20352
|
+
}, ja = (c, t, e, i = c.length * 2, s) => {
|
|
20353
20353
|
const n = [];
|
|
20354
20354
|
if (!c || c.length < t + 1 || t < 1) return n;
|
|
20355
20355
|
const r = c.map((a) => [a.x, a.y]);
|
|
@@ -20517,7 +20517,7 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
20517
20517
|
const r = s;
|
|
20518
20518
|
n[s.ownerHandle].push(r);
|
|
20519
20519
|
}
|
|
20520
|
-
}, i && (this.ignorePaperSpace = i.ignorePaperSpace === !0, this.enableLocalCache = i.enableLocalCache === !0, this.enableMerge = U.LOADLLDATA ? !1 : i.enableMerge !== !1, this.encoding = i.encoding || "UTF-8", i.overrideColor != null && (this.overrideColor = gs.rgb2Hex(i.overrideColor)), i.overrideHatchPatternLineThickness != null && (this.overrideHatchPatternLineThickness = i.overrideHatchPatternLineThickness)), this.pointsMaterials[Vt] =
|
|
20520
|
+
}, i && (this.ignorePaperSpace = i.ignorePaperSpace === !0, this.enableLocalCache = i.enableLocalCache === !0, this.enableMerge = U.LOADLLDATA ? !1 : i.enableMerge !== !1, this.encoding = i.encoding || "UTF-8", i.requestHeaders && (this.requestHeader = i.requestHeaders), i.overrideColor != null && (this.overrideColor = gs.rgb2Hex(i.overrideColor)), i.overrideHatchPatternLineThickness != null && (this.overrideHatchPatternLineThickness = i.overrideHatchPatternLineThickness)), this.pointsMaterials[Vt] = Us, this.lineBasicMaterials[Vt] = pe, this.meshBasicMaterials[Vt] = wi;
|
|
20521
20521
|
}
|
|
20522
20522
|
/**
|
|
20523
20523
|
* 说明:该成员与 setRequestHeader 方法未收录在发布的 d.ts 中(类型滞后),按 bundle 实现保留。
|
|
@@ -20538,11 +20538,8 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
20538
20538
|
async download(e, i) {
|
|
20539
20539
|
let s = l1(e);
|
|
20540
20540
|
if (!s) {
|
|
20541
|
-
const n = Date.now(), r = new p.FileLoader(this.manager)
|
|
20542
|
-
|
|
20543
|
-
a
|
|
20544
|
-
/* 类型桥接:d.ts 中 REQUWSTHEADER 声明为 string,three 签名要求请求头对象 */
|
|
20545
|
-
), r.setResponseType("arraybuffer"), r.setPath(this.path), s = await r.loadAsync(e, i), P.info("[Dxf] " + e + " dxf file downloaded in " + (Date.now() - n) / 1e3 + "s");
|
|
20541
|
+
const n = Date.now(), r = new p.FileLoader(this.manager);
|
|
20542
|
+
this.requestHeader && Object.keys(this.requestHeader).length > 0 && r.setRequestHeader(this.requestHeader), r.setResponseType("arraybuffer"), r.setPath(this.path), s = await r.loadAsync(e, i), P.info("[Dxf] " + e + " dxf file downloaded in " + (Date.now() - n) / 1e3 + "s");
|
|
20546
20543
|
}
|
|
20547
20544
|
return s;
|
|
20548
20545
|
}
|
|
@@ -21062,7 +21059,7 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
21062
21059
|
const E = new p.BufferGeometry().setFromPoints(y), M = new z(H.Line);
|
|
21063
21060
|
M.geometry = E, M.material = pe;
|
|
21064
21061
|
const O = new z(H.Point);
|
|
21065
|
-
return O.geometry = ka, O.material =
|
|
21062
|
+
return O.geometry = ka, O.material = Us, O.matrix.setPosition(e.center.x, e.center.y, e.center.z), O.userData.isSnapObject = !0, O.userData.type = "CircleCenter", O.layers.set(qe), M.add(O), x && (this.setRTCUserData(M), M.matrix.setPosition(w.x, w.y, 0)), M.layers.enableAll(), M;
|
|
21066
21063
|
}
|
|
21067
21064
|
// 说明:以下为源码中注释掉的 loadMText 旧实现(保真保留)。
|
|
21068
21065
|
// ['loadMText'](entity, data, parentEntity) {
|
|
@@ -21565,7 +21562,7 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
21565
21562
|
let o = 1;
|
|
21566
21563
|
const l = i;
|
|
21567
21564
|
l?.xScale && l?.yScale && (o = Math.max(Math.abs(l.xScale), Math.abs(l.yScale)));
|
|
21568
|
-
const h = Math.max(r - s, a - n), d = this.getBSplineInterpolationsPerSplineSegment(e.controlPoints.length, h * o), u =
|
|
21565
|
+
const h = Math.max(r - s, a - n), d = this.getBSplineInterpolationsPerSplineSegment(e.controlPoints.length, h * o), u = ja(e.controlPoints, e.degreeOfSplineCurve, e.knotValues, d), f = new p.Vector3();
|
|
21569
21566
|
let m = !1;
|
|
21570
21567
|
this.enableRTC && (m = N.checkAndRebasePositionsOnRTC(u, f));
|
|
21571
21568
|
const b = N.getAdjacentNonRepeatPoints(u);
|
|
@@ -21717,7 +21714,7 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
21717
21714
|
if (n.length > 0) {
|
|
21718
21715
|
a && N.checkAndRebasePositionsOnRTC(n, r);
|
|
21719
21716
|
const h = new p.BufferGeometry().setFromPoints(n), d = new z(H.Point);
|
|
21720
|
-
d.geometry = h, d.material =
|
|
21717
|
+
d.geometry = h, d.material = Us, l ? console.warn("Line has both segments and points – consider using a Group") : l = d;
|
|
21721
21718
|
}
|
|
21722
21719
|
if (l)
|
|
21723
21720
|
return a && (this.setRTCUserData(l), l.matrix.setPosition(r.x, r.y, r.z)), l.layers.enableAll(), l;
|
|
@@ -22261,7 +22258,7 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
22261
22258
|
const x = new p.Vector3(e.center?.x, e.center?.y, e.center?.z).applyMatrix4(r.invert());
|
|
22262
22259
|
w.x = x.x, w.y = x.y;
|
|
22263
22260
|
const E = w, M = new z(H.Point);
|
|
22264
|
-
return M.geometry = ka, M.material =
|
|
22261
|
+
return M.geometry = ka, M.material = Us, M.userData.handle = e.handle, M.userData.isSnapObject = !0, M.userData.type = "CircleCenter", M.layers.set(qe), C.add(M), b ? (this.setRTCUserData(C), E.x += m.x, E.y += m.y) : N.shouldRebasePositionOnRTC(E) && this.setRTCUserData(C), C.matrix.setPosition(E), C.layers.enableAll(), C;
|
|
22265
22262
|
}
|
|
22266
22263
|
addTriangleFacingCamera(e, i, s, n) {
|
|
22267
22264
|
const r = new p.Vector3(), a = new p.Vector3();
|
|
@@ -22743,7 +22740,7 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
22743
22740
|
break;
|
|
22744
22741
|
}
|
|
22745
22742
|
case Pi.Spline: {
|
|
22746
|
-
const n = e, r =
|
|
22743
|
+
const n = e, r = ja(n.controlPoints, n.degreeOfSplineCurve, n.knotValues);
|
|
22747
22744
|
if (r.length === 0) break;
|
|
22748
22745
|
e.startPoint = r[0], e.endPoint = r[r.length - 1], i.push(
|
|
22749
22746
|
...r
|
|
@@ -23874,10 +23871,6 @@ const Ge = new p.Vector3(1, 0, 0), Xn = new p.Vector3(0, 1, 0), bi = new p.Vecto
|
|
|
23874
23871
|
}
|
|
23875
23872
|
};
|
|
23876
23873
|
g(U, "MODEL_LAYOUT_NAME", "Model"), g(U, "SNAP_GROUP_NAME", "InvisibleObjectGroupForOSnap"), g(U, "SHOW_SNAP_OBJECT", !1), /**
|
|
23877
|
-
* 说明:该静态属性在 bundle 中只被读取、从未被赋值(原始拼写可能有误),
|
|
23878
|
-
* 运行时恒为 undefined;此处按原样保留。
|
|
23879
|
-
*/
|
|
23880
|
-
g(U, "REQUWSTHEADER"), /**
|
|
23881
23874
|
* 说明:以下静态字段在 bundle 中于类定义之后统一赋值,此处以字段初始化器的形式等价还原。
|
|
23882
23875
|
*/
|
|
23883
23876
|
g(U, "CameraZoomUniform", {
|
|
@@ -23900,7 +23893,7 @@ g(U, "LOADLLDATA", !1), /**
|
|
|
23900
23893
|
*/
|
|
23901
23894
|
g(U, "MaxFragmentUniforms", 1024);
|
|
23902
23895
|
let X = U;
|
|
23903
|
-
class
|
|
23896
|
+
class Ua extends hi {
|
|
23904
23897
|
constructor(e) {
|
|
23905
23898
|
super();
|
|
23906
23899
|
g(this, "viewer");
|
|
@@ -26074,7 +26067,7 @@ class I1 {
|
|
|
26074
26067
|
this.textureLoaderCache.clear(), this.materialCache.clear(), this.textureCache.clear(), this.userDataCache.clear(), this.familyInstanceIdCache.clear(), this.familyInstanceAndUserIdsCache.clear(), this.userIdAndUserDataCache.clear(), this.userBoxCache.clear();
|
|
26075
26068
|
}
|
|
26076
26069
|
}
|
|
26077
|
-
function
|
|
26070
|
+
function jo(c) {
|
|
26078
26071
|
return new TextDecoder().decode(c);
|
|
26079
26072
|
}
|
|
26080
26073
|
function Ga(c, t) {
|
|
@@ -26086,7 +26079,7 @@ function B1(c) {
|
|
|
26086
26079
|
function k1(c) {
|
|
26087
26080
|
return (c[0] << 16) + (c[1] << 8) + c[2];
|
|
26088
26081
|
}
|
|
26089
|
-
function
|
|
26082
|
+
function Uo(c) {
|
|
26090
26083
|
const t = c.BYTES_PER_ELEMENT, e = (1 << 8 * t - 1) - 1, i = 2, s = c.length / i, n = new p.Vector2(), r = new p.Vector3(), a = new Float32Array(s * 3);
|
|
26091
26084
|
for (let o = 0; o < s; o++)
|
|
26092
26085
|
n.fromArray(c, o * i), F.OctDecode(n, r, e), r.toArray(a, o * 3);
|
|
@@ -26104,7 +26097,7 @@ class Wa {
|
|
|
26104
26097
|
parseMesh(t, e, i) {
|
|
26105
26098
|
const s = e.primitive, n = e.buffers, r = this.parseTypedArray(t, n[s.position]), a = s.color ? this.parseTypedArray(t, n[s.color]) : new Float32Array(), o = s.indice ? this.parseTypedArray(t, n[s.indice]) : new Uint16Array();
|
|
26106
26099
|
let l = s.normal ? this.parseTypedArray(t, n[s.normal]) : new Float32Array();
|
|
26107
|
-
s.normal >= 0 && s.normalCompressed && (l =
|
|
26100
|
+
s.normal >= 0 && s.normalCompressed && (l = Uo(l));
|
|
26108
26101
|
const h = s.tangent ? this.parseTypedArray(t, n[s.tangent]) : new Float32Array(), d = s.uv_0 ? this.parseTypedArray(t, n[s.uv_0]) : new Float32Array(), u = s.barycentric ? this.parseTypedArray(t, n[s.barycentric]) : new Uint8Array(), f = new Array(r.length / 3);
|
|
26109
26102
|
return i.forEach((m) => {
|
|
26110
26103
|
f.fill(m.userId, m.positionStart, m.positionStart + m.positionCount);
|
|
@@ -26158,7 +26151,7 @@ const ni = class ni {
|
|
|
26158
26151
|
version: e.readUint32(),
|
|
26159
26152
|
byteLength: e.readUint64()
|
|
26160
26153
|
};
|
|
26161
|
-
const i = e.readUint32(), s = e.readUint32(), n = e.readUint32(), r = e.readUint64(), a = t.slice(i, i + s), o =
|
|
26154
|
+
const i = e.readUint32(), s = e.readUint32(), n = e.readUint32(), r = e.readUint64(), a = t.slice(i, i + s), o = jo(new Uint8Array(a, 0, s)), l = JSON.parse(o), h = t.slice(n, n + r);
|
|
26162
26155
|
return this.parseMeshes(h, l.meshes);
|
|
26163
26156
|
}
|
|
26164
26157
|
parseInstanceProto(t, e) {
|
|
@@ -26176,7 +26169,7 @@ const ni = class ni {
|
|
|
26176
26169
|
parseMesh(t, e) {
|
|
26177
26170
|
const i = e.primitive, s = e.buffers, n = this.parseTypedArray(t, s[i.position]), r = i.color ? this.parseTypedArray(t, s[i.color]) : new Float32Array(), a = i.indice ? this.parseTypedArray(t, s[i.indice]) : new Uint16Array();
|
|
26178
26171
|
let o = i.normal ? this.parseTypedArray(t, s[i.normal]) : new Float32Array();
|
|
26179
|
-
i.normal >= 0 && i.normalCompressed && (o =
|
|
26172
|
+
i.normal >= 0 && i.normalCompressed && (o = Uo(o));
|
|
26180
26173
|
const l = i.tangent ? this.parseTypedArray(t, s[i.tangent]) : new Float32Array(), h = i.uv_0 ? this.parseTypedArray(t, s[i.uv_0]) : new Float32Array(), d = i.barycentric ? this.parseTypedArray(t, s[i.barycentric]) : new Uint8Array(), u = [], f = [];
|
|
26181
26174
|
return {
|
|
26182
26175
|
type: i.type,
|
|
@@ -26216,7 +26209,7 @@ class D1 {
|
|
|
26216
26209
|
return j.isGzip(s) ? this.parseProto(s, e, i) : this.parseBinary(t, e);
|
|
26217
26210
|
}
|
|
26218
26211
|
async parseBinary(t, e) {
|
|
26219
|
-
const i = new wn(t), s = i.readUtf8String(4), n = i.readUint32(), r = i.readUint64(), a = i.readUint32(), o = i.readUint32(), l = i.readUint32(), h = i.readUint64(), d = t.slice(a, a + o), u =
|
|
26212
|
+
const i = new wn(t), s = i.readUtf8String(4), n = i.readUint32(), r = i.readUint64(), a = i.readUint32(), o = i.readUint32(), l = i.readUint32(), h = i.readUint64(), d = t.slice(a, a + o), u = jo(new Uint8Array(d, 0, o)), f = JSON.parse(u);
|
|
26220
26213
|
P.debug(
|
|
26221
26214
|
"[BimTiles] Tile, magic(" + s + "), version(" + n + "), byteLength(" + r + "), tileJson:",
|
|
26222
26215
|
f
|
|
@@ -26837,7 +26830,7 @@ class V1 {
|
|
|
26837
26830
|
}), this.element = t, this.content = e, this.element.appendChild(this.content), this.viewer.widgetContainer?.appendChild(this.element);
|
|
26838
26831
|
}
|
|
26839
26832
|
createItem(t, e) {
|
|
26840
|
-
const i = new
|
|
26833
|
+
const i = new j1(this.viewer, t);
|
|
26841
26834
|
return e === 0 && i.setActive(!0), i;
|
|
26842
26835
|
}
|
|
26843
26836
|
destroy() {
|
|
@@ -26854,7 +26847,7 @@ class V1 {
|
|
|
26854
26847
|
this.element && (this.element.style.display = "none");
|
|
26855
26848
|
}
|
|
26856
26849
|
}
|
|
26857
|
-
class
|
|
26850
|
+
class j1 {
|
|
26858
26851
|
constructor(t, e) {
|
|
26859
26852
|
g(this, "viewer");
|
|
26860
26853
|
g(this, "eventBus");
|
|
@@ -26881,7 +26874,7 @@ class U1 {
|
|
|
26881
26874
|
this.eventBus.off("activechange");
|
|
26882
26875
|
}
|
|
26883
26876
|
}
|
|
26884
|
-
class
|
|
26877
|
+
class U1 {
|
|
26885
26878
|
// 当前任务数量
|
|
26886
26879
|
constructor(t) {
|
|
26887
26880
|
g(this, "element");
|
|
@@ -27063,7 +27056,7 @@ const F0 = {
|
|
|
27063
27056
|
function nt(c) {
|
|
27064
27057
|
return c.isPerspectiveCamera;
|
|
27065
27058
|
}
|
|
27066
|
-
function
|
|
27059
|
+
function je(c) {
|
|
27067
27060
|
return c.isOrthographicCamera;
|
|
27068
27061
|
}
|
|
27069
27062
|
class N1 {
|
|
@@ -27138,7 +27131,7 @@ function Jn(c, t) {
|
|
|
27138
27131
|
}), t.x /= c.length, t.y /= c.length;
|
|
27139
27132
|
}
|
|
27140
27133
|
function Qn(c, t) {
|
|
27141
|
-
return
|
|
27134
|
+
return je(c) ? (console.warn(t + " is not supported in OrthographicCamera"), !0) : !1;
|
|
27142
27135
|
}
|
|
27143
27136
|
const qo = 1e-5, is = Math.PI / 180;
|
|
27144
27137
|
function Ii(c, t, e) {
|
|
@@ -27446,7 +27439,7 @@ class $ extends N1 {
|
|
|
27446
27439
|
if (nt(this._camera)) {
|
|
27447
27440
|
const O = Y.copy(this._camera.position).sub(this._target), S = this._camera.getEffectiveFOV() * is, v = O.length() * Math.tan(S * 0.5), T = this.truckSpeed * x * v / this._elementRect.height, _ = this.truckSpeed * E * v / this._elementRect.height;
|
|
27448
27441
|
this.verticalDragToForward ? (M ? this.setFocalOffset(this._focalOffsetEnd.x + T, this._focalOffsetEnd.y, this._focalOffsetEnd.z, !0) : this.truck(T, 0, !0), this.forward(-_, !0)) : M ? this.setFocalOffset(this._focalOffsetEnd.x + T, this._focalOffsetEnd.y + _, this._focalOffsetEnd.z, !0) : this.truck(T, _, !0);
|
|
27449
|
-
} else if (
|
|
27442
|
+
} else if (je(this._camera)) {
|
|
27450
27443
|
const O = this._camera, S = this.truckSpeed * x * (O.right - O.left) / O.zoom / this._elementRect.width, v = this.truckSpeed * E * (O.top - O.bottom) / O.zoom / this._elementRect.height;
|
|
27451
27444
|
M ? this.setFocalOffset(this._focalOffsetEnd.x + S, this._focalOffsetEnd.y + v, this._focalOffsetEnd.z, !0) : this.truck(S, v, !0);
|
|
27452
27445
|
}
|
|
@@ -27463,10 +27456,10 @@ class $ extends N1 {
|
|
|
27463
27456
|
left: L.ROTATE,
|
|
27464
27457
|
middle: L.DOLLY,
|
|
27465
27458
|
right: L.TRUCK,
|
|
27466
|
-
wheel: nt(this._camera) ? L.DOLLY :
|
|
27459
|
+
wheel: nt(this._camera) ? L.DOLLY : je(this._camera) ? L.ZOOM : L.NONE
|
|
27467
27460
|
}, this.touches = {
|
|
27468
27461
|
one: L.TOUCH_ROTATE,
|
|
27469
|
-
two: nt(this._camera) ? L.TOUCH_DOLLY_TRUCK :
|
|
27462
|
+
two: nt(this._camera) ? L.TOUCH_DOLLY_TRUCK : je(this._camera) ? L.TOUCH_ZOOM_TRUCK : L.NONE,
|
|
27470
27463
|
three: L.TOUCH_TRUCK
|
|
27471
27464
|
};
|
|
27472
27465
|
const s = new W.Vector2(), n = new W.Vector2(), r = new W.Vector2(), a = (x) => {
|
|
@@ -28028,7 +28021,7 @@ class $ extends N1 {
|
|
|
28028
28021
|
if (nt(this._camera)) {
|
|
28029
28022
|
const x = this.getDistanceToFitBox(C.x, C.y, C.z, s);
|
|
28030
28023
|
l.push(this.moveTo(w.x, w.y, w.z, i)), l.push(this.dollyTo(x, i)), l.push(this.setFocalOffset(0, 0, 0, i));
|
|
28031
|
-
} else if (
|
|
28024
|
+
} else if (je(this._camera)) {
|
|
28032
28025
|
const x = this._camera, E = x.right - x.left, M = x.top - x.bottom, O = s ? Math.max(E / C.x, M / C.y) : Math.min(E / C.x, M / C.y);
|
|
28033
28026
|
l.push(this.moveTo(w.x, w.y, w.z, i)), l.push(this.zoomTo(O, i)), l.push(this.setFocalOffset(0, 0, 0, i));
|
|
28034
28027
|
}
|
|
@@ -28045,7 +28038,7 @@ class $ extends N1 {
|
|
|
28045
28038
|
if (s.push(this.moveTo(r.center.x, r.center.y, r.center.z, i)), nt(this._camera)) {
|
|
28046
28039
|
const a = this.getDistanceToFitSphere(r.radius);
|
|
28047
28040
|
s.push(this.dollyTo(a, i));
|
|
28048
|
-
} else if (
|
|
28041
|
+
} else if (je(this._camera)) {
|
|
28049
28042
|
const a = this._camera, o = a.right - a.left, l = a.top - a.bottom, h = 2 * r.radius, d = Math.min(o / h, l / h);
|
|
28050
28043
|
s.push(this.zoomTo(d, i));
|
|
28051
28044
|
}
|
|
@@ -28309,7 +28302,7 @@ class $ extends N1 {
|
|
|
28309
28302
|
m.lengthSq() === 0 && (m.x = 1);
|
|
28310
28303
|
const b = Ti.crossVectors(m, f), y = this._sphericalEnd.radius * Math.tan(u.getEffectiveFOV() * is * 0.5), w = (this._sphericalEnd.radius - this._dollyControlAmount - this._sphericalEnd.radius) / this._sphericalEnd.radius, x = Y.copy(this._targetEnd).add(m.multiplyScalar(this._dollyControlCoord.x * y * u.aspect)).add(b.multiplyScalar(this._dollyControlCoord.y * y));
|
|
28311
28304
|
this._targetEnd.lerp(x, w);
|
|
28312
|
-
} else if (
|
|
28305
|
+
} else if (je(this._camera)) {
|
|
28313
28306
|
const u = this._camera, f = Y.set(
|
|
28314
28307
|
this._dollyControlCoord.x,
|
|
28315
28308
|
this._dollyControlCoord.y,
|
|
@@ -28427,7 +28420,7 @@ class $ extends N1 {
|
|
|
28427
28420
|
if (nt(this._camera)) {
|
|
28428
28421
|
const e = this._camera, i = e.near, s = e.getEffectiveFOV() * is, n = Math.tan(s * 0.5) * i, r = n * e.aspect;
|
|
28429
28422
|
this._nearPlaneCorners[0].set(-r, -n, 0), this._nearPlaneCorners[1].set(r, -n, 0), this._nearPlaneCorners[2].set(r, n, 0), this._nearPlaneCorners[3].set(-r, n, 0);
|
|
28430
|
-
} else if (
|
|
28423
|
+
} else if (je(this._camera)) {
|
|
28431
28424
|
const e = this._camera, i = 1 / e.zoom, s = e.left * i, n = e.right * i, r = e.top * i, a = e.bottom * i;
|
|
28432
28425
|
this._nearPlaneCorners[0].set(s, r, 0), this._nearPlaneCorners[1].set(n, r, 0), this._nearPlaneCorners[2].set(n, a, 0), this._nearPlaneCorners[3].set(s, a, 0);
|
|
28433
28426
|
}
|
|
@@ -28501,10 +28494,10 @@ class W1 {
|
|
|
28501
28494
|
left: $.ACTION.ROTATE,
|
|
28502
28495
|
middle: $.ACTION.DOLLY,
|
|
28503
28496
|
right: $.ACTION.TRUCK,
|
|
28504
|
-
wheel: nt(t) ? $.ACTION.DOLLY :
|
|
28497
|
+
wheel: nt(t) ? $.ACTION.DOLLY : je(t) ? $.ACTION.ZOOM : $.ACTION.NONE
|
|
28505
28498
|
}, e.touches = {
|
|
28506
28499
|
one: $.ACTION.TOUCH_ROTATE,
|
|
28507
|
-
two: nt(t) ? $.ACTION.TOUCH_DOLLY_TRUCK :
|
|
28500
|
+
two: nt(t) ? $.ACTION.TOUCH_DOLLY_TRUCK : je(t) ? $.ACTION.TOUCH_ZOOM_TRUCK : $.ACTION.NONE,
|
|
28508
28501
|
three: $.ACTION.TOUCH_TRUCK
|
|
28509
28502
|
}, e.dollyToCursor = !0, e.azimuthRotateSpeed = 1, e.polarRotateSpeed = 1, e.minDistance = 1, e.maxDistance = 300, e.minZoom = 3, this.cameraManager.cameraControls.truckSpeed = 2;
|
|
28510
28503
|
}
|
|
@@ -28527,10 +28520,10 @@ class q1 {
|
|
|
28527
28520
|
left: $.ACTION.TRUCK,
|
|
28528
28521
|
middle: $.ACTION.TRUCK,
|
|
28529
28522
|
right: $.ACTION.TRUCK,
|
|
28530
|
-
wheel: nt(t) ? $.ACTION.DOLLY :
|
|
28523
|
+
wheel: nt(t) ? $.ACTION.DOLLY : je(t) ? $.ACTION.ZOOM : $.ACTION.NONE
|
|
28531
28524
|
}, e.touches = {
|
|
28532
28525
|
one: $.ACTION.TOUCH_TRUCK,
|
|
28533
|
-
two: nt(t) ? $.ACTION.TOUCH_DOLLY_TRUCK :
|
|
28526
|
+
two: nt(t) ? $.ACTION.TOUCH_DOLLY_TRUCK : je(t) ? $.ACTION.TOUCH_ZOOM_TRUCK : $.ACTION.NONE,
|
|
28534
28527
|
three: $.ACTION.NONE
|
|
28535
28528
|
}, e.dollyToCursor = !0, e.azimuthRotateSpeed = 0, e.polarRotateSpeed = 0, e.truckSpeed = 1, e.maxZoom = 1 / 0, e.minZoom = -1 / 0;
|
|
28536
28529
|
}
|
|
@@ -28583,13 +28576,13 @@ class Y1 {
|
|
|
28583
28576
|
a ? n.rotate(0, -0.1, !0) : this.viewer.name === rt.Viewer2d && n.truck(0, -r, !0);
|
|
28584
28577
|
break;
|
|
28585
28578
|
case "KeyW":
|
|
28586
|
-
a && (
|
|
28579
|
+
a && (je(this.activeCamera) ? n.zoom(0.01, !0) : n.dolly(1, !0));
|
|
28587
28580
|
break;
|
|
28588
28581
|
case "KeyA":
|
|
28589
28582
|
a && n.truck(-r, 0, !0);
|
|
28590
28583
|
break;
|
|
28591
28584
|
case "KeyS":
|
|
28592
|
-
a && (
|
|
28585
|
+
a && (je(this.activeCamera) ? n.zoom(-0.01, !0) : n.dolly(-1, !0));
|
|
28593
28586
|
break;
|
|
28594
28587
|
case "KeyD":
|
|
28595
28588
|
a && n.truck(r, 0, !0);
|
|
@@ -28886,8 +28879,8 @@ const ri = class ri extends Lo {
|
|
|
28886
28879
|
* Singleton design pattern
|
|
28887
28880
|
*/
|
|
28888
28881
|
g(ri, "_instance");
|
|
28889
|
-
let
|
|
28890
|
-
var Yo = /* @__PURE__ */ ((c) => (c[c.Horizontal = 0] = "Horizontal", c[c.Vertical = 1] = "Vertical", c[c.All = 2] = "All", c))(Yo || {}),
|
|
28882
|
+
let ji = ri;
|
|
28883
|
+
var Yo = /* @__PURE__ */ ((c) => (c[c.Horizontal = 0] = "Horizontal", c[c.Vertical = 1] = "Vertical", c[c.All = 2] = "All", c))(Yo || {}), Ue = /* @__PURE__ */ ((c) => (c[c.Shapes = 0] = "Shapes", c[c.Bigfont = 1] = "Bigfont", c[c.Unifont = 2] = "Unifont", c))(Ue || {});
|
|
28891
28884
|
class Xo extends Bl {
|
|
28892
28885
|
constructor(e, i) {
|
|
28893
28886
|
super(i);
|
|
@@ -28931,13 +28924,13 @@ class Xo extends Bl {
|
|
|
28931
28924
|
async setFontDataToIndexedDb() {
|
|
28932
28925
|
const e = this.getFontFile();
|
|
28933
28926
|
return new Promise((i, s) => {
|
|
28934
|
-
|
|
28927
|
+
ji.instance().save(e, () => {
|
|
28935
28928
|
console.log("[FontFile] Saved '" + this.fileName + "' (" + this.fileHeader + ") to indexedDb"), i();
|
|
28936
28929
|
}, (n) => s("[FontFile] Failed to save '" + this.fileName + "' (" + this.fileHeader + ") to indexedDb! " + n));
|
|
28937
28930
|
});
|
|
28938
28931
|
}
|
|
28939
28932
|
async getFontDataByIndexedDb() {
|
|
28940
|
-
return
|
|
28933
|
+
return ji.instance().query(this.fileName);
|
|
28941
28934
|
}
|
|
28942
28935
|
releaseFontData() {
|
|
28943
28936
|
this.data = {};
|
|
@@ -29345,13 +29338,13 @@ const mt = class mt {
|
|
|
29345
29338
|
let d = 0, u, f = i * t.baseUp;
|
|
29346
29339
|
const m = s.clone();
|
|
29347
29340
|
switch (r.length > 1 && (n.push(r.slice()), r = []), t.fontType) {
|
|
29348
|
-
case
|
|
29341
|
+
case Ue.Shapes:
|
|
29349
29342
|
l++, d = e[l];
|
|
29350
29343
|
break;
|
|
29351
|
-
case
|
|
29344
|
+
case Ue.Bigfont:
|
|
29352
29345
|
l++, d = e[l], d == 0 && (l++, d = J.ToUInt16(new Uint8Array([e[l++], e[l++]]), 0), m.x = e[l++] * i, m.y = e[l++] * i, f = e[l] * i);
|
|
29353
29346
|
break;
|
|
29354
|
-
case
|
|
29347
|
+
case Ue.Unifont:
|
|
29355
29348
|
l += 2, d = J.ToUInt16(new Uint8Array([e[l - 1], e[l]]), 0);
|
|
29356
29349
|
break;
|
|
29357
29350
|
}
|
|
@@ -29508,13 +29501,13 @@ const mt = class mt {
|
|
|
29508
29501
|
break;
|
|
29509
29502
|
case 7:
|
|
29510
29503
|
switch (t.fontType) {
|
|
29511
|
-
case
|
|
29504
|
+
case Ue.Shapes:
|
|
29512
29505
|
i++;
|
|
29513
29506
|
break;
|
|
29514
|
-
case
|
|
29507
|
+
case Ue.Bigfont:
|
|
29515
29508
|
i++, e[i] == 0 && (i += 6);
|
|
29516
29509
|
break;
|
|
29517
|
-
case
|
|
29510
|
+
case Ue.Unifont:
|
|
29518
29511
|
i += 2;
|
|
29519
29512
|
break;
|
|
29520
29513
|
}
|
|
@@ -30271,17 +30264,17 @@ const rr = {
|
|
|
30271
30264
|
g(this, "fontType");
|
|
30272
30265
|
g(this, "textShapesCache");
|
|
30273
30266
|
g(this, "graphicData");
|
|
30274
|
-
if (this.isExtend = !1, this.isUniCode = !0, this.isEmbedded = !1, this.fontType =
|
|
30267
|
+
if (this.isExtend = !1, this.isUniCode = !0, this.isEmbedded = !1, this.fontType = Ue.Unifont, this.textShapesCache = /* @__PURE__ */ new Map(), this.graphicData = /* @__PURE__ */ new Map(), i instanceof ArrayBuffer) {
|
|
30275
30268
|
const s = new wn(i), n = Rt.parserHeader(s, Rt.FILE_STOP_FLAG), r = n.split(" ");
|
|
30276
30269
|
switch (r[1]) {
|
|
30277
30270
|
case "shapes":
|
|
30278
|
-
this.parseShapeFont(s), this.fontType =
|
|
30271
|
+
this.parseShapeFont(s), this.fontType = Ue.Shapes;
|
|
30279
30272
|
break;
|
|
30280
30273
|
case "bigfont":
|
|
30281
|
-
this.parseBigFont(s), this.fontType =
|
|
30274
|
+
this.parseBigFont(s), this.fontType = Ue.Bigfont;
|
|
30282
30275
|
break;
|
|
30283
30276
|
case "unifont":
|
|
30284
|
-
this.parseUniFont(s), this.fontType =
|
|
30277
|
+
this.parseUniFont(s), this.fontType = Ue.Unifont;
|
|
30285
30278
|
break;
|
|
30286
30279
|
}
|
|
30287
30280
|
this.fileHeader = r[0], this.fileVersion = r[2];
|
|
@@ -30409,7 +30402,7 @@ const rr = {
|
|
|
30409
30402
|
*/
|
|
30410
30403
|
getNotFoundTextShape(e) {
|
|
30411
30404
|
let i = 0;
|
|
30412
|
-
return this.fontType ===
|
|
30405
|
+
return this.fontType === Ue.Bigfont && (i = Rt.getCode("?")), this.fontType === Ue.Unifont && (i = Rt.getCode("?")), this.getGraphicDataByCode(i, e);
|
|
30413
30406
|
}
|
|
30414
30407
|
getFontFile() {
|
|
30415
30408
|
return {
|
|
@@ -30426,7 +30419,7 @@ const rr = {
|
|
|
30426
30419
|
};
|
|
30427
30420
|
}
|
|
30428
30421
|
setFontFile(e) {
|
|
30429
|
-
this.fileName = e.fileName, this.fontType = e.fontType ||
|
|
30422
|
+
this.fileName = e.fileName, this.fontType = e.fontType || Ue.Unifont, this.data = e.data, this.info = e.info, this.order = e.order, this.orientation = e.orientation, this.baseUp = e.baseUp, this.baseDown = e.baseDown, this.fileHeader = e.fileHeader, this.fileVersion = e.fileVersion;
|
|
30430
30423
|
}
|
|
30431
30424
|
releaseFontData() {
|
|
30432
30425
|
super.releaseFontData(), this.graphicData.clear(), this.textShapesCache.clear();
|
|
@@ -30627,7 +30620,7 @@ class Tt {
|
|
|
30627
30620
|
const s = t[i];
|
|
30628
30621
|
let n = null;
|
|
30629
30622
|
typeof s == "object" ? n = Object.keys(s)[0] : n = Tt.getFileName(s.toLowerCase());
|
|
30630
|
-
const r = await
|
|
30623
|
+
const r = await ji.instance().query(n);
|
|
30631
30624
|
if (r) e = !0;
|
|
30632
30625
|
else {
|
|
30633
30626
|
e = !1;
|
|
@@ -30642,7 +30635,7 @@ class Tt {
|
|
|
30642
30635
|
}
|
|
30643
30636
|
async getFontFromIndexeddb() {
|
|
30644
30637
|
if (this.fontMap.size !== 0) return;
|
|
30645
|
-
const t = (await
|
|
30638
|
+
const t = (await ji.instance().queryAll()).sort((e, i) => e.order - i.order);
|
|
30646
30639
|
for (let e = 0; e < t.length; e++) {
|
|
30647
30640
|
const i = t[e], {
|
|
30648
30641
|
fileName: s,
|
|
@@ -31175,7 +31168,7 @@ const ps = class ps {
|
|
|
31175
31168
|
return Promise.resolve(a);
|
|
31176
31169
|
}
|
|
31177
31170
|
async loadStl(t, e) {
|
|
31178
|
-
const i = new
|
|
31171
|
+
const i = new jl(this.manager), s = await i.loadAsync(t, e), n = new p.MeshStandardMaterial({
|
|
31179
31172
|
color: 11184810,
|
|
31180
31173
|
metalness: 0.1,
|
|
31181
31174
|
roughness: 0.8
|
|
@@ -31618,7 +31611,7 @@ function cu(c) {
|
|
|
31618
31611
|
distance: l
|
|
31619
31612
|
};
|
|
31620
31613
|
}
|
|
31621
|
-
class
|
|
31614
|
+
class j0 {
|
|
31622
31615
|
constructor(t) {
|
|
31623
31616
|
g(this, "drawableList", new bn("snap"));
|
|
31624
31617
|
g(this, "overlayRender");
|
|
@@ -32087,7 +32080,7 @@ class $o {
|
|
|
32087
32080
|
this.childNode.append(t);
|
|
32088
32081
|
}
|
|
32089
32082
|
}
|
|
32090
|
-
class
|
|
32083
|
+
class U0 {
|
|
32091
32084
|
constructor(t) {
|
|
32092
32085
|
g(this, "viewer");
|
|
32093
32086
|
g(this, "active", !1);
|
|
@@ -33023,7 +33016,7 @@ class Pr extends hi {
|
|
|
33023
33016
|
this.renderEnabled = !0, this.raf && (this.timeoutSymbol && this.raf.clearTimeout(this.timeoutSymbol), this.timeoutSymbol = this.raf.setTimeout(() => {
|
|
33024
33017
|
this.renderEnabled = !1;
|
|
33025
33018
|
}, i));
|
|
33026
|
-
}, this.viewerCfg = e, this.initLogLevel(), this.initLocalization(), this.container = new Go(e.containerId), e.enableProgressBar && (this.progressBar = new Wo(this.container)), this.spinner = new
|
|
33019
|
+
}, this.viewerCfg = e, this.initLogLevel(), this.initLocalization(), this.container = new Go(e.containerId), e.enableProgressBar && (this.progressBar = new Wo(this.container)), this.spinner = new U1(this.container), this.sceneManager = new gu(this), this.pickManager = new mu(this), this.overlayRender = new xn(this), this.css2dRenderer = this.initCSS2DRenderer(), this.inputManager = new pu(this.viewerContainer), this.cameraManager = new Y1(this), this.loaderHelper = new oi(), this.undoManager = new yu(), this.resize(), this.clock.start(), this.animate();
|
|
33027
33020
|
}
|
|
33028
33021
|
initLogLevel() {
|
|
33029
33022
|
const e = this.viewerCfg.logLevel;
|
|
@@ -33415,6 +33408,8 @@ class Jo extends Pr {
|
|
|
33415
33408
|
g(this, "clickHighlightList");
|
|
33416
33409
|
/** 是否启用点击实体高亮,默认关闭 */
|
|
33417
33410
|
g(this, "_enableClickHighlight", !1);
|
|
33411
|
+
/** 全局默认请求头(如认证 token),loadModel 未显式传 headers 时使用 */
|
|
33412
|
+
g(this, "requestHeaders");
|
|
33418
33413
|
/** 打印截图进行中:临时强制显示所有图符/文字,避免低缩放时被"视觉过小"逻辑隐藏 */
|
|
33419
33414
|
g(this, "_printCaptureMode", !1);
|
|
33420
33415
|
this.name = rt.Viewer2d, this.loadedModels = [], this.masterModelId = "", this.activeLayoutName = "", this.layoutInfos = {}, this.units = void 0, this.enableHideVisuallySmallObjects = e.enableHideVisuallySmallObjects !== !1, this.sortedHidableObjects = {}, this.lastCameraZoom = 1 / 0, this.loadingDxfCount = 0, e.enableLayoutBar && (this.dxfLayoutBar = new V1(this)), this.cameraManager.setProjection(St.Orthographic), this.cameraManager.setNavigationMode(yt.Plan);
|
|
@@ -33537,6 +33532,18 @@ class Jo extends Pr {
|
|
|
33537
33532
|
clearClickHighlight() {
|
|
33538
33533
|
this.clickHighlightList?.clear(), this.enableRender();
|
|
33539
33534
|
}
|
|
33535
|
+
/**
|
|
33536
|
+
* 设置后续所有 loadModel 下载 src 时附带的默认 HTTP 请求头(如认证 token)。
|
|
33537
|
+
* 传入 undefined 可清除。按次在 modelCfg.headers 中指定的请求头优先级更高。
|
|
33538
|
+
* @example
|
|
33539
|
+
* ```typescript
|
|
33540
|
+
* viewer.setRequestHeaders({ Authorization: "Bearer " + token });
|
|
33541
|
+
* await viewer.loadModel({ modelId: "a", src: "https://host/a.dxf" });
|
|
33542
|
+
* ```
|
|
33543
|
+
*/
|
|
33544
|
+
setRequestHeaders(e) {
|
|
33545
|
+
this.requestHeaders = e;
|
|
33546
|
+
}
|
|
33540
33547
|
handleMouseClick(e) {
|
|
33541
33548
|
if (!this.enableSelection) return;
|
|
33542
33549
|
const i = new p.Vector2(e.x, e.y), s = this.getWorldPositionByMousePick(i);
|
|
@@ -33619,7 +33626,8 @@ class Jo extends Pr {
|
|
|
33619
33626
|
/* 类型桥接:字段位于派生配置类型 */
|
|
33620
33627
|
enableMerge: e.merge,
|
|
33621
33628
|
encoding: e.encoding,
|
|
33622
|
-
overrideColor: e.overrideColor
|
|
33629
|
+
overrideColor: e.overrideColor,
|
|
33630
|
+
requestHeaders: e.headers ?? this.requestHeaders
|
|
33623
33631
|
}).finally(() => {
|
|
33624
33632
|
this.loadingDxfCount--, this.loadingDxfCount === 0 && this.fontManager?.releaseFontData();
|
|
33625
33633
|
}), f = u.threejsObject;
|
|
@@ -34637,7 +34645,7 @@ class H0 extends bu {
|
|
|
34637
34645
|
* 延迟到下一帧执行,确保模型已加入场景、overlay 尺寸已就绪。
|
|
34638
34646
|
*/
|
|
34639
34647
|
drawCompareBoxes() {
|
|
34640
|
-
this.changes && (this.markupManager1 ?? (this.markupManager1 = new
|
|
34648
|
+
this.changes && (this.markupManager1 ?? (this.markupManager1 = new Ua(this.viewer)), this.markupManager2 ?? (this.markupManager2 = new Ua(this.viewer2)), requestAnimationFrame(() => {
|
|
34641
34649
|
this.markupManager1?.drawCompareDrawable(this.changes), this.markupManager2?.drawCompareDrawable(this.changes), this.viewer.enableRender(), this.viewer2.enableRender();
|
|
34642
34650
|
}));
|
|
34643
34651
|
}
|
|
@@ -34865,7 +34873,7 @@ class el {
|
|
|
34865
34873
|
g(this, "bloomPass");
|
|
34866
34874
|
g(this, "unrealBloomPass");
|
|
34867
34875
|
g(this, "vertexNormalsHelpers");
|
|
34868
|
-
this.composerEnabled = !0, this.viewer = t, this.composer = new
|
|
34876
|
+
this.composerEnabled = !0, this.viewer = t, this.composer = new Ul(this.viewer.renderer), this.viewer.addEventListener(ce.AfterRender, () => this.render());
|
|
34869
34877
|
}
|
|
34870
34878
|
get enabled() {
|
|
34871
34879
|
return this.composerEnabled;
|
|
@@ -36199,7 +36207,7 @@ export {
|
|
|
36199
36207
|
We as DxfChangeType,
|
|
36200
36208
|
gt as DxfCompare,
|
|
36201
36209
|
H0 as DxfCompareHelper,
|
|
36202
|
-
|
|
36210
|
+
Ua as DxfCompareMarkupManager,
|
|
36203
36211
|
X as DxfLoader,
|
|
36204
36212
|
i1 as DxfParser,
|
|
36205
36213
|
Be as DxfRenderOrder,
|
|
@@ -36235,7 +36243,7 @@ export {
|
|
|
36235
36243
|
ys as Model2d,
|
|
36236
36244
|
Ro as Model3d,
|
|
36237
36245
|
sn as NestedCompareTypes,
|
|
36238
|
-
|
|
36246
|
+
j0 as OSnapHelper,
|
|
36239
36247
|
I0 as OSnapIconSize,
|
|
36240
36248
|
Lt as OSnapMarkerType,
|
|
36241
36249
|
au as OSnapType,
|
|
@@ -36244,7 +36252,7 @@ export {
|
|
|
36244
36252
|
G0 as Offset,
|
|
36245
36253
|
W1 as OrbitControls,
|
|
36246
36254
|
Rn as OutlineColorRgba,
|
|
36247
|
-
|
|
36255
|
+
U0 as PickMarkupHelper,
|
|
36248
36256
|
q1 as PlanControls,
|
|
36249
36257
|
Y0 as Plugin,
|
|
36250
36258
|
x0 as Points,
|
|
@@ -36257,7 +36265,7 @@ export {
|
|
|
36257
36265
|
b0 as ShaderChunk,
|
|
36258
36266
|
A0 as SimplifyUtils,
|
|
36259
36267
|
ke as SnapDrawable,
|
|
36260
|
-
|
|
36268
|
+
U1 as Spinner,
|
|
36261
36269
|
ro as TextSearchHelper,
|
|
36262
36270
|
cn as TextureUtils,
|
|
36263
36271
|
Oo as ThresholdAngleForEdge,
|