vis-core 0.13.0 → 0.13.2

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.
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.13.0";
1
+ declare const _default: "0.13.2";
2
2
  export default _default;
@@ -79,6 +79,7 @@ export default class extends Base {
79
79
  get map(): PlaneMap | undefined;
80
80
  get mapInfo(): any;
81
81
  get mapArea(): import("gl-draw/dist/objects").ExtrudePolygon[] | undefined;
82
+ get mapLine(): import("gl-draw/dist/objects").Line[] | undefined;
82
83
  get adcodes(): any[];
83
84
  activePlaneMap: PlaneMap | null;
84
85
  isAnimating: boolean;
@@ -107,7 +108,7 @@ export default class extends Base {
107
108
  material?: THREE.Material;
108
109
  lineMaterial?: MeshLineMaterial;
109
110
  curvatureResolution?: number;
110
- }): void;
111
+ }): Promise<Group | undefined>;
111
112
  show(): Promise<void>;
112
113
  hide(): Promise<void>;
113
114
  shadowMapLight?: BaseObject;
@@ -1,7 +1,7 @@
1
1
  import { BaseObject } from 'gl-draw';
2
2
  import * as THREE from 'three';
3
3
  import { Line, ExtrudePolygon, MeshLineMaterial, Group } from 'gl-draw/dist/objects';
4
- import type { FeatureCollection, Polygon, MultiPolygon, Position } from 'geojson';
4
+ import type { FeatureCollection, Polygon, MultiPolygon, Position, Feature, GeoJsonProperties } from 'geojson';
5
5
  type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
6
6
  interface Options {
7
7
  areaGroup?: boolean;
@@ -50,11 +50,11 @@ export default class PlaneMap extends BaseObject {
50
50
  onTop?: number;
51
51
  }): Promise<ExtrudePolygon[]>;
52
52
  getPropertiesKey(properties: Record<string, any>): any;
53
- addPlane(geojson: any, options: {
53
+ addPlane(geojson: Feature<Polygon | MultiPolygon, GeoJsonProperties>, options: {
54
54
  material: THREE.Material | THREE.Material[];
55
55
  lineMaterial: MeshLineMaterial;
56
56
  curvatureResolution?: number;
57
- }): Promise<void[]>;
57
+ }): Promise<Group>;
58
58
  addLine(geojson: GeoJSON, options: {
59
59
  material?: MeshLineMaterial;
60
60
  onTop?: number;
@@ -62,7 +62,7 @@ export default class PlaneMap extends BaseObject {
62
62
  }): Promise<Line[]>;
63
63
  geojson2Meta(geojson: GeoJSON): {
64
64
  coords: Position[][];
65
- properties: import("geojson").GeoJsonProperties;
65
+ properties: GeoJsonProperties;
66
66
  }[];
67
67
  pickArea(e: MouseEvent): import("gl-draw/dist/core/BaseObject").IBaseObject | undefined;
68
68
  update(delta: number, elapsed: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
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",