vis-core 0.26.12 → 0.26.13

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), De = JSON.parse(ve), yt = Date.now();
90
90
  return !De.s || De.s > yt ? (this.token = void 0, "") : De.e && De.e < yt ? (this.token = void 0, "") : (De.isValid = Re, De);
91
91
  }
92
- }, version = "0.26.12";
92
+ }, version = "0.26.13";
93
93
  /**
94
94
  * @license
95
95
  * Copyright 2010-2025 Three.js Authors
@@ -55439,6 +55439,12 @@ function applyFixes(d, t) {
55439
55439
  fix: () => {
55440
55440
  t.h.u[0] && t.h.u[0].visType === "earth2" && (t.h.u[0].visType = "earth", t.h.u[0].visOptions.style = "base");
55441
55441
  }
55442
+ },
55443
+ {
55444
+ version: "0.26.13",
55445
+ fix: () => {
55446
+ t.h.u[0] && t.h.u[0].visType === "map" && (t.h.u[0].visOptions.clickHandleDrillDown || t.v.eo.clickHandleDrillDown) && t.v.eo.drillDownFirstLevelUseBgMats === void 0 && (t.v.eo.drillDownFirstLevelUseBgMats = !0);
55447
+ }
55442
55448
  }
55443
55449
  ];
55444
55450
  let r = 0, V = o.length - 1, g = o.length;
@@ -55674,7 +55680,7 @@ class Editor {
55674
55680
  findSelect2Item(t, o) {
55675
55681
  for (let r = 0; r < t.length; r++) {
55676
55682
  const V = t[r];
55677
- if (V.uuid === o)
55683
+ if (V.key === o)
55678
55684
  return V;
55679
55685
  if (V.children) {
55680
55686
  const g = this.findSelect2Item(V.children, o);
@@ -55713,16 +55719,19 @@ class Editor {
55713
55719
  v.has(w.name) ? w.fixUuid = w.name + "_" + _ : (w.fixUuid = w.name, v.set(w.name, !0));
55714
55720
  }), v.clear();
55715
55721
  }
55716
- this.checkSelectOption(g), this.selectOption = g, this.viewport.vis.lead.group, this.emit("sceneGraphChanged");
55722
+ this.checkSelectOption(g), this.selectOption = g, this.emit("sceneGraphChanged");
55717
55723
  }
55718
55724
  traverseSelectOption2(t) {
55719
- return t.map((o) => ({
55720
- object: o.object3d,
55721
- id: o.objectType.replace("BaseObject#", ""),
55722
- uuid: o.key,
55723
- baseObject: o,
55724
- children: o.children.length > 0 ? this.traverseSelectOption2(o.children) : []
55725
- }));
55725
+ return t.map((o) => {
55726
+ var V;
55727
+ const r = o.children.length > 0 ? this.traverseSelectOption2(o.children) : [];
55728
+ return !((V = o.object3d.userData) != null && V.treeKey) && r.length === 0 ? null : {
55729
+ object: o.object3d,
55730
+ key: o.object3d.userData.treeKey || o.key,
55731
+ baseObject: o,
55732
+ children: r
55733
+ };
55734
+ }).filter((o) => o !== null);
55726
55735
  }
55727
55736
  execute(t, o) {
55728
55737
  return ei(this, null, function* () {
@@ -56575,9 +56584,9 @@ class Base extends Camera {
56575
56584
  );
56576
56585
  }
56577
56586
  initBaseObjectUserData(o) {
56578
- const r = {
56587
+ const r = Ji(si({}, o.object3d.userData), {
56579
56588
  bloom: !1
56580
- };
56589
+ });
56581
56590
  if (o.objectType === "BaseObject#Light")
56582
56591
  return;
56583
56592
  const V = o.objectType === "BaseObject#Arc", g = o.objectType === "BaseObject#Line";
@@ -137093,7 +137102,7 @@ const objs$1 = Ji(si({}, objs$3), {
137093
137102
  extrudeLineMat: v
137094
137103
  };
137095
137104
  })();
137096
- this.mList.setMaterialObj("plane", o), this.options.drillDownSecondLevelMats && this.mList.copyMaterialObj("plane", "secondPlane"), this.options.drillDownThirdLevelMats && this.mList.copyMaterialObj("plane", "thirdPlane"), this.initMaterialBg();
137105
+ this.mList.setMaterialObj("plane", o), this.options.drillDownFirstLevelUseBgMats && this.mList.copyMaterialObj("plane", "bgPlane"), this.options.drillDownSecondLevelMats && this.mList.copyMaterialObj("plane", "secondPlane"), this.options.drillDownThirdLevelMats && this.mList.copyMaterialObj("plane", "thirdPlane"), this.initMaterialBg();
137097
137106
  });
137098
137107
  };
137099
137108
  }, base$2 = (d) => {
@@ -137130,7 +137139,7 @@ const objs$1 = Ji(si({}, objs$3), {
137130
137139
  extrudeLineMat: v
137131
137140
  };
137132
137141
  })();
137133
- this.mList.setMaterialObj("plane", o), this.options.drillDownSecondLevelMats && this.mList.copyMaterialObj("plane", "secondPlane"), this.options.drillDownThirdLevelMats && this.mList.copyMaterialObj("plane", "thirdPlane"), this.initMaterialBg();
137142
+ this.mList.setMaterialObj("plane", o), this.options.drillDownFirstLevelUseBgMats && this.mList.copyMaterialObj("plane", "bgPlane"), this.options.drillDownSecondLevelMats && this.mList.copyMaterialObj("plane", "secondPlane"), this.options.drillDownThirdLevelMats && this.mList.copyMaterialObj("plane", "thirdPlane"), this.initMaterialBg();
137134
137143
  });
137135
137144
  };
137136
137145
  }, cityOnMap = (d) => {
@@ -137332,7 +137341,7 @@ const objs$1 = Ji(si({}, objs$3), {
137332
137341
  extrudeLineMat: g
137333
137342
  };
137334
137343
  })();
137335
- this.mList.setMaterialObj("plane", t), this.options.clickHandleDrillDown && this.mList.copyMaterialObj("plane", "bgPlane"), this.initMaterialBg();
137344
+ this.mList.setMaterialObj("plane", t), this.initMaterialBg();
137336
137345
  });
137337
137346
  };
137338
137347
  }, getLabelElement = (d) => {
@@ -137438,6 +137447,7 @@ const objs$1 = Ji(si({}, objs$3), {
137438
137447
  parentBgTopSegments: 0,
137439
137448
  clickHandleDrillDown: !1,
137440
137449
  drillDownSecondLevelMats: !1,
137450
+ drillDownFirstLevelUseBgMats: !1,
137441
137451
  drillDownThirdLevelMats: !1,
137442
137452
  clickOusideBack: !0,
137443
137453
  mapDepth: [1, 0.4, 0.2],
@@ -137478,7 +137488,7 @@ const objs$1 = Ji(si({}, objs$3), {
137478
137488
  }, o), {
137479
137489
  geojsonMap: r,
137480
137490
  extrudeLineGeojsonMap: V
137481
- })), this.options.equirectangular && (this.options.projectionType = "equirectangular"), this.options.fahey && (this.options.projectionType = "fahey", this.pscale = 100, this.pcenter = [0, 0]), this.pencilConfig = PENCIL_CONFIG, (this.getAdcodeShowLevel(this.options.adcode) === "province" || this.getAdcodeShowLevel(this.options.adcode) === "country") && (this.extendsOptions.clickHandleDrillDown = () => this.options.clickHandleDrillDown, this.options.clickHandleDrillDown && (this.workerOnce = !1, this.extendsOptions.mapDepth = () => Array.isArray(this.options.mapDepth) ? this.options.mapDepth : new Array(3).fill(this.options.mapDepth), this.extendsOptions.drillDownSecondLevelMats = () => this.options.drillDownSecondLevelMats, this.extendsOptions.drillDownThirdLevelMats = () => this.options.drillDownThirdLevelMats, this.extendsOptions.drillDownPlateInCenter = () => this.options.drillDownPlateInCenter, this.extendsOptions.clickOusideBack = () => this.options.clickOusideBack, this.extendsOptions.handleBackKeepCamvasState = () => this.options.handleBackKeepCamvasState, this.extendsOptions.showOneLevel = () => this.options.showOneLevel, this.extendsOptions.showDistrict = () => this.options.showDistrict, this.options.parentBg && (this.extendsOptions.drillDownHideParent = () => this.options.drillDownHideParent)), this.extendsOptions.parentBg = () => this.options.parentBg, this.options.parentBg && (this.extendsOptions.parentBgDepth = () => this.options.parentBgDepth, this.extendsOptions.parentBgTopSegments = () => this.options.parentBgTopSegments), this.extendsOptions.continentsBg = () => this.options.continentsBg, this.options.continentsBg && (this.extendsOptions.continentsBgDepth = () => this.options.continentsBgDepth)), this.options.adcode === 0 ? world(this) : this.options.style === "map2Base" || this.options.style === "map2CityOnMap" ? base$1(this) : this.options.adcode === 1e5 ? china(this) : base$2(this);
137491
+ })), this.options.equirectangular && (this.options.projectionType = "equirectangular"), this.options.fahey && (this.options.projectionType = "fahey", this.pscale = 100, this.pcenter = [0, 0]), this.pencilConfig = PENCIL_CONFIG, (this.getAdcodeShowLevel(this.options.adcode) === "province" || this.getAdcodeShowLevel(this.options.adcode) === "country") && (this.extendsOptions.clickHandleDrillDown = () => this.options.clickHandleDrillDown, this.options.clickHandleDrillDown && (this.workerOnce = !1, this.extendsOptions.mapDepth = () => Array.isArray(this.options.mapDepth) ? this.options.mapDepth : new Array(3).fill(this.options.mapDepth), this.extendsOptions.drillDownFirstLevelUseBgMats = () => this.options.drillDownFirstLevelUseBgMats, this.extendsOptions.drillDownSecondLevelMats = () => this.options.drillDownSecondLevelMats, this.extendsOptions.drillDownThirdLevelMats = () => this.options.drillDownThirdLevelMats, this.extendsOptions.drillDownPlateInCenter = () => this.options.drillDownPlateInCenter, this.extendsOptions.clickOusideBack = () => this.options.clickOusideBack, this.extendsOptions.handleBackKeepCamvasState = () => this.options.handleBackKeepCamvasState, this.extendsOptions.showOneLevel = () => this.options.showOneLevel, this.extendsOptions.showDistrict = () => this.options.showDistrict, this.options.parentBg && (this.extendsOptions.drillDownHideParent = () => this.options.drillDownHideParent)), this.extendsOptions.parentBg = () => this.options.parentBg, this.options.parentBg && (this.extendsOptions.parentBgDepth = () => this.options.parentBgDepth, this.extendsOptions.parentBgTopSegments = () => this.options.parentBgTopSegments), this.extendsOptions.continentsBg = () => this.options.continentsBg, this.options.continentsBg && (this.extendsOptions.continentsBgDepth = () => this.options.continentsBgDepth)), this.options.adcode === 0 ? world(this) : this.options.style === "map2Base" || this.options.style === "map2CityOnMap" ? base$1(this) : this.options.adcode === 1e5 ? china(this) : base$2(this);
137482
137492
  }
137483
137493
  handleSetting(o, r) {
137484
137494
  return ei(this, null, function* () {
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.26.12";
1
+ declare const _default: "0.26.13";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.26.12",
3
+ "version": "0.26.13",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && bundler",