vis-core 0.28.0-beta.5 → 0.28.0-beta.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.
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
88
88
  ).toString(CryptoJS.enc.Utf8), Pe = JSON.parse(Se), Ne = Date.now();
89
89
  return !Pe.s || Pe.s > Ne ? (this.token = void 0, "") : Pe.e && Pe.e < Ne ? (this.token = void 0, "") : (Pe.isValid = O, Pe);
90
90
  }
91
- }, version = "0.28.0-beta.5";
91
+ }, version = "0.28.0-beta.6";
92
92
  /**
93
93
  * @license
94
94
  * Copyright 2010-2025 Three.js Authors
@@ -59437,47 +59437,7 @@ function applyFixes(m, t) {
59437
59437
  },
59438
59438
  {
59439
59439
  version: "0.28.1",
59440
- fix: () => {
59441
- const C = [], w = {}, I = [];
59442
- return t.h.u.forEach((O) => {
59443
- O.attributeName === "name" && O.newValue && O.newValue.includes("级板块") && (C.push(O.objectUuid), console.log("cpMap", O.newValue, O.objectUuid));
59444
- }), t.h.u.forEach((O, ye) => {
59445
- if (O.type === "CopyObject" && O.objectUuid.includes("extrudePolygon")) {
59446
- const Se = O.copyObjectUuid.replace(
59447
- O.copyObjectUuid[0],
59448
- O.copyObjectUuid[0].toLowerCase()
59449
- );
59450
- if (!C.includes(Se)) {
59451
- delete O.type;
59452
- return;
59453
- }
59454
- w[Se] = `material_${O.id}`, I.push(Se), t.h.u[ye] = [
59455
- {
59456
- type: "CopyMaterial",
59457
- id: O.id,
59458
- originKey: "plane#topMat",
59459
- copyKey: `material_${O.id}`
59460
- },
59461
- {
59462
- type: "SetObjectMaterial",
59463
- id: O.id + 0.1,
59464
- objectUuid: O.objectUuid,
59465
- materialSlot: 0,
59466
- newValue: `material_${O.id}`,
59467
- oldValue: "plane#topMat"
59468
- }
59469
- ], console.log(
59470
- `Fix CopyObject ${O.objectUuid}and change type to CopyMaterial and SetObjectMaterial`,
59471
- t.h.u[ye]
59472
- );
59473
- }
59474
- }), t.h.u.forEach((O) => {
59475
- if (I.includes(O.objectUuid) && O.type.includes("Material")) {
59476
- const ye = O.objectUuid;
59477
- O.objectUuid = w[ye], console.log(`Fix objectUuid ${ye} to ${w[ye]}`, O);
59478
- }
59479
- }), t.h.u = t.h.u.flat(), !1;
59480
- }
59440
+ fix: () => !1
59481
59441
  }
59482
59442
  ];
59483
59443
  let d = 0, g = r.length - 1, v = r.length;
@@ -59669,7 +59629,7 @@ class Editor {
59669
59629
  }
59670
59630
  setObjectMaterial(t, r, d, g = !1) {
59671
59631
  let v = t.material;
59672
- Array.isArray(t.material) && r !== void 0 ? (v = t.material[r], g && (t.material = [...t.material], console.log(t.material)), t.material[r] = d) : t.material = d, v && v.onBeforeCompile && (d.onBeforeCompile = v.onBeforeCompile);
59632
+ Array.isArray(t.material) && r !== void 0 ? (v = t.material[r], g && (t.material = [...t.material]), t.material[r] = d) : t.material = d, v && v.onBeforeCompile && (d.onBeforeCompile = v.onBeforeCompile);
59673
59633
  }
59674
59634
  uuidByObject(t) {
59675
59635
  var r;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.28.0-beta.5";
1
+ declare const _default: "0.28.0-beta.6";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.28.0-beta.5",
3
+ "version": "0.28.0-beta.7",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && bundler",