vis-core 0.15.3 → 0.15.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 +49 -49
- package/dist/index.module.js +2882 -2904
- package/dist/version.d.ts +1 -1
- package/dist/vis/earth/index.d.ts +2 -1
- package/dist/vis/earth/objects/countries/index.d.ts +1 -0
- package/dist/vis/earth/objects/index.d.ts +0 -2
- package/package.json +1 -1
- package/dist/vis/earth/objects/china/index.d.ts +0 -14
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.15.
|
|
1
|
+
declare const _default: "0.15.5";
|
|
2
2
|
export default _default;
|
|
@@ -3,6 +3,7 @@ import * as THREE from 'three';
|
|
|
3
3
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
4
4
|
import { MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
5
5
|
import Countries from './objects/countries';
|
|
6
|
+
import { BaseObject } from 'gl-draw';
|
|
6
7
|
interface EarthOptions {
|
|
7
8
|
assetsPrefix?: string;
|
|
8
9
|
mapDepth?: number;
|
|
@@ -13,7 +14,6 @@ export default class extends Base {
|
|
|
13
14
|
drawController: DrawController<{
|
|
14
15
|
Earth: typeof import("./objects/earth").default;
|
|
15
16
|
Countries: typeof Countries;
|
|
16
|
-
China: typeof import("./objects/china").BorderAreaArc;
|
|
17
17
|
Plane: typeof import("../all/objects/Plane").default;
|
|
18
18
|
Ring: typeof import("../all/objects/Ring").default;
|
|
19
19
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
@@ -58,5 +58,6 @@ export default class extends Base {
|
|
|
58
58
|
area: ConstructorParameters<typeof THREE.MeshBasicMaterial>[0];
|
|
59
59
|
line: ConstructorParameters<typeof MeshLineMaterial>[0];
|
|
60
60
|
}): Promise<Countries | undefined>;
|
|
61
|
+
checkBehindEarth(objArr: () => BaseObject[], cb: (behind: BaseObject[], front: BaseObject[]) => any): void;
|
|
61
62
|
}
|
|
62
63
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
2
|
import Earth from './earth';
|
|
3
3
|
import Countries from './countries';
|
|
4
|
-
import China from './china';
|
|
5
4
|
declare const objs: {
|
|
6
5
|
Earth: typeof Earth;
|
|
7
6
|
Countries: typeof Countries;
|
|
8
|
-
China: typeof China;
|
|
9
7
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
10
8
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
11
9
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from 'gl-draw';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
interface Options {
|
|
4
|
-
borderColor: THREE.Color;
|
|
5
|
-
}
|
|
6
|
-
export declare class BorderAreaArc extends BaseObject {
|
|
7
|
-
options: Options;
|
|
8
|
-
constructor(options?: Partial<Options>);
|
|
9
|
-
create(): Promise<void>;
|
|
10
|
-
getProvinceByAdcode(adcode: number): import("gl-draw/dist/objects").ConicPolygon | undefined;
|
|
11
|
-
start(adcode: number): void;
|
|
12
|
-
end(adcode: number): void;
|
|
13
|
-
}
|
|
14
|
-
export default BorderAreaArc;
|