vis-core 0.24.0 → 0.24.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/editor/viewport.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +101 -101
- package/dist/index.module.js +3208 -3297
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/MaterialList.d.ts +7 -3
- package/dist/vis/base/index.d.ts +3 -0
- package/dist/vis/map/index.d.ts +7 -3
- package/dist/vis/map/objects/PlaneMap.d.ts +2 -2
- package/dist/vis/map/objects/index.d.ts +2 -0
- package/dist/vis/map2/map.d.ts +0 -13
- package/package.json +2 -2
- /package/dist/detect/{Benchmarks.d.ts → Benchmark.d.ts} +0 -0
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.24.
|
|
1
|
+
declare const _default: "0.24.3";
|
|
2
2
|
export default _default;
|
|
@@ -13,7 +13,6 @@ interface Meta extends ObjectMeta {
|
|
|
13
13
|
export default class MaterialList {
|
|
14
14
|
pluginName: string;
|
|
15
15
|
pencil: Pencil;
|
|
16
|
-
fixBufferGeometry: THREE.BufferGeometry<THREE.NormalBufferAttributes>;
|
|
17
16
|
materialList: Map<string, THREE.Material>;
|
|
18
17
|
objectList: Map<THREE.Object3D<THREE.Object3DEventMap>, Meta>;
|
|
19
18
|
install(pencil: Pencil): void;
|
|
@@ -22,10 +21,15 @@ export default class MaterialList {
|
|
|
22
21
|
}): void;
|
|
23
22
|
setMaterialObj(prefix: string, obj: Record<string, THREE.Material | null>, options?: Record<string, {
|
|
24
23
|
selectHide?: boolean;
|
|
25
|
-
}>
|
|
24
|
+
}> | {
|
|
25
|
+
selectHide?: boolean;
|
|
26
|
+
}): void;
|
|
27
|
+
copyMaterialObj(prefix: string, newPrefix: string, options?: {
|
|
28
|
+
selectHide?: boolean;
|
|
29
|
+
}): void;
|
|
26
30
|
getMaterial(key: string): THREE.Material | undefined;
|
|
27
31
|
getMaterialObj(prefix: string): Record<string, THREE.Material> | undefined;
|
|
28
|
-
|
|
32
|
+
setFixMeshList(key: string, materialList: string | string[], options?: {
|
|
29
33
|
selectHide?: boolean;
|
|
30
34
|
name?: string;
|
|
31
35
|
disableCheckHide?: boolean;
|
package/dist/vis/base/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export default class Base extends Event {
|
|
|
73
73
|
editor?: Editor;
|
|
74
74
|
tier0: boolean;
|
|
75
75
|
constructor(options: BaseOptions);
|
|
76
|
+
cameraState: Record<string, number[]>;
|
|
76
77
|
setOptions(options: Record<string, any>): void;
|
|
77
78
|
_baseObjectByUuid: Editor['baseObjectByUuid'];
|
|
78
79
|
get fromJSON(): (jsonOrUrl: Record<string, any> | string, hooks?: Record<string, any>) => Promise<Record<string, any>>;
|
|
@@ -98,6 +99,8 @@ export default class Base extends Event {
|
|
|
98
99
|
mouseButtonsActiveStore: Record<string, any> | null;
|
|
99
100
|
initSettings(): void;
|
|
100
101
|
handleSetting(key: string, value: any): Promise<any>;
|
|
102
|
+
setSaveCamera(type: string): void;
|
|
103
|
+
useSaveCamera(type: string, enableTransition?: boolean): Promise<boolean>;
|
|
101
104
|
show(): void;
|
|
102
105
|
hide(): void;
|
|
103
106
|
addCSS2D(dom: HTMLElement, options?: {
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -25,14 +25,14 @@ export interface MapOptions extends BaseOptions {
|
|
|
25
25
|
geojsonMap?: Record<string, GeoJSON>;
|
|
26
26
|
extrudeLineGeojsonMap?: Record<string, GeoJSON>;
|
|
27
27
|
bboxMap?: Record<string, number[]>;
|
|
28
|
-
lookAtMap?: Record<string, [number, number, number, number, number, number]>;
|
|
29
28
|
fixGeojson?: Record<string, string>;
|
|
30
29
|
plateInCenter?: boolean;
|
|
31
30
|
clickHandleDrillDown?: boolean;
|
|
32
31
|
drillDownPlateInCenter?: boolean;
|
|
33
32
|
drillDownHideParent?: boolean;
|
|
34
33
|
drillDownRestrictions?: 'city' | 'district';
|
|
35
|
-
|
|
34
|
+
drillDownSecondLevelMats?: boolean;
|
|
35
|
+
drillDownThirdLevelMats?: boolean;
|
|
36
36
|
showDistrict?: boolean;
|
|
37
37
|
showLabel?: boolean | 'lite';
|
|
38
38
|
lineWidth?: number;
|
|
@@ -51,11 +51,14 @@ export interface MapOptions extends BaseOptions {
|
|
|
51
51
|
mapBoundary?: boolean;
|
|
52
52
|
mergeSide?: boolean;
|
|
53
53
|
style?: 'map2';
|
|
54
|
+
bottomPlane?: boolean;
|
|
55
|
+
bottomPlaneWater?: boolean;
|
|
54
56
|
}
|
|
55
57
|
export default class extends Base {
|
|
56
58
|
static VisName: string;
|
|
57
59
|
drawController: DrawController<{
|
|
58
60
|
PlaneMap: typeof PlaneMap;
|
|
61
|
+
CityPlane: typeof import("../city/objects/plane").default;
|
|
59
62
|
ContinentsBg: typeof ContinentsBg;
|
|
60
63
|
Mountain: typeof import("./objects/Mountain").default;
|
|
61
64
|
Plane: typeof import("../all/objects/Plane").default;
|
|
@@ -127,6 +130,7 @@ export default class extends Base {
|
|
|
127
130
|
initSettingsObj: Record<string, any>;
|
|
128
131
|
handleSetting(key: string, value: any): Promise<any>;
|
|
129
132
|
init(): Promise<void>;
|
|
133
|
+
initVisBg(adcode: number): Promise<void>;
|
|
130
134
|
initVis(adcode: number): Promise<void>;
|
|
131
135
|
loaderAddBg(): void;
|
|
132
136
|
initMaterialBg(): Promise<void>;
|
|
@@ -150,7 +154,7 @@ export default class extends Base {
|
|
|
150
154
|
shadowMapEnabled(): Promise<void>;
|
|
151
155
|
shadowMapDisabled(): void;
|
|
152
156
|
getOptionsDepth(adcode: number): number;
|
|
153
|
-
getDepth(adcode: number,
|
|
157
|
+
getDepth(adcode: number, futureBox: number[]): number;
|
|
154
158
|
getReferenceScale(bboxa: number[], bboxb: number[]): number;
|
|
155
159
|
getAdcodeShowLevel(adcode: number): string | undefined;
|
|
156
160
|
handleClick(e: MouseEvent): void;
|
|
@@ -22,11 +22,11 @@ interface Options {
|
|
|
22
22
|
materialOptions: {
|
|
23
23
|
topMat: THREE.Material;
|
|
24
24
|
sideMat?: THREE.Material;
|
|
25
|
+
lineMat?: MeshLineMaterial;
|
|
26
|
+
extrudeLineMat?: MeshLineMaterial;
|
|
25
27
|
bgTopMat?: THREE.Material;
|
|
26
28
|
bgSideMat?: THREE.Material;
|
|
27
|
-
lineMat?: MeshLineMaterial;
|
|
28
29
|
bgLineMat?: MeshLineMaterial;
|
|
29
|
-
extrudeLineMat?: MeshLineMaterial;
|
|
30
30
|
bgExtrudeLineMat?: MeshLineMaterial;
|
|
31
31
|
};
|
|
32
32
|
onTop?: number;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
2
|
import PlaneMap from './PlaneMap';
|
|
3
|
+
import CityPlane from "../../city/objects/plane";
|
|
3
4
|
import ContinentsBg from './ContinentsBg';
|
|
4
5
|
import Mountain from './Mountain';
|
|
5
6
|
declare const objs: {
|
|
6
7
|
PlaneMap: typeof PlaneMap;
|
|
8
|
+
CityPlane: typeof CityPlane;
|
|
7
9
|
ContinentsBg: typeof ContinentsBg;
|
|
8
10
|
Mountain: typeof Mountain;
|
|
9
11
|
Plane: typeof import("../../all/objects/Plane").default;
|
package/dist/vis/map2/map.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import Map, { MapOptions } from "../map";
|
|
2
2
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
3
|
-
import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
|
|
4
|
-
type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
|
|
5
3
|
export interface Map2Options extends MapOptions {
|
|
6
|
-
bottomPlane?: boolean;
|
|
7
|
-
bottomPlaneWater?: boolean;
|
|
8
4
|
cityOnMap?: boolean;
|
|
9
5
|
}
|
|
10
6
|
export default class extends Map {
|
|
@@ -57,15 +53,6 @@ export default class extends Map {
|
|
|
57
53
|
'\u6D4B\u8BD5\u8FB9\u6846\u5BBD\u5EA6:::caId': number;
|
|
58
54
|
'\u6D4B\u8BD5\u6DFB\u52A0\u9762.btn:::caId': number;
|
|
59
55
|
};
|
|
60
|
-
loaderAddBg(): void;
|
|
61
56
|
initMaterialBg(): Promise<void>;
|
|
62
57
|
initVis(adcode: number): Promise<void>;
|
|
63
|
-
drawPlaneMap({ geojson, extrudeLineGeojson, bbox, depth, adcode, }: {
|
|
64
|
-
geojson: GeoJSON;
|
|
65
|
-
extrudeLineGeojson?: GeoJSON;
|
|
66
|
-
bbox?: number[];
|
|
67
|
-
depth: number;
|
|
68
|
-
adcode: number;
|
|
69
|
-
}): Promise<import("../map/objects/PlaneMap").default>;
|
|
70
58
|
}
|
|
71
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.3",
|
|
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.10",
|
|
72
72
|
"jsrsasign": "^11.1.0",
|
|
73
73
|
"lodash-es": "^4.17.21"
|
|
74
74
|
},
|
|
File without changes
|