vis-core 0.15.2 → 0.15.4
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 +50 -50
- package/dist/index.module.js +4174 -4256
- package/dist/version.d.ts +1 -1
- package/dist/vis/earth/index.d.ts +6 -1
- package/dist/vis/earth/objects/countries/index.d.ts +14 -2
- package/dist/vis/earth/objects/index.d.ts +0 -2
- package/dist/vis/earth3/index.d.ts +1 -1
- package/dist/vis/earth3/objects/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/vis/earth/objects/china/index.d.ts +0 -14
- package/dist/vis/earth3/objects/countries/index.d.ts +0 -4
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.15.
|
|
1
|
+
declare const _default: "0.15.4";
|
|
2
2
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import Base from "../Base";
|
|
2
|
+
import * as THREE from 'three';
|
|
2
3
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
4
|
+
import { MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
3
5
|
import Countries from './objects/countries';
|
|
4
6
|
interface EarthOptions {
|
|
5
7
|
assetsPrefix?: string;
|
|
@@ -11,7 +13,6 @@ export default class extends Base {
|
|
|
11
13
|
drawController: DrawController<{
|
|
12
14
|
Earth: typeof import("./objects/earth").default;
|
|
13
15
|
Countries: typeof Countries;
|
|
14
|
-
China: typeof import("./objects/china").BorderAreaArc;
|
|
15
16
|
Plane: typeof import("../all/objects/Plane").default;
|
|
16
17
|
Ring: typeof import("../all/objects/Ring").default;
|
|
17
18
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
@@ -52,5 +53,9 @@ export default class extends Base {
|
|
|
52
53
|
getLocationPosition(location: [number, number], dr?: number): [number, number, number];
|
|
53
54
|
setAreaColorByProperty(key: string, value: any, color: string, mix?: boolean): void;
|
|
54
55
|
setAreaEmissiveByProperty(key: string, value: any, color: string, intensity?: number): void;
|
|
56
|
+
addAreaPlaneByProperty(key: string, value: any, options: {
|
|
57
|
+
area: ConstructorParameters<typeof THREE.MeshBasicMaterial>[0];
|
|
58
|
+
line: ConstructorParameters<typeof MeshLineMaterial>[0];
|
|
59
|
+
}): Promise<Countries | undefined>;
|
|
55
60
|
}
|
|
56
61
|
export {};
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { BaseObject } from 'gl-draw';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import { ConicPolygon } from 'gl-draw/dist/objects';
|
|
3
|
+
import { MeshLineMaterial, ConicPolygon } from 'gl-draw/dist/objects';
|
|
4
|
+
import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
|
|
5
|
+
export type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
4
6
|
interface Options {
|
|
7
|
+
geojson: GeoJSON;
|
|
8
|
+
mats: {
|
|
9
|
+
borderMat?: THREE.Material;
|
|
10
|
+
topMat?: THREE.Material;
|
|
11
|
+
outLine?: MeshLineMaterial;
|
|
12
|
+
};
|
|
5
13
|
start?: number;
|
|
6
14
|
depth?: number;
|
|
15
|
+
bbox?: number[];
|
|
16
|
+
hasTop?: boolean;
|
|
17
|
+
hasSide?: boolean;
|
|
18
|
+
lineDuration?: number;
|
|
7
19
|
}
|
|
8
20
|
export default class extends BaseObject {
|
|
9
|
-
options: Required<Options>;
|
|
21
|
+
options: Required<Omit<Options, 'bbox'>> & Pick<Options, 'bbox'>;
|
|
10
22
|
areaArr: ConicPolygon[];
|
|
11
23
|
constructor(options: Options);
|
|
12
24
|
create(): Promise<void>;
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@ export default class extends Earth {
|
|
|
4
4
|
static VisName: string;
|
|
5
5
|
drawController: DrawController<{
|
|
6
6
|
Earth: typeof import("../earth/objects/earth").default;
|
|
7
|
-
Countries: typeof import("
|
|
7
|
+
Countries: typeof import("../earth/objects/countries").default;
|
|
8
8
|
SphereShadow: typeof import("./objects/SphereShadow").default;
|
|
9
9
|
Plane: typeof import("../all/objects/Plane").default;
|
|
10
10
|
Ring: typeof import("../all/objects/Ring").default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
2
|
import Earth from "../../earth/objects/earth";
|
|
3
3
|
import SphereShadow from './SphereShadow';
|
|
4
|
-
import Countries from
|
|
4
|
+
import Countries from "../../earth/objects/countries";
|
|
5
5
|
declare const objs: {
|
|
6
6
|
Earth: typeof Earth;
|
|
7
7
|
Countries: typeof Countries;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-config-bundler": "^0.4.2",
|
|
47
47
|
"esus": "^0.4.27",
|
|
48
48
|
"fs-extra": "^11.1.1",
|
|
49
|
-
"gl-draw": "0.9.
|
|
49
|
+
"gl-draw": "0.9.10",
|
|
50
50
|
"idb-keyval": "^6.2.1",
|
|
51
51
|
"pinia": "^2.1.7",
|
|
52
52
|
"prettier-config-bundler": "^0.4.3",
|
|
@@ -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;
|