vis-core 0.25.4 → 0.25.6

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.
@@ -0,0 +1 @@
1
+ export declare function observeTransformScale(element: HTMLElement, callback: (scale: number) => void): () => void;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.25.4";
1
+ declare const _default: "0.25.6";
2
2
  export default _default;
@@ -14,12 +14,14 @@ export interface BaseOptions {
14
14
  assetsPrefix?: string;
15
15
  css2DContainer?: HTMLElement;
16
16
  pencil?: any;
17
+ pencil2?: any;
17
18
  pencilConfig?: Record<string, any>;
18
19
  disableInitShow?: boolean;
19
20
  editor?: boolean;
20
21
  logarithmicDepthBuffer?: boolean;
21
22
  workerOnce?: boolean;
22
23
  tier?: number;
24
+ observeParentScale?: boolean;
23
25
  [key: string]: any;
24
26
  }
25
27
  export default class Base extends Camera {
@@ -90,6 +92,7 @@ export default class Base extends Camera {
90
92
  initMaterial(...args: any): Promise<void>;
91
93
  initVis(...args: any): Promise<void>;
92
94
  init(...args: any[]): Promise<void>;
95
+ private stopObserveTransformScale;
93
96
  initPencil(): Promise<void>;
94
97
  private sceneActive;
95
98
  setSceneActive(): void;
@@ -192,9 +192,10 @@ export default class extends Base {
192
192
  y: number;
193
193
  } | undefined;
194
194
  booleanPointInCn(location: [number, number]): boolean;
195
- handleDrillDown({ adcode, duration, saveBackCamvasState, extrudelineBloom, }: {
195
+ handleDrillDown({ adcode, duration, handleLook, saveBackCamvasState, extrudelineBloom, }: {
196
196
  adcode: number;
197
197
  duration?: number;
198
+ handleLook?: boolean;
198
199
  saveBackCamvasState?: boolean;
199
200
  extrudelineBloom?: boolean;
200
201
  }): Promise<void>;
@@ -1,11 +1,10 @@
1
1
  import City from "../city";
2
2
  export default class extends City {
3
3
  drawController: {
4
- Building: typeof import("../city/objects/building").default;
5
- Road: typeof import("../city/objects/road").default;
6
- Area: typeof import("../city/objects/area").default;
4
+ PlaneMap: typeof import("../map/objects/PlaneMap").default;
7
5
  CityPlane: typeof import("../city/objects/plane").default;
8
- Target: typeof import("../city/objects/target").default;
6
+ ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
7
+ Mountain: typeof import("../map/objects/Mountain").default;
9
8
  Plane: typeof import("../all/objects/Plane").default;
10
9
  CrossPlane: typeof import("../all/objects/CrossPlane").default;
11
10
  PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
@@ -34,9 +33,6 @@ export default class extends City {
34
33
  Point: typeof import("../all/objects/Point").default;
35
34
  Arc: typeof import("../all/objects/Arc").default;
36
35
  Model: typeof import("../all/objects/Model").default;
37
- PlaneMap: typeof import("../map/objects/PlaneMap").default;
38
- ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
39
- Mountain: typeof import("../map/objects/Mountain").default;
40
36
  };
41
37
  multiplyScalar: number;
42
38
  fixNearFar(n?: number, f?: number): void;
@@ -33,7 +33,6 @@ export default class extends Map {
33
33
  state: ReturnType<typeof makePromiseCreator>;
34
34
  }>;
35
35
  get cityVis(): City | undefined;
36
- get cityTarget(): import("../city/objects/target").default | undefined;
37
36
  showGroup?: 'city' | 'map';
38
37
  options: Required<MapCityOptions>;
39
38
  setOptions(options: MapCityOptions): void;
@@ -7,11 +7,10 @@ export interface Map2Options extends MapOptions {
7
7
  export default class extends Map {
8
8
  options: Required<Map2Options>;
9
9
  leadObjs: {
10
- Building: typeof import("../city/objects/building").default;
11
- Road: typeof import("../city/objects/road").default;
12
- Area: typeof import("../city/objects/area").default;
10
+ PlaneMap: typeof import("../map/objects/PlaneMap").default;
13
11
  CityPlane: typeof import("../city/objects/plane").default;
14
- Target: typeof import("../city/objects/target").default;
12
+ ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
13
+ Mountain: typeof import("../map/objects/Mountain").default;
15
14
  Plane: typeof import("../all/objects/Plane").default;
16
15
  CrossPlane: typeof import("../all/objects/CrossPlane").default;
17
16
  PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
@@ -40,9 +39,6 @@ export default class extends Map {
40
39
  Point: typeof import("../all/objects/Point").default;
41
40
  Arc: typeof import("../all/objects/Arc").default;
42
41
  Model: typeof import("../all/objects/Model").default;
43
- PlaneMap: typeof import("../map/objects/PlaneMap").default;
44
- ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
45
- Mountain: typeof import("../map/objects/Mountain").default;
46
42
  };
47
43
  lead: Lead<typeof leadObjs>;
48
44
  setOptions(options: Map2Options): void;
@@ -1,9 +1,8 @@
1
1
  declare const objs: {
2
- Building: typeof import("../../city/objects/building").default;
3
- Road: typeof import("../../city/objects/road").default;
4
- Area: typeof import("../../city/objects/area").default;
2
+ PlaneMap: typeof import("../../map/objects/PlaneMap").default;
5
3
  CityPlane: typeof import("../../city/objects/plane").default;
6
- Target: typeof import("../../city/objects/target").default;
4
+ ContinentsBg: typeof import("../../map/objects/ContinentsBg").default;
5
+ Mountain: typeof import("../../map/objects/Mountain").default;
7
6
  Plane: typeof import("../../all/objects/Plane").default;
8
7
  CrossPlane: typeof import("../../all/objects/CrossPlane").default;
9
8
  PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
@@ -32,8 +31,5 @@ declare const objs: {
32
31
  Point: typeof import("../../all/objects/Point").default;
33
32
  Arc: typeof import("../../all/objects/Arc").default;
34
33
  Model: typeof import("../../all/objects/Model").default;
35
- PlaneMap: typeof import("../../map/objects/PlaneMap").default;
36
- ContinentsBg: typeof import("../../map/objects/ContinentsBg").default;
37
- Mountain: typeof import("../../map/objects/Mountain").default;
38
34
  };
39
35
  export default objs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.25.4",
3
+ "version": "0.25.6",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && bundler",