vis-core 0.30.0-beta.47 → 0.30.0-beta.48
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 +4 -4
- package/dist/index.module.js +17 -15
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
|
|
|
63
63
|
Array.prototype.at || (Array.prototype.at = function(le) {
|
|
64
64
|
return le < 0 && (le = this.length + le), this[le];
|
|
65
65
|
});
|
|
66
|
-
const version = "0.30.0-beta.
|
|
66
|
+
const version = "0.30.0-beta.48", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -54862,10 +54862,10 @@ class ws {
|
|
|
54862
54862
|
}
|
|
54863
54863
|
}
|
|
54864
54864
|
const de = 1 / 8, xs = /Mac/.test(navigator.platform);
|
|
54865
|
-
let T, Be, pe, be, R$1, w, L$1, G, ne,
|
|
54865
|
+
let T, Be, pe, be, R$1, w, L$1, G, ne, F$1, j, Z, Ve, Ye, k, ae, X, Ze, we, We, xe, Le, me;
|
|
54866
54866
|
class J extends ws {
|
|
54867
54867
|
static install(e) {
|
|
54868
|
-
T = e.THREE, Be = Object.freeze(new T.Vector3(0, 0, 0)), pe = Object.freeze(new T.Vector3(0, 1, 0)), be = Object.freeze(new T.Vector3(0, 0, 1)), R$1 = new T.Vector2(), w = new T.Vector3(), L$1 = new T.Vector3(), G = new T.Vector3(), ne = new T.Vector3(),
|
|
54868
|
+
T = e.THREE, Be = Object.freeze(new T.Vector3(0, 0, 0)), pe = Object.freeze(new T.Vector3(0, 1, 0)), be = Object.freeze(new T.Vector3(0, 0, 1)), R$1 = new T.Vector2(), w = new T.Vector3(), L$1 = new T.Vector3(), G = new T.Vector3(), ne = new T.Vector3(), F$1 = new T.Vector3(), j = new T.Vector3(), Z = new T.Vector3(), Ve = new T.Vector3(), Ye = new T.Vector3(), k = new T.Spherical(), ae = new T.Spherical(), X = new T.Box3(), Ze = new T.Box3(), we = new T.Sphere(), We = new T.Quaternion(), xe = new T.Quaternion(), Le = new T.Matrix4(), me = new T.Raycaster();
|
|
54869
54869
|
}
|
|
54870
54870
|
/**
|
|
54871
54871
|
* list all ACTIONs
|
|
@@ -55550,8 +55550,8 @@ class J extends ws {
|
|
|
55550
55550
|
* @category Methods
|
|
55551
55551
|
*/
|
|
55552
55552
|
truck(e, n, r = !1) {
|
|
55553
|
-
this._camera.updateMatrix(),
|
|
55554
|
-
const fe = w.copy(
|
|
55553
|
+
this._camera.updateMatrix(), F$1.setFromMatrixColumn(this._camera.matrix, 0), j.setFromMatrixColumn(this._camera.matrix, 1), F$1.multiplyScalar(e), j.multiplyScalar(-n);
|
|
55554
|
+
const fe = w.copy(F$1).add(j), Ce = L$1.copy(this._targetEnd).add(fe);
|
|
55555
55555
|
return this.moveTo(Ce.x, Ce.y, Ce.z, r);
|
|
55556
55556
|
}
|
|
55557
55557
|
/**
|
|
@@ -55845,9 +55845,9 @@ class J extends ws {
|
|
|
55845
55845
|
* @category Methods
|
|
55846
55846
|
*/
|
|
55847
55847
|
setOrbitPoint(e, n, r) {
|
|
55848
|
-
this._camera.updateMatrixWorld(),
|
|
55848
|
+
this._camera.updateMatrixWorld(), F$1.setFromMatrixColumn(this._camera.matrixWorldInverse, 0), j.setFromMatrixColumn(this._camera.matrixWorldInverse, 1), Z.setFromMatrixColumn(this._camera.matrixWorldInverse, 2);
|
|
55849
55849
|
const fe = w.set(e, n, r), Ce = fe.distanceTo(this._camera.position), ze = fe.sub(this._camera.position);
|
|
55850
|
-
|
|
55850
|
+
F$1.multiplyScalar(ze.x), j.multiplyScalar(ze.y), Z.multiplyScalar(ze.z), w.copy(F$1).add(j).add(Z), w.z = w.z + Ce, this.dollyTo(Ce, !1), this.setFocalOffset(-w.x, w.y, -w.z, !1), this.moveTo(e, n, r, !1);
|
|
55851
55851
|
}
|
|
55852
55852
|
/**
|
|
55853
55853
|
* Set the boundary box that encloses the target of the camera. box3 is in THREE.Box3
|
|
@@ -56137,7 +56137,7 @@ class J extends ws {
|
|
|
56137
56137
|
}
|
|
56138
56138
|
this._camera.zoom !== this._zoom && (this._camera.zoom = this._zoom, this._camera.updateProjectionMatrix(), this._updateNearPlaneCorners(), this._needsUpdate = !0), this._dragNeedsUpdate = !0;
|
|
56139
56139
|
const Fe = this._collisionTest();
|
|
56140
|
-
this._spherical.radius = Math.min(this._spherical.radius, Fe), this._spherical.makeSafe(), this._camera.position.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(this._target), this._camera.lookAt(this._target), (!A(this._focalOffset.x) || !A(this._focalOffset.y) || !A(this._focalOffset.z)) && (
|
|
56140
|
+
this._spherical.radius = Math.min(this._spherical.radius, Fe), this._spherical.makeSafe(), this._camera.position.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(this._target), this._camera.lookAt(this._target), (!A(this._focalOffset.x) || !A(this._focalOffset.y) || !A(this._focalOffset.z)) && (F$1.setFromMatrixColumn(this._camera.matrix, 0), j.setFromMatrixColumn(this._camera.matrix, 1), Z.setFromMatrixColumn(this._camera.matrix, 2), F$1.multiplyScalar(this._focalOffset.x), j.multiplyScalar(-this._focalOffset.y), Z.multiplyScalar(this._focalOffset.z), w.copy(F$1).add(j).add(Z), this._camera.position.add(w), this._camera.updateMatrixWorld()), this._boundaryEnclosesCamera && this._encloseToBoundary(
|
|
56141
56141
|
this._camera.position.copy(this._target),
|
|
56142
56142
|
w.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse),
|
|
56143
56143
|
1
|
|
@@ -56876,7 +56876,7 @@ class zs extends OutputPass {
|
|
|
56876
56876
|
}), this.fsQuad ? this.fsQuad = new FullScreenQuad(this.material) : this._fsQuad && (this._fsQuad = new FullScreenQuad(this.material));
|
|
56877
56877
|
}
|
|
56878
56878
|
}
|
|
56879
|
-
const
|
|
56879
|
+
const Fs = new MeshBasicMaterial({ color: "black" }), js = new PointsMaterial({
|
|
56880
56880
|
color: "black",
|
|
56881
56881
|
sizeAttenuation: !1
|
|
56882
56882
|
}), Ns = new PointsMaterial({
|
|
@@ -56996,7 +56996,7 @@ class Ws {
|
|
|
56996
56996
|
e.push(Ae);
|
|
56997
56997
|
return;
|
|
56998
56998
|
}
|
|
56999
|
-
this.bloomMaterials[Ae.uuid] = Ae.material, Fe.isSprite ? Fe.material.sizeAttenuation ? Fe.material = Is : Fe.material = Hs : Ae.material instanceof zt ? Ae.material = Bs : ke.isPoints ? ke.material.sizeAttenuation ? ke.material = Ns : ke.material =
|
|
56999
|
+
this.bloomMaterials[Ae.uuid] = Ae.material, Fe.isSprite ? Fe.material.sizeAttenuation ? Fe.material = Is : Fe.material = Hs : Ae.material instanceof zt ? Ae.material = Bs : ke.isPoints ? ke.material.sizeAttenuation ? ke.material = Ns : ke.material = js : Ae.material = Fs;
|
|
57000
57000
|
}
|
|
57001
57001
|
});
|
|
57002
57002
|
}), e.forEach((fe) => {
|
|
@@ -57284,7 +57284,7 @@ class Js {
|
|
|
57284
57284
|
if (Ce.setFromObject(e, !0), Ce.isEmpty() === !1) {
|
|
57285
57285
|
fe = new Box3Helper(Ce);
|
|
57286
57286
|
const ze = fe.material;
|
|
57287
|
-
ze.userData.object = e, ze.depthTest = !1, ze.transparent = !0;
|
|
57287
|
+
ze.userData.object = e, ze.userData.lastMatrixWorld = e.matrixWorld.clone(), ze.depthTest = !1, ze.transparent = !0;
|
|
57288
57288
|
} else
|
|
57289
57289
|
return;
|
|
57290
57290
|
}
|
|
@@ -57324,8 +57324,10 @@ class Js {
|
|
|
57324
57324
|
const { cameraController: ze } = this.options;
|
|
57325
57325
|
Object.values(this.helpers).forEach((Ae) => {
|
|
57326
57326
|
if (Ae.update && Ae.update(), Ae instanceof Box3Helper) {
|
|
57327
|
-
const Fe = Ae.material, { object: ke } = Fe.userData;
|
|
57328
|
-
ke &&
|
|
57327
|
+
const Fe = Ae.material, { object: ke, lastMatrixWorld: Ue } = Fe.userData;
|
|
57328
|
+
ke && !ke.matrixWorld.equals(
|
|
57329
|
+
Ue || ke.matrixWorld
|
|
57330
|
+
) && (Ae.box.setFromObject(ke, !0), Fe.userData.lastMatrixWorld = ke.matrixWorld.clone());
|
|
57329
57331
|
}
|
|
57330
57332
|
}), ((fe = this.viewHelper) == null ? void 0 : fe.animating) === !0 && (this.viewHelper.update(e), (Ce = n.cameraControls) == null || Ce.setPosition(
|
|
57331
57333
|
...ze.camera.position.toArray()
|
|
@@ -140392,7 +140394,7 @@ const Gn = class Gn {
|
|
|
140392
140394
|
changeSelectOption() {
|
|
140393
140395
|
const e = this.viewport.vis;
|
|
140394
140396
|
this._selectOptionMaps.key.clear(), this._selectOptionMaps.object = /* @__PURE__ */ new WeakMap(), this._selectOptionMaps.baseObject = /* @__PURE__ */ new WeakMap();
|
|
140395
|
-
const n = ["@Scene", "@Camera"], r = "__c__", fe = (Ce) => {
|
|
140397
|
+
const n = ["@Scene", "@Camera", "@Group", "@PrefabGroup"], r = "__c__", fe = (Ce) => {
|
|
140396
140398
|
const ze = [];
|
|
140397
140399
|
for (const Ae of Ce) {
|
|
140398
140400
|
if (Ae.userData.selectHide === !0)
|
|
@@ -145189,7 +145191,7 @@ const getLabelElement = (le) => {
|
|
|
145189
145191
|
}
|
|
145190
145192
|
this.emit("handleBack", {
|
|
145191
145193
|
adcodes: this.adcodes
|
|
145192
|
-
}), this.isAnimating = !1;
|
|
145194
|
+
}), this.emit("afterDrillBack", [...this.adcodes]), this.isAnimating = !1;
|
|
145193
145195
|
});
|
|
145194
145196
|
}
|
|
145195
145197
|
handleLookBack(n) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.30.0-beta.
|
|
1
|
+
declare const _default: "0.30.0-beta.48";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.30.0-beta.
|
|
3
|
+
"version": "0.30.0-beta.48",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"esus-lite": "^0.2.8",
|
|
65
65
|
"events": "^3.3.0",
|
|
66
66
|
"geojson-cn": "^0.2.5",
|
|
67
|
-
"gl-draw": "0.17.0-beta.
|
|
67
|
+
"gl-draw": "0.17.0-beta.31",
|
|
68
68
|
"jsrsasign": "^11.1.0",
|
|
69
69
|
"lodash-es": "^4.17.21"
|
|
70
70
|
},
|