vis-core 0.14.1 → 0.14.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.d.ts +2 -1
- package/dist/index.js +203 -203
- package/dist/index.module.js +7216 -7176
- package/dist/version.d.ts +1 -1
- package/dist/vis/Base.d.ts +3 -3
- package/dist/vis/all/objects/Sphere.d.ts +1 -0
- package/dist/vis/all/objects/index.d.ts +6 -5
- package/dist/vis/city/index.d.ts +25 -8
- package/dist/vis/city/objects/area/index.d.ts +1 -1
- package/dist/vis/city/objects/building/index.d.ts +1 -1
- package/dist/vis/city/objects/index.d.ts +25 -11
- package/dist/vis/city/objects/road/index.d.ts +1 -1
- package/dist/vis/earth/index.d.ts +27 -7
- package/dist/vis/earth/objects/countries/index.d.ts +7 -0
- package/dist/vis/earth/objects/earth/index.d.ts +6 -1
- package/dist/vis/earth/objects/index.d.ts +24 -7
- package/dist/vis/earth2/index.d.ts +23 -6
- package/dist/vis/earth2/objects/index.d.ts +24 -9
- package/dist/vis/earth3/config.d.ts +8 -0
- package/dist/vis/earth3/index.d.ts +38 -0
- package/dist/vis/earth3/objects/countries/index.d.ts +11 -0
- package/dist/vis/earth3/objects/index.d.ts +35 -0
- package/dist/vis/earth3/utils/animation.d.ts +1 -0
- package/dist/vis/earth3/utils/index.d.ts +2 -0
- package/dist/vis/index.d.ts +1 -0
- package/dist/vis/map/index.d.ts +26 -7
- package/dist/vis/map/objects/ContinentsBg.d.ts +1 -1
- package/dist/vis/map/objects/index.d.ts +25 -10
- package/dist/vis/map2/city.d.ts +25 -8
- package/dist/vis/map2/map.d.ts +26 -9
- package/dist/vis/map2/objects/index.d.ts +24 -10
- package/package.json +2 -2
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.14.
|
|
1
|
+
declare const _default: "0.14.2";
|
|
2
2
|
export default _default;
|
package/dist/vis/Base.d.ts
CHANGED
|
@@ -20,8 +20,7 @@ export default class Base {
|
|
|
20
20
|
delLoadObj?: Record<string, boolean>;
|
|
21
21
|
extendsOptions: Record<string, any>;
|
|
22
22
|
pencil: Pencil;
|
|
23
|
-
drawController:
|
|
24
|
-
allDrawController: DrawController<{
|
|
23
|
+
drawController: DrawController<{
|
|
25
24
|
Plane: typeof import("./all/objects/Plane").default;
|
|
26
25
|
Ring: typeof import("./all/objects/Ring").default;
|
|
27
26
|
Sphere: typeof import("./all/objects/Sphere").default;
|
|
@@ -42,8 +41,9 @@ export default class Base {
|
|
|
42
41
|
Image: typeof import("gl-draw/dist/objects").Image;
|
|
43
42
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
44
43
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
44
|
+
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
45
45
|
Group: typeof import("gl-draw/dist/objects").Group;
|
|
46
|
-
Light: typeof import("./
|
|
46
|
+
Light: typeof import("./all/objects/Light").default;
|
|
47
47
|
Point: typeof import("./all/objects/Point").default;
|
|
48
48
|
Arc: typeof import("./all/objects/Arc").default;
|
|
49
49
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
|
-
import { Node, Image, Line, ExtrudePolygon, Group } from 'gl-draw/dist/objects';
|
|
2
|
+
import { Node, Image, Line, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/dist/objects';
|
|
3
3
|
import Light from './Light';
|
|
4
4
|
import Point from './Point';
|
|
5
5
|
import Arc from './Arc';
|
|
@@ -19,7 +19,7 @@ import Tetrahedron from './Tetrahedron';
|
|
|
19
19
|
import Torus from './Torus';
|
|
20
20
|
import TorusKnot from './TorusKnot';
|
|
21
21
|
import Tube from './Tube';
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const expObjs: {
|
|
23
23
|
Plane: typeof Plane;
|
|
24
24
|
Ring: typeof Ring;
|
|
25
25
|
Sphere: typeof Sphere;
|
|
@@ -37,7 +37,7 @@ export declare const objs2: {
|
|
|
37
37
|
Lathe: typeof Lathe;
|
|
38
38
|
Octahedron: typeof Octahedron;
|
|
39
39
|
};
|
|
40
|
-
declare const
|
|
40
|
+
declare const objs: {
|
|
41
41
|
Plane: typeof Plane;
|
|
42
42
|
Ring: typeof Ring;
|
|
43
43
|
Sphere: typeof Sphere;
|
|
@@ -58,10 +58,11 @@ declare const objall: {
|
|
|
58
58
|
Image: typeof Image;
|
|
59
59
|
Line: typeof Line;
|
|
60
60
|
ExtrudePolygon: typeof ExtrudePolygon;
|
|
61
|
+
ConicPolygon: typeof ConicPolygon;
|
|
61
62
|
Group: typeof Group;
|
|
62
63
|
Light: typeof Light;
|
|
63
64
|
Point: typeof Point;
|
|
64
65
|
Arc: typeof Arc;
|
|
65
66
|
};
|
|
66
|
-
export default
|
|
67
|
-
export type d = DrawController<typeof
|
|
67
|
+
export default objs;
|
|
68
|
+
export type d = DrawController<typeof objs>;
|
package/dist/vis/city/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseObject } from 'gl-draw';
|
|
|
2
2
|
import Base from "../Base";
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import { getProjection } from 'gl-draw/dist/utils';
|
|
5
|
-
import { Group } from
|
|
5
|
+
import { Group } from 'gl-draw/dist/objects';
|
|
6
6
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
7
7
|
interface CityOptions {
|
|
8
8
|
adcode: number;
|
|
@@ -32,18 +32,35 @@ interface CityOptions {
|
|
|
32
32
|
export default class extends Base {
|
|
33
33
|
static VisName: string;
|
|
34
34
|
drawController: DrawController<{
|
|
35
|
-
Node: typeof import("gl-draw/dist/objects").Node;
|
|
36
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
37
|
-
Line: typeof import("./objects").Line;
|
|
38
|
-
ExtrudePolygon: typeof import("./objects").ExtrudePolygon;
|
|
39
35
|
Building: typeof import("./objects/building").default;
|
|
40
36
|
Road: typeof import("./objects/road").default;
|
|
41
37
|
Area: typeof import("./objects/area").default;
|
|
42
|
-
Video: typeof import("gl-draw/dist/objects").Video;
|
|
43
|
-
Group: typeof Group;
|
|
44
|
-
Light: typeof import("../map/objects").Light;
|
|
45
38
|
Plane: typeof import("./objects/plane").default;
|
|
46
39
|
Target: typeof import("./objects/target").default;
|
|
40
|
+
Ring: typeof import("../all/objects/Ring").default;
|
|
41
|
+
Sphere: typeof import("../all/objects/Sphere").default;
|
|
42
|
+
Sprite: typeof import("../all/objects/Sprite").default;
|
|
43
|
+
Tetrahedron: typeof import("../all/objects/Tetrahedron").default;
|
|
44
|
+
Torus: typeof import("../all/objects/Torus").default;
|
|
45
|
+
TorusKnot: typeof import("../all/objects/TorusKnot").default;
|
|
46
|
+
Tube: typeof import("../all/objects/Tube").default;
|
|
47
|
+
Box: typeof import("../all/objects/Box").default;
|
|
48
|
+
Capsule: typeof import("../all/objects/Capsule").default;
|
|
49
|
+
Circle: typeof import("../all/objects/Circle").default;
|
|
50
|
+
Cylinder: typeof import("../all/objects/Cylinder").default;
|
|
51
|
+
Dodecahedron: typeof import("../all/objects/Dodecahedron").default;
|
|
52
|
+
Icosahedron: typeof import("../all/objects/Icosahedron").default;
|
|
53
|
+
Lathe: typeof import("../all/objects/Lathe").default;
|
|
54
|
+
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
55
|
+
Node: typeof import("gl-draw/dist/objects").Node;
|
|
56
|
+
Image: typeof import("gl-draw/dist/objects").Image;
|
|
57
|
+
Line: typeof import("gl-draw/dist/objects").Line;
|
|
58
|
+
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
59
|
+
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
60
|
+
Group: typeof Group;
|
|
61
|
+
Light: typeof import("../all/objects/Light").default;
|
|
62
|
+
Point: typeof import("../all/objects/Point").default;
|
|
63
|
+
Arc: typeof import("../all/objects/Arc").default;
|
|
47
64
|
}>;
|
|
48
65
|
adcode: number;
|
|
49
66
|
pcenter: [number, number];
|
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
|
-
import { Node, Image, Line, ExtrudePolygon, Group, Video } from 'gl-draw/dist/objects';
|
|
3
|
-
import Light from "../../all/objects/Light";
|
|
4
2
|
import Building from './building';
|
|
5
3
|
import Road from './road';
|
|
6
4
|
import Area from './area';
|
|
7
5
|
import Plane from './plane';
|
|
8
6
|
import Target from './target';
|
|
9
|
-
|
|
10
|
-
export declare const objs: {
|
|
11
|
-
Node: typeof Node;
|
|
12
|
-
Image: typeof Image;
|
|
13
|
-
Line: typeof Line;
|
|
14
|
-
ExtrudePolygon: typeof ExtrudePolygon;
|
|
7
|
+
declare const objs: {
|
|
15
8
|
Building: typeof Building;
|
|
16
9
|
Road: typeof Road;
|
|
17
10
|
Area: typeof Area;
|
|
18
|
-
Video: typeof Video;
|
|
19
|
-
Group: typeof Group;
|
|
20
|
-
Light: typeof Light;
|
|
21
11
|
Plane: typeof Plane;
|
|
22
12
|
Target: typeof Target;
|
|
13
|
+
Ring: typeof import("../../all/objects/Ring").default;
|
|
14
|
+
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
15
|
+
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
16
|
+
Tetrahedron: typeof import("../../all/objects/Tetrahedron").default;
|
|
17
|
+
Torus: typeof import("../../all/objects/Torus").default;
|
|
18
|
+
TorusKnot: typeof import("../../all/objects/TorusKnot").default;
|
|
19
|
+
Tube: typeof import("../../all/objects/Tube").default;
|
|
20
|
+
Box: typeof import("../../all/objects/Box").default;
|
|
21
|
+
Capsule: typeof import("../../all/objects/Capsule").default;
|
|
22
|
+
Circle: typeof import("../../all/objects/Circle").default;
|
|
23
|
+
Cylinder: typeof import("../../all/objects/Cylinder").default;
|
|
24
|
+
Dodecahedron: typeof import("../../all/objects/Dodecahedron").default;
|
|
25
|
+
Icosahedron: typeof import("../../all/objects/Icosahedron").default;
|
|
26
|
+
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
27
|
+
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
28
|
+
Node: typeof import("gl-draw/dist/objects").Node;
|
|
29
|
+
Image: typeof import("gl-draw/dist/objects").Image;
|
|
30
|
+
Line: typeof import("gl-draw/dist/objects").Line;
|
|
31
|
+
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
32
|
+
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
33
|
+
Group: typeof import("gl-draw/dist/objects").Group;
|
|
34
|
+
Light: typeof import("../../all/objects/Light").default;
|
|
35
|
+
Point: typeof import("../../all/objects/Point").default;
|
|
36
|
+
Arc: typeof import("../../all/objects/Arc").default;
|
|
23
37
|
};
|
|
24
38
|
export default objs;
|
|
25
39
|
export type d = DrawController<typeof objs>;
|
|
@@ -2,28 +2,48 @@ import Base from "../Base";
|
|
|
2
2
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
3
3
|
interface EarthOptions {
|
|
4
4
|
assetsPrefix?: string;
|
|
5
|
+
depth?: number;
|
|
6
|
+
radius?: number;
|
|
5
7
|
}
|
|
6
8
|
export default class extends Base {
|
|
7
9
|
static VisName: string;
|
|
8
10
|
drawController: DrawController<{
|
|
11
|
+
Light: typeof import("./objects/light").default;
|
|
12
|
+
Earth: typeof import("./objects/earth").default;
|
|
13
|
+
Countries: typeof import("./objects/countries").default;
|
|
14
|
+
China: typeof import("./objects/china").BorderAreaArc;
|
|
15
|
+
Plane: typeof import("../all/objects/Plane").default;
|
|
16
|
+
Ring: typeof import("../all/objects/Ring").default;
|
|
17
|
+
Sphere: typeof import("../all/objects/Sphere").default;
|
|
18
|
+
Sprite: typeof import("../all/objects/Sprite").default;
|
|
19
|
+
Tetrahedron: typeof import("../all/objects/Tetrahedron").default;
|
|
20
|
+
Torus: typeof import("../all/objects/Torus").default;
|
|
21
|
+
TorusKnot: typeof import("../all/objects/TorusKnot").default;
|
|
22
|
+
Tube: typeof import("../all/objects/Tube").default;
|
|
23
|
+
Box: typeof import("../all/objects/Box").default;
|
|
24
|
+
Capsule: typeof import("../all/objects/Capsule").default;
|
|
25
|
+
Circle: typeof import("../all/objects/Circle").default;
|
|
26
|
+
Cylinder: typeof import("../all/objects/Cylinder").default;
|
|
27
|
+
Dodecahedron: typeof import("../all/objects/Dodecahedron").default;
|
|
28
|
+
Icosahedron: typeof import("../all/objects/Icosahedron").default;
|
|
29
|
+
Lathe: typeof import("../all/objects/Lathe").default;
|
|
30
|
+
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
9
31
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
10
32
|
Image: typeof import("gl-draw/dist/objects").Image;
|
|
11
33
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
12
34
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
13
|
-
Group: typeof import("gl-draw/dist/objects").Group;
|
|
14
|
-
Light: typeof import("./objects/light").default;
|
|
15
35
|
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
36
|
+
Group: typeof import("gl-draw/dist/objects").Group;
|
|
37
|
+
Point: typeof import("../all/objects/Point").default;
|
|
38
|
+
Arc: typeof import("../all/objects/Arc").default;
|
|
19
39
|
}>;
|
|
20
40
|
leftTruck: boolean;
|
|
21
41
|
options: Required<EarthOptions>;
|
|
22
42
|
constructor(container: HTMLElement, options?: EarthOptions);
|
|
23
43
|
loaderAdd(): void;
|
|
24
44
|
init(): Promise<void>;
|
|
45
|
+
initMaterial(): Promise<void>;
|
|
25
46
|
initEarth(): Promise<void>;
|
|
26
|
-
|
|
27
|
-
animationIn(): void;
|
|
47
|
+
getLocationPosition(location: [number, number], dr?: number): [number, number, number];
|
|
28
48
|
}
|
|
29
49
|
export {};
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
|
-
import { Node, Image, Line, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/dist/objects';
|
|
3
2
|
import Earth from './earth';
|
|
4
3
|
import Countries from './countries';
|
|
5
4
|
import Light from './light';
|
|
6
5
|
import China from './china';
|
|
7
6
|
declare const objs: {
|
|
8
|
-
Node: typeof Node;
|
|
9
|
-
Image: typeof Image;
|
|
10
|
-
Line: typeof Line;
|
|
11
|
-
ExtrudePolygon: typeof ExtrudePolygon;
|
|
12
|
-
Group: typeof Group;
|
|
13
7
|
Light: typeof Light;
|
|
14
|
-
ConicPolygon: typeof ConicPolygon;
|
|
15
8
|
Earth: typeof Earth;
|
|
16
9
|
Countries: typeof Countries;
|
|
17
10
|
China: typeof China;
|
|
11
|
+
Plane: typeof import("../../all/objects/Plane").default;
|
|
12
|
+
Ring: typeof import("../../all/objects/Ring").default;
|
|
13
|
+
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
14
|
+
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
15
|
+
Tetrahedron: typeof import("../../all/objects/Tetrahedron").default;
|
|
16
|
+
Torus: typeof import("../../all/objects/Torus").default;
|
|
17
|
+
TorusKnot: typeof import("../../all/objects/TorusKnot").default;
|
|
18
|
+
Tube: typeof import("../../all/objects/Tube").default;
|
|
19
|
+
Box: typeof import("../../all/objects/Box").default;
|
|
20
|
+
Capsule: typeof import("../../all/objects/Capsule").default;
|
|
21
|
+
Circle: typeof import("../../all/objects/Circle").default;
|
|
22
|
+
Cylinder: typeof import("../../all/objects/Cylinder").default;
|
|
23
|
+
Dodecahedron: typeof import("../../all/objects/Dodecahedron").default;
|
|
24
|
+
Icosahedron: typeof import("../../all/objects/Icosahedron").default;
|
|
25
|
+
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
26
|
+
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
27
|
+
Node: typeof import("gl-draw/dist/objects").Node;
|
|
28
|
+
Image: typeof import("gl-draw/dist/objects").Image;
|
|
29
|
+
Line: typeof import("gl-draw/dist/objects").Line;
|
|
30
|
+
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
31
|
+
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
32
|
+
Group: typeof import("gl-draw/dist/objects").Group;
|
|
33
|
+
Point: typeof import("../../all/objects/Point").default;
|
|
34
|
+
Arc: typeof import("../../all/objects/Arc").default;
|
|
18
35
|
};
|
|
19
36
|
export default objs;
|
|
20
37
|
export type d = DrawController<typeof objs>;
|
|
@@ -7,17 +7,34 @@ export default class extends Base {
|
|
|
7
7
|
static VisName: string;
|
|
8
8
|
leftTruck: boolean;
|
|
9
9
|
drawController: DrawController<{
|
|
10
|
+
Earth: typeof import("./objects/earth").default;
|
|
11
|
+
Bg: typeof import("./objects/bg").default;
|
|
12
|
+
Label: typeof import("./objects/label").default;
|
|
13
|
+
Point: typeof import("./objects/point").default;
|
|
14
|
+
Plane: typeof import("../all/objects/Plane").default;
|
|
15
|
+
Ring: typeof import("../all/objects/Ring").default;
|
|
16
|
+
Sphere: typeof import("../all/objects/Sphere").default;
|
|
17
|
+
Sprite: typeof import("../all/objects/Sprite").default;
|
|
18
|
+
Tetrahedron: typeof import("../all/objects/Tetrahedron").default;
|
|
19
|
+
Torus: typeof import("../all/objects/Torus").default;
|
|
20
|
+
TorusKnot: typeof import("../all/objects/TorusKnot").default;
|
|
21
|
+
Tube: typeof import("../all/objects/Tube").default;
|
|
22
|
+
Box: typeof import("../all/objects/Box").default;
|
|
23
|
+
Capsule: typeof import("../all/objects/Capsule").default;
|
|
24
|
+
Circle: typeof import("../all/objects/Circle").default;
|
|
25
|
+
Cylinder: typeof import("../all/objects/Cylinder").default;
|
|
26
|
+
Dodecahedron: typeof import("../all/objects/Dodecahedron").default;
|
|
27
|
+
Icosahedron: typeof import("../all/objects/Icosahedron").default;
|
|
28
|
+
Lathe: typeof import("../all/objects/Lathe").default;
|
|
29
|
+
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
10
30
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
11
31
|
Image: typeof import("gl-draw/dist/objects").Image;
|
|
12
32
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
13
33
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
14
|
-
Group: typeof import("gl-draw/dist/objects").Group;
|
|
15
|
-
Light: typeof import("../map/objects").Light;
|
|
16
34
|
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Point: typeof import("./objects/point").default;
|
|
35
|
+
Group: typeof import("gl-draw/dist/objects").Group;
|
|
36
|
+
Light: typeof import("../all/objects/Light").default;
|
|
37
|
+
Arc: typeof import("../all/objects/Arc").default;
|
|
21
38
|
}>;
|
|
22
39
|
options: Required<EarthOptions>;
|
|
23
40
|
constructor(container: HTMLElement, options?: EarthOptions);
|
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
|
-
import { Node, Image, Line, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/dist/objects';
|
|
3
2
|
import Earth from './earth';
|
|
4
3
|
import Bg from './bg';
|
|
5
4
|
import Label from './label';
|
|
6
5
|
import Point from './point';
|
|
7
|
-
import Light from "../../all/objects/Light";
|
|
8
6
|
declare const objs: {
|
|
9
|
-
Node: typeof Node;
|
|
10
|
-
Image: typeof Image;
|
|
11
|
-
Line: typeof Line;
|
|
12
|
-
ExtrudePolygon: typeof ExtrudePolygon;
|
|
13
|
-
Group: typeof Group;
|
|
14
|
-
Light: typeof Light;
|
|
15
|
-
ConicPolygon: typeof ConicPolygon;
|
|
16
7
|
Earth: typeof Earth;
|
|
17
8
|
Bg: typeof Bg;
|
|
18
9
|
Label: typeof Label;
|
|
19
10
|
Point: typeof Point;
|
|
11
|
+
Plane: typeof import("../../all/objects/Plane").default;
|
|
12
|
+
Ring: typeof import("../../all/objects/Ring").default;
|
|
13
|
+
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
14
|
+
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
15
|
+
Tetrahedron: typeof import("../../all/objects/Tetrahedron").default;
|
|
16
|
+
Torus: typeof import("../../all/objects/Torus").default;
|
|
17
|
+
TorusKnot: typeof import("../../all/objects/TorusKnot").default;
|
|
18
|
+
Tube: typeof import("../../all/objects/Tube").default;
|
|
19
|
+
Box: typeof import("../../all/objects/Box").default;
|
|
20
|
+
Capsule: typeof import("../../all/objects/Capsule").default;
|
|
21
|
+
Circle: typeof import("../../all/objects/Circle").default;
|
|
22
|
+
Cylinder: typeof import("../../all/objects/Cylinder").default;
|
|
23
|
+
Dodecahedron: typeof import("../../all/objects/Dodecahedron").default;
|
|
24
|
+
Icosahedron: typeof import("../../all/objects/Icosahedron").default;
|
|
25
|
+
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
26
|
+
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
27
|
+
Node: typeof import("gl-draw/dist/objects").Node;
|
|
28
|
+
Image: typeof import("gl-draw/dist/objects").Image;
|
|
29
|
+
Line: typeof import("gl-draw/dist/objects").Line;
|
|
30
|
+
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
31
|
+
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
32
|
+
Group: typeof import("gl-draw/dist/objects").Group;
|
|
33
|
+
Light: typeof import("../../all/objects/Light").default;
|
|
34
|
+
Arc: typeof import("../../all/objects/Arc").default;
|
|
20
35
|
};
|
|
21
36
|
export default objs;
|
|
22
37
|
export type d = DrawController<typeof objs>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import Earth from "../earth";
|
|
2
|
+
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
3
|
+
export default class extends Earth {
|
|
4
|
+
static VisName: string;
|
|
5
|
+
drawController: DrawController<{
|
|
6
|
+
Light: typeof import("../earth/objects/light").default;
|
|
7
|
+
Earth: typeof import("../earth/objects/earth").default;
|
|
8
|
+
Countries: typeof import("./objects/countries").default;
|
|
9
|
+
Plane: typeof import("../all/objects/Plane").default;
|
|
10
|
+
Ring: typeof import("../all/objects/Ring").default;
|
|
11
|
+
Sphere: typeof import("../all/objects/Sphere").default;
|
|
12
|
+
Sprite: typeof import("../all/objects/Sprite").default;
|
|
13
|
+
Tetrahedron: typeof import("../all/objects/Tetrahedron").default;
|
|
14
|
+
Torus: typeof import("../all/objects/Torus").default;
|
|
15
|
+
TorusKnot: typeof import("../all/objects/TorusKnot").default;
|
|
16
|
+
Tube: typeof import("../all/objects/Tube").default;
|
|
17
|
+
Box: typeof import("../all/objects/Box").default;
|
|
18
|
+
Capsule: typeof import("../all/objects/Capsule").default;
|
|
19
|
+
Circle: typeof import("../all/objects/Circle").default;
|
|
20
|
+
Cylinder: typeof import("../all/objects/Cylinder").default;
|
|
21
|
+
Dodecahedron: typeof import("../all/objects/Dodecahedron").default;
|
|
22
|
+
Icosahedron: typeof import("../all/objects/Icosahedron").default;
|
|
23
|
+
Lathe: typeof import("../all/objects/Lathe").default;
|
|
24
|
+
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
25
|
+
Node: typeof import("gl-draw/dist/objects").Node;
|
|
26
|
+
Image: typeof import("gl-draw/dist/objects").Image;
|
|
27
|
+
Line: typeof import("gl-draw/dist/objects").Line;
|
|
28
|
+
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
29
|
+
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
30
|
+
Group: typeof import("gl-draw/dist/objects").Group;
|
|
31
|
+
Point: typeof import("../all/objects/Point").default;
|
|
32
|
+
Arc: typeof import("../all/objects/Arc").default;
|
|
33
|
+
}>;
|
|
34
|
+
loaderAdd(): void;
|
|
35
|
+
initMaterial(): Promise<void>;
|
|
36
|
+
initEarth(): Promise<void>;
|
|
37
|
+
getLocationPosition(location: [number, number], dr?: number): [number, number, number];
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
|
+
import Light from "../../earth/objects/light";
|
|
3
|
+
import Earth from "../../earth/objects/earth";
|
|
4
|
+
import Countries from './countries';
|
|
5
|
+
declare const objs: {
|
|
6
|
+
Light: typeof Light;
|
|
7
|
+
Earth: typeof Earth;
|
|
8
|
+
Countries: typeof Countries;
|
|
9
|
+
Plane: typeof import("../../all/objects/Plane").default;
|
|
10
|
+
Ring: typeof import("../../all/objects/Ring").default;
|
|
11
|
+
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
12
|
+
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
13
|
+
Tetrahedron: typeof import("../../all/objects/Tetrahedron").default;
|
|
14
|
+
Torus: typeof import("../../all/objects/Torus").default;
|
|
15
|
+
TorusKnot: typeof import("../../all/objects/TorusKnot").default;
|
|
16
|
+
Tube: typeof import("../../all/objects/Tube").default;
|
|
17
|
+
Box: typeof import("../../all/objects/Box").default;
|
|
18
|
+
Capsule: typeof import("../../all/objects/Capsule").default;
|
|
19
|
+
Circle: typeof import("../../all/objects/Circle").default;
|
|
20
|
+
Cylinder: typeof import("../../all/objects/Cylinder").default;
|
|
21
|
+
Dodecahedron: typeof import("../../all/objects/Dodecahedron").default;
|
|
22
|
+
Icosahedron: typeof import("../../all/objects/Icosahedron").default;
|
|
23
|
+
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
24
|
+
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
25
|
+
Node: typeof import("gl-draw/dist/objects").Node;
|
|
26
|
+
Image: typeof import("gl-draw/dist/objects").Image;
|
|
27
|
+
Line: typeof import("gl-draw/dist/objects").Line;
|
|
28
|
+
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
29
|
+
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
30
|
+
Group: typeof import("gl-draw/dist/objects").Group;
|
|
31
|
+
Point: typeof import("../../all/objects/Point").default;
|
|
32
|
+
Arc: typeof import("../../all/objects/Arc").default;
|
|
33
|
+
};
|
|
34
|
+
export default objs;
|
|
35
|
+
export type d = DrawController<typeof objs>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const animation: (source: Record<string, any>, target: Record<string, any>, duration?: number, easing?: (amount: number) => number) => Promise<unknown>;
|
package/dist/vis/index.d.ts
CHANGED
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { BaseObject } from 'gl-draw';
|
|
|
2
2
|
import Base from "../Base";
|
|
3
3
|
import { getProjection } from 'gl-draw/dist/utils';
|
|
4
4
|
import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
|
|
5
|
-
import { MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
5
|
+
import { MeshLineMaterial, Group } from 'gl-draw/dist/objects';
|
|
6
6
|
import * as THREE from 'three';
|
|
7
|
-
import
|
|
7
|
+
import PlaneMap from "./objects/PlaneMap";
|
|
8
|
+
import ContinentsBg from "./objects/ContinentsBg";
|
|
8
9
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
9
10
|
import { LevelArr } from 'geojson-cn';
|
|
10
11
|
type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
@@ -47,16 +48,34 @@ export interface MapOptions {
|
|
|
47
48
|
export default class extends Base {
|
|
48
49
|
static VisName: string;
|
|
49
50
|
drawController: DrawController<{
|
|
51
|
+
PlaneMap: typeof PlaneMap;
|
|
52
|
+
ContinentsBg: typeof ContinentsBg;
|
|
53
|
+
PlaneShadow: typeof import("./objects/PlaneShadow").default;
|
|
54
|
+
Plane: typeof import("../all/objects/Plane").default;
|
|
55
|
+
Ring: typeof import("../all/objects/Ring").default;
|
|
56
|
+
Sphere: typeof import("../all/objects/Sphere").default;
|
|
57
|
+
Sprite: typeof import("../all/objects/Sprite").default;
|
|
58
|
+
Tetrahedron: typeof import("../all/objects/Tetrahedron").default;
|
|
59
|
+
Torus: typeof import("../all/objects/Torus").default;
|
|
60
|
+
TorusKnot: typeof import("../all/objects/TorusKnot").default;
|
|
61
|
+
Tube: typeof import("../all/objects/Tube").default;
|
|
62
|
+
Box: typeof import("../all/objects/Box").default;
|
|
63
|
+
Capsule: typeof import("../all/objects/Capsule").default;
|
|
64
|
+
Circle: typeof import("../all/objects/Circle").default;
|
|
65
|
+
Cylinder: typeof import("../all/objects/Cylinder").default;
|
|
66
|
+
Dodecahedron: typeof import("../all/objects/Dodecahedron").default;
|
|
67
|
+
Icosahedron: typeof import("../all/objects/Icosahedron").default;
|
|
68
|
+
Lathe: typeof import("../all/objects/Lathe").default;
|
|
69
|
+
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
50
70
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
51
71
|
Image: typeof import("gl-draw/dist/objects").Image;
|
|
52
72
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
53
|
-
PlaneMap: typeof PlaneMap;
|
|
54
|
-
ContinentsBg: typeof ContinentsBg;
|
|
55
73
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
56
|
-
Group: typeof Group;
|
|
57
|
-
Light: typeof import("./objects").Light;
|
|
58
|
-
PlaneShadow: typeof import("./objects/PlaneShadow").default;
|
|
59
74
|
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
75
|
+
Group: typeof Group;
|
|
76
|
+
Light: typeof import("../all/objects/Light").default;
|
|
77
|
+
Point: typeof import("../all/objects/Point").default;
|
|
78
|
+
Arc: typeof import("../all/objects/Arc").default;
|
|
60
79
|
}>;
|
|
61
80
|
options: Required<MapOptions>;
|
|
62
81
|
mapHistory: {
|