vis-core 0.21.59 → 0.21.61
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/editor/command/SetGeometry.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/index.module.js +65 -52
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -89,7 +89,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
89
89
|
).toString(CryptoJS.enc.Utf8), Jt = JSON.parse(Tt), $t = Date.now();
|
|
90
90
|
return !Jt.s || Jt.s > $t ? (this.token = void 0, "") : Jt.e && Jt.e < $t ? (this.token = void 0, "") : (Jt.isValid = Yt, Jt);
|
|
91
91
|
}
|
|
92
|
-
}, version = "0.21.
|
|
92
|
+
}, version = "0.21.61";
|
|
93
93
|
/**
|
|
94
94
|
* @license
|
|
95
95
|
* Copyright 2010-2024 Three.js Authors
|
|
@@ -22805,7 +22805,7 @@ a$1 && typeof a$1.ownKeys == "function" ? l$1 = a$1.ownKeys : Object.getOwnPrope
|
|
|
22805
22805
|
} : l$1 = function(c) {
|
|
22806
22806
|
return Object.getOwnPropertyNames(c);
|
|
22807
22807
|
};
|
|
22808
|
-
function C$
|
|
22808
|
+
function C$2(c) {
|
|
22809
22809
|
console && console.warn && console.warn(c);
|
|
22810
22810
|
}
|
|
22811
22811
|
var m = Number.isNaN || function(c) {
|
|
@@ -22885,7 +22885,7 @@ function g(c, e, s, r) {
|
|
|
22885
22885
|
else if (typeof ct == "function" ? ct = st[e] = r ? [s, ct] : [ct, s] : r ? ct.unshift(s) : ct.push(s), f = y$1(c), f > 0 && ct.length > f && !ct.warned) {
|
|
22886
22886
|
ct.warned = !0;
|
|
22887
22887
|
var Zt = new Error("Possible EventEmitter memory leak detected. " + ct.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
22888
|
-
Zt.name = "MaxListenersExceededWarning", Zt.emitter = c, Zt.type = e, Zt.count = ct.length, C$
|
|
22888
|
+
Zt.name = "MaxListenersExceededWarning", Zt.emitter = c, Zt.type = e, Zt.count = ct.length, C$2(Zt);
|
|
22889
22889
|
}
|
|
22890
22890
|
return c;
|
|
22891
22891
|
}
|
|
@@ -28384,7 +28384,7 @@ function estimate(c, e) {
|
|
|
28384
28384
|
function vec(c) {
|
|
28385
28385
|
return new Float64Array(c);
|
|
28386
28386
|
}
|
|
28387
|
-
const ccwerrboundA = (3 + 16 * epsilon$1) * epsilon$1, ccwerrboundB = (2 + 12 * epsilon$1) * epsilon$1, ccwerrboundC = (9 + 64 * epsilon$1) * epsilon$1 * epsilon$1, B$3 = vec(4), C1 = vec(8), C2 = vec(12), D$
|
|
28387
|
+
const ccwerrboundA = (3 + 16 * epsilon$1) * epsilon$1, ccwerrboundB = (2 + 12 * epsilon$1) * epsilon$1, ccwerrboundC = (9 + 64 * epsilon$1) * epsilon$1 * epsilon$1, B$3 = vec(4), C1 = vec(8), C2 = vec(12), D$1 = vec(16), u$1 = vec(4);
|
|
28388
28388
|
function orient2dadapt(c, e, s, r, f, st, ct) {
|
|
28389
28389
|
let Zt, Wt, Yt, vt, Tt, Jt, $t, Xe, Qe, Je, de, Ke, _e, $e, qe, t0, e0, i0;
|
|
28390
28390
|
const n0 = c - f, s0 = s - f, a0 = e - st, h0 = r - st;
|
|
@@ -28396,8 +28396,8 @@ function orient2dadapt(c, e, s, r, f, st, ct) {
|
|
|
28396
28396
|
$e = n0 * vt, Jt = splitter * n0, $t = Jt - (Jt - n0), Xe = n0 - $t, Jt = splitter * vt, Qe = Jt - (Jt - vt), Je = vt - Qe, qe = Xe * Je - ($e - $t * Qe - Xe * Qe - $t * Je), t0 = a0 * Yt, Jt = splitter * a0, $t = Jt - (Jt - a0), Xe = a0 - $t, Jt = splitter * Yt, Qe = Jt - (Jt - Yt), Je = Yt - Qe, e0 = Xe * Je - (t0 - $t * Qe - Xe * Qe - $t * Je), de = qe - e0, Tt = qe - de, u$1[0] = qe - (de + Tt) + (Tt - e0), Ke = $e + de, Tt = Ke - $e, _e = $e - (Ke - Tt) + (de - Tt), de = _e - t0, Tt = _e - de, u$1[1] = _e - (de + Tt) + (Tt - t0), i0 = Ke + de, Tt = i0 - Ke, u$1[2] = Ke - (i0 - Tt) + (de - Tt), u$1[3] = i0;
|
|
28397
28397
|
const r0 = sum(u0, C1, 4, u$1, C2);
|
|
28398
28398
|
$e = Zt * vt, Jt = splitter * Zt, $t = Jt - (Jt - Zt), Xe = Zt - $t, Jt = splitter * vt, Qe = Jt - (Jt - vt), Je = vt - Qe, qe = Xe * Je - ($e - $t * Qe - Xe * Qe - $t * Je), t0 = Wt * Yt, Jt = splitter * Wt, $t = Jt - (Jt - Wt), Xe = Wt - $t, Jt = splitter * Yt, Qe = Jt - (Jt - Yt), Je = Yt - Qe, e0 = Xe * Je - (t0 - $t * Qe - Xe * Qe - $t * Je), de = qe - e0, Tt = qe - de, u$1[0] = qe - (de + Tt) + (Tt - e0), Ke = $e + de, Tt = Ke - $e, _e = $e - (Ke - Tt) + (de - Tt), de = _e - t0, Tt = _e - de, u$1[1] = _e - (de + Tt) + (Tt - t0), i0 = Ke + de, Tt = i0 - Ke, u$1[2] = Ke - (i0 - Tt) + (de - Tt), u$1[3] = i0;
|
|
28399
|
-
const d0 = sum(r0, C2, 4, u$1, D$
|
|
28400
|
-
return D$
|
|
28399
|
+
const d0 = sum(r0, C2, 4, u$1, D$1);
|
|
28400
|
+
return D$1[d0 - 1];
|
|
28401
28401
|
}
|
|
28402
28402
|
function orient2d(c, e, s, r, f, st) {
|
|
28403
28403
|
const ct = (e - st) * (s - f), Zt = (c - f) * (r - st), Wt = ct - Zt, Yt = Math.abs(ct + Zt);
|
|
@@ -33590,7 +33590,7 @@ function n$1(c) {
|
|
|
33590
33590
|
const s = e.prototype;
|
|
33591
33591
|
return !(o(s) === !1 || s.hasOwnProperty("isPrototypeOf") === !1);
|
|
33592
33592
|
}
|
|
33593
|
-
let
|
|
33593
|
+
let C$1 = class {
|
|
33594
33594
|
constructor() {
|
|
33595
33595
|
this.objectType = "BaseObject", this.userData = {}, this.prefab = !1, this.isInstantiate = !1, this.pm = makePromiseCreator(), this.materialList = {}, this.useMaterialType = "origin", this.onPointerIndex = [];
|
|
33596
33596
|
}
|
|
@@ -33669,7 +33669,8 @@ let D$1 = class {
|
|
|
33669
33669
|
return {
|
|
33670
33670
|
min: e.min,
|
|
33671
33671
|
max: e.max,
|
|
33672
|
-
size: e.getSize(new Vector3())
|
|
33672
|
+
size: e.getSize(new Vector3()),
|
|
33673
|
+
center: e.getCenter(new Vector3())
|
|
33673
33674
|
};
|
|
33674
33675
|
}
|
|
33675
33676
|
traverse(e) {
|
|
@@ -36731,7 +36732,7 @@ ht$1.options = {
|
|
|
36731
36732
|
};
|
|
36732
36733
|
let kt$1 = ht$1;
|
|
36733
36734
|
const Ts = Y.ACTION;
|
|
36734
|
-
class t extends
|
|
36735
|
+
class t extends C$1 {
|
|
36735
36736
|
create() {
|
|
36736
36737
|
this.createGroup();
|
|
36737
36738
|
}
|
|
@@ -36844,7 +36845,7 @@ var kt = Object.defineProperty, Ft = Object.defineProperties, qt = Object.getOwn
|
|
|
36844
36845
|
}, Zt = (Wt) => Wt.done ? r(Wt.value) : Promise.resolve(Wt.value).then(st, ct);
|
|
36845
36846
|
Zt((s = s.apply(c, e)).next());
|
|
36846
36847
|
});
|
|
36847
|
-
class Se extends
|
|
36848
|
+
class Se extends C$1 {
|
|
36848
36849
|
constructor(e) {
|
|
36849
36850
|
super(), this.objectType = "BaseObject#Node", this.onNodePointerIndex = [], this.options = P({
|
|
36850
36851
|
type: "2d"
|
|
@@ -36891,7 +36892,7 @@ class Se extends D$1 {
|
|
|
36891
36892
|
}), super.dispose();
|
|
36892
36893
|
}
|
|
36893
36894
|
}
|
|
36894
|
-
class Me extends
|
|
36895
|
+
class Me extends C$1 {
|
|
36895
36896
|
constructor(e) {
|
|
36896
36897
|
super(), this.rectAreaLightUniformsLibInit = !1, this.options = e;
|
|
36897
36898
|
}
|
|
@@ -37124,7 +37125,7 @@ const Vt = (c) => {
|
|
|
37124
37125
|
const { points: e } = c, s = e.reduce((r, f, st) => (st < e.length - 1 && r.push(f, e[st + 1]), r), []);
|
|
37125
37126
|
return new BufferGeometry().setFromPoints(s);
|
|
37126
37127
|
};
|
|
37127
|
-
let Te = class extends
|
|
37128
|
+
let Te = class extends C$1 {
|
|
37128
37129
|
constructor(c = {}) {
|
|
37129
37130
|
super(), this.options = P({}, c);
|
|
37130
37131
|
}
|
|
@@ -37281,7 +37282,7 @@ const gt = (c) => {
|
|
|
37281
37282
|
const { setPointWidth: e, nodes: s } = c, r = new he();
|
|
37282
37283
|
return r.setPoints(s, e), r;
|
|
37283
37284
|
};
|
|
37284
|
-
class Ge extends
|
|
37285
|
+
class Ge extends C$1 {
|
|
37285
37286
|
constructor(e = {}) {
|
|
37286
37287
|
super(), this.options = P({}, e);
|
|
37287
37288
|
}
|
|
@@ -37395,7 +37396,7 @@ const zt = (c) => {
|
|
|
37395
37396
|
endHeight: ct
|
|
37396
37397
|
}));
|
|
37397
37398
|
};
|
|
37398
|
-
class Be extends
|
|
37399
|
+
class Be extends C$1 {
|
|
37399
37400
|
constructor(e) {
|
|
37400
37401
|
super(), this.options = P({}, e);
|
|
37401
37402
|
}
|
|
@@ -37780,7 +37781,7 @@ const Rt = (c) => {
|
|
|
37780
37781
|
});
|
|
37781
37782
|
return E(), Tt;
|
|
37782
37783
|
};
|
|
37783
|
-
class je extends
|
|
37784
|
+
class je extends C$1 {
|
|
37784
37785
|
constructor(e) {
|
|
37785
37786
|
super(), this.options = P({
|
|
37786
37787
|
depth: 1
|
|
@@ -37874,7 +37875,7 @@ class Light extends Me {
|
|
|
37874
37875
|
ct.isPointLight && (ct.shadow.mapSize.width = 2048, ct.shadow.mapSize.height = 2048);
|
|
37875
37876
|
}
|
|
37876
37877
|
}
|
|
37877
|
-
class Point extends
|
|
37878
|
+
class Point extends C$1 {
|
|
37878
37879
|
constructor(s) {
|
|
37879
37880
|
super();
|
|
37880
37881
|
H0(this, "options");
|
|
@@ -37952,7 +37953,7 @@ const M$1 = {
|
|
|
37952
37953
|
return e * c.renderer.getPixelRatio() / ct.width / (1 / Wt);
|
|
37953
37954
|
};
|
|
37954
37955
|
let map;
|
|
37955
|
-
class Arc extends
|
|
37956
|
+
class Arc extends C$1 {
|
|
37956
37957
|
constructor(s) {
|
|
37957
37958
|
super();
|
|
37958
37959
|
H0(this, "options");
|
|
@@ -38112,7 +38113,7 @@ class Arc extends D$1 {
|
|
|
38112
38113
|
});
|
|
38113
38114
|
}
|
|
38114
38115
|
}
|
|
38115
|
-
class CrossPlane extends
|
|
38116
|
+
class CrossPlane extends C$1 {
|
|
38116
38117
|
constructor(s) {
|
|
38117
38118
|
super();
|
|
38118
38119
|
H0(this, "options");
|
|
@@ -38132,7 +38133,7 @@ class CrossPlane extends D$1 {
|
|
|
38132
38133
|
});
|
|
38133
38134
|
}
|
|
38134
38135
|
}
|
|
38135
|
-
class PlaneShadow extends
|
|
38136
|
+
class PlaneShadow extends C$1 {
|
|
38136
38137
|
create() {
|
|
38137
38138
|
return ti(this, null, function* () {
|
|
38138
38139
|
const e = new PlaneGeometry(100, 100, 2, 2), s = new ShadowMaterial();
|
|
@@ -38140,7 +38141,7 @@ class PlaneShadow extends D$1 {
|
|
|
38140
38141
|
});
|
|
38141
38142
|
}
|
|
38142
38143
|
}
|
|
38143
|
-
class Model extends
|
|
38144
|
+
class Model extends C$1 {
|
|
38144
38145
|
constructor(s) {
|
|
38145
38146
|
super();
|
|
38146
38147
|
H0(this, "options");
|
|
@@ -38168,25 +38169,25 @@ class Model extends D$1 {
|
|
|
38168
38169
|
});
|
|
38169
38170
|
}
|
|
38170
38171
|
}
|
|
38171
|
-
class Box extends
|
|
38172
|
+
class Box extends C$1 {
|
|
38172
38173
|
create() {
|
|
38173
38174
|
const e = new BoxGeometry(1, 1, 1, 1, 1, 1);
|
|
38174
38175
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38175
38176
|
}
|
|
38176
38177
|
}
|
|
38177
|
-
class Capsule extends
|
|
38178
|
+
class Capsule extends C$1 {
|
|
38178
38179
|
create() {
|
|
38179
38180
|
const e = new CapsuleGeometry(1, 1, 4, 8);
|
|
38180
38181
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38181
38182
|
}
|
|
38182
38183
|
}
|
|
38183
|
-
class Circle extends
|
|
38184
|
+
class Circle extends C$1 {
|
|
38184
38185
|
create() {
|
|
38185
38186
|
const e = new CircleGeometry(1, 32, 0, Math.PI * 2);
|
|
38186
38187
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38187
38188
|
}
|
|
38188
38189
|
}
|
|
38189
|
-
class Cylinder extends
|
|
38190
|
+
class Cylinder extends C$1 {
|
|
38190
38191
|
create() {
|
|
38191
38192
|
const e = new CylinderGeometry(
|
|
38192
38193
|
1,
|
|
@@ -38201,19 +38202,19 @@ class Cylinder extends D$1 {
|
|
|
38201
38202
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38202
38203
|
}
|
|
38203
38204
|
}
|
|
38204
|
-
class Dodecahedron extends
|
|
38205
|
+
class Dodecahedron extends C$1 {
|
|
38205
38206
|
create() {
|
|
38206
38207
|
const e = new DodecahedronGeometry(1, 0);
|
|
38207
38208
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38208
38209
|
}
|
|
38209
38210
|
}
|
|
38210
|
-
class Icosahedron extends
|
|
38211
|
+
class Icosahedron extends C$1 {
|
|
38211
38212
|
create() {
|
|
38212
38213
|
const e = new IcosahedronGeometry(1, 0);
|
|
38213
38214
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38214
38215
|
}
|
|
38215
38216
|
}
|
|
38216
|
-
class Lathe extends
|
|
38217
|
+
class Lathe extends C$1 {
|
|
38217
38218
|
create() {
|
|
38218
38219
|
const e = new LatheGeometry();
|
|
38219
38220
|
this.createMesh(
|
|
@@ -38222,25 +38223,25 @@ class Lathe extends D$1 {
|
|
|
38222
38223
|
), this.scale.multiplyScalar(20);
|
|
38223
38224
|
}
|
|
38224
38225
|
}
|
|
38225
|
-
class Octahedron extends
|
|
38226
|
+
class Octahedron extends C$1 {
|
|
38226
38227
|
create() {
|
|
38227
38228
|
const e = new OctahedronGeometry(1, 0);
|
|
38228
38229
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38229
38230
|
}
|
|
38230
38231
|
}
|
|
38231
|
-
class Plane extends
|
|
38232
|
+
class Plane extends C$1 {
|
|
38232
38233
|
create() {
|
|
38233
38234
|
const e = new PlaneGeometry(1, 1, 2, 2);
|
|
38234
38235
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38235
38236
|
}
|
|
38236
38237
|
}
|
|
38237
|
-
class Ring extends
|
|
38238
|
+
class Ring extends C$1 {
|
|
38238
38239
|
create() {
|
|
38239
38240
|
const e = new RingGeometry(0.5, 1, 32, 1, 0, Math.PI * 2);
|
|
38240
38241
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38241
38242
|
}
|
|
38242
38243
|
}
|
|
38243
|
-
class Sphere extends
|
|
38244
|
+
class Sphere extends C$1 {
|
|
38244
38245
|
constructor() {
|
|
38245
38246
|
super(...arguments);
|
|
38246
38247
|
H0(this, "radius", 100);
|
|
@@ -38254,7 +38255,7 @@ class Sphere extends D$1 {
|
|
|
38254
38255
|
this.createMesh(s, this.material), this.object3d.rotation.y = Math.PI / 180 * 90;
|
|
38255
38256
|
}
|
|
38256
38257
|
}
|
|
38257
|
-
class Sprite extends
|
|
38258
|
+
class Sprite extends C$1 {
|
|
38258
38259
|
create() {
|
|
38259
38260
|
this.createSprite(new SpriteMaterial()), this.scale.multiplyScalar(20);
|
|
38260
38261
|
}
|
|
@@ -38273,25 +38274,25 @@ class Sprite extends D$1 {
|
|
|
38273
38274
|
}
|
|
38274
38275
|
}
|
|
38275
38276
|
}
|
|
38276
|
-
class Tetrahedron extends
|
|
38277
|
+
class Tetrahedron extends C$1 {
|
|
38277
38278
|
create() {
|
|
38278
38279
|
const e = new TetrahedronGeometry(1, 0);
|
|
38279
38280
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38280
38281
|
}
|
|
38281
38282
|
}
|
|
38282
|
-
class Torus extends
|
|
38283
|
+
class Torus extends C$1 {
|
|
38283
38284
|
create() {
|
|
38284
38285
|
const e = new TorusGeometry(1, 0.4, 12, 48, Math.PI * 2);
|
|
38285
38286
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38286
38287
|
}
|
|
38287
38288
|
}
|
|
38288
|
-
class TorusKnot extends
|
|
38289
|
+
class TorusKnot extends C$1 {
|
|
38289
38290
|
create() {
|
|
38290
38291
|
const e = new TorusKnotGeometry(1, 0.4, 64, 8, 2, 3);
|
|
38291
38292
|
this.createMesh(e), this.scale.multiplyScalar(20);
|
|
38292
38293
|
}
|
|
38293
38294
|
}
|
|
38294
|
-
class Tube extends
|
|
38295
|
+
class Tube extends C$1 {
|
|
38295
38296
|
create() {
|
|
38296
38297
|
const e = new CatmullRomCurve3([
|
|
38297
38298
|
new Vector3(2, 2, -2),
|
|
@@ -49111,15 +49112,27 @@ class SetGeometry extends Command {
|
|
|
49111
49112
|
this.newGeometry = e.newGeometry;
|
|
49112
49113
|
}
|
|
49113
49114
|
toJSON() {
|
|
49114
|
-
var s;
|
|
49115
49115
|
const e = super.toJSON(this);
|
|
49116
|
-
return e.objectUuid = this.editor.uuidByObject(this.object), e.oldGeometry = (
|
|
49116
|
+
return e.objectUuid = this.editor.uuidByObject(this.object), e.oldGeometry = this.geometryToJSON(this.oldGeometry), e.newGeometry = this.geometryToJSON(this.newGeometry), e;
|
|
49117
49117
|
}
|
|
49118
|
-
|
|
49119
|
-
|
|
49120
|
-
|
|
49121
|
-
|
|
49118
|
+
geometryToJSON(e) {
|
|
49119
|
+
return e ? e.type === "MeshLine" ? {
|
|
49120
|
+
type: "MeshLine",
|
|
49121
|
+
points: e.points,
|
|
49122
|
+
variableWidth: !!e.widthCallback
|
|
49123
|
+
} : e.toJSON() : void 0;
|
|
49124
|
+
}
|
|
49125
|
+
parseGeometry(e) {
|
|
49126
|
+
if (!e)
|
|
49127
|
+
return;
|
|
49128
|
+
if (e.type === "MeshLine") {
|
|
49129
|
+
const f = new he();
|
|
49130
|
+
return f.setPoints(e.points, e.variableWidth ? (st) => st : void 0), f;
|
|
49122
49131
|
}
|
|
49132
|
+
return new ObjectLoader().parseGeometries([e])[e.uuid];
|
|
49133
|
+
}
|
|
49134
|
+
fromJSON(e) {
|
|
49135
|
+
super.fromJSON(e), this.object = this.editor.objectByUuid(e.objectUuid), this.oldGeometry = this.parseGeometry(e.oldGeometry), this.newGeometry = this.parseGeometry(e.newGeometry);
|
|
49123
49136
|
}
|
|
49124
49137
|
}
|
|
49125
49138
|
const Commands = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -50540,7 +50553,7 @@ const getCountriesJsonExclATA = () => countriesJsonExclATALite || (countriesJson
|
|
|
50540
50553
|
colorWrite: !1,
|
|
50541
50554
|
transparent: !0
|
|
50542
50555
|
});
|
|
50543
|
-
let PlaneMap$1 = class extends
|
|
50556
|
+
let PlaneMap$1 = class extends C$1 {
|
|
50544
50557
|
constructor(s) {
|
|
50545
50558
|
super();
|
|
50546
50559
|
H0(this, "options");
|
|
@@ -50969,7 +50982,7 @@ let PlaneMap$1 = class extends D$1 {
|
|
|
50969
50982
|
// };
|
|
50970
50983
|
// }
|
|
50971
50984
|
};
|
|
50972
|
-
class ContinentsBg extends
|
|
50985
|
+
class ContinentsBg extends C$1 {
|
|
50973
50986
|
constructor(s) {
|
|
50974
50987
|
super();
|
|
50975
50988
|
H0(this, "options");
|
|
@@ -51054,7 +51067,7 @@ class ContinentsBg extends D$1 {
|
|
|
51054
51067
|
}), this.mapArr.length = 0;
|
|
51055
51068
|
}
|
|
51056
51069
|
}
|
|
51057
|
-
class PlaneMap extends
|
|
51070
|
+
class PlaneMap extends C$1 {
|
|
51058
51071
|
constructor(s) {
|
|
51059
51072
|
super();
|
|
51060
51073
|
H0(this, "options");
|
|
@@ -52736,7 +52749,7 @@ Water.WaterShader = {
|
|
|
52736
52749
|
}`
|
|
52737
52750
|
)
|
|
52738
52751
|
};
|
|
52739
|
-
class CityPlane extends
|
|
52752
|
+
class CityPlane extends C$1 {
|
|
52740
52753
|
constructor(s) {
|
|
52741
52754
|
super();
|
|
52742
52755
|
H0(this, "options");
|
|
@@ -52808,7 +52821,7 @@ const getBoxMultiPoly = (c) => {
|
|
|
52808
52821
|
const e = c.features.map((s) => s.geometry.type === "Polygon" ? [s.geometry.coordinates] : s.geometry.coordinates).flat();
|
|
52809
52822
|
return Array.from({ length: e.length }, (s, r) => polygon(e[r]));
|
|
52810
52823
|
};
|
|
52811
|
-
class Building extends
|
|
52824
|
+
class Building extends C$1 {
|
|
52812
52825
|
constructor(s) {
|
|
52813
52826
|
super();
|
|
52814
52827
|
H0(this, "options");
|
|
@@ -52953,7 +52966,7 @@ class Building extends D$1 {
|
|
|
52953
52966
|
super.dispose(), this.outJson.clear();
|
|
52954
52967
|
}
|
|
52955
52968
|
}
|
|
52956
|
-
class Area extends
|
|
52969
|
+
class Area extends C$1 {
|
|
52957
52970
|
constructor(s) {
|
|
52958
52971
|
super();
|
|
52959
52972
|
H0(this, "options");
|
|
@@ -53041,7 +53054,7 @@ class Area extends D$1 {
|
|
|
53041
53054
|
super.dispose(), this.outJson.clear();
|
|
53042
53055
|
}
|
|
53043
53056
|
}
|
|
53044
|
-
class Road extends
|
|
53057
|
+
class Road extends C$1 {
|
|
53045
53058
|
constructor(s) {
|
|
53046
53059
|
super();
|
|
53047
53060
|
H0(this, "options");
|
|
@@ -53153,7 +53166,7 @@ function getCanvasTexture(c) {
|
|
|
53153
53166
|
const f = new CanvasTexture(e);
|
|
53154
53167
|
return f.colorSpace = SRGBColorSpace, f.wrapT = RepeatWrapping, f.magFilter = NearestFilter, f.minFilter = NearestFilter, e.remove(), f;
|
|
53155
53168
|
}
|
|
53156
|
-
class Target extends
|
|
53169
|
+
class Target extends C$1 {
|
|
53157
53170
|
constructor(s) {
|
|
53158
53171
|
super();
|
|
53159
53172
|
H0(this, "options");
|
|
@@ -54704,7 +54717,7 @@ class Earth$1 extends Sphere {
|
|
|
54704
54717
|
this.material = r, super.create(), this.rotation.y = Math.PI / 180 * -90, this.object3d.name = "地球", s.setObject3d(this.object3d, "earth");
|
|
54705
54718
|
}
|
|
54706
54719
|
}
|
|
54707
|
-
class Countries extends
|
|
54720
|
+
class Countries extends C$1 {
|
|
54708
54721
|
constructor(s) {
|
|
54709
54722
|
super();
|
|
54710
54723
|
H0(this, "options");
|
|
@@ -54825,7 +54838,7 @@ class Countries extends D$1 {
|
|
|
54825
54838
|
return ct.emissive.set(r), ct.emissiveIntensity = f, s.useMaterial(st), ct;
|
|
54826
54839
|
}
|
|
54827
54840
|
}
|
|
54828
|
-
class SphereShadow extends
|
|
54841
|
+
class SphereShadow extends C$1 {
|
|
54829
54842
|
constructor(s) {
|
|
54830
54843
|
super();
|
|
54831
54844
|
H0(this, "options");
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.61";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.61",
|
|
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",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"esus-lite": "^0.2.8",
|
|
68
68
|
"events": "^3.3.0",
|
|
69
69
|
"geojson-cn": "^0.1.29",
|
|
70
|
-
"gl-draw": "0.11.
|
|
70
|
+
"gl-draw": "0.11.41",
|
|
71
71
|
"jsrsasign": "^11.1.0",
|
|
72
72
|
"lodash-es": "^4.17.21"
|
|
73
73
|
},
|