vis-core 0.14.2 → 0.14.3

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.
@@ -40720,7 +40720,7 @@ function Jl(n) {
40720
40720
  const t = new qt();
40721
40721
  return t.color.setScalar(n), t;
40722
40722
  }
40723
- const aX = "0.14.2", $u = !1;
40723
+ const aX = "0.14.3", $u = !1;
40724
40724
  class Va {
40725
40725
  constructor(t, e = {}) {
40726
40726
  D(this, "container");
@@ -44073,19 +44073,21 @@ const dM = Pe(kt({}, ds), {
44073
44073
  China: cM
44074
44074
  }), rM = {
44075
44075
  camera: {
44076
- near: 10,
44077
- far: 1e3,
44078
- fov: 14
44076
+ near: 0.1,
44077
+ far: 1e3
44079
44078
  }
44080
44079
  }, Qr = class Qr extends Va {
44081
44080
  constructor(e, i) {
44082
44081
  super(e, kt({
44083
- depth: 1.4,
44082
+ mapDepth: 1.4,
44084
44083
  radius: 30
44085
44084
  }, i));
44086
44085
  //@ts-ignore
44087
44086
  D(this, "drawController", new ol(dM));
44088
44087
  D(this, "leftTruck", !1);
44088
+ D(this, "extendsOptions", {
44089
+ mapDepth: () => this.options.mapDepth
44090
+ });
44089
44091
  this.pencilConfig = rM;
44090
44092
  }
44091
44093
  loaderAdd() {
@@ -44149,15 +44151,15 @@ const dM = Pe(kt({}, ds), {
44149
44151
  radius: this.options.radius
44150
44152
  }),
44151
44153
  this.drawController.draw("Countries", {
44152
- depth: this.options.depth,
44154
+ depth: this.options.mapDepth,
44153
44155
  start: this.options.radius
44154
44156
  }),
44155
44157
  this.drawController.draw("China")
44156
44158
  ]), yield this.pencil.cameraControls.rotateTo(
44157
- 1.8041576242193995,
44158
- 1.2232045720480524,
44159
+ 1.833542196136704,
44160
+ 0.9809685394021701,
44159
44161
  !1
44160
- );
44162
+ ), yield this.pencil.cameraControls.dollyTo(99.11560932366835, !1);
44161
44163
  });
44162
44164
  }
44163
44165
  getLocationPosition(e, i = 0) {
@@ -44467,18 +44469,18 @@ class ym extends Eo {
44467
44469
  radius: this.options.radius
44468
44470
  }),
44469
44471
  this.drawController.draw("Countries", {
44470
- depth: this.options.depth,
44472
+ depth: this.options.mapDepth,
44471
44473
  start: this.options.radius
44472
44474
  })
44473
44475
  ]), yield this.pencil.cameraControls.rotateTo(
44474
44476
  1.8041576242193995,
44475
44477
  1.2232045720480524,
44476
44478
  !1
44477
- );
44479
+ ), yield this.pencil.cameraControls.dollyTo(99.11560932366835, !1);
44478
44480
  });
44479
44481
  }
44480
44482
  getLocationPosition(e, i = 0) {
44481
- const [s, l] = e, a = this.options.depth + this.options.radius + i;
44483
+ const [s, l] = e, a = this.options.mapDepth + this.options.radius + i;
44482
44484
  return Yh(s, l, a);
44483
44485
  }
44484
44486
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.14.2";
1
+ declare const _default: "0.14.3";
2
2
  export default _default;
@@ -3,6 +3,5 @@ export declare const PENCIL_CONFIG: {
3
3
  camera: {
4
4
  near: number;
5
5
  far: number;
6
- fov: number;
7
6
  };
8
7
  };
@@ -2,7 +2,7 @@ import Base from "../Base";
2
2
  import { Draw as DrawController } from 'gl-draw/dist/plugins';
3
3
  interface EarthOptions {
4
4
  assetsPrefix?: string;
5
- depth?: number;
5
+ mapDepth?: number;
6
6
  radius?: number;
7
7
  }
8
8
  export default class extends Base {
@@ -39,6 +39,7 @@ export default class extends Base {
39
39
  }>;
40
40
  leftTruck: boolean;
41
41
  options: Required<EarthOptions>;
42
+ extendsOptions: Record<string, any>;
42
43
  constructor(container: HTMLElement, options?: EarthOptions);
43
44
  loaderAdd(): void;
44
45
  init(): Promise<void>;
@@ -3,6 +3,5 @@ export declare const PENCIL_CONFIG: {
3
3
  camera: {
4
4
  near: number;
5
5
  far: number;
6
- fov: number;
7
6
  };
8
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
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",