react-native-cesium 1.0.4 → 1.0.6

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.
@@ -58,7 +58,8 @@ void GlobeCamera::recompute() const {
58
58
 
59
59
  double hdgRad = glm::radians(params_.heading);
60
60
  double pitchRad = glm::radians(params_.pitch);
61
- double rollRad = glm::radians(params_.roll);
61
+ // Aviation-style sign: positive roll = right wing down, negative = left wing down.
62
+ double rollRad = -glm::radians(params_.roll);
62
63
 
63
64
  // 1. Heading: forward and right in the horizontal plane.
64
65
  glm::dvec3 fwdH = north * std::cos(hdgRad) + east * std::sin(hdgRad);
@@ -1,3 +1,3 @@
1
1
  export { CesiumView } from './CesiumView';
2
- export type { CameraState, CesiumMetrics, CesiumViewProps, CesiumViewMethods, Quaternion, } from './specs/cesium-view.nitro';
2
+ export type { CameraState, CesiumMetrics, CesiumViewProps, CesiumViewMethods, CesiumView as CesiumViewRef, Quaternion, } from './specs/cesium-view.nitro';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EACV,WAAW,EACX,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,MAAM,2BAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EACV,WAAW,EACX,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,UAAU,IAAI,aAAa,EAC3B,UAAU,GACX,MAAM,2BAA2B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-cesium",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Experimental Cesium rendering for React Native via Nitro (iOS/Metal today; Android planned)",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -16,7 +16,6 @@
16
16
  "build:js": "npm run typecheck && bob build",
17
17
  "update": "node scripts/cesium/clone.mjs",
18
18
  "ensure-native": "node scripts/cesium/ensure-native.mjs",
19
- "cesium:update": "npm run update",
20
19
  "codegen": "nitrogen --logLevel=\"debug\" && npm run build:js && node post-script.js",
21
20
  "prepublishOnly": "npm run build:js"
22
21
  },
package/src/index.ts CHANGED
@@ -4,5 +4,6 @@ export type {
4
4
  CesiumMetrics,
5
5
  CesiumViewProps,
6
6
  CesiumViewMethods,
7
+ CesiumView as CesiumViewRef,
7
8
  Quaternion,
8
9
  } from './specs/cesium-view.nitro'