microboard-temp 0.4.21 → 0.4.23

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.
@@ -46224,7 +46224,7 @@ class AddDice extends ShapeTool {
46224
46224
  }
46225
46225
 
46226
46226
  // src/Items/Examples/CardGame/Dice/Dice.ts
46227
- var TIMEOUT = 3000;
46227
+ var TIMEOUT = 2000;
46228
46228
  var defaultDiceData = {
46229
46229
  itemType: "Dice",
46230
46230
  backgroundColor: "#FFFFFF",
@@ -46271,7 +46271,7 @@ class Dice extends BaseItem {
46271
46271
  context.ctx.save();
46272
46272
  if (this.animationFrameId) {
46273
46273
  const now = Date.now();
46274
- const angle = now % 1000 / 1000 * 2 * Math.PI;
46274
+ const angle = now % 500 / 500 * 2 * Math.PI;
46275
46275
  const mbr2 = this.getMbr();
46276
46276
  const centerX2 = (mbr2.left + mbr2.right) / 2;
46277
46277
  const centerY2 = (mbr2.top + mbr2.bottom) / 2;
@@ -46313,6 +46313,9 @@ class Dice extends BaseItem {
46313
46313
  getIsRotating() {
46314
46314
  return !!this.animationFrameId;
46315
46315
  }
46316
+ getRange() {
46317
+ return this.range;
46318
+ }
46316
46319
  applyBackgroundColor(backgroundColor) {
46317
46320
  this.backgroundColor = backgroundColor;
46318
46321
  this.path.setBackgroundColor(backgroundColor);
package/dist/cjs/index.js CHANGED
@@ -46224,7 +46224,7 @@ class AddDice extends ShapeTool {
46224
46224
  }
46225
46225
 
46226
46226
  // src/Items/Examples/CardGame/Dice/Dice.ts
46227
- var TIMEOUT = 3000;
46227
+ var TIMEOUT = 2000;
46228
46228
  var defaultDiceData = {
46229
46229
  itemType: "Dice",
46230
46230
  backgroundColor: "#FFFFFF",
@@ -46271,7 +46271,7 @@ class Dice extends BaseItem {
46271
46271
  context.ctx.save();
46272
46272
  if (this.animationFrameId) {
46273
46273
  const now = Date.now();
46274
- const angle = now % 1000 / 1000 * 2 * Math.PI;
46274
+ const angle = now % 500 / 500 * 2 * Math.PI;
46275
46275
  const mbr2 = this.getMbr();
46276
46276
  const centerX2 = (mbr2.left + mbr2.right) / 2;
46277
46277
  const centerY2 = (mbr2.top + mbr2.bottom) / 2;
@@ -46313,6 +46313,9 @@ class Dice extends BaseItem {
46313
46313
  getIsRotating() {
46314
46314
  return !!this.animationFrameId;
46315
46315
  }
46316
+ getRange() {
46317
+ return this.range;
46318
+ }
46316
46319
  applyBackgroundColor(backgroundColor) {
46317
46320
  this.backgroundColor = backgroundColor;
46318
46321
  this.path.setBackgroundColor(backgroundColor);
package/dist/cjs/node.js CHANGED
@@ -48764,7 +48764,7 @@ class AddDice extends ShapeTool {
48764
48764
  }
48765
48765
 
48766
48766
  // src/Items/Examples/CardGame/Dice/Dice.ts
48767
- var TIMEOUT = 3000;
48767
+ var TIMEOUT = 2000;
48768
48768
  var defaultDiceData = {
48769
48769
  itemType: "Dice",
48770
48770
  backgroundColor: "#FFFFFF",
@@ -48811,7 +48811,7 @@ class Dice extends BaseItem {
48811
48811
  context.ctx.save();
48812
48812
  if (this.animationFrameId) {
48813
48813
  const now = Date.now();
48814
- const angle = now % 1000 / 1000 * 2 * Math.PI;
48814
+ const angle = now % 500 / 500 * 2 * Math.PI;
48815
48815
  const mbr2 = this.getMbr();
48816
48816
  const centerX2 = (mbr2.left + mbr2.right) / 2;
48817
48817
  const centerY2 = (mbr2.top + mbr2.bottom) / 2;
@@ -48853,6 +48853,9 @@ class Dice extends BaseItem {
48853
48853
  getIsRotating() {
48854
48854
  return !!this.animationFrameId;
48855
48855
  }
48856
+ getRange() {
48857
+ return this.range;
48858
+ }
48856
48859
  applyBackgroundColor(backgroundColor) {
48857
48860
  this.backgroundColor = backgroundColor;
48858
48861
  this.path.setBackgroundColor(backgroundColor);
@@ -46074,7 +46074,7 @@ class AddDice extends ShapeTool {
46074
46074
  }
46075
46075
 
46076
46076
  // src/Items/Examples/CardGame/Dice/Dice.ts
46077
- var TIMEOUT = 3000;
46077
+ var TIMEOUT = 2000;
46078
46078
  var defaultDiceData = {
46079
46079
  itemType: "Dice",
46080
46080
  backgroundColor: "#FFFFFF",
@@ -46121,7 +46121,7 @@ class Dice extends BaseItem {
46121
46121
  context.ctx.save();
46122
46122
  if (this.animationFrameId) {
46123
46123
  const now = Date.now();
46124
- const angle = now % 1000 / 1000 * 2 * Math.PI;
46124
+ const angle = now % 500 / 500 * 2 * Math.PI;
46125
46125
  const mbr2 = this.getMbr();
46126
46126
  const centerX2 = (mbr2.left + mbr2.right) / 2;
46127
46127
  const centerY2 = (mbr2.top + mbr2.bottom) / 2;
@@ -46163,6 +46163,9 @@ class Dice extends BaseItem {
46163
46163
  getIsRotating() {
46164
46164
  return !!this.animationFrameId;
46165
46165
  }
46166
+ getRange() {
46167
+ return this.range;
46168
+ }
46166
46169
  applyBackgroundColor(backgroundColor) {
46167
46170
  this.backgroundColor = backgroundColor;
46168
46171
  this.path.setBackgroundColor(backgroundColor);
package/dist/esm/index.js CHANGED
@@ -46067,7 +46067,7 @@ class AddDice extends ShapeTool {
46067
46067
  }
46068
46068
 
46069
46069
  // src/Items/Examples/CardGame/Dice/Dice.ts
46070
- var TIMEOUT = 3000;
46070
+ var TIMEOUT = 2000;
46071
46071
  var defaultDiceData = {
46072
46072
  itemType: "Dice",
46073
46073
  backgroundColor: "#FFFFFF",
@@ -46114,7 +46114,7 @@ class Dice extends BaseItem {
46114
46114
  context.ctx.save();
46115
46115
  if (this.animationFrameId) {
46116
46116
  const now = Date.now();
46117
- const angle = now % 1000 / 1000 * 2 * Math.PI;
46117
+ const angle = now % 500 / 500 * 2 * Math.PI;
46118
46118
  const mbr2 = this.getMbr();
46119
46119
  const centerX2 = (mbr2.left + mbr2.right) / 2;
46120
46120
  const centerY2 = (mbr2.top + mbr2.bottom) / 2;
@@ -46156,6 +46156,9 @@ class Dice extends BaseItem {
46156
46156
  getIsRotating() {
46157
46157
  return !!this.animationFrameId;
46158
46158
  }
46159
+ getRange() {
46160
+ return this.range;
46161
+ }
46159
46162
  applyBackgroundColor(backgroundColor) {
46160
46163
  this.backgroundColor = backgroundColor;
46161
46164
  this.path.setBackgroundColor(backgroundColor);
package/dist/esm/node.js CHANGED
@@ -48602,7 +48602,7 @@ class AddDice extends ShapeTool {
48602
48602
  }
48603
48603
 
48604
48604
  // src/Items/Examples/CardGame/Dice/Dice.ts
48605
- var TIMEOUT = 3000;
48605
+ var TIMEOUT = 2000;
48606
48606
  var defaultDiceData = {
48607
48607
  itemType: "Dice",
48608
48608
  backgroundColor: "#FFFFFF",
@@ -48649,7 +48649,7 @@ class Dice extends BaseItem {
48649
48649
  context.ctx.save();
48650
48650
  if (this.animationFrameId) {
48651
48651
  const now = Date.now();
48652
- const angle = now % 1000 / 1000 * 2 * Math.PI;
48652
+ const angle = now % 500 / 500 * 2 * Math.PI;
48653
48653
  const mbr2 = this.getMbr();
48654
48654
  const centerX2 = (mbr2.left + mbr2.right) / 2;
48655
48655
  const centerY2 = (mbr2.top + mbr2.bottom) / 2;
@@ -48691,6 +48691,9 @@ class Dice extends BaseItem {
48691
48691
  getIsRotating() {
48692
48692
  return !!this.animationFrameId;
48693
48693
  }
48694
+ getRange() {
48695
+ return this.range;
48696
+ }
48694
48697
  applyBackgroundColor(backgroundColor) {
48695
48698
  this.backgroundColor = backgroundColor;
48696
48699
  this.path.setBackgroundColor(backgroundColor);
@@ -26,6 +26,10 @@ export declare class Dice extends BaseItem {
26
26
  renderHTML(documentFactory: DocumentFactory): HTMLElement;
27
27
  deserialize(data: SerializedItemData): this;
28
28
  getIsRotating(): boolean;
29
+ getRange(): {
30
+ min: number;
31
+ max: number;
32
+ };
29
33
  private applyBackgroundColor;
30
34
  setBackgroundColor(backgroundColor: string): void;
31
35
  private applyBorderWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.21",
3
+ "version": "0.4.23",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",