vis-core 0.28.0-beta.6 → 0.28.0-beta.8
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 +17 -23
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
88
88
|
).toString(CryptoJS.enc.Utf8), Pe = JSON.parse(Se), Ne = Date.now();
|
|
89
89
|
return !Pe.s || Pe.s > Ne ? (this.token = void 0, "") : Pe.e && Pe.e < Ne ? (this.token = void 0, "") : (Pe.isValid = O, Pe);
|
|
90
90
|
}
|
|
91
|
-
}, version = "0.28.0-beta.
|
|
91
|
+
}, version = "0.28.0-beta.8";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -54320,15 +54320,6 @@ class As {
|
|
|
54320
54320
|
const { x: g, y: v, width: C, height: w } = t, I = (r = t.scissor) != null ? r : !1, O = (d = t.scissorTest) != null ? d : !1;
|
|
54321
54321
|
this.renderer.setViewport(g, v, C, w), I && (this.renderer.setScissor(g, v, C, w), this.renderer.setScissorTest(O));
|
|
54322
54322
|
}
|
|
54323
|
-
setViewPadding(t = 0, r = 0, d = 0, g = 0) {
|
|
54324
|
-
const { width: v, height: C } = this.renderer.getSize(new Vector2()), w = {
|
|
54325
|
-
x: g,
|
|
54326
|
-
y: d,
|
|
54327
|
-
width: v - g - r,
|
|
54328
|
-
height: C - t - d
|
|
54329
|
-
};
|
|
54330
|
-
this.setViewport(w);
|
|
54331
|
-
}
|
|
54332
54323
|
dispose() {
|
|
54333
54324
|
var t, r;
|
|
54334
54325
|
this.setSize(1, 1), (t = this.renderer) == null || t.clear(), (r = this.renderer) == null || r.dispose();
|
|
@@ -55956,7 +55947,7 @@ class pi extends ee {
|
|
|
55956
55947
|
const _e = class Pn {
|
|
55957
55948
|
constructor(t) {
|
|
55958
55949
|
var r, d;
|
|
55959
|
-
this.raycaster = new Raycaster(), this.maxBackufferArea = 5760 * 5760, this.installPlugins = /* @__PURE__ */ new Map(), this._cameraPositon = new Vector3(), this._cameraTarget = new Vector3(), this.event = new ve.EventEmitter(), this.timer = new Timer(), this.userData = {}, this.pageActiveIndex = 0, this.pageCountIndex = 0, this.userSetDprCache = 1, this.event.setMaxListeners(1 / 0), (d = (r = this.timer).connect) == null || d.call(r, document), this.options = is$1(Pn.options, t, {
|
|
55950
|
+
this.raycaster = new Raycaster(), this.maxBackufferArea = 5760 * 5760, this.installPlugins = /* @__PURE__ */ new Map(), this._cameraPositon = new Vector3(), this._cameraTarget = new Vector3(), this.event = new ve.EventEmitter(), this.timer = new Timer(), this.userData = {}, this.pageActiveIndex = 0, this.pageCountIndex = 0, this.userSetDprCache = 1, this.viewPadding = [0, 0, 0, 0], this.event.setMaxListeners(1 / 0), (d = (r = this.timer).connect) == null || d.call(r, document), this.options = is$1(Pn.options, t, {
|
|
55960
55951
|
isMergeableObject: f$1
|
|
55961
55952
|
}), this.userSetDprCache = this.options.renderer.devicePixelRatio;
|
|
55962
55953
|
const {
|
|
@@ -56155,7 +56146,7 @@ const _e = class Pn {
|
|
|
56155
56146
|
O.x === t && O.y === r || (v.setSize(t, r), g.setSize(t, r), C == null || C.setSize(t, r), w == null || w.setSize(t, r), I.setSize(t, r), this.installPlugins.forEach((ye) => {
|
|
56156
56147
|
var Se;
|
|
56157
56148
|
(Se = ye.setSize) == null || Se.call(ye, t, r);
|
|
56158
|
-
}), this.render(), d && this.event.emit("resize", { width: t, height: r }));
|
|
56149
|
+
}), this.viewPadding.some((ye) => ye !== 0) && this.setViewPadding(...this.viewPadding), this.render(), d && this.event.emit("resize", { width: t, height: r }));
|
|
56159
56150
|
}
|
|
56160
56151
|
setDevicePixelRatio(t) {
|
|
56161
56152
|
var r;
|
|
@@ -56173,6 +56164,15 @@ const _e = class Pn {
|
|
|
56173
56164
|
const w = this.renderer.getPixelRatio();
|
|
56174
56165
|
C !== w && (this.rendererController.setPixelRatio(C), (r = this.composerController) == null || r.setPixelRatio(C));
|
|
56175
56166
|
}
|
|
56167
|
+
setViewPadding(t = 0, r = 0, d = 0, g = 0) {
|
|
56168
|
+
const { width: v, height: C } = this.renderer.getSize(new Vector2()), w = {
|
|
56169
|
+
x: g,
|
|
56170
|
+
y: d,
|
|
56171
|
+
width: v - g - r,
|
|
56172
|
+
height: C - t - d
|
|
56173
|
+
};
|
|
56174
|
+
this.rendererController.setViewport(w), this.cameraController.setAspect(w.width / w.height), this.viewPadding = [t, r, d, g];
|
|
56175
|
+
}
|
|
56176
56176
|
pick(t, r, d = !0) {
|
|
56177
56177
|
const { raycaster: g, options: v } = this, { container: C } = v, w = new Vector2(), I = C.getBoundingClientRect();
|
|
56178
56178
|
if (w.x = (t.clientX - I.left) / (I.right - I.left) * 2 - 1, w.y = -((t.clientY - I.top) / (I.bottom - I.top)) * 2 + 1, this.camera && this.scene) {
|
|
@@ -60639,17 +60639,11 @@ class Base extends Camera {
|
|
|
60639
60639
|
if (r === "mouseWheel" || r === "mouseLeft" || r === "mouseRight") {
|
|
60640
60640
|
const v = r.replace("mouse", "").toLowerCase();
|
|
60641
60641
|
(d || this.playing) && (g.controls.mouseButtons[v] = d);
|
|
60642
|
-
} else
|
|
60643
|
-
|
|
60644
|
-
|
|
60645
|
-
|
|
60646
|
-
|
|
60647
|
-
}, g.controls.mouseButtons.left = Gi.NONE, g.controls.mouseButtons.right = Gi.NONE, g.controls.mouseButtons.wheel = Gi.NONE) : this.mouseButtonsActiveStore && (g.controls.mouseButtons.left = this.mouseButtonsActiveStore.mouseLeft, g.controls.mouseButtons.right = this.mouseButtonsActiveStore.mouseRight, g.controls.mouseButtons.wheel = this.mouseButtonsActiveStore.mouseWheel);
|
|
60648
|
-
else if (r === "viewportPadding") {
|
|
60649
|
-
g.rendererController.setViewPadding(...d);
|
|
60650
|
-
const v = new Vector4();
|
|
60651
|
-
g.renderer.getViewport(v), g.cameraController.setAspect(v.z / v.w);
|
|
60652
|
-
}
|
|
60642
|
+
} else r === "mouseNone" ? d ? (this.mouseButtonsActiveStore = {
|
|
60643
|
+
mouseLeft: g.controls.mouseButtons.left,
|
|
60644
|
+
mouseRight: g.controls.mouseButtons.right,
|
|
60645
|
+
mouseWheel: g.controls.mouseButtons.wheel
|
|
60646
|
+
}, g.controls.mouseButtons.left = Gi.NONE, g.controls.mouseButtons.right = Gi.NONE, g.controls.mouseButtons.wheel = Gi.NONE) : this.mouseButtonsActiveStore && (g.controls.mouseButtons.left = this.mouseButtonsActiveStore.mouseLeft, g.controls.mouseButtons.right = this.mouseButtonsActiveStore.mouseRight, g.controls.mouseButtons.wheel = this.mouseButtonsActiveStore.mouseWheel) : r === "viewportPadding" && g.setViewPadding(...d);
|
|
60653
60647
|
return d;
|
|
60654
60648
|
});
|
|
60655
60649
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.28.0-beta.
|
|
1
|
+
declare const _default: "0.28.0-beta.8";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.28.0-beta.
|
|
3
|
+
"version": "0.28.0-beta.8",
|
|
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.15.0-beta.
|
|
72
|
+
"gl-draw": "0.15.0-beta.27",
|
|
73
73
|
"jsrsasign": "^11.1.0",
|
|
74
74
|
"lodash-es": "^4.17.21"
|
|
75
75
|
},
|