vis-core 0.21.66 → 0.21.67

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.
@@ -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.66";
92
+ }, version = "0.21.67";
93
93
  /**
94
94
  * @license
95
95
  * Copyright 2010-2024 Three.js Authors
@@ -48564,8 +48564,8 @@ class SetMaterialMap extends Command {
48564
48564
  super(e), this.type = "SetMaterialMap", this.name = `Set Material.${r}`, this.object = s, this.materialSlot = st, this.material = this.editor.getObjectMaterial(s, st), this.oldMap = s !== void 0 ? this.material[r] : void 0, this.newMap = f, this.oldMap && this.newMap && (this.newMap.wrapS = this.oldMap.wrapS, this.newMap.wrapT = this.oldMap.wrapT), this.mapName = r;
48565
48565
  }
48566
48566
  execute() {
48567
- var e, s;
48568
- (e = this.oldMap) == null || e.dispose(), ((s = this.newMap) == null ? void 0 : s.anisotropy) === 1 && (this.newMap.anisotropy = this.editor.pencil.renderer.capabilities.getMaxAnisotropy()), this.material[this.mapName] = this.newMap, this.material instanceof it$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);
48567
+ var e;
48568
+ (e = this.oldMap) == null || e.dispose(), this.newMap && (this.newMap.anisotropy = this.editor.viewport.vis.tier0 ? 1 : this.editor.pencil.maxAnisotropy), this.material[this.mapName] = this.newMap, this.material instanceof it$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);
48569
48569
  }
48570
48570
  undo() {
48571
48571
  this.material[this.mapName] = this.oldMap, this.material instanceof it$1 && (this.material.useMap = !!this.newMap), (!this.oldMap && this.newMap || this.oldMap && !this.newMap) && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
@@ -48578,7 +48578,7 @@ class SetMaterialMap extends Command {
48578
48578
  super.fromJSON(e), this.object = this.editor.objectByUuid(e.objectUuid), this.materialSlot = e.materialSlot, this.material = this.editor.getObjectMaterial(
48579
48579
  this.object,
48580
48580
  this.materialSlot
48581
- ), this.mapName = e.mapName, this.oldMap = parseTexture(e.oldMap), this.newMap = parseTexture(e.newMap), this.newMap && this.editor.viewport.vis.tier0 && (this.newMap.anisotropy = 1);
48581
+ ), this.mapName = e.mapName, this.oldMap = parseTexture(e.oldMap), this.newMap = parseTexture(e.newMap);
48582
48582
  }
48583
48583
  }
48584
48584
  function parseTexture(c) {
@@ -49781,13 +49781,13 @@ const BLOCKLISTED_GPUS = [
49781
49781
  "3",
49782
49782
  "4",
49783
49783
  "6",
49784
+ "11",
49784
49785
  "12",
49785
49786
  "15",
49786
49787
  "25",
49787
49788
  "48",
49788
49789
  "455",
49789
49790
  "535",
49790
- "555",
49791
49791
  "575",
49792
49792
  "600",
49793
49793
  "610",
@@ -49895,11 +49895,11 @@ const BLOCKLISTED_GPUS = [
49895
49895
  "3",
49896
49896
  "4",
49897
49897
  "6",
49898
+ "11",
49898
49899
  "25",
49899
49900
  "48",
49900
49901
  "455",
49901
49902
  "535",
49902
- "555",
49903
49903
  "575",
49904
49904
  "610",
49905
49905
  "625",
@@ -50202,7 +50202,8 @@ class Base extends Event {
50202
50202
  H0(this, "mouseButtonsActiveStore", null);
50203
50203
  if (this.container = s.container, this.options = di({
50204
50204
  assetsPrefix: "",
50205
- editor: !0
50205
+ editor: !0,
50206
+ logarithmicDepthBuffer: !0
50206
50207
  }, s), !this.options.assetsPrefix) {
50207
50208
  let r = "/";
50208
50209
  r === "/" && (r = ""), this.options.assetsPrefix = r;
@@ -50272,7 +50273,7 @@ class Base extends Event {
50272
50273
  } : {}), {
50273
50274
  renderer: {
50274
50275
  alpha: !0,
50275
- logarithmicDepthBuffer: !0
50276
+ logarithmicDepthBuffer: this.options.logarithmicDepthBuffer
50276
50277
  },
50277
50278
  camera: {
50278
50279
  near: 0.1,
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.21.66";
1
+ declare const _default: "0.21.67";
2
2
  export default _default;
@@ -14,6 +14,7 @@ export interface BaseOptions {
14
14
  pencilConfig?: Record<string, any>;
15
15
  disableInitShow?: boolean;
16
16
  editor?: boolean;
17
+ logarithmicDepthBuffer?: boolean;
17
18
  [key: string]: any;
18
19
  }
19
20
  export default class Base extends Event {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.66",
3
+ "version": "0.21.67",
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",