@aibee/crc-bmap 0.0.73 → 0.0.75
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/README.md +1 -1
- package/example/index.css +22 -22
- package/example/index.html +63 -63
- package/example/src/main.ts +577 -565
- package/example/vite.config.ts +28 -28
- package/lib/bmap.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +85 -59
- package/lib/bmap.esm.js.map +3 -3
- package/lib/bmap.esm.min.js +1 -1
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +1 -1
- package/lib/bmap.min.js.map +3 -3
- package/lib/src/bmap.d.ts +1 -1
- package/lib/src/context.d.ts +5 -0
- package/lib/src/elements/poi.d.ts +7 -1
- package/lib/src/operations/selection/selection.d.ts +3 -0
- package/package.json +47 -47
package/lib/src/bmap.d.ts
CHANGED
package/lib/src/context.d.ts
CHANGED
|
@@ -124,6 +124,10 @@ export declare class Context extends EventDispatcher<ContextEventMap> {
|
|
|
124
124
|
* @returns
|
|
125
125
|
*/
|
|
126
126
|
setZoom(zoom: number, center: Vector3, duration?: number): Promise<unknown> | undefined;
|
|
127
|
+
getFitCameraToObjectZoom(object: Object3D, padding?: [number, number, number, number], duration?: number, force2DView?: boolean): {
|
|
128
|
+
zoom: number;
|
|
129
|
+
center: Vector3;
|
|
130
|
+
};
|
|
127
131
|
/**
|
|
128
132
|
* 放大相机到物体占全屏
|
|
129
133
|
* @param object
|
|
@@ -132,6 +136,7 @@ export declare class Context extends EventDispatcher<ContextEventMap> {
|
|
|
132
136
|
* @returns
|
|
133
137
|
*/
|
|
134
138
|
fitCameraToObject(object: Object3D, padding?: [number, number, number, number], duration?: number, force2DView?: boolean): Promise<unknown> | undefined;
|
|
139
|
+
getFitCameraToGroundZoom(padding?: [number, number, number, number], duration?: number, force2DView?: boolean): number | undefined;
|
|
135
140
|
fitCameraToGround(padding?: [number, number, number, number], duration?: number, force2DView?: boolean): Promise<unknown> | undefined;
|
|
136
141
|
/**
|
|
137
142
|
* 修改相机位置
|
|
@@ -67,7 +67,13 @@ export declare class Poi extends EventDispatcher<PoiEventMap> {
|
|
|
67
67
|
setVisible(visible: boolean): void;
|
|
68
68
|
changeOverlayVisible(visible: boolean): void;
|
|
69
69
|
parentSetVisible(visible: boolean): void;
|
|
70
|
-
getBox(): {
|
|
70
|
+
getBox(boxScale?: number): {
|
|
71
|
+
left: number;
|
|
72
|
+
right: number;
|
|
73
|
+
top: number;
|
|
74
|
+
bottom: number;
|
|
75
|
+
};
|
|
76
|
+
getOriginBox(): {
|
|
71
77
|
left: number;
|
|
72
78
|
right: number;
|
|
73
79
|
top: number;
|
|
@@ -17,8 +17,11 @@ export declare class Selection extends EventDispatcher<SelectionEventMap> {
|
|
|
17
17
|
private isMultipleSelect;
|
|
18
18
|
constructor(context: Context);
|
|
19
19
|
get list(): Set<Graphic>;
|
|
20
|
+
enableBoxSelection(): void;
|
|
21
|
+
disableBoxSelection(): void;
|
|
20
22
|
onPointerDown: (e: PointerEvent) => void;
|
|
21
23
|
onPointerUp: (e: PointerEvent) => void;
|
|
24
|
+
onPointerOut: (e: PointerEvent) => void;
|
|
22
25
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
23
26
|
onKeyUp: (e: KeyboardEvent) => void;
|
|
24
27
|
onBoxSelected: ({ list }: {
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@aibee/crc-bmap",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "lib/bmap.min.js",
|
|
6
|
-
"module": "lib/bmap.esm.min.js",
|
|
7
|
-
"types": "lib/src/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib",
|
|
10
|
-
"example"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "pnpm
|
|
14
|
-
"build:min": "ts-node ./build/index.ts",
|
|
15
|
-
"gen-type": "tsc",
|
|
16
|
-
"clean": "rm -rf lib",
|
|
17
|
-
"lint": "eslint src/**/*.ts",
|
|
18
|
-
"start": "cd example && vite",
|
|
19
|
-
"publish:all": "npm run build && npm version patch && npm run publish:npm && npm run publish:aibee",
|
|
20
|
-
"publish:npm": "npm publish --access public --registry https://registry.npmjs.org",
|
|
21
|
-
"publish:aibee": "npm publish --registry https://npm.aibee.cn"
|
|
22
|
-
},
|
|
23
|
-
"keywords": [],
|
|
24
|
-
"author": "",
|
|
25
|
-
"license": "ISC",
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/lodash": "^4.14.199",
|
|
28
|
-
"@types/node": "^20.8.3",
|
|
29
|
-
"@types/tween.js": "^18.6.1",
|
|
30
|
-
"esbuild": "^0.19.4",
|
|
31
|
-
"eslint": "^8.51.0",
|
|
32
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
33
|
-
"prettier": "^3.0.3",
|
|
34
|
-
"ts-node": "^10.7.0",
|
|
35
|
-
"typescript": "^5.2.2",
|
|
36
|
-
"vite": "^4.4.11"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@types/three": "^0.156.0",
|
|
40
|
-
"@mars3d/heatmap.js": "^2.0.7",
|
|
41
|
-
"@turf/turf": "^6.5.0",
|
|
42
|
-
"@tweenjs/tween.js": "^21.0.0",
|
|
43
|
-
"hotkeys-js": "^3.12.0",
|
|
44
|
-
"lodash": "^4.17.21",
|
|
45
|
-
"three": "^0.157.0"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@aibee/crc-bmap",
|
|
3
|
+
"version": "0.0.75",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/bmap.min.js",
|
|
6
|
+
"module": "lib/bmap.esm.min.js",
|
|
7
|
+
"types": "lib/src/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib",
|
|
10
|
+
"example"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "pnpm build:min",
|
|
14
|
+
"build:min": "ts-node ./build/index.ts",
|
|
15
|
+
"gen-type": "tsc",
|
|
16
|
+
"clean": "rm -rf lib",
|
|
17
|
+
"lint": "eslint src/**/*.ts",
|
|
18
|
+
"start": "cd example && vite",
|
|
19
|
+
"publish:all": "npm run build && npm version patch && npm run publish:npm && npm run publish:aibee",
|
|
20
|
+
"publish:npm": "npm publish --access public --registry https://registry.npmjs.org",
|
|
21
|
+
"publish:aibee": "npm publish --registry https://npm.aibee.cn"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [],
|
|
24
|
+
"author": "",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/lodash": "^4.14.199",
|
|
28
|
+
"@types/node": "^20.8.3",
|
|
29
|
+
"@types/tween.js": "^18.6.1",
|
|
30
|
+
"esbuild": "^0.19.4",
|
|
31
|
+
"eslint": "^8.51.0",
|
|
32
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
33
|
+
"prettier": "^3.0.3",
|
|
34
|
+
"ts-node": "^10.7.0",
|
|
35
|
+
"typescript": "^5.2.2",
|
|
36
|
+
"vite": "^4.4.11"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@types/three": "^0.156.0",
|
|
40
|
+
"@mars3d/heatmap.js": "^2.0.7",
|
|
41
|
+
"@turf/turf": "^6.5.0",
|
|
42
|
+
"@tweenjs/tween.js": "^21.0.0",
|
|
43
|
+
"hotkeys-js": "^3.12.0",
|
|
44
|
+
"lodash": "^4.17.21",
|
|
45
|
+
"three": "^0.157.0"
|
|
46
|
+
}
|
|
47
|
+
}
|