microboard-temp 0.5.133 → 0.5.134

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.
@@ -50789,7 +50789,9 @@ class Presence {
50789
50789
  const throttleCameraEvent = throttleWithDebounce(this.sendCameraPresence.bind(this), 150, 150);
50790
50790
  const checkIsDisableTrackingNeeded = this.getIsDisableTrackingNeeded.bind(this);
50791
50791
  this.board.camera.subject.subscribe((_camera) => {
50792
- throttleCameraEvent(this.board.camera);
50792
+ if (!this.board.camera.isTrackingAnimation) {
50793
+ throttleCameraEvent(this.board.camera);
50794
+ }
50793
50795
  if (!this.board.camera.isTrackingAnimation && checkIsDisableTrackingNeeded()) {
50794
50796
  this.disableTracking();
50795
50797
  }
@@ -51049,7 +51051,7 @@ class Presence {
51049
51051
  userCopy.camera = eventData;
51050
51052
  this.updateUserMetaInfo(msg, userCopy);
51051
51053
  this.users.set(msg.userId.toString(), userCopy);
51052
- if (this.trackedUser) {
51054
+ if (this.trackedUser && this.trackedUser.userId === msg.userId.toString()) {
51053
51055
  this.trackedUser.camera = eventData;
51054
51056
  this.board.camera.animateToMatrix(new Matrix2(eventData.translateX, eventData.translateY, eventData.scaleX, eventData.scaleY, eventData.shearX, eventData.shearY));
51055
51057
  }
package/dist/cjs/index.js CHANGED
@@ -50789,7 +50789,9 @@ class Presence {
50789
50789
  const throttleCameraEvent = throttleWithDebounce(this.sendCameraPresence.bind(this), 150, 150);
50790
50790
  const checkIsDisableTrackingNeeded = this.getIsDisableTrackingNeeded.bind(this);
50791
50791
  this.board.camera.subject.subscribe((_camera) => {
50792
- throttleCameraEvent(this.board.camera);
50792
+ if (!this.board.camera.isTrackingAnimation) {
50793
+ throttleCameraEvent(this.board.camera);
50794
+ }
50793
50795
  if (!this.board.camera.isTrackingAnimation && checkIsDisableTrackingNeeded()) {
50794
50796
  this.disableTracking();
50795
50797
  }
@@ -51049,7 +51051,7 @@ class Presence {
51049
51051
  userCopy.camera = eventData;
51050
51052
  this.updateUserMetaInfo(msg, userCopy);
51051
51053
  this.users.set(msg.userId.toString(), userCopy);
51052
- if (this.trackedUser) {
51054
+ if (this.trackedUser && this.trackedUser.userId === msg.userId.toString()) {
51053
51055
  this.trackedUser.camera = eventData;
51054
51056
  this.board.camera.animateToMatrix(new Matrix2(eventData.translateX, eventData.translateY, eventData.scaleX, eventData.scaleY, eventData.shearX, eventData.shearY));
51055
51057
  }
package/dist/cjs/node.js CHANGED
@@ -53262,7 +53262,9 @@ class Presence {
53262
53262
  const throttleCameraEvent = throttleWithDebounce(this.sendCameraPresence.bind(this), 150, 150);
53263
53263
  const checkIsDisableTrackingNeeded = this.getIsDisableTrackingNeeded.bind(this);
53264
53264
  this.board.camera.subject.subscribe((_camera) => {
53265
- throttleCameraEvent(this.board.camera);
53265
+ if (!this.board.camera.isTrackingAnimation) {
53266
+ throttleCameraEvent(this.board.camera);
53267
+ }
53266
53268
  if (!this.board.camera.isTrackingAnimation && checkIsDisableTrackingNeeded()) {
53267
53269
  this.disableTracking();
53268
53270
  }
@@ -53522,7 +53524,7 @@ class Presence {
53522
53524
  userCopy.camera = eventData;
53523
53525
  this.updateUserMetaInfo(msg, userCopy);
53524
53526
  this.users.set(msg.userId.toString(), userCopy);
53525
- if (this.trackedUser) {
53527
+ if (this.trackedUser && this.trackedUser.userId === msg.userId.toString()) {
53526
53528
  this.trackedUser.camera = eventData;
53527
53529
  this.board.camera.animateToMatrix(new Matrix2(eventData.translateX, eventData.translateY, eventData.scaleX, eventData.scaleY, eventData.shearX, eventData.shearY));
53528
53530
  }
@@ -50632,7 +50632,9 @@ class Presence {
50632
50632
  const throttleCameraEvent = throttleWithDebounce(this.sendCameraPresence.bind(this), 150, 150);
50633
50633
  const checkIsDisableTrackingNeeded = this.getIsDisableTrackingNeeded.bind(this);
50634
50634
  this.board.camera.subject.subscribe((_camera) => {
50635
- throttleCameraEvent(this.board.camera);
50635
+ if (!this.board.camera.isTrackingAnimation) {
50636
+ throttleCameraEvent(this.board.camera);
50637
+ }
50636
50638
  if (!this.board.camera.isTrackingAnimation && checkIsDisableTrackingNeeded()) {
50637
50639
  this.disableTracking();
50638
50640
  }
@@ -50892,7 +50894,7 @@ class Presence {
50892
50894
  userCopy.camera = eventData;
50893
50895
  this.updateUserMetaInfo(msg, userCopy);
50894
50896
  this.users.set(msg.userId.toString(), userCopy);
50895
- if (this.trackedUser) {
50897
+ if (this.trackedUser && this.trackedUser.userId === msg.userId.toString()) {
50896
50898
  this.trackedUser.camera = eventData;
50897
50899
  this.board.camera.animateToMatrix(new Matrix2(eventData.translateX, eventData.translateY, eventData.scaleX, eventData.scaleY, eventData.shearX, eventData.shearY));
50898
50900
  }
package/dist/esm/index.js CHANGED
@@ -50625,7 +50625,9 @@ class Presence {
50625
50625
  const throttleCameraEvent = throttleWithDebounce(this.sendCameraPresence.bind(this), 150, 150);
50626
50626
  const checkIsDisableTrackingNeeded = this.getIsDisableTrackingNeeded.bind(this);
50627
50627
  this.board.camera.subject.subscribe((_camera) => {
50628
- throttleCameraEvent(this.board.camera);
50628
+ if (!this.board.camera.isTrackingAnimation) {
50629
+ throttleCameraEvent(this.board.camera);
50630
+ }
50629
50631
  if (!this.board.camera.isTrackingAnimation && checkIsDisableTrackingNeeded()) {
50630
50632
  this.disableTracking();
50631
50633
  }
@@ -50885,7 +50887,7 @@ class Presence {
50885
50887
  userCopy.camera = eventData;
50886
50888
  this.updateUserMetaInfo(msg, userCopy);
50887
50889
  this.users.set(msg.userId.toString(), userCopy);
50888
- if (this.trackedUser) {
50890
+ if (this.trackedUser && this.trackedUser.userId === msg.userId.toString()) {
50889
50891
  this.trackedUser.camera = eventData;
50890
50892
  this.board.camera.animateToMatrix(new Matrix2(eventData.translateX, eventData.translateY, eventData.scaleX, eventData.scaleY, eventData.shearX, eventData.shearY));
50891
50893
  }
package/dist/esm/node.js CHANGED
@@ -53093,7 +53093,9 @@ class Presence {
53093
53093
  const throttleCameraEvent = throttleWithDebounce(this.sendCameraPresence.bind(this), 150, 150);
53094
53094
  const checkIsDisableTrackingNeeded = this.getIsDisableTrackingNeeded.bind(this);
53095
53095
  this.board.camera.subject.subscribe((_camera) => {
53096
- throttleCameraEvent(this.board.camera);
53096
+ if (!this.board.camera.isTrackingAnimation) {
53097
+ throttleCameraEvent(this.board.camera);
53098
+ }
53097
53099
  if (!this.board.camera.isTrackingAnimation && checkIsDisableTrackingNeeded()) {
53098
53100
  this.disableTracking();
53099
53101
  }
@@ -53353,7 +53355,7 @@ class Presence {
53353
53355
  userCopy.camera = eventData;
53354
53356
  this.updateUserMetaInfo(msg, userCopy);
53355
53357
  this.users.set(msg.userId.toString(), userCopy);
53356
- if (this.trackedUser) {
53358
+ if (this.trackedUser && this.trackedUser.userId === msg.userId.toString()) {
53357
53359
  this.trackedUser.camera = eventData;
53358
53360
  this.board.camera.animateToMatrix(new Matrix2(eventData.translateX, eventData.translateY, eventData.scaleX, eventData.scaleY, eventData.shearX, eventData.shearY));
53359
53361
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.133",
3
+ "version": "0.5.134",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",