@mappedin/blue-dot 6.19.0-beta.0 → 6.21.0-beta.0
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/lib/esm/{chunk-T4TSXXQK.js → chunk-B47R6CZT.js} +1 -1
- package/lib/esm/{chunk-IJA5ETXF.js → chunk-XTTBCWT2.js} +1 -1
- package/lib/esm/debug/index.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/react/index.js +1 -1
- package/lib/rn/index-rn.js +2 -2
- package/lib/rn/models/constants.d.ts +11 -0
- package/package.json +4 -4
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
export declare const POSITION_ANIMATION_DURATION = 1000;
|
|
2
2
|
export declare const SCALE_ANIMATION_DURATION = 150;
|
|
3
3
|
export declare const ROTATION_ANIMATION_DURATION = 150;
|
|
4
|
+
/**
|
|
5
|
+
* Relative threshold for re-scaling the dot on camera changes.
|
|
6
|
+
*
|
|
7
|
+
* `metersPerPixel` spans a ~44× multiplicative range across the zoom + elevation
|
|
8
|
+
* range, so deduping on a fixed decimal (the old zoom-rounding approach) is
|
|
9
|
+
* meaningless — it's far too coarse zoomed in and too fine zoomed out. The dot's
|
|
10
|
+
* on-screen pixel error from a stale scale is bounded by `radius * relativeΔ`, so a
|
|
11
|
+
* relative gate keeps the dot visually constant everywhere. At 1% that's ≤0.1px at
|
|
12
|
+
* the default 10px radius while skipping ~70% of per-frame rescales.
|
|
13
|
+
*/
|
|
14
|
+
export declare const MPP_RELATIVE_EPSILON = 0.01;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mappedin/blue-dot",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.21.0-beta.0",
|
|
4
4
|
"homepage": "https://developer.mappedin.com/",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=16.8.0",
|
|
54
|
-
"@mappedin/
|
|
55
|
-
"@mappedin/react-
|
|
56
|
-
"@mappedin/
|
|
54
|
+
"@mappedin/react-native-sdk": "^6.21.0",
|
|
55
|
+
"@mappedin/react-sdk": "^6.21.0",
|
|
56
|
+
"@mappedin/mappedin-js": "^6.21.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"@mappedin/react-native-sdk": {
|