vis-core 0.30.0-beta.63 → 0.30.0-beta.70
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.d.ts +1776 -12
- package/dist/index.js +43117 -4888
- package/package.json +24 -21
- package/dist/accessToken.d.ts +0 -5
- package/dist/detect/Benchmark.d.ts +0 -17
- package/dist/detect/WebGL.d.ts +0 -23
- package/dist/detect/d/blocklistedGPUS.d.ts +0 -1
- package/dist/detect/d/tier0GPU.d.ts +0 -2
- package/dist/detect/d/types.d.ts +0 -1
- package/dist/detect/index.d.ts +0 -20
- package/dist/editor/command/AddMaterial.d.ts +0 -20
- package/dist/editor/command/AddObject.d.ts +0 -15
- package/dist/editor/command/AddVis.d.ts +0 -12
- package/dist/editor/command/Command.d.ts +0 -19
- package/dist/editor/command/Commands.d.ts +0 -24
- package/dist/editor/command/CopyMaterial.d.ts +0 -13
- package/dist/editor/command/CopyObject.d.ts +0 -16
- package/dist/editor/command/RemoveMaterial.d.ts +0 -13
- package/dist/editor/command/RemoveObject.d.ts +0 -13
- package/dist/editor/command/SetColor.d.ts +0 -12
- package/dist/editor/command/SetGeometry.d.ts +0 -13
- package/dist/editor/command/SetMaterial.d.ts +0 -12
- package/dist/editor/command/SetMaterialColor.d.ts +0 -14
- package/dist/editor/command/SetMaterialMap.d.ts +0 -17
- package/dist/editor/command/SetMaterialMapVector.d.ts +0 -15
- package/dist/editor/command/SetMaterialRange.d.ts +0 -14
- package/dist/editor/command/SetMaterialValue.d.ts +0 -14
- package/dist/editor/command/SetMaterialVector.d.ts +0 -14
- package/dist/editor/command/SetObjectMaterial.d.ts +0 -15
- package/dist/editor/command/SetPosition.d.ts +0 -12
- package/dist/editor/command/SetRotation.d.ts +0 -11
- package/dist/editor/command/SetScale.d.ts +0 -11
- package/dist/editor/command/SetSceenMap.d.ts +0 -4
- package/dist/editor/command/SetSetting.d.ts +0 -14
- package/dist/editor/command/SetTarget.d.ts +0 -12
- package/dist/editor/command/SetValue.d.ts +0 -14
- package/dist/editor/command/SetVector.d.ts +0 -14
- package/dist/editor/config.d.ts +0 -20
- package/dist/editor/helper.d.ts +0 -1
- package/dist/editor/history.d.ts +0 -77
- package/dist/editor/hooks.d.ts +0 -24
- package/dist/editor/index.d.ts +0 -94
- package/dist/editor/viewport.d.ts +0 -44
- package/dist/fix.d.ts +0 -0
- package/dist/getVisConfig.d.ts +0 -22
- package/dist/index.module.js +0 -146142
- package/dist/utils/animation.d.ts +0 -51
- package/dist/utils/base64ArrayBuffer.d.ts +0 -2
- package/dist/utils/compareVersion.d.ts +0 -2
- package/dist/utils/e.d.ts +0 -2
- package/dist/utils/fixVideoTexture.d.ts +0 -1
- package/dist/utils/jsonFetch.d.ts +0 -8
- package/dist/utils/observeScale.d.ts +0 -1
- package/dist/utils/png2webp.d.ts +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/vis/all/json/china/china.d.ts +0 -104
- package/dist/vis/all/json/continents/continents.d.ts +0 -210
- package/dist/vis/all/json/index.d.ts +0 -22
- package/dist/vis/all/json/world/world.d.ts +0 -42
- package/dist/vis/all/objects/Arc/index.d.ts +0 -43
- package/dist/vis/all/objects/Arc/utils.d.ts +0 -6
- package/dist/vis/all/objects/Box.d.ts +0 -4
- package/dist/vis/all/objects/Capsule.d.ts +0 -4
- package/dist/vis/all/objects/Circle.d.ts +0 -4
- package/dist/vis/all/objects/CrossPlane.d.ts +0 -12
- package/dist/vis/all/objects/Cylinder.d.ts +0 -4
- package/dist/vis/all/objects/Dodecahedron.d.ts +0 -4
- package/dist/vis/all/objects/Icosahedron.d.ts +0 -4
- package/dist/vis/all/objects/Lathe.d.ts +0 -4
- package/dist/vis/all/objects/Light.d.ts +0 -6
- package/dist/vis/all/objects/Model.d.ts +0 -68
- package/dist/vis/all/objects/Octahedron.d.ts +0 -4
- package/dist/vis/all/objects/Plane.d.ts +0 -4
- package/dist/vis/all/objects/PlaneShadow.d.ts +0 -4
- package/dist/vis/all/objects/Point.d.ts +0 -15
- package/dist/vis/all/objects/Ring.d.ts +0 -4
- package/dist/vis/all/objects/Sphere.d.ts +0 -8
- package/dist/vis/all/objects/Sprite.d.ts +0 -5
- package/dist/vis/all/objects/Tetrahedron.d.ts +0 -4
- package/dist/vis/all/objects/Torus.d.ts +0 -4
- package/dist/vis/all/objects/TorusKnot.d.ts +0 -4
- package/dist/vis/all/objects/Tube.d.ts +0 -13
- package/dist/vis/all/objects/index.d.ts +0 -77
- package/dist/vis/base/camera.d.ts +0 -24
- package/dist/vis/base/event.d.ts +0 -11
- package/dist/vis/base/index.d.ts +0 -127
- package/dist/vis/city/index.d.ts +0 -112
- package/dist/vis/city/objects/area/index.d.ts +0 -21
- package/dist/vis/city/objects/building/index.d.ts +0 -26
- package/dist/vis/city/objects/index.d.ts +0 -43
- package/dist/vis/city/objects/plane/Water.d.ts +0 -1
- package/dist/vis/city/objects/plane/Water2.d.ts +0 -68
- package/dist/vis/city/objects/plane/index.d.ts +0 -19
- package/dist/vis/city/objects/road/index.d.ts +0 -21
- package/dist/vis/city/objects/target/index.d.ts +0 -25
- package/dist/vis/earth/index.d.ts +0 -86
- package/dist/vis/earth/objects/SphereShadow.d.ts +0 -10
- package/dist/vis/earth/objects/earth/index.d.ts +0 -11
- package/dist/vis/earth/objects/index.d.ts +0 -39
- package/dist/vis/earth/styles/base.d.ts +0 -2
- package/dist/vis/earth/styles/chinaPlate.d.ts +0 -2
- package/dist/vis/earth/styles/countryPlate.d.ts +0 -2
- package/dist/vis/earth/styles/index.d.ts +0 -3
- package/dist/vis/index.d.ts +0 -4
- package/dist/vis/map/MapManager.d.ts +0 -132
- package/dist/vis/map/city.d.ts +0 -5
- package/dist/vis/map/el.d.ts +0 -1
- package/dist/vis/map/index.d.ts +0 -291
- package/dist/vis/map/objects/ContinentsBg.d.ts +0 -18
- package/dist/vis/map/objects/Mountain.d.ts +0 -30
- package/dist/vis/map/objects/PlaneMap.d.ts +0 -87
- package/dist/vis/map/objects/index.d.ts +0 -41
- package/dist/vis/map/styles/base.d.ts +0 -2
- package/dist/vis/map/styles/china.d.ts +0 -2
- package/dist/vis/map/styles/index.d.ts +0 -6
- package/dist/vis/map/styles/map2/base.d.ts +0 -2
- package/dist/vis/map/styles/map2/city350000.d.ts +0 -2
- package/dist/vis/map/styles/map2/cityOnMap.d.ts +0 -2
- package/dist/vis/map/styles/world.d.ts +0 -2
- package/dist/vis/map/styles/worldPacificCentre.d.ts +0 -2
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { FeatureCollection, GeoJsonProperties, MultiPolygon, Polygon, Position } from 'geojson';
|
|
2
|
-
import { BaseObject } from 'gl-draw';
|
|
3
|
-
import type { ExtrudePolygon, Group, Line, MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
export type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
6
|
-
interface Options {
|
|
7
|
-
areaGroup?: boolean;
|
|
8
|
-
geojson: GeoJSON;
|
|
9
|
-
projection?: {
|
|
10
|
-
center: [number, number];
|
|
11
|
-
scale: number;
|
|
12
|
-
rotate?: [number, number];
|
|
13
|
-
projectionType?: 'mercator' | 'equirectangular' | 'winkel3';
|
|
14
|
-
};
|
|
15
|
-
extrudeLineGeojson?: GeoJSON;
|
|
16
|
-
hasSide?: boolean;
|
|
17
|
-
hasTop?: boolean;
|
|
18
|
-
mergeSide?: boolean;
|
|
19
|
-
hasLine?: boolean;
|
|
20
|
-
start?: number;
|
|
21
|
-
depth?: number;
|
|
22
|
-
lineOffset?: number;
|
|
23
|
-
bbox?: number[];
|
|
24
|
-
topSegments?: number;
|
|
25
|
-
conic?: boolean;
|
|
26
|
-
materialOptions: {
|
|
27
|
-
topMat: THREE.Material;
|
|
28
|
-
sideMat?: THREE.Material;
|
|
29
|
-
lineMat?: MeshLineMaterial;
|
|
30
|
-
extrudeLineMat?: MeshLineMaterial;
|
|
31
|
-
bgTopMat?: THREE.Material;
|
|
32
|
-
bgSideMat?: THREE.Material;
|
|
33
|
-
bgLineMat?: MeshLineMaterial;
|
|
34
|
-
bgExtrudeLineMat?: MeshLineMaterial;
|
|
35
|
-
};
|
|
36
|
-
onTop?: number;
|
|
37
|
-
bloom?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export default class PlaneMap extends BaseObject {
|
|
40
|
-
options: Required<Omit<Options, 'bbox' | 'extrudeLineGeojson'>> & Pick<Options, 'bbox' | 'extrudeLineGeojson'>;
|
|
41
|
-
isActive: boolean;
|
|
42
|
-
groupArr: Group[];
|
|
43
|
-
areaArr: ExtrudePolygon[];
|
|
44
|
-
lineArr: Line[];
|
|
45
|
-
mergeSideArea: ExtrudePolygon | null;
|
|
46
|
-
extrudelineArr?: Line[];
|
|
47
|
-
splitPolygons: number;
|
|
48
|
-
constructor(options: Options);
|
|
49
|
-
create(): Promise<void>;
|
|
50
|
-
addArea(geojson: GeoJSON, options: {
|
|
51
|
-
material: THREE.Material | THREE.Material[];
|
|
52
|
-
bbox?: number[];
|
|
53
|
-
areaGroup?: boolean;
|
|
54
|
-
hasSide?: boolean;
|
|
55
|
-
hasTop?: boolean;
|
|
56
|
-
onTop?: number;
|
|
57
|
-
castShadow?: boolean;
|
|
58
|
-
}): Promise<ExtrudePolygon[]>;
|
|
59
|
-
addLine(geojson: GeoJSON, options: {
|
|
60
|
-
material?: MeshLineMaterial;
|
|
61
|
-
onTop?: number;
|
|
62
|
-
areaGroup?: boolean;
|
|
63
|
-
}): Promise<Line[]>;
|
|
64
|
-
getPropertiesKey(properties: Record<string, any>): string;
|
|
65
|
-
geojson2Meta(geojson: GeoJSON): {
|
|
66
|
-
coords: Position[][];
|
|
67
|
-
properties: GeoJsonProperties;
|
|
68
|
-
}[];
|
|
69
|
-
update(delta: number, elapsed: number): void;
|
|
70
|
-
findGroup(adcode: string | number, fix?: boolean): Group | undefined;
|
|
71
|
-
setAreaMaterial(key: string, material: THREE.Material[] | THREE.Material): void;
|
|
72
|
-
useAreaMaterial(key: string): void;
|
|
73
|
-
setLineMaterial(key: string, material: THREE.Material): void;
|
|
74
|
-
useLineMaterial(key: string): void;
|
|
75
|
-
setExtrudeLineMaterial(key: string, material: THREE.Material): void;
|
|
76
|
-
useExtrudeLineMaterial(key: string): void;
|
|
77
|
-
changeLineAnimateParams({ speed, extrude, }: {
|
|
78
|
-
speed?: number;
|
|
79
|
-
extrude?: boolean;
|
|
80
|
-
}): void;
|
|
81
|
-
deactive(): void;
|
|
82
|
-
render(): void;
|
|
83
|
-
toggleExtrudelineBloom(s: boolean): void;
|
|
84
|
-
active(): void;
|
|
85
|
-
dispose(): void;
|
|
86
|
-
}
|
|
87
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Lead } from 'gl-draw';
|
|
2
|
-
import PlaneMap from './PlaneMap';
|
|
3
|
-
import CityPlane from "../../city/objects/plane";
|
|
4
|
-
import ContinentsBg from './ContinentsBg';
|
|
5
|
-
import Mountain from './Mountain';
|
|
6
|
-
declare const objs: {
|
|
7
|
-
PlaneMap: typeof PlaneMap;
|
|
8
|
-
CityPlane: typeof CityPlane;
|
|
9
|
-
ContinentsBg: typeof ContinentsBg;
|
|
10
|
-
Mountain: typeof Mountain;
|
|
11
|
-
Plane: typeof import("../../all/objects/Plane").default;
|
|
12
|
-
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
13
|
-
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
14
|
-
Ring: typeof import("../../all/objects/Ring").default;
|
|
15
|
-
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
16
|
-
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
17
|
-
Tetrahedron: typeof import("../../all/objects/Tetrahedron").default;
|
|
18
|
-
Torus: typeof import("../../all/objects/Torus").default;
|
|
19
|
-
TorusKnot: typeof import("../../all/objects/TorusKnot").default;
|
|
20
|
-
Tube: typeof import("../../all/objects/Tube").default;
|
|
21
|
-
Box: typeof import("../../all/objects/Box").default;
|
|
22
|
-
Capsule: typeof import("../../all/objects/Capsule").default;
|
|
23
|
-
Circle: typeof import("../../all/objects/Circle").default;
|
|
24
|
-
Cylinder: typeof import("../../all/objects/Cylinder").default;
|
|
25
|
-
Dodecahedron: typeof import("../../all/objects/Dodecahedron").default;
|
|
26
|
-
Icosahedron: typeof import("../../all/objects/Icosahedron").default;
|
|
27
|
-
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
28
|
-
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
29
|
-
Node: typeof import("gl-draw/dist/objects").Node;
|
|
30
|
-
Line: typeof import("gl-draw/dist/objects").Line;
|
|
31
|
-
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
32
|
-
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
33
|
-
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
34
|
-
Group: typeof import("gl-draw/dist/objects").Group;
|
|
35
|
-
Light: typeof import("../../all/objects/Light").default;
|
|
36
|
-
Point: typeof import("../../all/objects/Point").default;
|
|
37
|
-
Arc: typeof import("../../all/objects/Arc").default;
|
|
38
|
-
Model: typeof import("../../all/objects/Model").default;
|
|
39
|
-
};
|
|
40
|
-
export default objs;
|
|
41
|
-
export type d = Lead<typeof objs>;
|