vis-core 0.27.13 → 0.27.15
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/index.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.module.js +31 -16
- package/dist/version.d.ts +1 -1
- package/dist/vis/city/index.d.ts +1 -0
- package/dist/vis/map/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
88
88
|
).toString(CryptoJS.enc.Utf8), Fe = JSON.parse(Ne), at = Date.now();
|
|
89
89
|
return !Fe.s || Fe.s > at ? (this.token = void 0, "") : Fe.e && Fe.e < at ? (this.token = void 0, "") : (Fe.isValid = Le, Fe);
|
|
90
90
|
}
|
|
91
|
-
}, version = "0.27.
|
|
91
|
+
}, version = "0.27.15";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -58457,7 +58457,7 @@ class SetValue extends Command {
|
|
|
58457
58457
|
execute() {
|
|
58458
58458
|
const t = this.properties ? this.object[this.properties] : this.object;
|
|
58459
58459
|
t && ((t instanceof RectAreaLight || t instanceof AmbientLight) && this.attributeName === "castShadow" || (t[this.attributeName] = this.newValue, this.fixObj(), this.editor.emit("objectChanged", this.object), setTimeout(() => {
|
|
58460
|
-
(this.attributeName === "name" || this.attributeName === "prefab") && this.editor.emit("baseObjectListChange");
|
|
58460
|
+
(this.attributeName === "name" || this.attributeName === "prefab" || this.attributeName === "visible") && this.editor.emit("baseObjectListChange");
|
|
58461
58461
|
})));
|
|
58462
58462
|
}
|
|
58463
58463
|
fixObj() {
|
|
@@ -58469,7 +58469,7 @@ class SetValue extends Command {
|
|
|
58469
58469
|
undo() {
|
|
58470
58470
|
const t = this.properties ? this.object[this.properties] : this.object;
|
|
58471
58471
|
t[this.attributeName] = this.oldValue, this.fixObj(), this.editor.emit("objectChanged", this.object), setTimeout(() => {
|
|
58472
|
-
this.attributeName === "name" && this.editor.emit("baseObjectListChange");
|
|
58472
|
+
(this.attributeName === "name" || this.attributeName === "prefab" || this.attributeName === "visible") && this.editor.emit("baseObjectListChange");
|
|
58473
58473
|
});
|
|
58474
58474
|
}
|
|
58475
58475
|
update(t) {
|
|
@@ -59257,6 +59257,14 @@ function applyFixes(g, t) {
|
|
|
59257
59257
|
w.objectUuid === "plane#extrudeLineMat" && (w.objectUuid = "plane#lineMat");
|
|
59258
59258
|
}), t.h.u[0].visOptions.fixMap2CityOnMap2 = !0);
|
|
59259
59259
|
}
|
|
59260
|
+
},
|
|
59261
|
+
{
|
|
59262
|
+
version: "0.27.14",
|
|
59263
|
+
fix: () => {
|
|
59264
|
+
t.h.u[0] && t.h.u[0].visType === "map" && t.h.u[0].visOptions.style === "map2CityOnMap" && t.h.u.forEach((w) => {
|
|
59265
|
+
w.objectUuid === "building" && (w.objectUuid = "building#group");
|
|
59266
|
+
});
|
|
59267
|
+
}
|
|
59260
59268
|
}
|
|
59261
59269
|
];
|
|
59262
59270
|
let d = 0, v = r.length - 1, C = r.length;
|
|
@@ -59497,9 +59505,9 @@ class Editor {
|
|
|
59497
59505
|
}
|
|
59498
59506
|
changeSelectOption() {
|
|
59499
59507
|
const t = this.viewport.vis, r = t.mList, d = (v) => v.filter((C) => C.userData.selectHide !== !0).map((C) => {
|
|
59500
|
-
var
|
|
59508
|
+
var Gt;
|
|
59501
59509
|
const w = [...C.children];
|
|
59502
|
-
if (C.key === "Scene" && !w.find((
|
|
59510
|
+
if (C.key === "Scene" && !w.find((ct) => ct.key === "camera"))
|
|
59503
59511
|
this.pencil.camera.name = "透视相机", w.unshift({
|
|
59504
59512
|
key: "camera",
|
|
59505
59513
|
object3d: this.pencil.camera,
|
|
@@ -59507,9 +59515,9 @@ class Editor {
|
|
|
59507
59515
|
children: []
|
|
59508
59516
|
});
|
|
59509
59517
|
else if (C.object3d.target) {
|
|
59510
|
-
const
|
|
59518
|
+
const ct = C.options.type;
|
|
59511
59519
|
w.unshift({
|
|
59512
|
-
key: C.key.replace(
|
|
59520
|
+
key: C.key.replace(ct, ct + "Target"),
|
|
59513
59521
|
object3d: C.object3d.target,
|
|
59514
59522
|
userData: {
|
|
59515
59523
|
disabledCR: !0,
|
|
@@ -59519,9 +59527,9 @@ class Editor {
|
|
|
59519
59527
|
});
|
|
59520
59528
|
}
|
|
59521
59529
|
if (C.object3d.isDirectionalLight) {
|
|
59522
|
-
const
|
|
59530
|
+
const ct = C.options.type;
|
|
59523
59531
|
w.unshift({
|
|
59524
|
-
key: C.key.replace(
|
|
59532
|
+
key: C.key.replace(ct, ct + "Shadow"),
|
|
59525
59533
|
object3d: C.object3d.shadow.camera,
|
|
59526
59534
|
userData: {
|
|
59527
59535
|
disabledCR: !0
|
|
@@ -59535,13 +59543,15 @@ class Editor {
|
|
|
59535
59543
|
const Fe = C.key.replace(
|
|
59536
59544
|
C.key[0],
|
|
59537
59545
|
C.key[0].toLowerCase()
|
|
59538
|
-
), at = (
|
|
59546
|
+
), at = (Gt = C.userData.disabledTC) != null ? Gt : Ne, ot = ["Scene", "camera"].includes(C.key) || Le;
|
|
59539
59547
|
return {
|
|
59540
59548
|
key: Fe,
|
|
59541
59549
|
name: C.object3d.name,
|
|
59542
59550
|
object: C.object3d,
|
|
59551
|
+
visible: ot ? !0 : C.object3d.visible,
|
|
59543
59552
|
disabledCR: Ne,
|
|
59544
59553
|
disabledTC: at,
|
|
59554
|
+
disabledVisible: ot,
|
|
59545
59555
|
baseObject: C,
|
|
59546
59556
|
children: ye
|
|
59547
59557
|
};
|
|
@@ -139782,7 +139792,8 @@ class City$1 extends Base {
|
|
|
139782
139792
|
showRoad: !0,
|
|
139783
139793
|
showGrassland: !0,
|
|
139784
139794
|
showRiver: !0,
|
|
139785
|
-
setWaterMaterial: !1
|
|
139795
|
+
setWaterMaterial: !1,
|
|
139796
|
+
ssao: !0
|
|
139786
139797
|
}, r));
|
|
139787
139798
|
}
|
|
139788
139799
|
loaderAdd() {
|
|
@@ -140026,7 +140037,7 @@ class City$1 extends Base {
|
|
|
140026
140037
|
this.innerAreaGroup
|
|
140027
140038
|
)
|
|
140028
140039
|
].filter(Boolean)
|
|
140029
|
-
), r && this.fitToTarget(C), this.pencil.getPlugin("worker").saveCache(), !this.tier0 && this.options.showBuilding && this.pencil.controls.addEventListener("update", () => {
|
|
140040
|
+
), r && this.fitToTarget(C), this.pencil.getPlugin("worker").saveCache(), !this.tier0 && this.options.showBuilding && this.options.ssao && this.pencil.controls.addEventListener("update", () => {
|
|
140030
140041
|
this.pencil.controls.distance < 0.1 ? this.enabledSSAO() : this.disableSSAO();
|
|
140031
140042
|
});
|
|
140032
140043
|
});
|
|
@@ -141201,6 +141212,7 @@ const objs$1 = Di(bi({}, objs$3), {
|
|
|
141201
141212
|
setWaterMaterial: !1,
|
|
141202
141213
|
showCityOnMapInnerLine: !1,
|
|
141203
141214
|
greyFull: !1,
|
|
141215
|
+
citySSAO: !0,
|
|
141204
141216
|
pencilConfig: {
|
|
141205
141217
|
camera: {
|
|
141206
141218
|
near: 0.1,
|
|
@@ -141269,6 +141281,7 @@ const objs$1 = Di(bi({}, objs$3), {
|
|
|
141269
141281
|
showGrassland: this.options.showGrassland,
|
|
141270
141282
|
showRiver: this.options.showRiver,
|
|
141271
141283
|
setWaterMaterial: this.options.setWaterMaterial,
|
|
141284
|
+
ssao: this.options.citySSAO,
|
|
141272
141285
|
pencil2: this.pencil
|
|
141273
141286
|
}), yield E.init(), this.cityVis = E, this.settings.mouseLeft = Ki.SCREEN_PAN, yield this.settings.mouseLeft, this.emit("initCityVis", r), E;
|
|
141274
141287
|
});
|
|
@@ -141347,16 +141360,18 @@ const objs$1 = Di(bi({}, objs$3), {
|
|
|
141347
141360
|
r = Fe.x, d = Fe.y, v.set(Ne.x, Ne.y, 0);
|
|
141348
141361
|
}
|
|
141349
141362
|
if (this.options.continentsBg) {
|
|
141350
|
-
this.continentsBg = yield this.lead.draw(
|
|
141363
|
+
if (this.continentsBg = yield this.lead.draw(
|
|
141351
141364
|
"ContinentsBg",
|
|
141352
141365
|
{
|
|
141353
141366
|
depth: this.options.continentsBgDepth,
|
|
141354
141367
|
scale: this.pscale
|
|
141355
141368
|
},
|
|
141356
141369
|
this.group
|
|
141357
|
-
)
|
|
141358
|
-
|
|
141359
|
-
|
|
141370
|
+
), this.options.style !== "map2CityOnMap" && this.options.style !== "map2Base") {
|
|
141371
|
+
const C = this.getLocationPosition([104, 37.5]);
|
|
141372
|
+
this.continentsBg.position.set(...C);
|
|
141373
|
+
}
|
|
141374
|
+
this.continentsBg.position.z = 0.1;
|
|
141360
141375
|
}
|
|
141361
141376
|
if (this.options.bottomPlane) {
|
|
141362
141377
|
const C = yield this.lead.draw(
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.27.
|
|
1
|
+
declare const _default: "0.27.15";
|
|
2
2
|
export default _default;
|
package/dist/vis/city/index.d.ts
CHANGED
package/dist/vis/map/index.d.ts
CHANGED