vis-core 0.27.11 → 0.27.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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.module.js +6 -5
- package/dist/version.d.ts +1 -1
- 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.12";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -58217,7 +58217,7 @@ class SetMaterialMap extends Command {
|
|
|
58217
58217
|
super.fromJSON(t), this.object = this.editor.objectByUuid(t.objectUuid), this.materialSlot = t.materialSlot, this.material = this.editor.getObjectMaterial(
|
|
58218
58218
|
this.object,
|
|
58219
58219
|
this.materialSlot
|
|
58220
|
-
), this.mapName = t.mapName, this.oldMap = this.object
|
|
58220
|
+
), this.mapName = t.mapName, this.oldMap = this.object && this.material ? this.material[this.mapName] : void 0, this.newMap = parseTexture(t.newMap);
|
|
58221
58221
|
}
|
|
58222
58222
|
fixJSON() {
|
|
58223
58223
|
const t = this.json;
|
|
@@ -58693,7 +58693,7 @@ class SetSceenMap extends SetMaterialMap {
|
|
|
58693
58693
|
super(t), this.type = "SetSceenMap", this.name = "Set Sceen.background", this.object = r, this.materialSlot = C, this.material = r !== void 0 ? r[C] : void 0, this.oldMap = r !== void 0 ? this.material[d] : void 0, this.newMap = v, this.oldMap && this.newMap && (this.newMap.wrapS = this.oldMap.wrapS, this.newMap.wrapT = this.oldMap.wrapT), this.mapName = d;
|
|
58694
58694
|
}
|
|
58695
58695
|
fromJSON(t) {
|
|
58696
|
-
super.fromJSON(t), this.material = this.object[this.materialSlot];
|
|
58696
|
+
super.fromJSON(t), this.oldMap = this.object[this.materialSlot][this.mapName], this.material = this.object[this.materialSlot];
|
|
58697
58697
|
}
|
|
58698
58698
|
}
|
|
58699
58699
|
class SetGeometry extends Command {
|
|
@@ -58711,7 +58711,7 @@ class SetGeometry extends Command {
|
|
|
58711
58711
|
}
|
|
58712
58712
|
toJSON() {
|
|
58713
58713
|
const t = super.toJSON(this);
|
|
58714
|
-
return t.objectUuid = this.editor.uuidByObject(this.object), t.
|
|
58714
|
+
return t.objectUuid = this.editor.uuidByObject(this.object), t.newGeometry = this.geometryToJSON(this.newGeometry), t;
|
|
58715
58715
|
}
|
|
58716
58716
|
geometryToJSON(t) {
|
|
58717
58717
|
return t ? t.type === "MeshLine" ? {
|
|
@@ -58730,7 +58730,8 @@ class SetGeometry extends Command {
|
|
|
58730
58730
|
return new ObjectLoader().parseGeometries([t])[t.uuid];
|
|
58731
58731
|
}
|
|
58732
58732
|
fromJSON(t) {
|
|
58733
|
-
|
|
58733
|
+
var r;
|
|
58734
|
+
super.fromJSON(t), this.object = this.editor.objectByUuid(t.objectUuid), this.oldGeometry = ((r = this.object) == null ? void 0 : r.geometry) || null, this.newGeometry = this.parseGeometry(t.newGeometry);
|
|
58734
58735
|
}
|
|
58735
58736
|
}
|
|
58736
58737
|
const Commands = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.27.
|
|
1
|
+
declare const _default: "0.27.12";
|
|
2
2
|
export default _default;
|