vis-core 0.24.7 → 0.24.9
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 +89 -89
- package/dist/index.module.js +25011 -24979
- package/dist/version.d.ts +1 -1
- package/dist/vis/base/index.d.ts +8 -4
- package/dist/vis/map/index.d.ts +3 -2
- package/dist/vis/map/objects/PlaneMap.d.ts +0 -1
- package/dist/vis/map2/city.d.ts +6 -6
- package/dist/vis/map2/index.d.ts +2 -4
- package/dist/vis/map2/map.d.ts +5 -5
- package/dist/vis/map2/objects/index.d.ts +8 -16
- package/package.json +2 -2
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.24.
|
|
1
|
+
declare const _default: "0.24.9";
|
|
2
2
|
export default _default;
|
package/dist/vis/base/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface BaseOptions {
|
|
|
12
12
|
container: HTMLElement;
|
|
13
13
|
assetsPrefix?: string;
|
|
14
14
|
css2DContainer?: HTMLElement;
|
|
15
|
+
pencil?: any;
|
|
15
16
|
pencilConfig?: Record<string, any>;
|
|
16
17
|
disableInitShow?: boolean;
|
|
17
18
|
editor?: boolean;
|
|
@@ -27,7 +28,7 @@ export default class Base extends Event {
|
|
|
27
28
|
leftTruck: boolean;
|
|
28
29
|
options: BaseOptions;
|
|
29
30
|
pencilConfig: Record<string, any>;
|
|
30
|
-
showState: boolean
|
|
31
|
+
showState: boolean;
|
|
31
32
|
settings: Record<string, any>;
|
|
32
33
|
delLoadArr?: string[];
|
|
33
34
|
extendsOptions: Record<string, any>;
|
|
@@ -63,8 +64,8 @@ export default class Base extends Event {
|
|
|
63
64
|
Model: typeof import("../all/objects/Model").default;
|
|
64
65
|
}>;
|
|
65
66
|
mList: MaterialList;
|
|
66
|
-
loader: Loader;
|
|
67
|
-
worker: Wk;
|
|
67
|
+
get loader(): Loader;
|
|
68
|
+
get worker(): Wk;
|
|
68
69
|
workerOnce: boolean;
|
|
69
70
|
pmremGenerator: THREE.PMREMGenerator | null;
|
|
70
71
|
re: RoomEnvironment | null;
|
|
@@ -91,9 +92,11 @@ export default class Base extends Event {
|
|
|
91
92
|
initVis(...args: any): Promise<void>;
|
|
92
93
|
init(...args: any[]): Promise<void>;
|
|
93
94
|
initPencil(): Promise<void>;
|
|
95
|
+
private sceneActive;
|
|
96
|
+
setSceneActive(): void;
|
|
94
97
|
initSceneUserData(): void;
|
|
95
98
|
initBaseObjectUserData(baseObject: BaseObject): void;
|
|
96
|
-
initPencilPlugin(): void;
|
|
99
|
+
initPencilPlugin(pencil: Pencil): void;
|
|
97
100
|
addCSS3DRenderer(): void;
|
|
98
101
|
initSettingsObj?: Record<string, any>;
|
|
99
102
|
set verticalDragToForward(value: boolean);
|
|
@@ -104,6 +107,7 @@ export default class Base extends Event {
|
|
|
104
107
|
setSaveCamera(type: string): void;
|
|
105
108
|
useSaveCamera(type: string, enableTransition?: boolean): Promise<boolean>;
|
|
106
109
|
show(): void;
|
|
110
|
+
showAction(): void;
|
|
107
111
|
hide(): void;
|
|
108
112
|
addCSS2D(dom: HTMLElement, options?: {
|
|
109
113
|
display?: string;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface MapOptions extends BaseOptions {
|
|
|
34
34
|
drillDownSecondLevelMats?: boolean;
|
|
35
35
|
drillDownThirdLevelMats?: boolean;
|
|
36
36
|
showDistrict?: boolean;
|
|
37
|
+
showDistrictStreetView?: boolean;
|
|
37
38
|
showLabel?: boolean | 'lite';
|
|
38
39
|
lineWidth?: number;
|
|
39
40
|
lineOffset?: number;
|
|
@@ -146,7 +147,7 @@ export default class extends Base {
|
|
|
146
147
|
topSegments?: number;
|
|
147
148
|
}): Promise<Group | undefined>;
|
|
148
149
|
caId: string | number | undefined;
|
|
149
|
-
|
|
150
|
+
showAction(): Promise<void>;
|
|
150
151
|
private handlePickTest;
|
|
151
152
|
hide(): Promise<void>;
|
|
152
153
|
shadowMapLight?: BaseObject;
|
|
@@ -157,7 +158,7 @@ export default class extends Base {
|
|
|
157
158
|
getDepth(adcode: number, futureBox: number[]): number;
|
|
158
159
|
getReferenceScale(bboxa: number[], bboxb: number[]): number;
|
|
159
160
|
getAdcodeShowLevel(adcode: number): string | undefined;
|
|
160
|
-
handleClick(
|
|
161
|
+
handleClick(area?: ExtrudePolygon): void;
|
|
161
162
|
beforeShowMap(adcodes: number[]): boolean;
|
|
162
163
|
getAdcodes(adcode: number): number[];
|
|
163
164
|
showMap({ adcode, adcodes: prevAdcodes, duration, }: {
|
|
@@ -70,7 +70,6 @@ export default class PlaneMap extends BaseObject {
|
|
|
70
70
|
coords: Position[][];
|
|
71
71
|
properties: GeoJsonProperties;
|
|
72
72
|
}[];
|
|
73
|
-
pickArea(e: MouseEvent): import("gl-draw/dist/core/BaseObject").IBaseObject | undefined;
|
|
74
73
|
update(delta: number, elapsed: number): void;
|
|
75
74
|
findGroup(adcode: string | number, fix?: boolean): Group | undefined;
|
|
76
75
|
setAreaMaterial(key: string, material: THREE.Material[] | THREE.Material): void;
|
package/dist/vis/map2/city.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import City from "../city";
|
|
2
2
|
export default class extends City {
|
|
3
3
|
drawController: {
|
|
4
|
-
PlaneMap: typeof import("../map/objects/PlaneMap").default;
|
|
5
|
-
ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
|
|
6
|
-
Mountain: typeof import("../map/objects/Mountain").default;
|
|
7
|
-
CityPlane: typeof import("../city/objects/plane").default;
|
|
8
4
|
Building: typeof import("../city/objects/building").default;
|
|
9
|
-
Area: typeof import("../city/objects/area").default;
|
|
10
5
|
Road: typeof import("../city/objects/road").default;
|
|
6
|
+
Area: typeof import("../city/objects/area").default;
|
|
7
|
+
CityPlane: typeof import("../city/objects/plane").default;
|
|
11
8
|
Target: typeof import("../city/objects/target").default;
|
|
12
9
|
Plane: typeof import("../all/objects/Plane").default;
|
|
13
10
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
@@ -37,7 +34,10 @@ export default class extends City {
|
|
|
37
34
|
Point: typeof import("../all/objects/Point").default;
|
|
38
35
|
Arc: typeof import("../all/objects/Arc").default;
|
|
39
36
|
Model: typeof import("../all/objects/Model").default;
|
|
37
|
+
PlaneMap: typeof import("../map/objects/PlaneMap").default;
|
|
38
|
+
ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
|
|
39
|
+
Mountain: typeof import("../map/objects/Mountain").default;
|
|
40
40
|
};
|
|
41
41
|
multiplyScalar: number;
|
|
42
|
-
fixNearFar(n?: number): void;
|
|
42
|
+
fixNearFar(n?: number, f?: number): void;
|
|
43
43
|
}
|
package/dist/vis/map2/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Map, { Map2Options } from "./map";
|
|
2
2
|
import City from './city';
|
|
3
3
|
import { makePromiseCreator } from 'esus-lite';
|
|
4
|
+
import { ExtrudePolygon } from 'gl-draw/dist/objects';
|
|
4
5
|
interface MapCityOptions extends Map2Options {
|
|
5
|
-
initCity?: boolean;
|
|
6
6
|
clipOutShow?: boolean;
|
|
7
7
|
cityBboxMap?: Record<number, [number, number, number, number]>;
|
|
8
8
|
jsonNameObj?: Record<number, string>;
|
|
@@ -27,7 +27,6 @@ interface showCityOption {
|
|
|
27
27
|
}
|
|
28
28
|
export default class extends Map {
|
|
29
29
|
static VisName: string;
|
|
30
|
-
workerOnce: boolean;
|
|
31
30
|
cityVisObj: Record<string, {
|
|
32
31
|
city?: City;
|
|
33
32
|
state: ReturnType<typeof makePromiseCreator>;
|
|
@@ -38,8 +37,7 @@ export default class extends Map {
|
|
|
38
37
|
options: Required<MapCityOptions>;
|
|
39
38
|
setOptions(options: MapCityOptions): void;
|
|
40
39
|
init(): Promise<void>;
|
|
41
|
-
handleClick(
|
|
42
|
-
preInitCityVis(): Promise<void>;
|
|
40
|
+
handleClick(area?: ExtrudePolygon): void;
|
|
43
41
|
initCityVis(adcode: number, options?: {
|
|
44
42
|
clip?: boolean;
|
|
45
43
|
grey?: boolean;
|
package/dist/vis/map2/map.d.ts
CHANGED
|
@@ -7,13 +7,10 @@ export default class extends Map {
|
|
|
7
7
|
options: Required<Map2Options>;
|
|
8
8
|
setOptions(options: Map2Options): void;
|
|
9
9
|
drawController: DrawController<{
|
|
10
|
-
PlaneMap: typeof import("../map/objects/PlaneMap").default;
|
|
11
|
-
ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
|
|
12
|
-
Mountain: typeof import("../map/objects/Mountain").default;
|
|
13
|
-
CityPlane: typeof import("../city/objects/plane").default;
|
|
14
10
|
Building: typeof import("../city/objects/building").default;
|
|
15
|
-
Area: typeof import("../city/objects/area").default;
|
|
16
11
|
Road: typeof import("../city/objects/road").default;
|
|
12
|
+
Area: typeof import("../city/objects/area").default;
|
|
13
|
+
CityPlane: typeof import("../city/objects/plane").default;
|
|
17
14
|
Target: typeof import("../city/objects/target").default;
|
|
18
15
|
Plane: typeof import("../all/objects/Plane").default;
|
|
19
16
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
@@ -43,6 +40,9 @@ export default class extends Map {
|
|
|
43
40
|
Point: typeof import("../all/objects/Point").default;
|
|
44
41
|
Arc: typeof import("../all/objects/Arc").default;
|
|
45
42
|
Model: typeof import("../all/objects/Model").default;
|
|
43
|
+
PlaneMap: typeof import("../map/objects/PlaneMap").default;
|
|
44
|
+
ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
|
|
45
|
+
Mountain: typeof import("../map/objects/Mountain").default;
|
|
46
46
|
}>;
|
|
47
47
|
initSettingsObj: {
|
|
48
48
|
label: boolean;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import PlaneMap from "../../map/objects/PlaneMap";
|
|
2
|
-
import Mountain from "../../map/objects/Mountain";
|
|
3
|
-
import ContinentsBg from "../../map/objects/ContinentsBg";
|
|
4
|
-
import CityPlane from "../../city/objects/plane";
|
|
5
|
-
import Building from "../../city/objects/building";
|
|
6
|
-
import Area from "../../city/objects/area";
|
|
7
|
-
import Road from "../../city/objects/road";
|
|
8
|
-
import Target from "../../city/objects/target";
|
|
9
1
|
declare const objs: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
CityPlane: typeof
|
|
14
|
-
|
|
15
|
-
Area: typeof Area;
|
|
16
|
-
Road: typeof Road;
|
|
17
|
-
Target: typeof Target;
|
|
2
|
+
Building: typeof import("../../city/objects/building").default;
|
|
3
|
+
Road: typeof import("../../city/objects/road").default;
|
|
4
|
+
Area: typeof import("../../city/objects/area").default;
|
|
5
|
+
CityPlane: typeof import("../../city/objects/plane").default;
|
|
6
|
+
Target: typeof import("../../city/objects/target").default;
|
|
18
7
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
19
8
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
20
9
|
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
@@ -43,5 +32,8 @@ declare const objs: {
|
|
|
43
32
|
Point: typeof import("../../all/objects/Point").default;
|
|
44
33
|
Arc: typeof import("../../all/objects/Arc").default;
|
|
45
34
|
Model: typeof import("../../all/objects/Model").default;
|
|
35
|
+
PlaneMap: typeof import("../../map/objects/PlaneMap").default;
|
|
36
|
+
ContinentsBg: typeof import("../../map/objects/ContinentsBg").default;
|
|
37
|
+
Mountain: typeof import("../../map/objects/Mountain").default;
|
|
46
38
|
};
|
|
47
39
|
export default objs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.9",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && bundler",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"esus-lite": "^0.2.8",
|
|
69
69
|
"events": "^3.3.0",
|
|
70
70
|
"geojson-cn": "^0.1.30",
|
|
71
|
-
"gl-draw": "0.12.
|
|
71
|
+
"gl-draw": "0.12.19",
|
|
72
72
|
"jsrsasign": "^11.1.0",
|
|
73
73
|
"jszip": "^3.10.1",
|
|
74
74
|
"lodash-es": "^4.17.21"
|