@xgis/xgis3d 0.3.25 → 0.3.35
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 +26 -90
- package/dist/Map3D.d.ts +2 -0
- package/dist/cesiumBaseUrl.d.ts +5 -0
- package/dist/index.js +156 -23
- package/dist/index.js.map +1 -1
- package/dist/interactions/centroidTilt.d.ts +12 -0
- package/package.json +6 -6
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Viewer as CesiumViewer } from 'cesium';
|
|
2
|
+
export declare const ROTATE_RATE = 1.77;
|
|
3
|
+
export declare const RADIANS_PER_PIXEL = 0.0025;
|
|
4
|
+
/**
|
|
5
|
+
* Orbits the camera about the ground point under the canvas centre, on terrain where terrain has
|
|
6
|
+
* rendered. That is the same point `screenCenterGroundFocus` reports as the view centre, so the
|
|
7
|
+
* synced 2D pane holds still while the 3D view turns.
|
|
8
|
+
*
|
|
9
|
+
* Cesium's own tilt cannot do this: it picks its pivot from the mouse position, and splits the two
|
|
10
|
+
* mouse axes across two different pivots — see ADR 0024.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createCentroidTilt(viewer: CesiumViewer): () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xgis/xgis3d",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.35",
|
|
4
4
|
"description": "XGIS 3D map engine, built on CesiumJS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^18.2.0 || ^19.0.0",
|
|
22
|
-
"@xgis/xgis-common": "^0.3.
|
|
22
|
+
"@xgis/xgis-common": "^0.3.35"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesMeta": {},
|
|
25
25
|
"dependencies": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"vite": "^6.4.3",
|
|
43
43
|
"vitest": "^4.1.7",
|
|
44
44
|
"@xgis/eslint-config": "0.0.0",
|
|
45
|
-
"@xgis/
|
|
46
|
-
"@xgis/
|
|
47
|
-
"@xgis/
|
|
48
|
-
"@xgis/
|
|
45
|
+
"@xgis/xgis3d-build": "0.3.35",
|
|
46
|
+
"@xgis/tsconfig": "0.0.0",
|
|
47
|
+
"@xgis/xgis-common": "0.3.35",
|
|
48
|
+
"@xgis/vitest-config": "0.0.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"dev": "vite --port 4202",
|