vis-core 0.14.4 → 0.14.5
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 +248 -186
- package/dist/index.module.js +1647 -1559
- package/dist/version.d.ts +1 -1
- package/dist/vis/earth/index.d.ts +5 -1
- package/dist/vis/earth/objects/countries/index.d.ts +4 -0
- package/dist/vis/earth3/objects/countries/index.d.ts +2 -9
- package/package.json +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.14.
|
|
1
|
+
declare const _default: "0.14.5";
|
|
2
2
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Base from "../Base";
|
|
2
2
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
3
|
+
import Countries from './objects/countries';
|
|
3
4
|
interface EarthOptions {
|
|
4
5
|
assetsPrefix?: string;
|
|
5
6
|
mapDepth?: number;
|
|
@@ -9,7 +10,7 @@ export default class extends Base {
|
|
|
9
10
|
static VisName: string;
|
|
10
11
|
drawController: DrawController<{
|
|
11
12
|
Earth: typeof import("./objects/earth").default;
|
|
12
|
-
Countries: typeof
|
|
13
|
+
Countries: typeof Countries;
|
|
13
14
|
China: typeof import("./objects/china").BorderAreaArc;
|
|
14
15
|
Plane: typeof import("../all/objects/Plane").default;
|
|
15
16
|
Ring: typeof import("../all/objects/Ring").default;
|
|
@@ -40,11 +41,14 @@ export default class extends Base {
|
|
|
40
41
|
leftTruck: boolean;
|
|
41
42
|
options: Required<EarthOptions>;
|
|
42
43
|
extendsOptions: Record<string, any>;
|
|
44
|
+
map: Countries;
|
|
45
|
+
get mapArea(): import("gl-draw/dist/objects").ConicPolygon[];
|
|
43
46
|
constructor(container: HTMLElement, options?: EarthOptions);
|
|
44
47
|
loaderAdd(): void;
|
|
45
48
|
init(): Promise<void>;
|
|
46
49
|
initMaterial(): Promise<void>;
|
|
47
50
|
initEarth(): Promise<void>;
|
|
48
51
|
getLocationPosition(location: [number, number], dr?: number): [number, number, number];
|
|
52
|
+
setAreaColorByProperty(key: string, value: any, color: string, mix?: boolean): void;
|
|
49
53
|
}
|
|
50
54
|
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { BaseObject } from 'gl-draw';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import { ConicPolygon } from 'gl-draw/dist/objects';
|
|
2
4
|
interface Options {
|
|
3
5
|
start?: number;
|
|
4
6
|
depth?: number;
|
|
5
7
|
}
|
|
6
8
|
export default class extends BaseObject {
|
|
7
9
|
options: Required<Options>;
|
|
10
|
+
areaArr: ConicPolygon[];
|
|
8
11
|
constructor(options: Options);
|
|
9
12
|
create(): Promise<void>;
|
|
13
|
+
setAreaColor(area: ConicPolygon, color: string): THREE.MeshStandardMaterial | undefined;
|
|
10
14
|
}
|
|
11
15
|
export {};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
start?: number;
|
|
4
|
-
depth?: number;
|
|
5
|
-
}
|
|
6
|
-
export default class extends BaseObject {
|
|
7
|
-
options: Required<Options>;
|
|
8
|
-
constructor(options: Options);
|
|
1
|
+
import Countries from "../../../earth/objects/countries";
|
|
2
|
+
export default class extends Countries {
|
|
9
3
|
create(): Promise<void>;
|
|
10
4
|
}
|
|
11
|
-
export {};
|