microboard-temp 0.4.22 → 0.4.24
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
CHANGED
|
@@ -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);
|
|
@@ -46371,7 +46374,7 @@ class Dice extends BaseItem {
|
|
|
46371
46374
|
});
|
|
46372
46375
|
}
|
|
46373
46376
|
throwDice() {
|
|
46374
|
-
this.setValue(Math.
|
|
46377
|
+
this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
|
|
46375
46378
|
}
|
|
46376
46379
|
apply(op) {
|
|
46377
46380
|
super.apply(op);
|
package/dist/cjs/index.js
CHANGED
|
@@ -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);
|
|
@@ -46371,7 +46374,7 @@ class Dice extends BaseItem {
|
|
|
46371
46374
|
});
|
|
46372
46375
|
}
|
|
46373
46376
|
throwDice() {
|
|
46374
|
-
this.setValue(Math.
|
|
46377
|
+
this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
|
|
46375
46378
|
}
|
|
46376
46379
|
apply(op) {
|
|
46377
46380
|
super.apply(op);
|
package/dist/cjs/node.js
CHANGED
|
@@ -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);
|
|
@@ -48911,7 +48914,7 @@ class Dice extends BaseItem {
|
|
|
48911
48914
|
});
|
|
48912
48915
|
}
|
|
48913
48916
|
throwDice() {
|
|
48914
|
-
this.setValue(Math.
|
|
48917
|
+
this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
|
|
48915
48918
|
}
|
|
48916
48919
|
apply(op) {
|
|
48917
48920
|
super.apply(op);
|
package/dist/esm/browser.js
CHANGED
|
@@ -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);
|
|
@@ -46221,7 +46224,7 @@ class Dice extends BaseItem {
|
|
|
46221
46224
|
});
|
|
46222
46225
|
}
|
|
46223
46226
|
throwDice() {
|
|
46224
|
-
this.setValue(Math.
|
|
46227
|
+
this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
|
|
46225
46228
|
}
|
|
46226
46229
|
apply(op) {
|
|
46227
46230
|
super.apply(op);
|
package/dist/esm/index.js
CHANGED
|
@@ -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);
|
|
@@ -46214,7 +46217,7 @@ class Dice extends BaseItem {
|
|
|
46214
46217
|
});
|
|
46215
46218
|
}
|
|
46216
46219
|
throwDice() {
|
|
46217
|
-
this.setValue(Math.
|
|
46220
|
+
this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
|
|
46218
46221
|
}
|
|
46219
46222
|
apply(op) {
|
|
46220
46223
|
super.apply(op);
|
package/dist/esm/node.js
CHANGED
|
@@ -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);
|
|
@@ -48749,7 +48752,7 @@ class Dice extends BaseItem {
|
|
|
48749
48752
|
});
|
|
48750
48753
|
}
|
|
48751
48754
|
throwDice() {
|
|
48752
|
-
this.setValue(Math.
|
|
48755
|
+
this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
|
|
48753
48756
|
}
|
|
48754
48757
|
apply(op) {
|
|
48755
48758
|
super.apply(op);
|
|
@@ -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;
|