@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 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
- following,
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()`, `follow()`, and `unfollow()` return Promises
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