vis-core 0.19.11 → 0.19.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.js +3 -3
- package/dist/index.module.js +13 -7
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -28523,6 +28523,9 @@ let zM = class {
|
|
|
28523
28523
|
setSize(t, e) {
|
|
28524
28524
|
this.renderer.setSize(t, e);
|
|
28525
28525
|
}
|
|
28526
|
+
setPixelRatio(t) {
|
|
28527
|
+
this.renderer.setPixelRatio(t);
|
|
28528
|
+
}
|
|
28526
28529
|
render(t) {
|
|
28527
28530
|
const { scene: e, camera: i } = this.options;
|
|
28528
28531
|
this.renderer.render(e, t || i);
|
|
@@ -29031,6 +29034,10 @@ class eT {
|
|
|
29031
29034
|
var i;
|
|
29032
29035
|
(i = this.bloomComposer) == null || i.setSize(t, e), this.finalComposer.setSize(t, e);
|
|
29033
29036
|
}
|
|
29037
|
+
setPixelRatio(t) {
|
|
29038
|
+
var e;
|
|
29039
|
+
(e = this.bloomComposer) == null || e.setPixelRatio(t), this.finalComposer.setPixelRatio(t);
|
|
29040
|
+
}
|
|
29034
29041
|
darkenNonBloomed() {
|
|
29035
29042
|
const t = this.scene.children.find(
|
|
29036
29043
|
(e) => e.isTransformControls
|
|
@@ -29245,6 +29252,10 @@ const KV = class kV {
|
|
|
29245
29252
|
(d = c.setSize) == null || d.call(c, t, e);
|
|
29246
29253
|
}), i && this.event.emit("resize", { width: t, height: e });
|
|
29247
29254
|
}
|
|
29255
|
+
setDevicePixelRatio(t) {
|
|
29256
|
+
var e;
|
|
29257
|
+
this.rendererController.setPixelRatio(t), (e = this.composerController) == null || e.setPixelRatio(t);
|
|
29258
|
+
}
|
|
29248
29259
|
pick(t, e, i = !0) {
|
|
29249
29260
|
const { raycaster: n, options: l } = this, { container: a } = l, o = new _(), c = a.getBoundingClientRect();
|
|
29250
29261
|
if (o.x = (t.clientX - c.left) / (c.right - c.left) * 2 - 1, o.y = -((t.clientY - c.top) / (c.bottom - c.top)) * 2 + 1, this.camera && this.scene) {
|
|
@@ -40370,7 +40381,7 @@ function ra(s) {
|
|
|
40370
40381
|
const t = new jt();
|
|
40371
40382
|
return t.color.setScalar(s), t;
|
|
40372
40383
|
}
|
|
40373
|
-
const wf = "0.19.
|
|
40384
|
+
const wf = "0.19.12";
|
|
40374
40385
|
class Fk {
|
|
40375
40386
|
constructor() {
|
|
40376
40387
|
A(this, "event", new ty());
|
|
@@ -41618,12 +41629,7 @@ class pd extends Fk {
|
|
|
41618
41629
|
return i * n * window.devicePixelRatio > 2800 * 2800 * 2 ? 1 * +l : window.devicePixelRatio * +l;
|
|
41619
41630
|
}
|
|
41620
41631
|
setDevicePixelRatio(e) {
|
|
41621
|
-
|
|
41622
|
-
if (e !== this.devicePixelRatio && this.pencil) {
|
|
41623
|
-
console.log("resize", e, devicePixelRatio), this.devicePixelRatio = e;
|
|
41624
|
-
const { width: n, height: l } = this.pencil.getSize();
|
|
41625
|
-
this.pencil.renderer.setPixelRatio(this.devicePixelRatio), (i = this.pencil.composerController) == null || i.setSize(n, l);
|
|
41626
|
-
}
|
|
41632
|
+
e !== this.devicePixelRatio && this.pencil && (console.log("resize", e, devicePixelRatio), this.devicePixelRatio = e, this.pencil.setDevicePixelRatio(e));
|
|
41627
41633
|
}
|
|
41628
41634
|
loaderAdd(...e) {
|
|
41629
41635
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.19.
|
|
1
|
+
declare const _default: "0.19.12";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.12",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"esus-lite": "^0.2.2",
|
|
67
67
|
"events": "^3.3.0",
|
|
68
68
|
"geojson-cn": "^0.1.29",
|
|
69
|
-
"gl-draw": "0.10.
|
|
69
|
+
"gl-draw": "0.10.20",
|
|
70
70
|
"jsrsasign": "^11.1.0",
|
|
71
71
|
"lodash-es": "^4.17.21"
|
|
72
72
|
},
|