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/index.js +37 -37
- package/dist/index.module.js +2350 -2322
- package/dist/version.d.ts +1 -1
- package/dist/vis/map/index.d.ts +2 -1
- package/dist/vis/map/objects/PlaneMap.d.ts +4 -4
- package/package.json +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.13.
|
|
1
|
+
declare const _default: "0.13.2";
|
|
2
2
|
export default _default;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -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
|
-
}):
|
|
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:
|
|
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<
|
|
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:
|
|
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;
|