vis-core 0.26.10 → 0.26.12
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/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.module.js +62 -45
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/objects/Light.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -89,7 +89,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
89
89
|
).toString(CryptoJS.enc.Utf8), De = JSON.parse(ve), yt = Date.now();
|
|
90
90
|
return !De.s || De.s > yt ? (this.token = void 0, "") : De.e && De.e < yt ? (this.token = void 0, "") : (De.isValid = Re, De);
|
|
91
91
|
}
|
|
92
|
-
}, version = "0.26.
|
|
92
|
+
}, version = "0.26.12";
|
|
93
93
|
/**
|
|
94
94
|
* @license
|
|
95
95
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -48542,7 +48542,7 @@ function te(d) {
|
|
|
48542
48542
|
function se(d) {
|
|
48543
48543
|
return Math.abs(d) < Number.MAX_VALUE ? d : d * (1 / 0);
|
|
48544
48544
|
}
|
|
48545
|
-
function
|
|
48545
|
+
function le$1(d, t, o, r, V = 1 / 0, g) {
|
|
48546
48546
|
r = Math.max(1e-4, r);
|
|
48547
48547
|
const v = 2 / r, w = v * g, _ = 1 / (1 + w + 0.48 * w * w + 0.235 * w * w * w);
|
|
48548
48548
|
let Re = d - t;
|
|
@@ -48640,7 +48640,7 @@ let Bt$1 = class {
|
|
|
48640
48640
|
}
|
|
48641
48641
|
}
|
|
48642
48642
|
};
|
|
48643
|
-
const
|
|
48643
|
+
const he$1 = 1 / 8, Zt = /Mac/.test(navigator.platform);
|
|
48644
48644
|
let x$2, ke, ce$1, Oe, z, b$1, L$1, X, ie, N, H, B, Ne, He, F, re, q, Ie, Te, je, xe, we, de, J$1 = class L1 extends Bt$1 {
|
|
48645
48645
|
/**
|
|
48646
48646
|
* Injects THREE as the dependency. You can then proceed to use CameraControls.
|
|
@@ -48936,11 +48936,11 @@ let x$2, ke, ce$1, Oe, z, b$1, L$1, X, ie, N, H, B, Ne, He, F, re, q, Ie, Te, je
|
|
|
48936
48936
|
if (V.copy(z), ((this._state & c.ROTATE) === c.ROTATE || (this._state & c.TOUCH_ROTATE) === c.TOUCH_ROTATE || (this._state & c.TOUCH_DOLLY_ROTATE) === c.TOUCH_DOLLY_ROTATE || (this._state & c.TOUCH_ZOOM_ROTATE) === c.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(Lt, Tt), this._isUserControllingRotate = !0), (this._state & c.DOLLY) === c.DOLLY || (this._state & c.ZOOM) === c.ZOOM) {
|
|
48937
48937
|
const Mt = this.dollyToCursor ? (r.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, Ht = this.dollyToCursor ? (r.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0, wt = this.dollyDragInverted ? -1 : 1;
|
|
48938
48938
|
(this._state & c.DOLLY) === c.DOLLY ? (this._dollyInternal(
|
|
48939
|
-
wt * Tt *
|
|
48939
|
+
wt * Tt * he$1,
|
|
48940
48940
|
Mt,
|
|
48941
48941
|
Ht
|
|
48942
48942
|
), this._isUserControllingDolly = !0) : (this._zoomInternal(
|
|
48943
|
-
wt * Tt *
|
|
48943
|
+
wt * Tt * he$1,
|
|
48944
48944
|
Mt,
|
|
48945
48945
|
Ht
|
|
48946
48946
|
), this._isUserControllingZoom = !0);
|
|
@@ -48949,7 +48949,7 @@ let x$2, ke, ce$1, Oe, z, b$1, L$1, X, ie, N, H, B, Ne, He, F, re, q, Ie, Te, je
|
|
|
48949
48949
|
const Mt = z.x - this._activePointers[1].clientX, Ht = z.y - this._activePointers[1].clientY, wt = Math.sqrt(Mt * Mt + Ht * Ht), Pt = g.y - wt;
|
|
48950
48950
|
g.set(0, wt);
|
|
48951
48951
|
const At = this.dollyToCursor ? (V.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, Ot = this.dollyToCursor ? (V.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
|
48952
|
-
(this._state & c.TOUCH_DOLLY) === c.TOUCH_DOLLY || (this._state & c.TOUCH_DOLLY_ROTATE) === c.TOUCH_DOLLY_ROTATE || (this._state & c.TOUCH_DOLLY_TRUCK) === c.TOUCH_DOLLY_TRUCK || (this._state & c.TOUCH_DOLLY_SCREEN_PAN) === c.TOUCH_DOLLY_SCREEN_PAN || (this._state & c.TOUCH_DOLLY_OFFSET) === c.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(Pt *
|
|
48952
|
+
(this._state & c.TOUCH_DOLLY) === c.TOUCH_DOLLY || (this._state & c.TOUCH_DOLLY_ROTATE) === c.TOUCH_DOLLY_ROTATE || (this._state & c.TOUCH_DOLLY_TRUCK) === c.TOUCH_DOLLY_TRUCK || (this._state & c.TOUCH_DOLLY_SCREEN_PAN) === c.TOUCH_DOLLY_SCREEN_PAN || (this._state & c.TOUCH_DOLLY_OFFSET) === c.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(Pt * he$1, At, Ot), this._isUserControllingDolly = !0) : (this._zoomInternal(Pt * he$1, At, Ot), this._isUserControllingZoom = !0);
|
|
48953
48953
|
}
|
|
48954
48954
|
((this._state & c.TRUCK) === c.TRUCK || (this._state & c.TOUCH_TRUCK) === c.TOUCH_TRUCK || (this._state & c.TOUCH_DOLLY_TRUCK) === c.TOUCH_DOLLY_TRUCK || (this._state & c.TOUCH_ZOOM_TRUCK) === c.TOUCH_ZOOM_TRUCK) && (this._truckInternal(Lt, Tt, !1, !1), this._isUserControllingTruck = !0), ((this._state & c.SCREEN_PAN) === c.SCREEN_PAN || (this._state & c.TOUCH_SCREEN_PAN) === c.TOUCH_SCREEN_PAN || (this._state & c.TOUCH_DOLLY_SCREEN_PAN) === c.TOUCH_DOLLY_SCREEN_PAN || (this._state & c.TOUCH_ZOOM_SCREEN_PAN) === c.TOUCH_ZOOM_SCREEN_PAN) && (this._truckInternal(Lt, Tt, !1, !0), this._isUserControllingTruck = !0), ((this._state & c.OFFSET) === c.OFFSET || (this._state & c.TOUCH_OFFSET) === c.TOUCH_OFFSET || (this._state & c.TOUCH_DOLLY_OFFSET) === c.TOUCH_DOLLY_OFFSET || (this._state & c.TOUCH_ZOOM_OFFSET) === c.TOUCH_ZOOM_OFFSET) && (this._truckInternal(Lt, Tt, !0, !1), this._isUserControllingOffset = !0), this.dispatchEvent({ type: "control" });
|
|
48955
48955
|
}, St = () => {
|
|
@@ -49845,7 +49845,7 @@ let x$2, ke, ce$1, Oe, z, b$1, L$1, X, ie, N, H, B, Ne, He, F, re, q, Ie, Te, je
|
|
|
49845
49845
|
this._thetaVelocity.value = 0, this._spherical.theta = this._sphericalEnd.theta;
|
|
49846
49846
|
else {
|
|
49847
49847
|
const Ce = this._isUserControllingRotate ? this.draggingSmoothTime : this.smoothTime;
|
|
49848
|
-
this._spherical.theta =
|
|
49848
|
+
this._spherical.theta = le$1(
|
|
49849
49849
|
this._spherical.theta,
|
|
49850
49850
|
this._sphericalEnd.theta,
|
|
49851
49851
|
this._thetaVelocity,
|
|
@@ -49858,7 +49858,7 @@ let x$2, ke, ce$1, Oe, z, b$1, L$1, X, ie, N, H, B, Ne, He, F, re, q, Ie, Te, je
|
|
|
49858
49858
|
this._phiVelocity.value = 0, this._spherical.phi = this._sphericalEnd.phi;
|
|
49859
49859
|
else {
|
|
49860
49860
|
const Ce = this._isUserControllingRotate ? this.draggingSmoothTime : this.smoothTime;
|
|
49861
|
-
this._spherical.phi =
|
|
49861
|
+
this._spherical.phi = le$1(
|
|
49862
49862
|
this._spherical.phi,
|
|
49863
49863
|
this._sphericalEnd.phi,
|
|
49864
49864
|
this._phiVelocity,
|
|
@@ -49871,7 +49871,7 @@ let x$2, ke, ce$1, Oe, z, b$1, L$1, X, ie, N, H, B, Ne, He, F, re, q, Ie, Te, je
|
|
|
49871
49871
|
this._radiusVelocity.value = 0, this._spherical.radius = this._sphericalEnd.radius;
|
|
49872
49872
|
else {
|
|
49873
49873
|
const Ce = this._isUserControllingDolly ? this.draggingSmoothTime : this.smoothTime;
|
|
49874
|
-
this._spherical.radius =
|
|
49874
|
+
this._spherical.radius = le$1(
|
|
49875
49875
|
this._spherical.radius,
|
|
49876
49876
|
this._sphericalEnd.radius,
|
|
49877
49877
|
this._radiusVelocity,
|
|
@@ -49912,7 +49912,7 @@ let x$2, ke, ce$1, Oe, z, b$1, L$1, X, ie, N, H, B, Ne, He, F, re, q, Ie, Te, je
|
|
|
49912
49912
|
this._zoomVelocity.value = 0, this._zoom = this._zoomEnd;
|
|
49913
49913
|
else {
|
|
49914
49914
|
const Ce = this._isUserControllingZoom ? this.draggingSmoothTime : this.smoothTime;
|
|
49915
|
-
this._zoom =
|
|
49915
|
+
this._zoom = le$1(
|
|
49916
49916
|
this._zoom,
|
|
49917
49917
|
this._zoomEnd,
|
|
49918
49918
|
this._zoomVelocity,
|
|
@@ -50249,7 +50249,7 @@ A.prototype.emit = function(d) {
|
|
|
50249
50249
|
if (typeof w == "function")
|
|
50250
50250
|
Ve(w, this, t);
|
|
50251
50251
|
else
|
|
50252
|
-
for (var _ = w.length, Re =
|
|
50252
|
+
for (var _ = w.length, Re = lt$1(w, _), o = 0; o < _; ++o)
|
|
50253
50253
|
Ve(Re[o], this, t);
|
|
50254
50254
|
return !0;
|
|
50255
50255
|
};
|
|
@@ -50334,7 +50334,7 @@ function nt(d, t, o) {
|
|
|
50334
50334
|
if (r === void 0)
|
|
50335
50335
|
return [];
|
|
50336
50336
|
var V = r[t];
|
|
50337
|
-
return V === void 0 ? [] : typeof V == "function" ? o ? [V.listener || V] : [V] : o ? Xt(V) :
|
|
50337
|
+
return V === void 0 ? [] : typeof V == "function" ? o ? [V.listener || V] : [V] : o ? Xt(V) : lt$1(V, V.length);
|
|
50338
50338
|
}
|
|
50339
50339
|
A.prototype.listeners = function(d) {
|
|
50340
50340
|
return nt(this, d, !0);
|
|
@@ -50360,7 +50360,7 @@ function at(d) {
|
|
|
50360
50360
|
A.prototype.eventNames = function() {
|
|
50361
50361
|
return this._eventsCount > 0 ? me(this._events) : [];
|
|
50362
50362
|
};
|
|
50363
|
-
function
|
|
50363
|
+
function lt$1(d, t) {
|
|
50364
50364
|
for (var o = new Array(t), r = 0; r < t; ++r)
|
|
50365
50365
|
o[r] = d[r];
|
|
50366
50366
|
return o;
|
|
@@ -50383,13 +50383,13 @@ function qt$1(d, t) {
|
|
|
50383
50383
|
function g() {
|
|
50384
50384
|
typeof d.removeListener == "function" && d.removeListener("error", V), o([].slice.call(arguments));
|
|
50385
50385
|
}
|
|
50386
|
-
|
|
50386
|
+
ht$1(d, t, g, { once: !0 }), t !== "error" && $t(d, V, { once: !0 });
|
|
50387
50387
|
});
|
|
50388
50388
|
}
|
|
50389
50389
|
function $t(d, t, o) {
|
|
50390
|
-
typeof d.on == "function" &&
|
|
50390
|
+
typeof d.on == "function" && ht$1(d, "error", t, o);
|
|
50391
50391
|
}
|
|
50392
|
-
function
|
|
50392
|
+
function ht$1(d, t, o, r) {
|
|
50393
50393
|
if (typeof d.on == "function")
|
|
50394
50394
|
r.once ? d.once(t, o) : d.on(t, o);
|
|
50395
50395
|
else if (typeof d.addEventListener == "function")
|
|
@@ -50535,6 +50535,12 @@ class ne {
|
|
|
50535
50535
|
}
|
|
50536
50536
|
) || [])[0], this.event.emit("pageChange", this.controller);
|
|
50537
50537
|
}
|
|
50538
|
+
update(t, o) {
|
|
50539
|
+
this.activeControllerSet.forEach((r) => {
|
|
50540
|
+
var V;
|
|
50541
|
+
(V = r.update) == null || V.call(r, t, o);
|
|
50542
|
+
});
|
|
50543
|
+
}
|
|
50538
50544
|
dispose() {
|
|
50539
50545
|
this.controllerMap.forEach((t, o) => {
|
|
50540
50546
|
t.set(0);
|
|
@@ -50762,13 +50768,11 @@ class as extends ne {
|
|
|
50762
50768
|
t.enabled = !1;
|
|
50763
50769
|
});
|
|
50764
50770
|
}
|
|
50765
|
-
update(t) {
|
|
50766
|
-
|
|
50767
|
-
o.update(t);
|
|
50768
|
-
}), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * t * MathUtils.DEG2RAD);
|
|
50771
|
+
update(t, o) {
|
|
50772
|
+
super.update(t, o), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * t * MathUtils.DEG2RAD);
|
|
50769
50773
|
}
|
|
50770
50774
|
}
|
|
50771
|
-
class
|
|
50775
|
+
class ls {
|
|
50772
50776
|
constructor(t) {
|
|
50773
50777
|
this.event = new ge.EventEmitter();
|
|
50774
50778
|
const { renderer: o, scene: r, camera: V } = t, g = new TransformControls(
|
|
@@ -50828,7 +50832,7 @@ class hs {
|
|
|
50828
50832
|
this.event.removeAllListeners(), (t = this.controls) == null || t.dispose();
|
|
50829
50833
|
}
|
|
50830
50834
|
}
|
|
50831
|
-
const Be$1 = new Vector3(),
|
|
50835
|
+
const Be$1 = new Vector3(), hs = new Quaternion(), Ze = new Vector3(), I$1 = new Matrix4(), cs = new Matrix4();
|
|
50832
50836
|
class ds {
|
|
50833
50837
|
constructor(t = {}) {
|
|
50834
50838
|
const o = this;
|
|
@@ -50882,7 +50886,7 @@ class ds {
|
|
|
50882
50886
|
if (Ht.style.display = Mt === !0 ? "" : "none", Mt === !0) {
|
|
50883
50887
|
It.onBeforeRender(o, bt, Lt);
|
|
50884
50888
|
let wt;
|
|
50885
|
-
It.isCSS3DSprite ? (I$1.copy(Lt.matrixWorldInverse), I$1.transpose(), It.rotation2D !== 0 && I$1.multiply(cs.makeRotationZ(It.rotation2D)), It.matrixWorld.decompose(Be$1,
|
|
50889
|
+
It.isCSS3DSprite ? (I$1.copy(Lt.matrixWorldInverse), I$1.transpose(), It.rotation2D !== 0 && I$1.multiply(cs.makeRotationZ(It.rotation2D)), It.matrixWorld.decompose(Be$1, hs, Ze), I$1.setPosition(Be$1), I$1.scale(Ze), I$1.elements[3] = 0, I$1.elements[7] = 0, I$1.elements[11] = 0, I$1.elements[15] = 1, wt = yt(I$1)) : wt = yt(It.matrixWorld);
|
|
50886
50890
|
const Pt = w.objects.get(It);
|
|
50887
50891
|
if (Pt === void 0 || Pt.style !== wt) {
|
|
50888
50892
|
Ht.style.transform = wt;
|
|
@@ -51243,13 +51247,14 @@ class bs {
|
|
|
51243
51247
|
const t = [], o = [];
|
|
51244
51248
|
this.scene.children.forEach((r) => {
|
|
51245
51249
|
r.isTransformControls || r.isTransformControlsRoot || r.type === "RectAreaLightHelper" ? t.push(r) : o.push(r);
|
|
51246
|
-
}), t.forEach((r) => {
|
|
51247
|
-
this.bloomVisible[r.uuid] = r.visible, r.visible = !1;
|
|
51248
51250
|
}), o.forEach((r) => {
|
|
51249
51251
|
r.traverse((V) => {
|
|
51250
|
-
|
|
51251
|
-
|
|
51252
|
+
var g;
|
|
51253
|
+
const v = V, w = V, _ = V;
|
|
51254
|
+
(g = v.material) != null && g.isShadowMaterial ? t.push(v) : v.material && this.bloomLayer.test(v.layers) === !1 && (this.bloomMaterials[v.uuid] = v.material, w.isSprite ? w.material.sizeAttenuation ? w.material = ys : w.material = Es : v.material instanceof pe$1 ? v.material = Os : _.isPoints ? _.material.sizeAttenuation ? _.material = Cs : _.material = vs$1 : v.material = gs);
|
|
51252
51255
|
});
|
|
51256
|
+
}), t.forEach((r) => {
|
|
51257
|
+
this.bloomVisible[r.uuid] = r.visible, r.visible = !1;
|
|
51253
51258
|
});
|
|
51254
51259
|
}
|
|
51255
51260
|
restoreNonBloomed() {
|
|
@@ -51868,6 +51873,11 @@ class zs extends ne {
|
|
|
51868
51873
|
o.enabled = r;
|
|
51869
51874
|
});
|
|
51870
51875
|
}
|
|
51876
|
+
setSize(t, o) {
|
|
51877
|
+
this.controllerMap.forEach((r, V) => {
|
|
51878
|
+
V.setSize(t, o);
|
|
51879
|
+
});
|
|
51880
|
+
}
|
|
51871
51881
|
}
|
|
51872
51882
|
const ue$1 = class M1 {
|
|
51873
51883
|
constructor(t) {
|
|
@@ -52022,7 +52032,7 @@ const ue$1 = class M1 {
|
|
|
52022
52032
|
}
|
|
52023
52033
|
}
|
|
52024
52034
|
initTransformControls() {
|
|
52025
|
-
const t = new
|
|
52035
|
+
const t = new ls({
|
|
52026
52036
|
camera: this.camera,
|
|
52027
52037
|
renderer: this.renderer,
|
|
52028
52038
|
scene: this.scene
|
|
@@ -52058,11 +52068,12 @@ const ue$1 = class M1 {
|
|
|
52058
52068
|
rendererController: V,
|
|
52059
52069
|
cameraController: g,
|
|
52060
52070
|
composerController: v,
|
|
52061
|
-
cssRendererController: w
|
|
52062
|
-
|
|
52063
|
-
|
|
52064
|
-
|
|
52065
|
-
|
|
52071
|
+
cssRendererController: w,
|
|
52072
|
+
leadController: _
|
|
52073
|
+
} = this, Re = this.renderer.getSize(new Vector2());
|
|
52074
|
+
Re.x === t && Re.y === o || (g.setSize(t, o), V.setSize(t, o), v == null || v.setSize(t, o), w == null || w.setSize(t, o), _.setSize(t, o), this.installPlugins.forEach((Ce) => {
|
|
52075
|
+
var ve;
|
|
52076
|
+
(ve = Ce.setSize) == null || ve.call(Ce, t, o);
|
|
52066
52077
|
}), this.render(), r && this.event.emit("resize", { width: t, height: o }));
|
|
52067
52078
|
}
|
|
52068
52079
|
setDevicePixelRatio(t) {
|
|
@@ -52098,19 +52109,19 @@ const ue$1 = class M1 {
|
|
|
52098
52109
|
}
|
|
52099
52110
|
}
|
|
52100
52111
|
render() {
|
|
52101
|
-
var t, o, r, V, g, v
|
|
52112
|
+
var t, o, r, V, g, v;
|
|
52102
52113
|
if (!this.camera || !this.scene)
|
|
52103
52114
|
return;
|
|
52104
52115
|
this.timer.update(), update();
|
|
52105
|
-
const
|
|
52106
|
-
|
|
52107
|
-
var
|
|
52108
|
-
(
|
|
52109
|
-
}), (
|
|
52110
|
-
|
|
52116
|
+
const w = this.timer.getDelta(), _ = this.timer.getElapsed();
|
|
52117
|
+
this.controlsController.update(w, _), this.leadController.update(w, _), this.installPlugins.forEach((Re) => {
|
|
52118
|
+
var Ce;
|
|
52119
|
+
(Ce = Re.update) == null || Ce.call(Re, w, _);
|
|
52120
|
+
}), (t = this.helperController) == null || t.update(
|
|
52121
|
+
w,
|
|
52111
52122
|
this.controlsController,
|
|
52112
52123
|
this.cameraTarget
|
|
52113
|
-
), (
|
|
52124
|
+
), (o = this.composerController) != null && o.active ? this.composerController.render() : (r = this.rendererController) == null || r.render(this.scene, this.camera), (V = this.helperController) == null || V.renderViewHelper(this.renderer), (g = this.cssRendererController) == null || g.render(this.scene, this.camera), (v = this.stats) == null || v.update(), this.event.emit("render", { delta: w, elapsed: _ });
|
|
52114
52125
|
}
|
|
52115
52126
|
start() {
|
|
52116
52127
|
window.cancelAnimationFrame(this.TweenRaf), this.renderer.setAnimationLoop(this.render.bind(this)), this.event.emit("start");
|
|
@@ -53298,6 +53309,12 @@ class Be extends Et {
|
|
|
53298
53309
|
}
|
|
53299
53310
|
}
|
|
53300
53311
|
class Light extends _e {
|
|
53312
|
+
update(t, o) {
|
|
53313
|
+
var V;
|
|
53314
|
+
super.update(t, o);
|
|
53315
|
+
const r = this.object3d;
|
|
53316
|
+
(V = r.shadow) != null && V.camera && (r.shadow.camera.near !== this.pencil.camera.near && (r.shadow.camera.near = this.pencil.camera.near), r.shadow.camera.far != this.pencil.camera.far && (r.shadow.camera.far = this.pencil.camera.far));
|
|
53317
|
+
}
|
|
53301
53318
|
render() {
|
|
53302
53319
|
super.render();
|
|
53303
53320
|
const t = this.object3d;
|
|
@@ -53316,15 +53333,15 @@ class Light extends _e {
|
|
|
53316
53333
|
remove: !1
|
|
53317
53334
|
}));
|
|
53318
53335
|
const V = this.object3d;
|
|
53319
|
-
V.isDirectionalLight && (V.shadow.mapSize.width =
|
|
53336
|
+
V.isDirectionalLight && (V.shadow.mapSize.width = 1024, V.shadow.mapSize.height = 1024, o.setObject3d(t.shadow.camera, r + "Shadow", {
|
|
53320
53337
|
// baseObject: this,
|
|
53321
53338
|
parent: t,
|
|
53322
53339
|
remove: !1
|
|
53323
53340
|
}));
|
|
53324
53341
|
const g = this.object3d;
|
|
53325
|
-
g.isSpotLight && g.shadow.mapSize.set(
|
|
53342
|
+
g.isSpotLight && g.shadow.mapSize.set(1024, 1024);
|
|
53326
53343
|
const v = this.object3d;
|
|
53327
|
-
v.isPointLight && (v.shadow.mapSize.width =
|
|
53344
|
+
v.isPointLight && (v.shadow.mapSize.width = 1024, v.shadow.mapSize.height = 1024);
|
|
53328
53345
|
}
|
|
53329
53346
|
}
|
|
53330
53347
|
class Point extends Et {
|
|
@@ -56810,7 +56827,7 @@ class Building extends Et {
|
|
|
56810
56827
|
},
|
|
56811
56828
|
this
|
|
56812
56829
|
);
|
|
56813
|
-
this.building[Yt] || (this.building[Yt] = []), this.building[Yt].push(Mt), Mt.position.z = Number(It) * (g || 1);
|
|
56830
|
+
this.options.grey || (Mt.object3d.castShadow = !0), this.building[Yt] || (this.building[Yt] = []), this.building[Yt].push(Mt), Mt.position.z = Number(It) * (g || 1);
|
|
56814
56831
|
}))
|
|
56815
56832
|
), this.options.sideGradient && this.sideGradient(), this.object3d.name = "建筑组", v || _.setObject3d(
|
|
56816
56833
|
this.object3d,
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.26.
|
|
1
|
+
declare const _default: "0.26.12";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.12",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && bundler",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"esus-lite": "^0.2.8",
|
|
70
70
|
"events": "^3.3.0",
|
|
71
71
|
"geojson-cn": "^0.2.5",
|
|
72
|
-
"gl-draw": "0.14.
|
|
72
|
+
"gl-draw": "0.14.13",
|
|
73
73
|
"jsrsasign": "^11.1.0",
|
|
74
74
|
"lodash-es": "^4.17.21"
|
|
75
75
|
},
|