vis-core 0.30.0-beta.32 → 0.30.0-beta.34

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.
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
63
63
  Array.prototype.at || (Array.prototype.at = function(v) {
64
64
  return v < 0 && (v = this.length + v), this[v];
65
65
  });
66
- const version = "0.30.0-beta.32", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
66
+ const version = "0.30.0-beta.34", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
67
67
  token: void 0,
68
68
  getInfo() {
69
69
  if (!this.token)
@@ -37978,32 +37978,32 @@ let Z$1 = class extends at {
37978
37978
  handleMaterialChange(e) {
37979
37979
  }
37980
37980
  enableBloom(e = !0) {
37981
- var r, o;
37981
+ var r, o, V;
37982
37982
  if (!((r = this.pencil.composerController) != null && r.bloomComposer)) {
37983
37983
  console.warn("err:pencil.options.bloom");
37984
37984
  return;
37985
37985
  }
37986
37986
  if (e) {
37987
- this.traverse((V) => {
37988
- V.enableBloom(!1);
37987
+ this.traverse((le) => {
37988
+ le.enableBloom(!1);
37989
37989
  });
37990
37990
  return;
37991
37991
  }
37992
- this.object3d && ((o = this.pencil.composerController) == null || o.bloomSelection.add(this), this.object3d.layers.enable(ve)), this.isBloom = !0;
37992
+ this.object3d && ((o = this.pencil.composerController) == null || o.bloomSelection.add(this), this.object3d.layers.enable(ve)), (V = this.pencil.composerController) == null || V.checkBloomComposerActive(), this.isBloom = !0;
37993
37993
  }
37994
37994
  disableBloom(e = !0) {
37995
- var r, o;
37995
+ var r, o, V;
37996
37996
  if (!((r = this.pencil.composerController) != null && r.bloomComposer)) {
37997
37997
  console.warn("err:pencil.options.bloom");
37998
37998
  return;
37999
37999
  }
38000
38000
  if (e) {
38001
- this.traverse((V) => {
38002
- V.disableBloom(!1);
38001
+ this.traverse((le) => {
38002
+ le.disableBloom(!1);
38003
38003
  });
38004
38004
  return;
38005
38005
  }
38006
- this.object3d && ((o = this.pencil.composerController) == null || o.bloomSelection.delete(this), this.object3d.layers.disable(ve)), this.isBloom = !1;
38006
+ this.object3d && ((o = this.pencil.composerController) == null || o.bloomSelection.delete(this), this.object3d.layers.disable(ve)), (V = this.pencil.composerController) == null || V.checkBloomComposerActive(), this.isBloom = !1;
38007
38007
  }
38008
38008
  dispose() {
38009
38009
  var e;
@@ -38224,7 +38224,7 @@ const ft$1 = ({
38224
38224
  Ce
38225
38225
  )), { contour: Pe, triangles: ze, sideTorso: Fe, bottomCap: Vt, topCap: Zt, topVerts: ke };
38226
38226
  };
38227
- class zt extends BufferGeometry {
38227
+ class kt extends BufferGeometry {
38228
38228
  constructor(e, r = {}) {
38229
38229
  super(), this.type = "PolygonBufferGeometry", this.parameters = L$1({
38230
38230
  polygonGeoJson: e,
@@ -38400,7 +38400,7 @@ void main() {
38400
38400
  #include <fog_vertex>
38401
38401
  }
38402
38402
  `;
38403
- class kt extends ShaderMaterial {
38403
+ class zt extends ShaderMaterial {
38404
38404
  constructor(e = {}) {
38405
38405
  const r = e, {
38406
38406
  lineWidth: o = 1,
@@ -38509,16 +38509,16 @@ class kt extends ShaderMaterial {
38509
38509
  }
38510
38510
  }
38511
38511
  const Q$2 = new Vector4(), ge$1 = new Vector3(), Me$1 = new Vector3(), g = new Vector4(), M$3 = new Vector4(), O = new Vector4(), X$1 = new Vector3(), Y$1 = new Matrix4(), w = new Line3(), we$1 = new Vector3(), U$2 = new Box3(), _ = new Sphere$1(), T$1 = new Vector4();
38512
- let E, k$1;
38512
+ let E, z$2;
38513
38513
  function xe$1(v, e, r) {
38514
- return T$1.set(0, 0, -e, 1).applyMatrix4(v.projectionMatrix), T$1.multiplyScalar(1 / T$1.w), T$1.x = k$1 / r.width, T$1.y = k$1 / r.height, T$1.applyMatrix4(v.projectionMatrixInverse), T$1.multiplyScalar(1 / T$1.w), Math.abs(Math.max(T$1.x, T$1.y));
38514
+ return T$1.set(0, 0, -e, 1).applyMatrix4(v.projectionMatrix), T$1.multiplyScalar(1 / T$1.w), T$1.x = z$2 / r.width, T$1.y = z$2 / r.height, T$1.applyMatrix4(v.projectionMatrixInverse), T$1.multiplyScalar(1 / T$1.w), Math.abs(Math.max(T$1.x, T$1.y));
38515
38515
  }
38516
38516
  function vt$1(v, e) {
38517
38517
  const r = v.matrixWorld, o = v.geometry, V = o.attributes.instanceStart, le = o.attributes.instanceEnd, fe = Math.min(o.instanceCount, V.count);
38518
38518
  for (let Le = 0, Ce = fe; Le < Ce; Le++) {
38519
38519
  w.start.fromBufferAttribute(V, Le), w.end.fromBufferAttribute(le, Le), w.applyMatrix4(r);
38520
38520
  const Re = new Vector3(), Pe = new Vector3();
38521
- E.distanceSqToSegment(w.start, w.end, Pe, Re), Pe.distanceTo(Re) < k$1 * 0.5 && e.push({
38521
+ E.distanceSqToSegment(w.start, w.end, Pe, Re), Pe.distanceTo(Re) < z$2 * 0.5 && e.push({
38522
38522
  point: Pe,
38523
38523
  pointOnLine: Re,
38524
38524
  distance: E.origin.distanceTo(Pe),
@@ -38546,7 +38546,7 @@ function bt(v, e, r) {
38546
38546
  g.applyMatrix4(o), M$3.applyMatrix4(o), g.multiplyScalar(1 / g.w), M$3.multiplyScalar(1 / M$3.w), g.x *= V.x / 2, g.y *= V.y / 2, M$3.x *= V.x / 2, M$3.y *= V.y / 2, w.start.copy(g), w.start.z = 0, w.end.copy(M$3), w.end.z = 0;
38547
38547
  const ke = w.closestPointToPointParameter(X$1, !0);
38548
38548
  w.at(ke, we$1);
38549
- const Gt = MathUtils.lerp(g.z, M$3.z, ke), Vt = Gt >= -1 && Gt <= 1, Zt = X$1.distanceTo(we$1) < k$1 * 0.5;
38549
+ const Gt = MathUtils.lerp(g.z, M$3.z, ke), Vt = Gt >= -1 && Gt <= 1, Zt = X$1.distanceTo(we$1) < z$2 * 0.5;
38550
38550
  if (Vt && Zt) {
38551
38551
  w.start.fromBufferAttribute(Le, ze), w.end.fromBufferAttribute(Ce, ze), w.start.applyMatrix4(le), w.end.applyMatrix4(le);
38552
38552
  const xt = new Vector3(), Xt = new Vector3();
@@ -38593,10 +38593,10 @@ class Lt extends Mesh {
38593
38593
  const le = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
38594
38594
  E = e.ray;
38595
38595
  const fe = this.matrixWorld, Le = this.geometry, Ce = this.material;
38596
- k$1 = Ce.linewidth + le, Le.boundingSphere === null && Le.computeBoundingSphere(), _.copy(Le.boundingSphere).applyMatrix4(fe);
38596
+ z$2 = Ce.linewidth + le, Le.boundingSphere === null && Le.computeBoundingSphere(), _.copy(Le.boundingSphere).applyMatrix4(fe);
38597
38597
  let Re;
38598
38598
  if (o)
38599
- Re = k$1 * 0.5;
38599
+ Re = z$2 * 0.5;
38600
38600
  else {
38601
38601
  const ze = Math.max(
38602
38602
  V.near,
@@ -38613,7 +38613,7 @@ class Lt extends Mesh {
38613
38613
  Le.boundingBox === null && Le.computeBoundingBox(), U$2.copy(Le.boundingBox).applyMatrix4(fe);
38614
38614
  let Pe;
38615
38615
  if (o)
38616
- Pe = k$1 * 0.5;
38616
+ Pe = z$2 * 0.5;
38617
38617
  else {
38618
38618
  const ze = Math.max(
38619
38619
  V.near,
@@ -41731,7 +41731,7 @@ function H$1(v, e = 0) {
41731
41731
  const De = (v) => {
41732
41732
  const e = v, { coordinate: r, startHeight: o, height: V } = e, le = ye$1(e, ["coordinate", "startHeight", "height"]);
41733
41733
  let fe = o || 0;
41734
- return typeof o != "undefined" && typeof V != "undefined" && (fe = o + V), new zt([r], ue$1(U$1({}, le), {
41734
+ return typeof o != "undefined" && typeof V != "undefined" && (fe = o + V), new kt([r], ue$1(U$1({}, le), {
41735
41735
  startHeight: o,
41736
41736
  endHeight: fe
41737
41737
  }));
@@ -42439,7 +42439,7 @@ let sn = class extends Z$1 {
42439
42439
  o.geometry = r, V.dispose();
42440
42440
  }
42441
42441
  getMaterial(v) {
42442
- const { width: e, height: r } = this.pencil.getSize(), o = new kt(U$1({
42442
+ const { width: e, height: r } = this.pencil.getSize(), o = new zt(U$1({
42443
42443
  color: new Color$1("#ffffff")
42444
42444
  }, v));
42445
42445
  return o.uniforms.resolution.value.set(e, r), o;
@@ -56884,7 +56884,7 @@ const Fs = new MeshBasicMaterial({ color: "black" }), Ns = new PointsMaterial({
56884
56884
  }), js = new SpriteMaterial({
56885
56885
  color: "black",
56886
56886
  sizeAttenuation: !1
56887
- }), Bs = new kt({
56887
+ }), Bs = new zt({
56888
56888
  color: "black",
56889
56889
  sizeAttenuation: !1,
56890
56890
  lineWidth: 0
@@ -56992,7 +56992,7 @@ class Ws {
56992
56992
  e.push(Le);
56993
56993
  return;
56994
56994
  }
56995
- this.bloomMaterials[Le.uuid] = Le.material, Ce.isSprite ? Ce.material.sizeAttenuation ? Ce.material = Hs : Ce.material = js : Le.material instanceof kt ? Le.material = Bs : Re.isPoints ? Re.material.sizeAttenuation ? Re.material = Is : Re.material = Ns : Le.material = Fs;
56995
+ this.bloomMaterials[Le.uuid] = Le.material, Ce.isSprite ? Ce.material.sizeAttenuation ? Ce.material = Hs : Ce.material = js : Le.material instanceof zt ? Le.material = Bs : Re.isPoints ? Re.material.sizeAttenuation ? Re.material = Is : Re.material = Ns : Le.material = Fs;
56996
56996
  }
56997
56997
  });
56998
56998
  }), e.forEach((V) => {
@@ -60110,7 +60110,7 @@ VideoTexture.prototype.dispose = function() {
60110
60110
  this._requestVideoFrameCallbackId = 0, VideoTextureDisposeOrigin.call(this);
60111
60111
  };
60112
60112
  const MaterialLoaderCreateMaterialFromTypeOrigin = MaterialLoader.createMaterialFromType;
60113
- MaterialLoader.createMaterialFromType = (v) => v === "MeshLineMaterial" ? new kt() : MaterialLoaderCreateMaterialFromTypeOrigin.call(null, v);
60113
+ MaterialLoader.createMaterialFromType = (v) => v === "MeshLineMaterial" ? new zt() : MaterialLoaderCreateMaterialFromTypeOrigin.call(null, v);
60114
60114
  const Texture2VideoTexture = (v) => {
60115
60115
  const e = v.source.data, r = v;
60116
60116
  r.isVideoTexture = !0, r.generateMipmaps = !1, r._requestVideoFrameCallbackId = 0;
@@ -138790,7 +138790,7 @@ class SetMaterialMap extends Command {
138790
138790
  const e = new st$1();
138791
138791
  e.track(this.oldMap), e.dispose();
138792
138792
  }
138793
- 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 kt && this.newMap && this.newMap.wrapS !== RepeatWrapping && (this.newMap.wrapS = RepeatWrapping, this.newMap.wrapT = RepeatWrapping, this.newMap.needsUpdate = !0), !!this.oldMap != !!this.newMap && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
138793
+ 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 zt && this.newMap && this.newMap.wrapS !== RepeatWrapping && (this.newMap.wrapS = RepeatWrapping, this.newMap.wrapT = RepeatWrapping, this.newMap.needsUpdate = !0), !!this.oldMap != !!this.newMap && (this.material.needsUpdate = !0), this.editor.emit("materialChanged", this.material);
138794
138794
  }
138795
138795
  }
138796
138796
  undo() {
@@ -138928,7 +138928,7 @@ class SetMaterialVector extends Command {
138928
138928
  class SetMaterialMapVector extends Command {
138929
138929
  constructor(e, r, o, V, le, fe = "repeat") {
138930
138930
  var Le, Ce, Re, Pe;
138931
- super(e), this.type = "SetMaterialMapVector", this.attributeName2 = fe, this.name = `Set Material.${o}.${fe}`, this.updatable = !0, this.object = r, this.materialSlot = le, r != null && r.isScene ? this.material = r[le] : this.material = this.editor.getObjectMaterial(r, le), this.material instanceof kt && o === "map" && fe === "repeat" ? this.oldValue = this.material.repeat.toArray() : ((Ce = (Le = this.material) == null ? void 0 : Le[o]) == null ? void 0 : Ce[fe]) instanceof Vector2 ? this.oldValue = this.material[o][fe].toArray() : typeof ((Pe = (Re = this.material) == null ? void 0 : Re[o]) == null ? void 0 : Pe[fe]) != "undefined" && (this.oldValue = this.material[o][fe]), this.newValue = V, this.attributeName = o;
138931
+ super(e), this.type = "SetMaterialMapVector", this.attributeName2 = fe, this.name = `Set Material.${o}.${fe}`, this.updatable = !0, this.object = r, this.materialSlot = le, r != null && r.isScene ? this.material = r[le] : this.material = this.editor.getObjectMaterial(r, le), this.material instanceof zt && o === "map" && fe === "repeat" ? this.oldValue = this.material.repeat.toArray() : ((Ce = (Le = this.material) == null ? void 0 : Le[o]) == null ? void 0 : Ce[fe]) instanceof Vector2 ? this.oldValue = this.material[o][fe].toArray() : typeof ((Pe = (Re = this.material) == null ? void 0 : Re[o]) == null ? void 0 : Pe[fe]) != "undefined" && (this.oldValue = this.material[o][fe]), this.newValue = V, this.attributeName = o;
138932
138932
  }
138933
138933
  execute() {
138934
138934
  var e, r, o, V, le;
@@ -138936,13 +138936,13 @@ class SetMaterialMapVector extends Command {
138936
138936
  const fe = this.attributeName;
138937
138937
  this.material[fe].wrapS !== RepeatWrapping && (this.material[fe].wrapS = RepeatWrapping, this.material[fe].wrapT = RepeatWrapping, this.material[fe].needsUpdate = !0);
138938
138938
  }
138939
- this.material instanceof kt && this.attributeName === "map" && this.attributeName2 === "repeat" ? this.material[this.attributeName2].fromArray(this.newValue) : ((o = (r = this.material) == null ? void 0 : r[this.attributeName]) == null ? void 0 : o[this.attributeName2]) instanceof Vector2 ? this.material[this.attributeName][this.attributeName2].fromArray(
138939
+ this.material instanceof zt && this.attributeName === "map" && this.attributeName2 === "repeat" ? this.material[this.attributeName2].fromArray(this.newValue) : ((o = (r = this.material) == null ? void 0 : r[this.attributeName]) == null ? void 0 : o[this.attributeName2]) instanceof Vector2 ? this.material[this.attributeName][this.attributeName2].fromArray(
138940
138940
  this.newValue
138941
138941
  ) : typeof ((le = (V = this.material) == null ? void 0 : V[this.attributeName]) == null ? void 0 : le[this.attributeName2]) != "undefined" && (this.material[this.attributeName][this.attributeName2] = this.newValue), this.editor.emit("materialChanged", this.material);
138942
138942
  }
138943
138943
  undo() {
138944
138944
  var e, r, o, V;
138945
- this.material instanceof kt && this.attributeName === "map" && this.attributeName2 === "repeat" ? this.material[this.attributeName2].fromArray(this.oldValue) : ((r = (e = this.material) == null ? void 0 : e[this.attributeName]) == null ? void 0 : r[this.attributeName2]) instanceof Vector2 ? this.material[this.attributeName][this.attributeName2].fromArray(
138945
+ this.material instanceof zt && this.attributeName === "map" && this.attributeName2 === "repeat" ? this.material[this.attributeName2].fromArray(this.oldValue) : ((r = (e = this.material) == null ? void 0 : e[this.attributeName]) == null ? void 0 : r[this.attributeName2]) instanceof Vector2 ? this.material[this.attributeName][this.attributeName2].fromArray(
138946
138946
  this.oldValue
138947
138947
  ) : typeof ((V = (o = this.material) == null ? void 0 : o[this.attributeName]) == null ? void 0 : V[this.attributeName2]) != "undefined" && (this.material[this.attributeName][this.attributeName2] = this.oldValue), this.editor.emit("materialChanged", this.material);
138948
138948
  }
@@ -139403,7 +139403,7 @@ class AddMaterial extends Command {
139403
139403
  console.warn(`Base object with key ${le} not found.`), o = new MeshBasicMaterial();
139404
139404
  } else
139405
139405
  console.warn(`Material type ${this.materialType} is not valid.`), o = new MeshBasicMaterial();
139406
- } else this.materialType === "MeshLineMaterial" ? o = new kt({
139406
+ } else this.materialType === "MeshLineMaterial" ? o = new zt({
139407
139407
  color: new Color$1(16777215),
139408
139408
  lineWidth: 1,
139409
139409
  sizeAttenuation: !1
@@ -142227,13 +142227,13 @@ class City$1 extends Base {
142227
142227
  });
142228
142228
  }
142229
142229
  if (this.options.showRoad) {
142230
- const r = new kt({
142230
+ const r = new zt({
142231
142231
  //@ts-ignore
142232
142232
  name: "道路-板块内",
142233
142233
  color: "#ffc457",
142234
142234
  sizeAttenuation: !1,
142235
142235
  lineWidth: 12
142236
- }), o = new kt({
142236
+ }), o = new zt({
142237
142237
  //@ts-ignore
142238
142238
  name: "道路-板块外",
142239
142239
  color: "#4a3f15",
@@ -143028,12 +143028,12 @@ const objs$1 = qi(gi({}, objs$3), {
143028
143028
  name: "侧面",
143029
143029
  color: new Color$1("#999999"),
143030
143030
  map: e.getAsset("/image/earth/chinaBorder.png")
143031
- }), V = new kt({
143031
+ }), V = new zt({
143032
143032
  name: "中国边界",
143033
143033
  lineWidth: 0.6,
143034
143034
  sizeAttenuation: !1,
143035
143035
  color: new Color$1("#59C8FF")
143036
- }), le = new kt({
143036
+ }), le = new zt({
143037
143037
  name: "世界边界",
143038
143038
  lineWidth: 0.6,
143039
143039
  sizeAttenuation: !1,
@@ -143050,7 +143050,7 @@ const objs$1 = qi(gi({}, objs$3), {
143050
143050
  roughness: 0.51
143051
143051
  }), Pe = e.getAsset("/image/earth/flyline.png");
143052
143052
  Pe.wrapS = RepeatWrapping, Pe.wrapT = RepeatWrapping, Pe.repeat.set(0.5, 0.5);
143053
- const ze = new kt({
143053
+ const ze = new zt({
143054
143054
  name: "省份边界",
143055
143055
  map: Pe,
143056
143056
  lineWidth: 0.6,
@@ -143106,7 +143106,7 @@ const objs$1 = qi(gi({}, objs$3), {
143106
143106
  name: "顶面",
143107
143107
  color: new Color$1("#ffffff"),
143108
143108
  emissive: new Color$1("#523333")
143109
- }), o = new kt({
143109
+ }), o = new zt({
143110
143110
  //@ts-ignore
143111
143111
  name: "边框线",
143112
143112
  lineWidth: 1,
@@ -143233,7 +143233,7 @@ const objs$1 = qi(gi({}, objs$3), {
143233
143233
  start: this.options.radius,
143234
143234
  materialOptions: {
143235
143235
  topMat: new MeshBasicMaterial(V.area),
143236
- lineMat: new kt(V.line)
143236
+ lineMat: new zt(V.line)
143237
143237
  }
143238
143238
  });
143239
143239
  });
@@ -143785,14 +143785,14 @@ const getLabelElement = (v) => {
143785
143785
  }), fe = new MeshBasicMaterial({
143786
143786
  name: "侧面",
143787
143787
  map: e.getAsset("/image/map/jianbian.webp")
143788
- }), Le = new kt({
143788
+ }), Le = new zt({
143789
143789
  name: "板块线",
143790
143790
  color: new Color$1("#73FEDD"),
143791
143791
  sizeAttenuation: !1,
143792
143792
  lineWidth: this.options.lineWidth,
143793
143793
  //@ts-ignore
143794
143794
  depthWrite: !1
143795
- }), Ce = new kt({
143795
+ }), Ce = new zt({
143796
143796
  name: "板块边线",
143797
143797
  color: new Color$1("#73FEDD"),
143798
143798
  sizeAttenuation: !1,
@@ -143824,14 +143824,14 @@ const getLabelElement = (v) => {
143824
143824
  }), V = new MeshBasicMaterial({
143825
143825
  name: "侧面",
143826
143826
  color: "#0d2425"
143827
- }), le = new kt({
143827
+ }), le = new zt({
143828
143828
  name: "板块线",
143829
143829
  color: new Color$1("#73FEDD"),
143830
143830
  sizeAttenuation: !1,
143831
143831
  lineWidth: this.options.lineWidth,
143832
143832
  //@ts-ignore
143833
143833
  depthWrite: !1
143834
- }), fe = new kt({
143834
+ }), fe = new zt({
143835
143835
  name: "板块边线",
143836
143836
  color: new Color$1("#73FEDD"),
143837
143837
  sizeAttenuation: !1,
@@ -143868,14 +143868,14 @@ const getLabelElement = (v) => {
143868
143868
  }), V = new MeshBasicMaterial({
143869
143869
  name: "侧面",
143870
143870
  map: e.getAsset("/image/map/jianbian.webp")
143871
- }), le = new kt({
143871
+ }), le = new zt({
143872
143872
  name: "板块线",
143873
143873
  color: new Color$1("#73FEDD"),
143874
143874
  sizeAttenuation: !1,
143875
143875
  lineWidth: this.options.lineWidth,
143876
143876
  //@ts-ignore
143877
143877
  depthWrite: !1
143878
- }), fe = new kt({
143878
+ }), fe = new zt({
143879
143879
  name: "板块边线",
143880
143880
  color: new Color$1("#00FFED"),
143881
143881
  sizeAttenuation: !1,
@@ -143907,14 +143907,14 @@ const getLabelElement = (v) => {
143907
143907
  }), V = new MeshBasicMaterial({
143908
143908
  name: "侧面",
143909
143909
  map: e.getAsset("/image/map/jianbian.webp")
143910
- }), le = new kt({
143910
+ }), le = new zt({
143911
143911
  name: "板块线",
143912
143912
  color: new Color$1("#73FEDD"),
143913
143913
  sizeAttenuation: !1,
143914
143914
  lineWidth: this.options.lineWidth,
143915
143915
  //@ts-ignore
143916
143916
  depthWrite: !1
143917
- }), fe = new kt({
143917
+ }), fe = new zt({
143918
143918
  name: "板块边线",
143919
143919
  color: new Color$1("#00FFED"),
143920
143920
  sizeAttenuation: !1,
@@ -143963,14 +143963,14 @@ const getLabelElement = (v) => {
143963
143963
  name: "板块侧面",
143964
143964
  map: r.getAsset("/image/map2/side.png"),
143965
143965
  side: DoubleSide
143966
- }), fe = new kt({
143966
+ }), fe = new zt({
143967
143967
  // @ts-ignore
143968
143968
  name: "板块边框",
143969
143969
  color: new Color$1("#02f7eb"),
143970
143970
  lineWidth: 1.8,
143971
143971
  sizeAttenuation: !1,
143972
143972
  depthTest: !1
143973
- }), Le = new kt({
143973
+ }), Le = new zt({
143974
143974
  // @ts-ignore
143975
143975
  name: "板块内线",
143976
143976
  color: new Color$1("#02f7eb"),
@@ -144010,7 +144010,7 @@ const getLabelElement = (v) => {
144010
144010
  name: "父级侧面",
144011
144011
  color: "#064d73",
144012
144012
  side: DoubleSide
144013
- }), fe = new kt({
144013
+ }), fe = new zt({
144014
144014
  //@ts-ignore
144015
144015
  name: "父级板块线",
144016
144016
  color: new Color$1("#3f648c"),
@@ -144035,7 +144035,7 @@ const getLabelElement = (v) => {
144035
144035
  name: "世界侧面",
144036
144036
  color: "#064d73",
144037
144037
  side: DoubleSide
144038
- }), le = new kt({
144038
+ }), le = new zt({
144039
144039
  //@ts-ignore
144040
144040
  name: "世界板块线",
144041
144041
  color: new Color$1("#3f648c"),
@@ -144058,7 +144058,7 @@ const getLabelElement = (v) => {
144058
144058
  }), V = new MeshBasicMaterial({
144059
144059
  name: "大洲板块侧面",
144060
144060
  color: "#0c1528"
144061
- }), le = new kt({
144061
+ }), le = new zt({
144062
144062
  // color: new THREE.Color('#0a88e5'),
144063
144063
  //@ts-ignore
144064
144064
  name: "大洲板块线",
@@ -144093,13 +144093,13 @@ const getLabelElement = (v) => {
144093
144093
  name: "板块侧面",
144094
144094
  color: new Color$1("#064d73"),
144095
144095
  side: DoubleSide
144096
- }), V = new kt({
144096
+ }), V = new zt({
144097
144097
  //@ts-ignore
144098
144098
  name: "板块线",
144099
144099
  color: new Color$1("#02BAF7"),
144100
144100
  lineWidth: 1,
144101
144101
  sizeAttenuation: !1
144102
- }), le = new kt({
144102
+ }), le = new zt({
144103
144103
  //@ts-ignore
144104
144104
  name: "板块边框线",
144105
144105
  color: new Color$1("#02BAF7"),
@@ -144283,7 +144283,7 @@ const getLabelElement = (v) => {
144283
144283
  return B0(this, null, function* () {
144284
144284
  var Le;
144285
144285
  if ((Le = this.options.fixCity) != null && Le[r] && (r = this.options.fixCity[r]), r === 71e4)
144286
- return null;
144286
+ return this.settings.mouseLeft = Xi.SCREEN_PAN, yield this.settings.mouseLeft, this.pencil.camera.userData.up = "0,0,1", null;
144287
144287
  const V = new City({
144288
144288
  container: this.container,
144289
144289
  editor: !1
@@ -144479,7 +144479,7 @@ const getLabelElement = (v) => {
144479
144479
  name: "世界侧面",
144480
144480
  color: "#051714",
144481
144481
  side: DoubleSide
144482
- }), le = new kt({
144482
+ }), le = new zt({
144483
144483
  name: "世界线",
144484
144484
  color: new Color$1("#50766E"),
144485
144485
  sizeAttenuation: !1,
@@ -144505,7 +144505,7 @@ const getLabelElement = (v) => {
144505
144505
  }), V = new MeshBasicMaterial({
144506
144506
  name: "大洲板块侧面",
144507
144507
  color: "#0c1528"
144508
- }), le = new kt({
144508
+ }), le = new zt({
144509
144509
  // color: new THREE.Color('#0a88e5'),
144510
144510
  //@ts-ignore
144511
144511
  name: "大洲板块线",
@@ -144563,7 +144563,7 @@ const getLabelElement = (v) => {
144563
144563
  ze && ([Le, Ce] = ze.material);
144564
144564
  }
144565
144565
  let Re = V.lineMaterial;
144566
- if (y(V.lineMaterial) && (Re = new kt(gi({}, V.lineMaterial))), V.line) {
144566
+ if (y(V.lineMaterial) && (Re = new zt(gi({}, V.lineMaterial))), V.line) {
144567
144567
  const ze = this.objectByUuid(V.line);
144568
144568
  ze && (Re = ze.material);
144569
144569
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.30.0-beta.32";
1
+ declare const _default: "0.30.0-beta.34";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.30.0-beta.32",
3
+ "version": "0.30.0-beta.34",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
@@ -64,7 +64,7 @@
64
64
  "esus-lite": "^0.2.8",
65
65
  "events": "^3.3.0",
66
66
  "geojson-cn": "^0.2.5",
67
- "gl-draw": "0.17.0-beta.21",
67
+ "gl-draw": "0.17.0-beta.22",
68
68
  "jsrsasign": "^11.1.0",
69
69
  "lodash-es": "^4.17.21"
70
70
  },