microboard-temp 0.13.14 → 0.13.15
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/dist/cjs/browser.js +3 -0
- package/dist/cjs/index.js +3 -0
- package/dist/cjs/node.js +3 -0
- package/dist/esm/browser.js +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/node.js +3 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -54428,6 +54428,8 @@ class GravityEngine {
|
|
|
54428
54428
|
if (this.tickTimer !== null)
|
|
54429
54429
|
return;
|
|
54430
54430
|
for (const item of this.board.items.listAll()) {
|
|
54431
|
+
const pos = item.transformation.getTranslation();
|
|
54432
|
+
this.lastSyncedPositions.set(item.getId(), { x: pos.x, y: pos.y });
|
|
54431
54433
|
this.velocities.set(item.getId(), { vx: 0, vy: 0 });
|
|
54432
54434
|
}
|
|
54433
54435
|
this.tickTimer = setInterval(() => this.tick(), this.TICK_MS);
|
|
@@ -54442,6 +54444,7 @@ class GravityEngine {
|
|
|
54442
54444
|
clearInterval(this.syncTimer);
|
|
54443
54445
|
this.syncTimer = null;
|
|
54444
54446
|
}
|
|
54447
|
+
this.syncPositions();
|
|
54445
54448
|
this.velocities.clear();
|
|
54446
54449
|
this.lastSyncedPositions.clear();
|
|
54447
54450
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -54428,6 +54428,8 @@ class GravityEngine {
|
|
|
54428
54428
|
if (this.tickTimer !== null)
|
|
54429
54429
|
return;
|
|
54430
54430
|
for (const item of this.board.items.listAll()) {
|
|
54431
|
+
const pos = item.transformation.getTranslation();
|
|
54432
|
+
this.lastSyncedPositions.set(item.getId(), { x: pos.x, y: pos.y });
|
|
54431
54433
|
this.velocities.set(item.getId(), { vx: 0, vy: 0 });
|
|
54432
54434
|
}
|
|
54433
54435
|
this.tickTimer = setInterval(() => this.tick(), this.TICK_MS);
|
|
@@ -54442,6 +54444,7 @@ class GravityEngine {
|
|
|
54442
54444
|
clearInterval(this.syncTimer);
|
|
54443
54445
|
this.syncTimer = null;
|
|
54444
54446
|
}
|
|
54447
|
+
this.syncPositions();
|
|
54445
54448
|
this.velocities.clear();
|
|
54446
54449
|
this.lastSyncedPositions.clear();
|
|
54447
54450
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -56901,6 +56901,8 @@ class GravityEngine {
|
|
|
56901
56901
|
if (this.tickTimer !== null)
|
|
56902
56902
|
return;
|
|
56903
56903
|
for (const item of this.board.items.listAll()) {
|
|
56904
|
+
const pos = item.transformation.getTranslation();
|
|
56905
|
+
this.lastSyncedPositions.set(item.getId(), { x: pos.x, y: pos.y });
|
|
56904
56906
|
this.velocities.set(item.getId(), { vx: 0, vy: 0 });
|
|
56905
56907
|
}
|
|
56906
56908
|
this.tickTimer = setInterval(() => this.tick(), this.TICK_MS);
|
|
@@ -56915,6 +56917,7 @@ class GravityEngine {
|
|
|
56915
56917
|
clearInterval(this.syncTimer);
|
|
56916
56918
|
this.syncTimer = null;
|
|
56917
56919
|
}
|
|
56920
|
+
this.syncPositions();
|
|
56918
56921
|
this.velocities.clear();
|
|
56919
56922
|
this.lastSyncedPositions.clear();
|
|
56920
56923
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -54257,6 +54257,8 @@ class GravityEngine {
|
|
|
54257
54257
|
if (this.tickTimer !== null)
|
|
54258
54258
|
return;
|
|
54259
54259
|
for (const item of this.board.items.listAll()) {
|
|
54260
|
+
const pos = item.transformation.getTranslation();
|
|
54261
|
+
this.lastSyncedPositions.set(item.getId(), { x: pos.x, y: pos.y });
|
|
54260
54262
|
this.velocities.set(item.getId(), { vx: 0, vy: 0 });
|
|
54261
54263
|
}
|
|
54262
54264
|
this.tickTimer = setInterval(() => this.tick(), this.TICK_MS);
|
|
@@ -54271,6 +54273,7 @@ class GravityEngine {
|
|
|
54271
54273
|
clearInterval(this.syncTimer);
|
|
54272
54274
|
this.syncTimer = null;
|
|
54273
54275
|
}
|
|
54276
|
+
this.syncPositions();
|
|
54274
54277
|
this.velocities.clear();
|
|
54275
54278
|
this.lastSyncedPositions.clear();
|
|
54276
54279
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -54250,6 +54250,8 @@ class GravityEngine {
|
|
|
54250
54250
|
if (this.tickTimer !== null)
|
|
54251
54251
|
return;
|
|
54252
54252
|
for (const item of this.board.items.listAll()) {
|
|
54253
|
+
const pos = item.transformation.getTranslation();
|
|
54254
|
+
this.lastSyncedPositions.set(item.getId(), { x: pos.x, y: pos.y });
|
|
54253
54255
|
this.velocities.set(item.getId(), { vx: 0, vy: 0 });
|
|
54254
54256
|
}
|
|
54255
54257
|
this.tickTimer = setInterval(() => this.tick(), this.TICK_MS);
|
|
@@ -54264,6 +54266,7 @@ class GravityEngine {
|
|
|
54264
54266
|
clearInterval(this.syncTimer);
|
|
54265
54267
|
this.syncTimer = null;
|
|
54266
54268
|
}
|
|
54269
|
+
this.syncPositions();
|
|
54267
54270
|
this.velocities.clear();
|
|
54268
54271
|
this.lastSyncedPositions.clear();
|
|
54269
54272
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -56718,6 +56718,8 @@ class GravityEngine {
|
|
|
56718
56718
|
if (this.tickTimer !== null)
|
|
56719
56719
|
return;
|
|
56720
56720
|
for (const item of this.board.items.listAll()) {
|
|
56721
|
+
const pos = item.transformation.getTranslation();
|
|
56722
|
+
this.lastSyncedPositions.set(item.getId(), { x: pos.x, y: pos.y });
|
|
56721
56723
|
this.velocities.set(item.getId(), { vx: 0, vy: 0 });
|
|
56722
56724
|
}
|
|
56723
56725
|
this.tickTimer = setInterval(() => this.tick(), this.TICK_MS);
|
|
@@ -56732,6 +56734,7 @@ class GravityEngine {
|
|
|
56732
56734
|
clearInterval(this.syncTimer);
|
|
56733
56735
|
this.syncTimer = null;
|
|
56734
56736
|
}
|
|
56737
|
+
this.syncPositions();
|
|
56735
56738
|
this.velocities.clear();
|
|
56736
56739
|
this.lastSyncedPositions.clear();
|
|
56737
56740
|
}
|