@mappedin/blue-dot 6.0.1-beta.57 → 6.0.1-beta.59
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 +5 -3
- package/lib/blue-dot.iife.js.map +4 -4
- package/lib/esm/chunk-EEQMR2QG.js +1560 -0
- package/lib/esm/chunk-EEQMR2QG.js.map +7 -0
- package/lib/esm/index.d.ts +221 -38
- package/lib/esm/index.js +6 -229
- package/lib/esm/index.js.map +3 -3
- package/lib/esm/react/index.d.ts +877 -0
- package/lib/esm/react/index.js +75 -0
- package/lib/esm/react/index.js.map +7 -0
- package/lib/rn/blue-dot.d.ts +188 -0
- package/lib/rn/constants.d.ts +11 -0
- package/lib/rn/index-rn.js +65 -24
- package/lib/rn/index-rn.js.map +3 -3
- package/lib/rn/model-manager.d.ts +24 -0
- package/lib/rn/rn/use-blue-dot.d.ts +11 -95
- package/lib/rn/schemas.d.ts +22 -0
- package/lib/rn/state-machine.d.ts +2 -0
- package/lib/rn/types.d.ts +80 -21
- package/lib/rn/utils.d.ts +75 -0
- package/package.json +19 -8
package/README.md
CHANGED
|
@@ -46,6 +46,9 @@ blueDot.update({
|
|
|
46
46
|
// Optional floor or floor ID
|
|
47
47
|
floorOrFloorId,
|
|
48
48
|
})
|
|
49
|
+
|
|
50
|
+
// Attach the camera to the BlueDot
|
|
51
|
+
blueDot.follow('position-only');
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
### Options
|
|
@@ -146,14 +149,13 @@ function BlueDotDisplay() {
|
|
|
146
149
|
state,
|
|
147
150
|
position,
|
|
148
151
|
floor,
|
|
149
|
-
|
|
152
|
+
isFollowing,
|
|
150
153
|
accuracy,
|
|
151
154
|
heading,
|
|
152
155
|
enable,
|
|
153
156
|
disable,
|
|
154
157
|
update,
|
|
155
158
|
follow,
|
|
156
|
-
unfollow,
|
|
157
159
|
} = useBlueDot();
|
|
158
160
|
|
|
159
161
|
// Listen for position updates
|
|
@@ -234,6 +236,6 @@ function BlueDotDisplay() {
|
|
|
234
236
|
|
|
235
237
|
**Key Differences from Vanilla JS:**
|
|
236
238
|
|
|
237
|
-
- **All methods are async**: `enable()`, `disable()`, `update()`,
|
|
239
|
+
- **All methods are async**: `enable()`, `disable()`, `update()`, and `follow()` return Promises
|
|
238
240
|
- **Rich state**: Hook returns `isReady`, `state`, `position`, `floor`, `following`, `accuracy`, `heading` for real-time updates
|
|
239
241
|
- **Separate event hook**: Use `useBlueDotEvent` for listening to position-update, state-change, and follow-change events
|