vis-core 0.29.5 → 0.29.7
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/editor/viewport.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +36 -36
- package/dist/index.module.js +3755 -3777
- package/dist/version.d.ts +1 -1
- package/dist/vis/earth/index.d.ts +6 -5
- package/dist/vis/earth/objects/index.d.ts +2 -2
- package/dist/vis/map/objects/PlaneMap.d.ts +6 -2
- package/package.json +2 -3
- package/dist/vis/earth/objects/countries/index.d.ts +0 -30
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.29.
|
|
1
|
+
declare const _default: "0.29.7";
|
|
2
2
|
export default _default;
|
|
@@ -3,20 +3,21 @@ import leadObjs from "./objects";
|
|
|
3
3
|
import { BaseObject, Lead } from 'gl-draw';
|
|
4
4
|
import { MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
|
-
import
|
|
6
|
+
import PlaneMap from '../map/objects/PlaneMap';
|
|
7
7
|
interface EarthOptions extends BaseOptions {
|
|
8
8
|
mapDepth?: number;
|
|
9
9
|
otherMapDepth?: number;
|
|
10
10
|
radius?: number;
|
|
11
11
|
copyChinaPlane?: boolean;
|
|
12
|
+
mergeSide?: boolean;
|
|
12
13
|
style?: 'chinaPlate' | 'countryPlate' | 'base';
|
|
13
14
|
}
|
|
14
15
|
export default class extends Base {
|
|
15
16
|
static VisName: string;
|
|
16
17
|
leadObjs: {
|
|
17
18
|
Earth: typeof import("./objects/earth").default;
|
|
18
|
-
Countries: typeof Countries;
|
|
19
19
|
SphereShadow: typeof import("./objects/SphereShadow").default;
|
|
20
|
+
Countries: typeof PlaneMap;
|
|
20
21
|
Plane: typeof import("../all/objects/Plane").default;
|
|
21
22
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
22
23
|
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
@@ -50,8 +51,8 @@ export default class extends Base {
|
|
|
50
51
|
lead: Lead<typeof leadObjs>;
|
|
51
52
|
options: Required<EarthOptions>;
|
|
52
53
|
extendsOptions: Record<string, any>;
|
|
53
|
-
map:
|
|
54
|
-
get mapArea(): import("gl-draw/dist/objects").
|
|
54
|
+
map: PlaneMap;
|
|
55
|
+
get mapArea(): import("gl-draw/dist/objects").ExtrudePolygon[];
|
|
55
56
|
setOptions(options: EarthOptions): void;
|
|
56
57
|
handleSetting(key: string, value: any): Promise<any>;
|
|
57
58
|
show(): void;
|
|
@@ -70,7 +71,7 @@ export default class extends Base {
|
|
|
70
71
|
addAreaPlaneByProperty(key: string, value: any, options: {
|
|
71
72
|
area: ConstructorParameters<typeof THREE.MeshBasicMaterial>[0];
|
|
72
73
|
line: ConstructorParameters<typeof MeshLineMaterial>[0];
|
|
73
|
-
}): Promise<
|
|
74
|
+
}): Promise<PlaneMap | undefined>;
|
|
74
75
|
getRadius(): number;
|
|
75
76
|
checkBehindEarth(objArr: () => BaseObject[], cb: (obj: BaseObject[], res: boolean[]) => any): void;
|
|
76
77
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Lead } from 'gl-draw';
|
|
2
|
+
import PlaneMap from '../../map/objects/PlaneMap';
|
|
2
3
|
import Earth from './earth';
|
|
3
|
-
import Countries from './countries';
|
|
4
4
|
import SphereShadow from './SphereShadow';
|
|
5
5
|
declare const objs: {
|
|
6
6
|
Earth: typeof Earth;
|
|
7
|
-
Countries: typeof Countries;
|
|
8
7
|
SphereShadow: typeof SphereShadow;
|
|
8
|
+
Countries: typeof PlaneMap;
|
|
9
9
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
10
10
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
11
11
|
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
@@ -2,11 +2,11 @@ import type { FeatureCollection, GeoJsonProperties, MultiPolygon, Polygon, Posit
|
|
|
2
2
|
import { BaseObject } from 'gl-draw';
|
|
3
3
|
import { ExtrudePolygon, Group, Line, MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
5
|
+
export type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
6
6
|
interface Options {
|
|
7
7
|
areaGroup?: boolean;
|
|
8
8
|
geojson: GeoJSON;
|
|
9
|
-
projection
|
|
9
|
+
projection?: {
|
|
10
10
|
center: [number, number];
|
|
11
11
|
scale: number;
|
|
12
12
|
rotate?: [number, number];
|
|
@@ -14,11 +14,15 @@ interface Options {
|
|
|
14
14
|
};
|
|
15
15
|
extrudeLineGeojson?: GeoJSON;
|
|
16
16
|
hasSide?: boolean;
|
|
17
|
+
hasTop?: boolean;
|
|
17
18
|
mergeSide?: boolean;
|
|
19
|
+
hasLine?: boolean;
|
|
20
|
+
start?: number;
|
|
18
21
|
depth?: number;
|
|
19
22
|
lineOffset?: number;
|
|
20
23
|
bbox?: number[];
|
|
21
24
|
topSegments?: number;
|
|
25
|
+
conic?: boolean;
|
|
22
26
|
materialOptions: {
|
|
23
27
|
topMat: THREE.Material;
|
|
24
28
|
sideMat?: THREE.Material;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"vue": "^3.5.11",
|
|
57
57
|
"vue-bundler": "^0.4.10",
|
|
58
58
|
"vue-router": "^4.4.5",
|
|
59
|
-
"vue3-colorpicker": "^2.3.0",
|
|
60
59
|
"primeicons": "^7.0.0"
|
|
61
60
|
},
|
|
62
61
|
"dependencies": {
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
"esus-lite": "^0.2.8",
|
|
68
67
|
"events": "^3.3.0",
|
|
69
68
|
"geojson-cn": "^0.2.5",
|
|
70
|
-
"gl-draw": "0.16.
|
|
69
|
+
"gl-draw": "0.16.2",
|
|
71
70
|
"jsrsasign": "^11.1.0",
|
|
72
71
|
"lodash-es": "^4.17.21"
|
|
73
72
|
},
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { FeatureCollection, MultiPolygon, Polygon } from 'geojson';
|
|
2
|
-
import { BaseObject } from 'gl-draw';
|
|
3
|
-
import { ConicPolygon, Line, MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
export type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
6
|
-
interface Options {
|
|
7
|
-
geojson: GeoJSON;
|
|
8
|
-
areaGroup?: boolean;
|
|
9
|
-
mats: {
|
|
10
|
-
borderMat?: THREE.Material;
|
|
11
|
-
topMat?: THREE.Material;
|
|
12
|
-
outLine?: MeshLineMaterial;
|
|
13
|
-
};
|
|
14
|
-
start?: number;
|
|
15
|
-
depth?: number;
|
|
16
|
-
lineOffset?: number;
|
|
17
|
-
bbox?: number[];
|
|
18
|
-
hasTop?: boolean;
|
|
19
|
-
hasSide?: boolean;
|
|
20
|
-
hasLine?: boolean;
|
|
21
|
-
lineDuration?: number;
|
|
22
|
-
}
|
|
23
|
-
export default class extends BaseObject {
|
|
24
|
-
options: Required<Omit<Options, 'bbox'>> & Pick<Options, 'bbox'>;
|
|
25
|
-
areaArr: ConicPolygon[];
|
|
26
|
-
lineArr: Line[];
|
|
27
|
-
constructor(options: Options);
|
|
28
|
-
create(): Promise<void>;
|
|
29
|
-
}
|
|
30
|
-
export {};
|