vis-core 0.28.29 → 0.28.30

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), ke = JSON.parse(Fe), Ae = Date.now();
89
89
  return !ke.s || ke.s > Ae ? (this.token = void 0, "") : ke.e && ke.e < Ae ? (this.token = void 0, "") : (ke.isValid = Pe, ke);
90
90
  }
91
- }, version = "0.28.29";
91
+ }, version = "0.28.30";
92
92
  /**
93
93
  * @license
94
94
  * Copyright 2010-2025 Three.js Authors
@@ -36630,24 +36630,22 @@ let Oe$1 = class extends ShaderMaterial {
36630
36630
  color: _ = "#ffffff",
36631
36631
  opacity: w = 1,
36632
36632
  map: O = null,
36633
- useMap: j = 0,
36634
- dashOffset: Ce = 0,
36635
- dashArray: Pe = 0,
36636
- dashRatio: Ie = 0,
36637
- sizeAttenuation: Fe = !0,
36638
- offsetLoop: ke = !0,
36639
- offset: Ae = new Vector2(0, 0),
36640
- scaleDown: at = 0,
36641
- alphaMap: dt = void 0,
36642
- alphaTest: lt = 0,
36643
- repeat: Ue = new Vector2(1, 1),
36644
- resolution: ct = new Vector2(1, 1)
36645
- } = r, ht = rt$1(r, [
36633
+ dashOffset: j = 0,
36634
+ dashArray: Ce = 0,
36635
+ dashRatio: Pe = 0,
36636
+ sizeAttenuation: Ie = !0,
36637
+ offsetLoop: Fe = !0,
36638
+ offset: ke = new Vector2(0, 0),
36639
+ scaleDown: Ae = 0,
36640
+ alphaMap: at = void 0,
36641
+ alphaTest: dt = 0,
36642
+ repeat: lt = new Vector2(1, 1),
36643
+ resolution: Ue = new Vector2(1, 1)
36644
+ } = r, ct = rt$1(r, [
36646
36645
  "lineWidth",
36647
36646
  "color",
36648
36647
  "opacity",
36649
36648
  "map",
36650
- "useMap",
36651
36649
  "dashOffset",
36652
36650
  "dashArray",
36653
36651
  "dashRatio",
@@ -36660,26 +36658,26 @@ let Oe$1 = class extends ShaderMaterial {
36660
36658
  "repeat",
36661
36659
  "resolution"
36662
36660
  ]);
36663
- super(q$1(L$1({}, ht), {
36661
+ super(q$1(L$1({}, ct), {
36664
36662
  uniforms: {
36665
36663
  lineWidth: { value: m },
36666
36664
  color: { value: new Color$1(_) },
36667
36665
  opacity: { value: w },
36668
36666
  map: { value: O },
36669
- useMap: { value: O ? 1 : j },
36670
- resolution: { value: ct },
36671
- sizeAttenuation: { value: Fe ? 1 : 0 },
36672
- offset: { value: Ae },
36673
- offsetLoop: { value: ke ? 1 : 0 },
36674
- dashArray: { value: Pe },
36675
- dashOffset: { value: Ce },
36676
- dashRatio: { value: Ie },
36677
- useDash: { value: Pe > 0 ? 1 : 0 },
36678
- scaleDown: { value: at / 10 },
36679
- alphaTest: { value: lt },
36680
- alphaMap: { value: dt },
36681
- useAlphaMap: { value: dt ? 1 : 0 },
36682
- repeat: { value: Ue }
36667
+ useMap: { value: O ? 1 : 0 },
36668
+ resolution: { value: Ue },
36669
+ sizeAttenuation: { value: Ie ? 1 : 0 },
36670
+ offset: { value: ke },
36671
+ offsetLoop: { value: Fe ? 1 : 0 },
36672
+ dashArray: { value: Ce },
36673
+ dashOffset: { value: j },
36674
+ dashRatio: { value: Pe },
36675
+ useDash: { value: Ce > 0 ? 1 : 0 },
36676
+ scaleDown: { value: Ae / 10 },
36677
+ alphaTest: { value: dt },
36678
+ alphaMap: { value: at },
36679
+ useAlphaMap: { value: at ? 1 : 0 },
36680
+ repeat: { value: lt }
36683
36681
  },
36684
36682
  vertexShader: fe$1,
36685
36683
  fragmentShader: ue$1
@@ -57626,7 +57624,6 @@ class Arc extends mt {
57626
57624
  materialParameters: {
57627
57625
  color: r,
57628
57626
  map,
57629
- useMap: 1,
57630
57627
  transparent: !0,
57631
57628
  sizeAttenuation: !1,
57632
57629
  lineWidth: m
@@ -59297,16 +59294,16 @@ class SetMaterialMap extends Command {
59297
59294
  super(t), this.type = "SetMaterialMap", this.name = `Set Material.${m}`, this.object = r, this.materialSlot = w, this.material = this.editor.getObjectMaterial(r, w), this.oldMap = r !== void 0 ? this.material[m] : void 0, this.newMap = _, this.oldMap && this.newMap && (this.newMap.wrapS = this.oldMap.wrapS, this.newMap.wrapT = this.oldMap.wrapT), this.mapName = m;
59298
59295
  }
59299
59296
  execute() {
59300
- if (this.material.hasOwnProperty(this.mapName)) {
59297
+ if (this.mapName in this.material) {
59301
59298
  if (this.oldMap) {
59302
59299
  const t = new se$1();
59303
59300
  t.track(this.oldMap), t.dispose();
59304
59301
  }
59305
- this.newMap && (this.newMap.name === "PMREM.cubeUv" && (this.newMap = this.editor.viewport.vis.getRoomEnvMap()), this.newMap.anisotropy = this.editor.viewport.vis.tier0 ? 1 : this.editor.pencil.maxAnisotropy), this.material[this.mapName] = this.newMap, this.playVideo(this.newMap), this.material instanceof Oe$1 && (this.material.useMap = !!this.newMap, this.newMap && this.newMap.wrapS !== RepeatWrapping && (this.newMap.wrapS = RepeatWrapping, this.newMap.wrapT = RepeatWrapping, this.newMap.needsUpdate = !0)), (!this.oldMap && this.newMap || this.oldMap && !this.newMap) && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
59302
+ this.newMap && (this.newMap.name === "PMREM.cubeUv" && (this.newMap = this.editor.viewport.vis.getRoomEnvMap()), this.newMap.anisotropy = this.editor.viewport.vis.tier0 ? 1 : this.editor.pencil.maxAnisotropy), this.material[this.mapName] = this.newMap, this.playVideo(this.newMap), this.material instanceof Oe$1 && this.newMap && this.newMap.wrapS !== RepeatWrapping && (this.newMap.wrapS = RepeatWrapping, this.newMap.wrapT = RepeatWrapping, this.newMap.needsUpdate = !0), (!this.oldMap && this.newMap || this.oldMap && !this.newMap) && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
59306
59303
  }
59307
59304
  }
59308
59305
  undo() {
59309
- this.material[this.mapName] = this.oldMap, this.playVideo(this.oldMap), this.material instanceof Oe$1 && (this.material.useMap = !!this.newMap), (!this.oldMap && this.newMap || this.oldMap && !this.newMap) && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
59306
+ this.material[this.mapName] = this.oldMap, this.playVideo(this.oldMap), (!this.oldMap && this.newMap || this.oldMap && !this.newMap) && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
59310
59307
  }
59311
59308
  playVideo(t) {
59312
59309
  if (t && t instanceof VideoTexture) {
@@ -143092,7 +143089,6 @@ const objs = Ui(J0({}, objs$3), {
143092
143089
  const Pe = new Oe$1({
143093
143090
  name: "省份边界",
143094
143091
  map: Ce,
143095
- useMap: 1,
143096
143092
  lineWidth: 0.6,
143097
143093
  sizeAttenuation: !1,
143098
143094
  transparent: !0,
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.28.29";
1
+ declare const _default: "0.28.30";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.28.29",
3
+ "version": "0.28.30",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
@@ -66,7 +66,7 @@
66
66
  "esus-lite": "^0.2.8",
67
67
  "events": "^3.3.0",
68
68
  "geojson-cn": "^0.2.5",
69
- "gl-draw": "0.15.0-beta.41",
69
+ "gl-draw": "0.15.0-beta.42",
70
70
  "jsrsasign": "^11.1.0",
71
71
  "lodash-es": "^4.17.21"
72
72
  },