vis-core 0.13.3 → 0.13.4

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.
@@ -41145,7 +41145,7 @@ function Bl(n) {
41145
41145
  const t = new qt();
41146
41146
  return t.color.setScalar(n), t;
41147
41147
  }
41148
- const pX = "0.13.3", o1 = !1;
41148
+ const pX = "0.13.4", o1 = !1;
41149
41149
  class Na {
41150
41150
  constructor(t, e = {}) {
41151
41151
  D(this, "container");
@@ -42063,6 +42063,7 @@ const DI = {
42063
42063
  parentBg: !1,
42064
42064
  continentsBg: !1,
42065
42065
  continentsBgDepth: 0,
42066
+ parentBgDepth: 0,
42066
42067
  clickOusideBack: !0,
42067
42068
  mapDepth: [1, 0.4, 0.2],
42068
42069
  mapPadding: [100, 100, 100, 100],
@@ -42110,7 +42111,7 @@ const DI = {
42110
42111
  shadowMap: !1
42111
42112
  });
42112
42113
  D(this, "shadowMapLight");
42113
- if (this.pencilConfig = jI, (this.getAdcodeShowLevel(this.options.adcode) === "province" || this.getAdcodeShowLevel(this.options.adcode) === "country") && (this.extendsOptions.parentBg = () => this.options.parentBg, this.extendsOptions.continentsBg = () => this.options.continentsBg, this.extendsOptions.continentsBgDepth = () => this.options.continentsBgDepth, this.options.continentsBg && this.options.adcode === 1e5 && (this.options.center = [104, 37.5])), this.options.adcode === 0) {
42114
+ if (this.pencilConfig = jI, (this.getAdcodeShowLevel(this.options.adcode) === "province" || this.getAdcodeShowLevel(this.options.adcode) === "country") && (this.extendsOptions.parentBg = () => this.options.parentBg, this.extendsOptions.parentBgDepth = () => this.options.parentBgDepth, this.extendsOptions.continentsBg = () => this.options.continentsBg, this.extendsOptions.continentsBgDepth = () => this.options.continentsBgDepth, this.options.continentsBg && this.options.adcode === 1e5 && (this.options.center = [104, 37.5])), this.options.adcode === 0) {
42114
42115
  if (this.options.extrudeLine) {
42115
42116
  const o = {
42116
42117
  type: "FeatureCollection",
@@ -42183,10 +42184,10 @@ const DI = {
42183
42184
  },
42184
42185
  areaGroup: !1,
42185
42186
  bbox: c,
42186
- depth: 0,
42187
+ depth: this.options.parentBgDepth,
42187
42188
  materialOptions: Et({}, d)
42188
42189
  });
42189
- this.parentBg.push(r);
42190
+ r.position.z = -this.options.parentBgDepth, this.parentBg.push(r);
42190
42191
  }
42191
42192
  this.options.continentsBg && (this.continentsBg = yield this.drawController.draw("ContinentsBg", {
42192
42193
  depth: this.options.continentsBgDepth,
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.13.3";
1
+ declare const _default: "0.13.4";
2
2
  export default _default;
@@ -11,6 +11,7 @@ export interface MapOptions {
11
11
  adcode: number;
12
12
  center?: [number, number];
13
13
  parentBg?: boolean | number;
14
+ parentBgDepth?: number;
14
15
  bboxOffset?: number[];
15
16
  fixCity?: Record<number, number>;
16
17
  continentsBg?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
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",