vis-core 0.25.1 → 0.25.3
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 +1 -1
- package/dist/index.js +86 -516
- package/dist/index.module.js +26742 -28085
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/objects/index.d.ts +2 -2
- package/dist/vis/base/index.d.ts +7 -6
- package/dist/vis/city/index.d.ts +5 -4
- package/dist/vis/city/objects/index.d.ts +2 -2
- package/dist/vis/earth/index.d.ts +5 -4
- package/dist/vis/earth/objects/index.d.ts +2 -2
- package/dist/vis/earth2/index.d.ts +5 -3
- package/dist/vis/earth2/objects/index.d.ts +2 -2
- package/dist/vis/map/index.d.ts +5 -4
- package/dist/vis/map/objects/index.d.ts +2 -2
- package/dist/vis/map2/map.d.ts +6 -4
- package/package.json +2 -2
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.25.
|
|
1
|
+
declare const _default: "0.25.3";
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lead } from 'gl-draw';
|
|
2
2
|
import { Node, Line, Line2, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/dist/objects';
|
|
3
3
|
import Light from './Light';
|
|
4
4
|
import Point from './Point';
|
|
@@ -74,4 +74,4 @@ declare const objs: {
|
|
|
74
74
|
Model: typeof Model;
|
|
75
75
|
};
|
|
76
76
|
export default objs;
|
|
77
|
-
export type d =
|
|
77
|
+
export type d = Lead<typeof objs>;
|
package/dist/vis/base/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import Pencil, { BaseObject } from 'gl-draw';
|
|
1
|
+
import Pencil, { BaseObject, Lead } from 'gl-draw';
|
|
2
|
+
import leadObjs from "../all/objects";
|
|
2
3
|
import MaterialList from "../all/MaterialList";
|
|
3
|
-
import { Wk
|
|
4
|
-
import type { PickFunctionsItem } from 'gl-draw/dist/
|
|
4
|
+
import { Wk } from 'gl-draw/dist/plugins';
|
|
5
|
+
import type { PickFunctionsItem } from 'gl-draw/dist/core/Lead/Lead';
|
|
5
6
|
import { Node } from 'gl-draw/dist/objects';
|
|
6
7
|
import Arc from "../all/objects/Arc";
|
|
7
8
|
import { RoomEnvironment } from 'three/examples/jsm/environments/RoomEnvironment';
|
|
@@ -33,7 +34,7 @@ export default class Base extends Event {
|
|
|
33
34
|
delLoadArr?: string[];
|
|
34
35
|
extendsOptions: Record<string, any>;
|
|
35
36
|
pencil: Pencil;
|
|
36
|
-
|
|
37
|
+
leadObjs: {
|
|
37
38
|
Plane: typeof import("../all/objects/Plane").default;
|
|
38
39
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
39
40
|
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
@@ -62,7 +63,8 @@ export default class Base extends Event {
|
|
|
62
63
|
Point: typeof import("../all/objects/Point").default;
|
|
63
64
|
Arc: typeof Arc;
|
|
64
65
|
Model: typeof import("../all/objects/Model").default;
|
|
65
|
-
}
|
|
66
|
+
};
|
|
67
|
+
lead: Lead<typeof leadObjs>;
|
|
66
68
|
mList: MaterialList;
|
|
67
69
|
get loader(): import("gl-draw/dist/core/Loader/Loader").default;
|
|
68
70
|
get worker(): Wk;
|
|
@@ -96,7 +98,6 @@ export default class Base extends Event {
|
|
|
96
98
|
setSceneActive(): void;
|
|
97
99
|
initSceneUserData(): void;
|
|
98
100
|
initBaseObjectUserData(baseObject: BaseObject): void;
|
|
99
|
-
initPencilPlugin(pencil: Pencil): void;
|
|
100
101
|
addCSS3DRenderer(): void;
|
|
101
102
|
initSettingsObj?: Record<string, any>;
|
|
102
103
|
set verticalDragToForward(value: boolean);
|
package/dist/vis/city/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseObject } from 'gl-draw';
|
|
1
|
+
import { BaseObject, Lead } from 'gl-draw';
|
|
2
2
|
import Base, { BaseOptions } from "../base";
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import { getProjection } from 'gl-draw/dist/utils';
|
|
5
5
|
import { Group } from 'gl-draw/dist/objects';
|
|
6
|
-
import
|
|
6
|
+
import leadObjs from "./objects";
|
|
7
7
|
import Building from './objects/building';
|
|
8
8
|
import Road from './objects/road';
|
|
9
9
|
interface CityOptions extends BaseOptions {
|
|
@@ -34,7 +34,7 @@ interface CityOptions extends BaseOptions {
|
|
|
34
34
|
}
|
|
35
35
|
export default class extends Base {
|
|
36
36
|
static VisName: string;
|
|
37
|
-
|
|
37
|
+
leadObjs: {
|
|
38
38
|
Building: typeof Building;
|
|
39
39
|
Road: typeof Road;
|
|
40
40
|
Area: typeof import("./objects/area").default;
|
|
@@ -68,7 +68,8 @@ export default class extends Base {
|
|
|
68
68
|
Point: typeof import("../all/objects/Point").default;
|
|
69
69
|
Arc: typeof import("../all/objects/Arc").default;
|
|
70
70
|
Model: typeof import("../all/objects/Model").default;
|
|
71
|
-
}
|
|
71
|
+
};
|
|
72
|
+
lead: Lead<typeof leadObjs>;
|
|
72
73
|
adcode: number;
|
|
73
74
|
pcenter: [number, number];
|
|
74
75
|
pscale: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lead } from 'gl-draw';
|
|
2
2
|
import Building from './building';
|
|
3
3
|
import Road from './road';
|
|
4
4
|
import Area from './area';
|
|
@@ -40,4 +40,4 @@ declare const objs: {
|
|
|
40
40
|
Model: typeof import("../../all/objects/Model").default;
|
|
41
41
|
};
|
|
42
42
|
export default objs;
|
|
43
|
-
export type d =
|
|
43
|
+
export type d = Lead<typeof objs>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Base, { BaseOptions } from "../base";
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import
|
|
3
|
+
import leadObjs from "./objects";
|
|
4
4
|
import { MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
5
5
|
import Countries from './objects/countries';
|
|
6
|
-
import { BaseObject } from 'gl-draw';
|
|
6
|
+
import { BaseObject, Lead } from 'gl-draw';
|
|
7
7
|
interface EarthOptions extends BaseOptions {
|
|
8
8
|
mapDepth?: number;
|
|
9
9
|
radius?: number;
|
|
@@ -12,7 +12,7 @@ interface EarthOptions extends BaseOptions {
|
|
|
12
12
|
}
|
|
13
13
|
export default class extends Base {
|
|
14
14
|
static VisName: string;
|
|
15
|
-
|
|
15
|
+
leadObjs: {
|
|
16
16
|
Earth: typeof import("./objects/earth").default;
|
|
17
17
|
Countries: typeof Countries;
|
|
18
18
|
SphereShadow: typeof import("./objects/SphereShadow").default;
|
|
@@ -44,8 +44,9 @@ export default class extends Base {
|
|
|
44
44
|
Point: typeof import("../all/objects/Point").default;
|
|
45
45
|
Arc: typeof import("../all/objects/Arc").default;
|
|
46
46
|
Model: typeof import("../all/objects/Model").default;
|
|
47
|
-
}
|
|
47
|
+
};
|
|
48
48
|
leftTruck: boolean;
|
|
49
|
+
lead: Lead<typeof leadObjs>;
|
|
49
50
|
options: Required<EarthOptions>;
|
|
50
51
|
extendsOptions: Record<string, any>;
|
|
51
52
|
map: Countries;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lead } from 'gl-draw';
|
|
2
2
|
import Earth from './earth';
|
|
3
3
|
import Countries from './countries';
|
|
4
4
|
import SphereShadow from './SphereShadow';
|
|
@@ -36,4 +36,4 @@ declare const objs: {
|
|
|
36
36
|
Model: typeof import("../../all/objects/Model").default;
|
|
37
37
|
};
|
|
38
38
|
export default objs;
|
|
39
|
-
export type d =
|
|
39
|
+
export type d = Lead<typeof objs>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import Base, { BaseOptions } from "../base";
|
|
2
|
-
import
|
|
2
|
+
import leadObjs from "./objects";
|
|
3
|
+
import { Lead } from 'gl-draw';
|
|
3
4
|
interface EarthOptions extends BaseOptions {
|
|
4
5
|
}
|
|
5
6
|
export default class extends Base {
|
|
6
7
|
static VisName: string;
|
|
7
8
|
leftTruck: boolean;
|
|
8
|
-
|
|
9
|
+
leadObjs: {
|
|
9
10
|
Earth: typeof import("./objects/earth").default;
|
|
10
11
|
Plane: typeof import("../all/objects/Plane").default;
|
|
11
12
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
@@ -35,7 +36,8 @@ export default class extends Base {
|
|
|
35
36
|
Point: typeof import("../all/objects/Point").default;
|
|
36
37
|
Arc: typeof import("../all/objects/Arc").default;
|
|
37
38
|
Model: typeof import("../all/objects/Model").default;
|
|
38
|
-
}
|
|
39
|
+
};
|
|
40
|
+
lead: Lead<typeof leadObjs>;
|
|
39
41
|
options: Required<EarthOptions>;
|
|
40
42
|
setOptions(options: EarthOptions): void;
|
|
41
43
|
loaderAdd(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lead } from 'gl-draw';
|
|
2
2
|
import Earth from './earth';
|
|
3
3
|
declare const objs: {
|
|
4
4
|
Earth: typeof Earth;
|
|
@@ -32,4 +32,4 @@ declare const objs: {
|
|
|
32
32
|
Model: typeof import("../../all/objects/Model").default;
|
|
33
33
|
};
|
|
34
34
|
export default objs;
|
|
35
|
-
export type d =
|
|
35
|
+
export type d = Lead<typeof objs>;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BaseObject } from 'gl-draw';
|
|
1
|
+
import { BaseObject, Lead } from 'gl-draw';
|
|
2
2
|
import Base, { BaseOptions } from "../base";
|
|
3
3
|
import { getProjection } from 'gl-draw/dist/utils';
|
|
4
4
|
import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
|
|
5
5
|
import { MeshLineMaterial, Group, ExtrudePolygon, Line } from 'gl-draw/dist/objects';
|
|
6
6
|
import * as THREE from 'three';
|
|
7
|
+
import leadObjs from "./objects";
|
|
7
8
|
import PlaneMap from "./objects/PlaneMap";
|
|
8
9
|
import ContinentsBg from "./objects/ContinentsBg";
|
|
9
|
-
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
10
10
|
import { LevelArr } from 'geojson-cn';
|
|
11
11
|
type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
12
12
|
export interface MapOptions extends BaseOptions {
|
|
@@ -56,7 +56,7 @@ export interface MapOptions extends BaseOptions {
|
|
|
56
56
|
}
|
|
57
57
|
export default class extends Base {
|
|
58
58
|
static VisName: string;
|
|
59
|
-
|
|
59
|
+
leadObjs: {
|
|
60
60
|
PlaneMap: typeof PlaneMap;
|
|
61
61
|
CityPlane: typeof import("../city/objects/plane").default;
|
|
62
62
|
ContinentsBg: typeof ContinentsBg;
|
|
@@ -89,7 +89,8 @@ export default class extends Base {
|
|
|
89
89
|
Point: typeof import("../all/objects/Point").default;
|
|
90
90
|
Arc: typeof import("../all/objects/Arc").default;
|
|
91
91
|
Model: typeof import("../all/objects/Model").default;
|
|
92
|
-
}
|
|
92
|
+
};
|
|
93
|
+
lead: Lead<typeof leadObjs>;
|
|
93
94
|
options: Required<MapOptions>;
|
|
94
95
|
mapHistory: {
|
|
95
96
|
map?: PlaneMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lead } from 'gl-draw';
|
|
2
2
|
import PlaneMap from './PlaneMap';
|
|
3
3
|
import CityPlane from "../../city/objects/plane";
|
|
4
4
|
import ContinentsBg from './ContinentsBg';
|
|
@@ -38,4 +38,4 @@ declare const objs: {
|
|
|
38
38
|
Model: typeof import("../../all/objects/Model").default;
|
|
39
39
|
};
|
|
40
40
|
export default objs;
|
|
41
|
-
export type d =
|
|
41
|
+
export type d = Lead<typeof objs>;
|
package/dist/vis/map2/map.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Map, { MapOptions } from "../map";
|
|
2
|
-
import
|
|
2
|
+
import leadObjs from "./objects";
|
|
3
|
+
import { Lead } from 'gl-draw';
|
|
3
4
|
export interface Map2Options extends MapOptions {
|
|
4
5
|
cityOnMap?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export default class extends Map {
|
|
7
8
|
options: Required<Map2Options>;
|
|
8
|
-
|
|
9
|
-
drawController: DrawController<{
|
|
9
|
+
leadObjs: {
|
|
10
10
|
Building: typeof import("../city/objects/building").default;
|
|
11
11
|
Road: typeof import("../city/objects/road").default;
|
|
12
12
|
Area: typeof import("../city/objects/area").default;
|
|
@@ -43,7 +43,9 @@ export default class extends Map {
|
|
|
43
43
|
PlaneMap: typeof import("../map/objects/PlaneMap").default;
|
|
44
44
|
ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
|
|
45
45
|
Mountain: typeof import("../map/objects/Mountain").default;
|
|
46
|
-
}
|
|
46
|
+
};
|
|
47
|
+
lead: Lead<typeof leadObjs>;
|
|
48
|
+
setOptions(options: Map2Options): void;
|
|
47
49
|
initSettingsObj: {
|
|
48
50
|
label: boolean;
|
|
49
51
|
labelLite: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && bundler",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"esus-lite": "^0.2.8",
|
|
70
70
|
"events": "^3.3.0",
|
|
71
71
|
"geojson-cn": "^0.1.30",
|
|
72
|
-
"gl-draw": "0.13.
|
|
72
|
+
"gl-draw": "0.13.22",
|
|
73
73
|
"jsrsasign": "^11.1.0",
|
|
74
74
|
"lodash-es": "^4.17.21"
|
|
75
75
|
},
|