vis-core 0.22.6 → 0.22.7
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 +11 -8
- package/dist/index.module.js +97 -75
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -90,7 +90,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
90
90
|
).toString(CryptoJS.enc.Utf8), $e = JSON.parse(_e), qe = Date.now();
|
|
91
91
|
return !$e.s || $e.s > qe ? (this.token = void 0, "") : $e.e && $e.e < qe ? (this.token = void 0, "") : ($e.isValid = Je, $e);
|
|
92
92
|
}
|
|
93
|
-
}, version = "0.22.
|
|
93
|
+
}, version = "0.22.7";
|
|
94
94
|
/**
|
|
95
95
|
* @license
|
|
96
96
|
* Copyright 2010-2024 Three.js Authors
|
|
@@ -22853,7 +22853,7 @@ a$1 && typeof a$1.ownKeys == "function" ? l$1 = a$1.ownKeys : Object.getOwnPrope
|
|
|
22853
22853
|
} : l$1 = function(c) {
|
|
22854
22854
|
return Object.getOwnPropertyNames(c);
|
|
22855
22855
|
};
|
|
22856
|
-
function C$
|
|
22856
|
+
function C$1(c) {
|
|
22857
22857
|
console && console.warn && console.warn(c);
|
|
22858
22858
|
}
|
|
22859
22859
|
var m = Number.isNaN || function(c) {
|
|
@@ -22922,7 +22922,7 @@ o$3.prototype.emit = function(c) {
|
|
|
22922
22922
|
d(Je[s], this, e);
|
|
22923
22923
|
return !0;
|
|
22924
22924
|
};
|
|
22925
|
-
function g$
|
|
22925
|
+
function g$2(c, e, s, r) {
|
|
22926
22926
|
var f, T, de;
|
|
22927
22927
|
if (v$2(s), T = c._events, T === void 0 ? (T = c._events = /* @__PURE__ */ Object.create(null), c._eventsCount = 0) : (T.newListener !== void 0 && (c.emit(
|
|
22928
22928
|
"newListener",
|
|
@@ -22933,16 +22933,16 @@ function g$1(c, e, s, r) {
|
|
|
22933
22933
|
else if (typeof de == "function" ? de = T[e] = r ? [s, de] : [de, s] : r ? de.unshift(s) : de.push(s), f = y$1(c), f > 0 && de.length > f && !de.warned) {
|
|
22934
22934
|
de.warned = !0;
|
|
22935
22935
|
var Xe = new Error("Possible EventEmitter memory leak detected. " + de.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
22936
|
-
Xe.name = "MaxListenersExceededWarning", Xe.emitter = c, Xe.type = e, Xe.count = de.length, C$
|
|
22936
|
+
Xe.name = "MaxListenersExceededWarning", Xe.emitter = c, Xe.type = e, Xe.count = de.length, C$1(Xe);
|
|
22937
22937
|
}
|
|
22938
22938
|
return c;
|
|
22939
22939
|
}
|
|
22940
22940
|
o$3.prototype.addListener = function(c, e) {
|
|
22941
|
-
return g$
|
|
22941
|
+
return g$2(this, c, e, !1);
|
|
22942
22942
|
};
|
|
22943
22943
|
o$3.prototype.on = o$3.prototype.addListener;
|
|
22944
22944
|
o$3.prototype.prependListener = function(c, e) {
|
|
22945
|
-
return g$
|
|
22945
|
+
return g$2(this, c, e, !0);
|
|
22946
22946
|
};
|
|
22947
22947
|
function j$4() {
|
|
22948
22948
|
if (!this.fired)
|
|
@@ -23052,10 +23052,10 @@ function M$4(c, e) {
|
|
|
23052
23052
|
function T() {
|
|
23053
23053
|
typeof c.removeListener == "function" && c.removeListener("error", f), s([].slice.call(arguments));
|
|
23054
23054
|
}
|
|
23055
|
-
O(c, e, T, { once: !0 }), e !== "error" && A$
|
|
23055
|
+
O(c, e, T, { once: !0 }), e !== "error" && A$2(c, f, { once: !0 });
|
|
23056
23056
|
});
|
|
23057
23057
|
}
|
|
23058
|
-
function A$
|
|
23058
|
+
function A$2(c, e, s) {
|
|
23059
23059
|
typeof c.on == "function" && O(c, "error", e, s);
|
|
23060
23060
|
}
|
|
23061
23061
|
function O(c, e, s, r) {
|
|
@@ -33638,7 +33638,39 @@ function n$1(c) {
|
|
|
33638
33638
|
const s = e.prototype;
|
|
33639
33639
|
return !(o(s) === !1 || s.hasOwnProperty("isPrototypeOf") === !1);
|
|
33640
33640
|
}
|
|
33641
|
-
|
|
33641
|
+
const g$1 = (c, e = 1) => {
|
|
33642
|
+
const s = new BufferGeometry();
|
|
33643
|
+
s.setAttribute(
|
|
33644
|
+
"position",
|
|
33645
|
+
new Float32BufferAttribute(new Array(e * 3).fill(0), 3)
|
|
33646
|
+
), s.setAttribute(
|
|
33647
|
+
"scaleAtt",
|
|
33648
|
+
new Float32BufferAttribute(new Array(e).fill(1), 1)
|
|
33649
|
+
);
|
|
33650
|
+
const r = c.material, f = new PointsMaterial({
|
|
33651
|
+
size: 10,
|
|
33652
|
+
map: r.map,
|
|
33653
|
+
alphaMap: r.alphaMap,
|
|
33654
|
+
color: r.color,
|
|
33655
|
+
blending: r.blending,
|
|
33656
|
+
depthTest: r.depthTest,
|
|
33657
|
+
depthWrite: !1,
|
|
33658
|
+
opacity: r.opacity,
|
|
33659
|
+
transparent: !0,
|
|
33660
|
+
alphaTest: r.alphaTest,
|
|
33661
|
+
sizeAttenuation: !1
|
|
33662
|
+
});
|
|
33663
|
+
return f.onBeforeCompile = (T) => {
|
|
33664
|
+
T.vertexShader = `
|
|
33665
|
+
attribute float scaleAtt;
|
|
33666
|
+
${T.vertexShader.replace(
|
|
33667
|
+
"gl_PointSize = size;",
|
|
33668
|
+
"gl_PointSize = size * scaleAtt;"
|
|
33669
|
+
)}
|
|
33670
|
+
`;
|
|
33671
|
+
}, new Points(s, f);
|
|
33672
|
+
};
|
|
33673
|
+
let A$1 = class {
|
|
33642
33674
|
constructor() {
|
|
33643
33675
|
this.objectType = "BaseObject", this.userData = {}, this.prefab = !1, this.isInstantiate = !1, this.pm = makePromiseCreator(), this.materialList = {}, this.useMaterialType = "origin", this.onPointerIndex = [];
|
|
33644
33676
|
}
|
|
@@ -33734,34 +33766,18 @@ let C$1 = class {
|
|
|
33734
33766
|
create: (s) => {
|
|
33735
33767
|
var r;
|
|
33736
33768
|
if (this.object3d) {
|
|
33737
|
-
if (this.object3d instanceof Sprite$1 && typeof e == "number")
|
|
33738
|
-
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
|
|
33743
|
-
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
"side",
|
|
33747
|
-
"depthTest",
|
|
33748
|
-
"depthWrite"
|
|
33749
|
-
];
|
|
33750
|
-
for (const Xe of de) {
|
|
33751
|
-
const Ke = this.object3d.material[Xe];
|
|
33752
|
-
Ke !== null && (T[Xe] = Ke);
|
|
33753
|
-
}
|
|
33754
|
-
s.object3d = new Mesh(
|
|
33755
|
-
new PlaneGeometry(f.x, f.y, 2, 2),
|
|
33756
|
-
T
|
|
33757
|
-
);
|
|
33769
|
+
if (this.object3d instanceof Sprite$1 && typeof e == "number")
|
|
33770
|
+
s.object3d = g$1(this.object3d, e);
|
|
33771
|
+
else if (typeof e == "number") {
|
|
33772
|
+
const f = this.object3d;
|
|
33773
|
+
s.object3d = new InstancedMesh(
|
|
33774
|
+
f.geometry,
|
|
33775
|
+
f.material,
|
|
33776
|
+
e
|
|
33777
|
+
), s.setMaterialList("instantiate", "clone"), s.useMaterial("instantiate");
|
|
33758
33778
|
} else
|
|
33759
|
-
s.object3d = this.object3d.clone(!0);
|
|
33760
|
-
|
|
33761
|
-
s.object3d.geometry,
|
|
33762
|
-
s.object3d.material,
|
|
33763
|
-
e
|
|
33764
|
-
), s.object3d.instanceMatrix.setUsage(DynamicDrawUsage)), s.position.set(0, 0, 0), s.rotation.set(0, 0, 0), s.setMaterialList("instantiate", "clone"), s.useMaterial("instantiate"), s.object3d.userData.bloom && ((r = this.pencil.composerController) == null || r.toggleBloomSelection(
|
|
33779
|
+
s.object3d = this.object3d.clone(!0), s.position.set(0, 0, 0), s.rotation.set(0, 0, 0), s.setMaterialList("instantiate", "clone"), s.useMaterial("instantiate");
|
|
33780
|
+
s.object3d.userData.bloom && ((r = this.pencil.composerController) == null || r.toggleBloomSelection(
|
|
33765
33781
|
s.object3d,
|
|
33766
33782
|
!0
|
|
33767
33783
|
)), s.object3d.userData.prefab && (s.object3d.userData.prefab = !1);
|
|
@@ -33774,7 +33790,13 @@ let C$1 = class {
|
|
|
33774
33790
|
const s = this.object3d;
|
|
33775
33791
|
Object.keys(e).forEach((r) => {
|
|
33776
33792
|
s.setMatrixAt(Number(r), e[r]);
|
|
33777
|
-
}), s.
|
|
33793
|
+
}), s.computeBoundingSphere();
|
|
33794
|
+
} else if (this.object3d instanceof Points || this.object3d.type === "Points") {
|
|
33795
|
+
const s = this.object3d.geometry, r = s.attributes.position.array, f = s.attributes.scaleAtt.array, T = new Vector3(), de = new Vector3(), Xe = new Quaternion();
|
|
33796
|
+
Object.keys(e).forEach((Ke) => {
|
|
33797
|
+
const Je = e[Ke], Qe = Number(Ke) * 3, _e = Number(Ke) * 1;
|
|
33798
|
+
Je.decompose(T, Xe, de), r[Qe] = T.x, r[Qe + 1] = T.y, r[Qe + 2] = T.z, f[_e] = Math.max(de.x, de.y, de.z);
|
|
33799
|
+
}), s.attributes.position.needsUpdate = !0, s.attributes.scaleAtt.needsUpdate = !0, s.computeBoundingSphere();
|
|
33778
33800
|
}
|
|
33779
33801
|
}
|
|
33780
33802
|
erase() {
|
|
@@ -36789,7 +36811,7 @@ ct.options = {
|
|
|
36789
36811
|
};
|
|
36790
36812
|
let Vt$1 = ct;
|
|
36791
36813
|
const Ts = q$1.ACTION;
|
|
36792
|
-
class t extends
|
|
36814
|
+
class t extends A$1 {
|
|
36793
36815
|
create() {
|
|
36794
36816
|
this.createGroup();
|
|
36795
36817
|
}
|
|
@@ -36902,7 +36924,7 @@ var kt = Object.defineProperty, Ft = Object.defineProperties, qt = Object.getOwn
|
|
|
36902
36924
|
}, Xe = (Ke) => Ke.done ? r(Ke.value) : Promise.resolve(Ke.value).then(T, de);
|
|
36903
36925
|
Xe((s = s.apply(c, e)).next());
|
|
36904
36926
|
});
|
|
36905
|
-
class Se extends
|
|
36927
|
+
class Se extends A$1 {
|
|
36906
36928
|
constructor(e) {
|
|
36907
36929
|
super(), this.objectType = "BaseObject#Node", this.onNodePointerIndex = [], this.options = P({
|
|
36908
36930
|
type: "2d"
|
|
@@ -36949,7 +36971,7 @@ class Se extends C$1 {
|
|
|
36949
36971
|
}), super.dispose();
|
|
36950
36972
|
}
|
|
36951
36973
|
}
|
|
36952
|
-
class Me extends
|
|
36974
|
+
class Me extends A$1 {
|
|
36953
36975
|
constructor(e) {
|
|
36954
36976
|
super(), this.rectAreaLightUniformsLibInit = !1, this.options = e;
|
|
36955
36977
|
}
|
|
@@ -37182,7 +37204,7 @@ const Vt = (c) => {
|
|
|
37182
37204
|
const { points: e } = c, s = e.reduce((r, f, T) => (T < e.length - 1 && r.push(f, e[T + 1]), r), []);
|
|
37183
37205
|
return new BufferGeometry().setFromPoints(s);
|
|
37184
37206
|
};
|
|
37185
|
-
let Te = class extends
|
|
37207
|
+
let Te = class extends A$1 {
|
|
37186
37208
|
constructor(c = {}) {
|
|
37187
37209
|
super(), this.options = P({}, c);
|
|
37188
37210
|
}
|
|
@@ -37339,7 +37361,7 @@ const gt = (c) => {
|
|
|
37339
37361
|
const { setPointWidth: e, nodes: s } = c, r = new he();
|
|
37340
37362
|
return r.setPoints(s, e), r;
|
|
37341
37363
|
};
|
|
37342
|
-
class Ge extends
|
|
37364
|
+
class Ge extends A$1 {
|
|
37343
37365
|
constructor(e = {}) {
|
|
37344
37366
|
super(), this.options = P({}, e);
|
|
37345
37367
|
}
|
|
@@ -37453,7 +37475,7 @@ const zt = (c) => {
|
|
|
37453
37475
|
endHeight: de
|
|
37454
37476
|
}));
|
|
37455
37477
|
};
|
|
37456
|
-
class Be extends
|
|
37478
|
+
class Be extends A$1 {
|
|
37457
37479
|
constructor(e) {
|
|
37458
37480
|
super(), this.options = P({}, e);
|
|
37459
37481
|
}
|
|
@@ -37838,7 +37860,7 @@ const Rt = (c) => {
|
|
|
37838
37860
|
});
|
|
37839
37861
|
return E(), _e;
|
|
37840
37862
|
};
|
|
37841
|
-
class je extends
|
|
37863
|
+
class je extends A$1 {
|
|
37842
37864
|
constructor(e) {
|
|
37843
37865
|
super(), this.options = P({
|
|
37844
37866
|
depth: 1
|
|
@@ -37932,7 +37954,7 @@ class Light extends Me {
|
|
|
37932
37954
|
de.isPointLight && (de.shadow.mapSize.width = 2048, de.shadow.mapSize.height = 2048);
|
|
37933
37955
|
}
|
|
37934
37956
|
}
|
|
37935
|
-
class Point extends
|
|
37957
|
+
class Point extends A$1 {
|
|
37936
37958
|
constructor(s) {
|
|
37937
37959
|
super();
|
|
37938
37960
|
k0(this, "options");
|
|
@@ -38010,7 +38032,7 @@ const M$1 = {
|
|
|
38010
38032
|
return e * c.renderer.getPixelRatio() / de.width / (1 / Ke);
|
|
38011
38033
|
};
|
|
38012
38034
|
let map;
|
|
38013
|
-
class Arc extends
|
|
38035
|
+
class Arc extends A$1 {
|
|
38014
38036
|
constructor(s) {
|
|
38015
38037
|
super();
|
|
38016
38038
|
k0(this, "options");
|
|
@@ -38170,7 +38192,7 @@ class Arc extends C$1 {
|
|
|
38170
38192
|
});
|
|
38171
38193
|
}
|
|
38172
38194
|
}
|
|
38173
|
-
class CrossPlane extends
|
|
38195
|
+
class CrossPlane extends A$1 {
|
|
38174
38196
|
constructor(s) {
|
|
38175
38197
|
super();
|
|
38176
38198
|
k0(this, "options");
|
|
@@ -38190,7 +38212,7 @@ class CrossPlane extends C$1 {
|
|
|
38190
38212
|
});
|
|
38191
38213
|
}
|
|
38192
38214
|
}
|
|
38193
|
-
class PlaneShadow extends
|
|
38215
|
+
class PlaneShadow extends A$1 {
|
|
38194
38216
|
create() {
|
|
38195
38217
|
return q0(this, null, function* () {
|
|
38196
38218
|
const e = new PlaneGeometry(100, 100, 2, 2), s = new ShadowMaterial();
|
|
@@ -38198,7 +38220,7 @@ class PlaneShadow extends C$1 {
|
|
|
38198
38220
|
});
|
|
38199
38221
|
}
|
|
38200
38222
|
}
|
|
38201
|
-
class Model extends
|
|
38223
|
+
class Model extends A$1 {
|
|
38202
38224
|
constructor(s) {
|
|
38203
38225
|
super();
|
|
38204
38226
|
k0(this, "options");
|
|
@@ -38226,25 +38248,25 @@ class Model extends C$1 {
|
|
|
38226
38248
|
});
|
|
38227
38249
|
}
|
|
38228
38250
|
}
|
|
38229
|
-
class Box extends
|
|
38251
|
+
class Box extends A$1 {
|
|
38230
38252
|
create() {
|
|
38231
38253
|
const e = new BoxGeometry(1, 1, 1, 1, 1, 1);
|
|
38232
38254
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38233
38255
|
}
|
|
38234
38256
|
}
|
|
38235
|
-
class Capsule extends
|
|
38257
|
+
class Capsule extends A$1 {
|
|
38236
38258
|
create() {
|
|
38237
38259
|
const e = new CapsuleGeometry(1, 1, 4, 8);
|
|
38238
38260
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38239
38261
|
}
|
|
38240
38262
|
}
|
|
38241
|
-
class Circle extends
|
|
38263
|
+
class Circle extends A$1 {
|
|
38242
38264
|
create() {
|
|
38243
38265
|
const e = new CircleGeometry(1, 32, 0, Math.PI * 2);
|
|
38244
38266
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38245
38267
|
}
|
|
38246
38268
|
}
|
|
38247
|
-
class Cylinder extends
|
|
38269
|
+
class Cylinder extends A$1 {
|
|
38248
38270
|
create() {
|
|
38249
38271
|
const e = new CylinderGeometry(
|
|
38250
38272
|
1,
|
|
@@ -38259,19 +38281,19 @@ class Cylinder extends C$1 {
|
|
|
38259
38281
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38260
38282
|
}
|
|
38261
38283
|
}
|
|
38262
|
-
class Dodecahedron extends
|
|
38284
|
+
class Dodecahedron extends A$1 {
|
|
38263
38285
|
create() {
|
|
38264
38286
|
const e = new DodecahedronGeometry(1, 0);
|
|
38265
38287
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38266
38288
|
}
|
|
38267
38289
|
}
|
|
38268
|
-
class Icosahedron extends
|
|
38290
|
+
class Icosahedron extends A$1 {
|
|
38269
38291
|
create() {
|
|
38270
38292
|
const e = new IcosahedronGeometry(1, 0);
|
|
38271
38293
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38272
38294
|
}
|
|
38273
38295
|
}
|
|
38274
|
-
class Lathe extends
|
|
38296
|
+
class Lathe extends A$1 {
|
|
38275
38297
|
create() {
|
|
38276
38298
|
const e = new LatheGeometry();
|
|
38277
38299
|
this.createMesh(
|
|
@@ -38280,25 +38302,25 @@ class Lathe extends C$1 {
|
|
|
38280
38302
|
), this.scale.multiplyScalar(20);
|
|
38281
38303
|
}
|
|
38282
38304
|
}
|
|
38283
|
-
class Octahedron extends
|
|
38305
|
+
class Octahedron extends A$1 {
|
|
38284
38306
|
create() {
|
|
38285
38307
|
const e = new OctahedronGeometry(1, 0);
|
|
38286
38308
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38287
38309
|
}
|
|
38288
38310
|
}
|
|
38289
|
-
class Plane extends
|
|
38311
|
+
class Plane extends A$1 {
|
|
38290
38312
|
create() {
|
|
38291
38313
|
const e = new PlaneGeometry(1, 1, 2, 2);
|
|
38292
38314
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38293
38315
|
}
|
|
38294
38316
|
}
|
|
38295
|
-
class Ring extends
|
|
38317
|
+
class Ring extends A$1 {
|
|
38296
38318
|
create() {
|
|
38297
38319
|
const e = new RingGeometry(0.5, 1, 32, 1, 0, Math.PI * 2);
|
|
38298
38320
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38299
38321
|
}
|
|
38300
38322
|
}
|
|
38301
|
-
class Sphere extends
|
|
38323
|
+
class Sphere extends A$1 {
|
|
38302
38324
|
constructor() {
|
|
38303
38325
|
super(...arguments);
|
|
38304
38326
|
k0(this, "radius", 100);
|
|
@@ -38312,7 +38334,7 @@ class Sphere extends C$1 {
|
|
|
38312
38334
|
this.createMesh(s, this.material), this.object3d.rotation.y = Math.PI / 180 * 90;
|
|
38313
38335
|
}
|
|
38314
38336
|
}
|
|
38315
|
-
class Sprite extends
|
|
38337
|
+
class Sprite extends A$1 {
|
|
38316
38338
|
create() {
|
|
38317
38339
|
this.createSprite(new SpriteMaterial()), this.scale.multiplyScalar(20);
|
|
38318
38340
|
}
|
|
@@ -38331,25 +38353,25 @@ class Sprite extends C$1 {
|
|
|
38331
38353
|
}
|
|
38332
38354
|
}
|
|
38333
38355
|
}
|
|
38334
|
-
class Tetrahedron extends
|
|
38356
|
+
class Tetrahedron extends A$1 {
|
|
38335
38357
|
create() {
|
|
38336
38358
|
const e = new TetrahedronGeometry(1, 0);
|
|
38337
38359
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38338
38360
|
}
|
|
38339
38361
|
}
|
|
38340
|
-
class Torus extends
|
|
38362
|
+
class Torus extends A$1 {
|
|
38341
38363
|
create() {
|
|
38342
38364
|
const e = new TorusGeometry(1, 0.4, 12, 48, Math.PI * 2);
|
|
38343
38365
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38344
38366
|
}
|
|
38345
38367
|
}
|
|
38346
|
-
class TorusKnot extends
|
|
38368
|
+
class TorusKnot extends A$1 {
|
|
38347
38369
|
create() {
|
|
38348
38370
|
const e = new TorusKnotGeometry(1, 0.4, 64, 8, 2, 3);
|
|
38349
38371
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38350
38372
|
}
|
|
38351
38373
|
}
|
|
38352
|
-
class Tube extends
|
|
38374
|
+
class Tube extends A$1 {
|
|
38353
38375
|
create() {
|
|
38354
38376
|
const e = new CatmullRomCurve3([
|
|
38355
38377
|
new Vector3(2, 2, -2),
|
|
@@ -124372,7 +124394,7 @@ const continentsType = Object.keys(
|
|
|
124372
124394
|
colorWrite: !1,
|
|
124373
124395
|
transparent: !0
|
|
124374
124396
|
});
|
|
124375
|
-
let PlaneMap$1 = class extends
|
|
124397
|
+
let PlaneMap$1 = class extends A$1 {
|
|
124376
124398
|
constructor(s) {
|
|
124377
124399
|
super();
|
|
124378
124400
|
k0(this, "options");
|
|
@@ -124805,7 +124827,7 @@ let PlaneMap$1 = class extends C$1 {
|
|
|
124805
124827
|
// };
|
|
124806
124828
|
// }
|
|
124807
124829
|
};
|
|
124808
|
-
class ContinentsBg extends
|
|
124830
|
+
class ContinentsBg extends A$1 {
|
|
124809
124831
|
constructor(s) {
|
|
124810
124832
|
super();
|
|
124811
124833
|
k0(this, "options");
|
|
@@ -124890,7 +124912,7 @@ class ContinentsBg extends C$1 {
|
|
|
124890
124912
|
}), this.mapArr.length = 0;
|
|
124891
124913
|
}
|
|
124892
124914
|
}
|
|
124893
|
-
class PlaneMap extends
|
|
124915
|
+
class PlaneMap extends A$1 {
|
|
124894
124916
|
constructor(s) {
|
|
124895
124917
|
super();
|
|
124896
124918
|
k0(this, "options");
|
|
@@ -126570,7 +126592,7 @@ Water.WaterShader = {
|
|
|
126570
126592
|
}`
|
|
126571
126593
|
)
|
|
126572
126594
|
};
|
|
126573
|
-
class CityPlane extends
|
|
126595
|
+
class CityPlane extends A$1 {
|
|
126574
126596
|
constructor(s) {
|
|
126575
126597
|
super();
|
|
126576
126598
|
k0(this, "options");
|
|
@@ -126642,7 +126664,7 @@ const getBoxMultiPoly = (c) => {
|
|
|
126642
126664
|
const e = c.features.map((s) => s.geometry.type === "Polygon" ? [s.geometry.coordinates] : s.geometry.coordinates).flat();
|
|
126643
126665
|
return Array.from({ length: e.length }, (s, r) => polygon(e[r]));
|
|
126644
126666
|
};
|
|
126645
|
-
class Building extends
|
|
126667
|
+
class Building extends A$1 {
|
|
126646
126668
|
constructor(s) {
|
|
126647
126669
|
super();
|
|
126648
126670
|
k0(this, "options");
|
|
@@ -126787,7 +126809,7 @@ class Building extends C$1 {
|
|
|
126787
126809
|
super.dispose(), this.outJson.clear();
|
|
126788
126810
|
}
|
|
126789
126811
|
}
|
|
126790
|
-
class Area extends
|
|
126812
|
+
class Area extends A$1 {
|
|
126791
126813
|
constructor(s) {
|
|
126792
126814
|
super();
|
|
126793
126815
|
k0(this, "options");
|
|
@@ -126875,7 +126897,7 @@ class Area extends C$1 {
|
|
|
126875
126897
|
super.dispose(), this.outJson.clear();
|
|
126876
126898
|
}
|
|
126877
126899
|
}
|
|
126878
|
-
class Road extends
|
|
126900
|
+
class Road extends A$1 {
|
|
126879
126901
|
constructor(s) {
|
|
126880
126902
|
super();
|
|
126881
126903
|
k0(this, "options");
|
|
@@ -126987,7 +127009,7 @@ function getCanvasTexture(c) {
|
|
|
126987
127009
|
const f = new CanvasTexture(e);
|
|
126988
127010
|
return f.colorSpace = SRGBColorSpace, f.wrapT = RepeatWrapping, f.magFilter = NearestFilter, f.minFilter = NearestFilter, e.remove(), f;
|
|
126989
127011
|
}
|
|
126990
|
-
class Target extends
|
|
127012
|
+
class Target extends A$1 {
|
|
126991
127013
|
constructor(s) {
|
|
126992
127014
|
super();
|
|
126993
127015
|
k0(this, "options");
|
|
@@ -128538,7 +128560,7 @@ class Earth$1 extends Sphere {
|
|
|
128538
128560
|
this.material = r, super.create(), this.rotation.y = Math.PI / 180 * -90, this.object3d.name = "地球", s.setObject3d(this.object3d, "earth");
|
|
128539
128561
|
}
|
|
128540
128562
|
}
|
|
128541
|
-
class Countries extends
|
|
128563
|
+
class Countries extends A$1 {
|
|
128542
128564
|
constructor(s) {
|
|
128543
128565
|
super();
|
|
128544
128566
|
k0(this, "options");
|
|
@@ -128659,7 +128681,7 @@ class Countries extends C$1 {
|
|
|
128659
128681
|
return de.emissive.set(r), de.emissiveIntensity = f, s.useMaterial(T), de;
|
|
128660
128682
|
}
|
|
128661
128683
|
}
|
|
128662
|
-
class SphereShadow extends
|
|
128684
|
+
class SphereShadow extends A$1 {
|
|
128663
128685
|
constructor(s) {
|
|
128664
128686
|
super();
|
|
128665
128687
|
k0(this, "options");
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.22.
|
|
1
|
+
declare const _default: "0.22.7";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && bundler",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"esus-lite": "^0.2.8",
|
|
69
69
|
"events": "^3.3.0",
|
|
70
70
|
"geojson-cn": "^0.1.30",
|
|
71
|
-
"gl-draw": "0.12.
|
|
71
|
+
"gl-draw": "0.12.5",
|
|
72
72
|
"jsrsasign": "^11.1.0",
|
|
73
73
|
"lodash-es": "^4.17.21"
|
|
74
74
|
},
|