vis-core 0.30.0-beta.7 → 0.30.0-beta.71
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 -11
- 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 -87
- 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 -145133
- 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 -10
- 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 -123
- package/dist/vis/city/index.d.ts +0 -118
- package/dist/vis/city/objects/area/index.d.ts +0 -23
- package/dist/vis/city/objects/building/index.d.ts +0 -28
- 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 -23
- 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/city.d.ts +0 -5
- package/dist/vis/map/el.d.ts +0 -1
- package/dist/vis/map/index.d.ts +0 -284
- 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,51 +0,0 @@
|
|
|
1
|
-
import { IBaseObject } from 'gl-draw/dist/core/BaseObject';
|
|
2
|
-
export declare const timeOut: (ms: number) => Promise<any>;
|
|
3
|
-
export declare const sinusoidalInOut: ({ onUpdate, onComplete, backwards, }?: {
|
|
4
|
-
onUpdate?: ((v: number) => void) | undefined;
|
|
5
|
-
onComplete?: (() => void) | undefined;
|
|
6
|
-
backwards?: boolean | undefined;
|
|
7
|
-
}) => {
|
|
8
|
-
start: ({ duration, repeat, repeatResolve, repeatDelay, }?: {
|
|
9
|
-
duration?: number | undefined;
|
|
10
|
-
repeat?: number | undefined;
|
|
11
|
-
repeatResolve?: number | undefined;
|
|
12
|
-
repeatDelay?: number | undefined;
|
|
13
|
-
}) => Promise<any>;
|
|
14
|
-
stop: () => void;
|
|
15
|
-
};
|
|
16
|
-
export declare const baseObjectFadeIn: (obj: IBaseObject) => {
|
|
17
|
-
start: ({ duration, repeat, repeatResolve, repeatDelay, }?: {
|
|
18
|
-
duration?: number | undefined;
|
|
19
|
-
repeat?: number | undefined;
|
|
20
|
-
repeatResolve?: number | undefined;
|
|
21
|
-
repeatDelay?: number | undefined;
|
|
22
|
-
}) => Promise<any>;
|
|
23
|
-
stop: () => void;
|
|
24
|
-
};
|
|
25
|
-
export declare const baseObjectFadeOut: (obj: IBaseObject) => {
|
|
26
|
-
start: ({ duration, repeat, repeatResolve, repeatDelay, }?: {
|
|
27
|
-
duration?: number | undefined;
|
|
28
|
-
repeat?: number | undefined;
|
|
29
|
-
repeatResolve?: number | undefined;
|
|
30
|
-
repeatDelay?: number | undefined;
|
|
31
|
-
}) => Promise<any>;
|
|
32
|
-
stop: () => void;
|
|
33
|
-
};
|
|
34
|
-
export declare const baseObjectBounceIn: (obj: IBaseObject, up?: string) => {
|
|
35
|
-
start: ({ duration, repeat, repeatResolve, repeatDelay, }?: {
|
|
36
|
-
duration?: number | undefined;
|
|
37
|
-
repeat?: number | undefined;
|
|
38
|
-
repeatResolve?: number | undefined;
|
|
39
|
-
repeatDelay?: number | undefined;
|
|
40
|
-
}) => Promise<any>;
|
|
41
|
-
stop: () => void;
|
|
42
|
-
};
|
|
43
|
-
export declare const baseObjectBounce: (obj: IBaseObject, up: string | undefined, to: number) => {
|
|
44
|
-
start: ({ duration, repeat, repeatResolve, repeatDelay, }?: {
|
|
45
|
-
duration?: number | undefined;
|
|
46
|
-
repeat?: number | undefined;
|
|
47
|
-
repeatResolve?: number | undefined;
|
|
48
|
-
repeatDelay?: number | undefined;
|
|
49
|
-
}) => Promise<any>;
|
|
50
|
-
stop: () => void;
|
|
51
|
-
};
|
package/dist/utils/e.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type DownloadProgress = {
|
|
2
|
-
percent: number;
|
|
3
|
-
transferredBytes: number;
|
|
4
|
-
totalBytes: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const isGzip: (url: string) => boolean;
|
|
7
|
-
declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void, gzip?: (url: string) => boolean) => Promise<any>;
|
|
8
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function observeScale(element: HTMLElement, callback: (scale: number, type?: string) => void): MutationObserver | null;
|
package/dist/utils/png2webp.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const png2webp: (imageSrc: string, imageMax?: number) => Promise<HTMLImageElement>;
|
package/dist/version.d.ts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
export declare const chinaJson: {
|
|
2
|
-
type: string;
|
|
3
|
-
features: ({
|
|
4
|
-
type: string;
|
|
5
|
-
properties: {
|
|
6
|
-
adcode: number;
|
|
7
|
-
name: string;
|
|
8
|
-
center: number[];
|
|
9
|
-
centroid: number[];
|
|
10
|
-
childrenNum: number;
|
|
11
|
-
level: string;
|
|
12
|
-
parent: {
|
|
13
|
-
adcode: number;
|
|
14
|
-
};
|
|
15
|
-
subFeatureIndex: number;
|
|
16
|
-
acroutes: number[];
|
|
17
|
-
adchar?: undefined;
|
|
18
|
-
};
|
|
19
|
-
geometry: {
|
|
20
|
-
type: string;
|
|
21
|
-
coordinates: number[][][][];
|
|
22
|
-
};
|
|
23
|
-
} | {
|
|
24
|
-
type: string;
|
|
25
|
-
properties: {
|
|
26
|
-
adcode: number;
|
|
27
|
-
name: string;
|
|
28
|
-
center: number[];
|
|
29
|
-
childrenNum: number;
|
|
30
|
-
level: string;
|
|
31
|
-
parent: {
|
|
32
|
-
adcode: number;
|
|
33
|
-
};
|
|
34
|
-
subFeatureIndex: number;
|
|
35
|
-
acroutes: number[];
|
|
36
|
-
centroid?: undefined;
|
|
37
|
-
adchar?: undefined;
|
|
38
|
-
};
|
|
39
|
-
geometry: {
|
|
40
|
-
type: string;
|
|
41
|
-
coordinates: number[][][][];
|
|
42
|
-
};
|
|
43
|
-
} | {
|
|
44
|
-
type: string;
|
|
45
|
-
properties: {
|
|
46
|
-
adcode: number;
|
|
47
|
-
name: string;
|
|
48
|
-
center: number[];
|
|
49
|
-
centroid: number[];
|
|
50
|
-
childrenNum: number;
|
|
51
|
-
level: string;
|
|
52
|
-
parent: {
|
|
53
|
-
adcode: number;
|
|
54
|
-
};
|
|
55
|
-
subFeatureIndex: number;
|
|
56
|
-
acroutes: number[];
|
|
57
|
-
adchar?: undefined;
|
|
58
|
-
};
|
|
59
|
-
geometry: {
|
|
60
|
-
type: string;
|
|
61
|
-
coordinates: number[][][];
|
|
62
|
-
};
|
|
63
|
-
} | {
|
|
64
|
-
type: string;
|
|
65
|
-
properties: {
|
|
66
|
-
name: string;
|
|
67
|
-
adchar: string;
|
|
68
|
-
adcode: string;
|
|
69
|
-
center?: undefined;
|
|
70
|
-
centroid?: undefined;
|
|
71
|
-
childrenNum?: undefined;
|
|
72
|
-
level?: undefined;
|
|
73
|
-
parent?: undefined;
|
|
74
|
-
subFeatureIndex?: undefined;
|
|
75
|
-
acroutes?: undefined;
|
|
76
|
-
};
|
|
77
|
-
geometry: {
|
|
78
|
-
type: string;
|
|
79
|
-
coordinates: number[][][][];
|
|
80
|
-
};
|
|
81
|
-
})[];
|
|
82
|
-
};
|
|
83
|
-
export declare const chinaLiteJson: {
|
|
84
|
-
type: string;
|
|
85
|
-
features: {
|
|
86
|
-
type: string;
|
|
87
|
-
properties: {
|
|
88
|
-
adcode: number;
|
|
89
|
-
name: string;
|
|
90
|
-
center: number[];
|
|
91
|
-
centroid: number[];
|
|
92
|
-
childrenNum: number;
|
|
93
|
-
level: string;
|
|
94
|
-
parent: {
|
|
95
|
-
adcode: null;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
geometry: {
|
|
99
|
-
type: string;
|
|
100
|
-
coordinates: number[][][][];
|
|
101
|
-
};
|
|
102
|
-
}[];
|
|
103
|
-
};
|
|
104
|
-
export declare const chinaBbox: number[];
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
export declare const continentsBbox: {
|
|
2
|
-
"2": number[];
|
|
3
|
-
"5": number[];
|
|
4
|
-
"9": number[];
|
|
5
|
-
"10": number[];
|
|
6
|
-
"21": number[];
|
|
7
|
-
"142": number[];
|
|
8
|
-
"150": number[];
|
|
9
|
-
};
|
|
10
|
-
export declare const continentsM49: {
|
|
11
|
-
Asia: number;
|
|
12
|
-
Europe: number;
|
|
13
|
-
Africa: number;
|
|
14
|
-
Oceania: number;
|
|
15
|
-
'North America': number;
|
|
16
|
-
'South America': number;
|
|
17
|
-
Antarctica: number;
|
|
18
|
-
};
|
|
19
|
-
export declare const continentsType: {
|
|
20
|
-
name: string;
|
|
21
|
-
en_name: "Africa" | "South America" | "Oceania" | "Antarctica" | "North America" | "Asia" | "Europe";
|
|
22
|
-
adcode: number;
|
|
23
|
-
lng: number;
|
|
24
|
-
lat: number;
|
|
25
|
-
level: string;
|
|
26
|
-
parent: number;
|
|
27
|
-
c: never[];
|
|
28
|
-
b: number[];
|
|
29
|
-
}[];
|
|
30
|
-
export declare const continentsJson: Record<number, {
|
|
31
|
-
features: ({
|
|
32
|
-
type: string;
|
|
33
|
-
properties: {
|
|
34
|
-
name: string;
|
|
35
|
-
full_name: string;
|
|
36
|
-
iso_a2: string;
|
|
37
|
-
iso_a3: string;
|
|
38
|
-
iso_n3: string;
|
|
39
|
-
centroid: number[];
|
|
40
|
-
};
|
|
41
|
-
geometry: {
|
|
42
|
-
type: string;
|
|
43
|
-
coordinates: number[][][];
|
|
44
|
-
};
|
|
45
|
-
} | {
|
|
46
|
-
type: string;
|
|
47
|
-
properties: {
|
|
48
|
-
name: string;
|
|
49
|
-
full_name: string;
|
|
50
|
-
iso_a2: string;
|
|
51
|
-
iso_a3: string;
|
|
52
|
-
iso_n3: string;
|
|
53
|
-
centroid: number[];
|
|
54
|
-
};
|
|
55
|
-
geometry: {
|
|
56
|
-
type: string;
|
|
57
|
-
coordinates: number[][][][];
|
|
58
|
-
};
|
|
59
|
-
})[];
|
|
60
|
-
type: string;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const continentsLiteJson: {
|
|
63
|
-
"2": {
|
|
64
|
-
type: string;
|
|
65
|
-
features: {
|
|
66
|
-
type: string;
|
|
67
|
-
properties: {
|
|
68
|
-
name: string;
|
|
69
|
-
en_name: string;
|
|
70
|
-
adcode: number;
|
|
71
|
-
lng: number;
|
|
72
|
-
lat: number;
|
|
73
|
-
level: string;
|
|
74
|
-
parent: number;
|
|
75
|
-
c: never[];
|
|
76
|
-
b: number[];
|
|
77
|
-
};
|
|
78
|
-
geometry: {
|
|
79
|
-
type: string;
|
|
80
|
-
coordinates: number[][][][];
|
|
81
|
-
};
|
|
82
|
-
}[];
|
|
83
|
-
};
|
|
84
|
-
"5": {
|
|
85
|
-
type: string;
|
|
86
|
-
features: {
|
|
87
|
-
type: string;
|
|
88
|
-
properties: {
|
|
89
|
-
name: string;
|
|
90
|
-
en_name: string;
|
|
91
|
-
adcode: number;
|
|
92
|
-
lng: number;
|
|
93
|
-
lat: number;
|
|
94
|
-
level: string;
|
|
95
|
-
parent: number;
|
|
96
|
-
c: never[];
|
|
97
|
-
b: number[];
|
|
98
|
-
};
|
|
99
|
-
geometry: {
|
|
100
|
-
type: string;
|
|
101
|
-
coordinates: number[][][][];
|
|
102
|
-
};
|
|
103
|
-
}[];
|
|
104
|
-
};
|
|
105
|
-
"9": {
|
|
106
|
-
type: string;
|
|
107
|
-
features: {
|
|
108
|
-
type: string;
|
|
109
|
-
properties: {
|
|
110
|
-
name: string;
|
|
111
|
-
en_name: string;
|
|
112
|
-
adcode: number;
|
|
113
|
-
lng: number;
|
|
114
|
-
lat: number;
|
|
115
|
-
level: string;
|
|
116
|
-
parent: number;
|
|
117
|
-
c: never[];
|
|
118
|
-
b: number[];
|
|
119
|
-
};
|
|
120
|
-
geometry: {
|
|
121
|
-
type: string;
|
|
122
|
-
coordinates: number[][][][];
|
|
123
|
-
};
|
|
124
|
-
}[];
|
|
125
|
-
};
|
|
126
|
-
"10": {
|
|
127
|
-
type: string;
|
|
128
|
-
features: {
|
|
129
|
-
type: string;
|
|
130
|
-
properties: {
|
|
131
|
-
name: string;
|
|
132
|
-
en_name: string;
|
|
133
|
-
adcode: number;
|
|
134
|
-
lng: number;
|
|
135
|
-
lat: number;
|
|
136
|
-
level: string;
|
|
137
|
-
parent: number;
|
|
138
|
-
c: never[];
|
|
139
|
-
b: number[];
|
|
140
|
-
};
|
|
141
|
-
geometry: {
|
|
142
|
-
type: string;
|
|
143
|
-
coordinates: number[][][][];
|
|
144
|
-
};
|
|
145
|
-
}[];
|
|
146
|
-
};
|
|
147
|
-
"21": {
|
|
148
|
-
type: string;
|
|
149
|
-
features: {
|
|
150
|
-
type: string;
|
|
151
|
-
properties: {
|
|
152
|
-
name: string;
|
|
153
|
-
en_name: string;
|
|
154
|
-
adcode: number;
|
|
155
|
-
lng: number;
|
|
156
|
-
lat: number;
|
|
157
|
-
level: string;
|
|
158
|
-
parent: number;
|
|
159
|
-
c: never[];
|
|
160
|
-
b: number[];
|
|
161
|
-
};
|
|
162
|
-
geometry: {
|
|
163
|
-
type: string;
|
|
164
|
-
coordinates: number[][][][];
|
|
165
|
-
};
|
|
166
|
-
}[];
|
|
167
|
-
};
|
|
168
|
-
"142": {
|
|
169
|
-
type: string;
|
|
170
|
-
features: {
|
|
171
|
-
type: string;
|
|
172
|
-
properties: {
|
|
173
|
-
name: string;
|
|
174
|
-
en_name: string;
|
|
175
|
-
adcode: number;
|
|
176
|
-
lng: number;
|
|
177
|
-
lat: number;
|
|
178
|
-
level: string;
|
|
179
|
-
parent: number;
|
|
180
|
-
c: never[];
|
|
181
|
-
b: number[];
|
|
182
|
-
};
|
|
183
|
-
geometry: {
|
|
184
|
-
type: string;
|
|
185
|
-
coordinates: number[][][][];
|
|
186
|
-
};
|
|
187
|
-
}[];
|
|
188
|
-
};
|
|
189
|
-
"150": {
|
|
190
|
-
type: string;
|
|
191
|
-
features: {
|
|
192
|
-
type: string;
|
|
193
|
-
properties: {
|
|
194
|
-
name: string;
|
|
195
|
-
en_name: string;
|
|
196
|
-
adcode: number;
|
|
197
|
-
lng: number;
|
|
198
|
-
lat: number;
|
|
199
|
-
level: string;
|
|
200
|
-
parent: number;
|
|
201
|
-
c: never[];
|
|
202
|
-
b: number[];
|
|
203
|
-
};
|
|
204
|
-
geometry: {
|
|
205
|
-
type: string;
|
|
206
|
-
coordinates: number[][][][];
|
|
207
|
-
};
|
|
208
|
-
}[];
|
|
209
|
-
};
|
|
210
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import world from 'geojson-cn/json/0.json';
|
|
2
|
-
import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
|
|
3
|
-
type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
4
|
-
export declare const worldJson: {
|
|
5
|
-
features: typeof world.features;
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const worldExclATAJson: {
|
|
9
|
-
features: ({
|
|
10
|
-
type: string;
|
|
11
|
-
properties: {
|
|
12
|
-
name: string;
|
|
13
|
-
full_name: string;
|
|
14
|
-
iso_a2: string;
|
|
15
|
-
iso_a3: string;
|
|
16
|
-
iso_n3: string;
|
|
17
|
-
centroid: number[];
|
|
18
|
-
};
|
|
19
|
-
geometry: {
|
|
20
|
-
type: string;
|
|
21
|
-
coordinates: number[][][];
|
|
22
|
-
};
|
|
23
|
-
} | {
|
|
24
|
-
type: string;
|
|
25
|
-
properties: {
|
|
26
|
-
name: string;
|
|
27
|
-
full_name: string;
|
|
28
|
-
iso_a2: string;
|
|
29
|
-
iso_a3: string;
|
|
30
|
-
iso_n3: string;
|
|
31
|
-
centroid: number[];
|
|
32
|
-
};
|
|
33
|
-
geometry: {
|
|
34
|
-
type: string;
|
|
35
|
-
coordinates: number[][][][];
|
|
36
|
-
};
|
|
37
|
-
})[];
|
|
38
|
-
type: string;
|
|
39
|
-
};
|
|
40
|
-
export declare const worldExclATALiteJson: GeoJSON;
|
|
41
|
-
export declare const worldExclATABbox: number[];
|
|
42
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type Pencil from 'gl-draw';
|
|
2
|
-
import { BaseObject } from 'gl-draw';
|
|
3
|
-
import type { Line } from 'gl-draw/dist/objects';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import type Tube from '../Tube';
|
|
6
|
-
interface Options {
|
|
7
|
-
from: number[];
|
|
8
|
-
to: number[];
|
|
9
|
-
radius?: number;
|
|
10
|
-
globe?: boolean;
|
|
11
|
-
color?: string;
|
|
12
|
-
lineWidth?: number;
|
|
13
|
-
offsetLoop?: boolean;
|
|
14
|
-
key?: string;
|
|
15
|
-
}
|
|
16
|
-
export default class extends BaseObject {
|
|
17
|
-
options: Options;
|
|
18
|
-
line: Line;
|
|
19
|
-
helperMeshPosition?: THREE.Vector3[];
|
|
20
|
-
constructor(options: Options);
|
|
21
|
-
static getInitOptions(pencil: Pencil, options: Options): {
|
|
22
|
-
from: THREE.Vector3Tuple;
|
|
23
|
-
to: THREE.Vector3Tuple;
|
|
24
|
-
};
|
|
25
|
-
create(): Promise<void>;
|
|
26
|
-
instantiate(ops?: any): Promise<this>;
|
|
27
|
-
setPath(from: THREE.Vector3 | number[], to: THREE.Vector3 | number[], radius: number, setPointWidth?: (p: number) => number): void;
|
|
28
|
-
pickTube: Tube | null;
|
|
29
|
-
addPickTarget(radius?: number, show?: boolean): Promise<Tube>;
|
|
30
|
-
onPointerEvent(...args: Parameters<BaseObject['onPointerEvent']>): void;
|
|
31
|
-
setColor(color: string): void;
|
|
32
|
-
animateIn({ duration, delay, repeat, onComplete, onRepeat, }?: {
|
|
33
|
-
duration?: number;
|
|
34
|
-
delay?: number;
|
|
35
|
-
repeat?: number;
|
|
36
|
-
onComplete?: (...args: any[]) => void;
|
|
37
|
-
onRepeat?: (count: number) => void;
|
|
38
|
-
}): void;
|
|
39
|
-
update(): void;
|
|
40
|
-
render(): void;
|
|
41
|
-
dispose(): void;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import Pencil from 'gl-draw';
|
|
3
|
-
export declare const getLineTexture: (length: number, lightColor?: string, lineColor?: string) => THREE.CanvasTexture<HTMLCanvasElement>;
|
|
4
|
-
export declare const createFlyPath: (v0: THREE.Vector3, v3: THREE.Vector3, h?: number) => THREE.CubicBezierCurve3;
|
|
5
|
-
export declare const createFlyPath2: (v0: THREE.Vector3, v3: THREE.Vector3, h?: number) => THREE.CubicBezierCurve3;
|
|
6
|
-
export declare const pixel2unit: (pencil: Pencil, pixel: number) => number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from 'gl-draw';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
interface Options {
|
|
4
|
-
material?: THREE.Material;
|
|
5
|
-
key?: string;
|
|
6
|
-
}
|
|
7
|
-
export default class extends BaseObject {
|
|
8
|
-
options: Options;
|
|
9
|
-
constructor(options: Options);
|
|
10
|
-
create(): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from 'gl-draw';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
interface Options {
|
|
4
|
-
src?: string;
|
|
5
|
-
autoPlay?: boolean;
|
|
6
|
-
playbackSpeed?: number;
|
|
7
|
-
}
|
|
8
|
-
export default class extends BaseObject {
|
|
9
|
-
options: Options;
|
|
10
|
-
mixer: THREE.AnimationMixer | null;
|
|
11
|
-
clips: THREE.AnimationClip[];
|
|
12
|
-
actions: THREE.AnimationAction[];
|
|
13
|
-
actionStates: Record<string, boolean>;
|
|
14
|
-
constructor(options: Options);
|
|
15
|
-
create(): Promise<void>;
|
|
16
|
-
render(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Set animation clips for the model
|
|
19
|
-
* @param clips Array of animation clips from GLTF
|
|
20
|
-
*/
|
|
21
|
-
setClips(clips: THREE.AnimationClip[]): void;
|
|
22
|
-
/**
|
|
23
|
-
* Play all animation clips
|
|
24
|
-
*/
|
|
25
|
-
playAllClips(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Play a specific animation clip by name
|
|
28
|
-
* @param clipName Name of the animation clip to play
|
|
29
|
-
*/
|
|
30
|
-
playClip(clipName: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* Stop a specific animation clip by name
|
|
33
|
-
* @param clipName Name of the animation clip to stop
|
|
34
|
-
*/
|
|
35
|
-
stopClip(clipName: string): void;
|
|
36
|
-
/**
|
|
37
|
-
* Stop all animation clips
|
|
38
|
-
*/
|
|
39
|
-
stopAllClips(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Set the playback speed for all animations
|
|
42
|
-
* @param speed Playback speed (1.0 = normal speed)
|
|
43
|
-
*/
|
|
44
|
-
setPlaybackSpeed(speed: number): void;
|
|
45
|
-
/**
|
|
46
|
-
* Get the current playback speed
|
|
47
|
-
*/
|
|
48
|
-
getPlaybackSpeed(): number;
|
|
49
|
-
/**
|
|
50
|
-
* Check if a specific animation is playing
|
|
51
|
-
* @param clipName Name of the animation clip
|
|
52
|
-
*/
|
|
53
|
-
isPlaying(clipName: string): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Get all available animation clip names
|
|
56
|
-
*/
|
|
57
|
-
getClipNames(): string[];
|
|
58
|
-
/**
|
|
59
|
-
* Update animations - should be called in render loop
|
|
60
|
-
* @param deltaTime Time elapsed since last frame
|
|
61
|
-
*/
|
|
62
|
-
update(deltaTime: number): void;
|
|
63
|
-
/**
|
|
64
|
-
* Dispose of resources including animation mixer
|
|
65
|
-
*/
|
|
66
|
-
dispose(): void;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from 'gl-draw';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
interface Options {
|
|
4
|
-
sprite?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export default class extends BaseObject {
|
|
7
|
-
options: Options;
|
|
8
|
-
constructor(options: Options);
|
|
9
|
-
get material(): THREE.MeshBasicMaterial | THREE.SpriteMaterial;
|
|
10
|
-
getMaterial(): THREE.MeshBasicMaterial | THREE.SpriteMaterial;
|
|
11
|
-
create(): Promise<void>;
|
|
12
|
-
scaleValue: number;
|
|
13
|
-
setScale(n: number): void;
|
|
14
|
-
}
|
|
15
|
-
export {};
|