microboard-temp 0.4.25 → 0.4.27

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.
@@ -46348,6 +46348,7 @@ class Dice extends BaseItem {
46348
46348
  }
46349
46349
  deserialize(data) {
46350
46350
  super.deserialize(data);
46351
+ this.createRenderValues();
46351
46352
  this.transformPath();
46352
46353
  this.subject.publish(this);
46353
46354
  return this;
@@ -46355,6 +46356,9 @@ class Dice extends BaseItem {
46355
46356
  getIsRotating() {
46356
46357
  return !!this.animationFrameId;
46357
46358
  }
46359
+ getType() {
46360
+ return this.type;
46361
+ }
46358
46362
  getRange() {
46359
46363
  if (this.type === "custom") {
46360
46364
  return { min: 1, max: this.values.length };
package/dist/cjs/index.js CHANGED
@@ -46348,6 +46348,7 @@ class Dice extends BaseItem {
46348
46348
  }
46349
46349
  deserialize(data) {
46350
46350
  super.deserialize(data);
46351
+ this.createRenderValues();
46351
46352
  this.transformPath();
46352
46353
  this.subject.publish(this);
46353
46354
  return this;
@@ -46355,6 +46356,9 @@ class Dice extends BaseItem {
46355
46356
  getIsRotating() {
46356
46357
  return !!this.animationFrameId;
46357
46358
  }
46359
+ getType() {
46360
+ return this.type;
46361
+ }
46358
46362
  getRange() {
46359
46363
  if (this.type === "custom") {
46360
46364
  return { min: 1, max: this.values.length };
package/dist/cjs/node.js CHANGED
@@ -48888,6 +48888,7 @@ class Dice extends BaseItem {
48888
48888
  }
48889
48889
  deserialize(data) {
48890
48890
  super.deserialize(data);
48891
+ this.createRenderValues();
48891
48892
  this.transformPath();
48892
48893
  this.subject.publish(this);
48893
48894
  return this;
@@ -48895,6 +48896,9 @@ class Dice extends BaseItem {
48895
48896
  getIsRotating() {
48896
48897
  return !!this.animationFrameId;
48897
48898
  }
48899
+ getType() {
48900
+ return this.type;
48901
+ }
48898
48902
  getRange() {
48899
48903
  if (this.type === "custom") {
48900
48904
  return { min: 1, max: this.values.length };
@@ -46198,6 +46198,7 @@ class Dice extends BaseItem {
46198
46198
  }
46199
46199
  deserialize(data) {
46200
46200
  super.deserialize(data);
46201
+ this.createRenderValues();
46201
46202
  this.transformPath();
46202
46203
  this.subject.publish(this);
46203
46204
  return this;
@@ -46205,6 +46206,9 @@ class Dice extends BaseItem {
46205
46206
  getIsRotating() {
46206
46207
  return !!this.animationFrameId;
46207
46208
  }
46209
+ getType() {
46210
+ return this.type;
46211
+ }
46208
46212
  getRange() {
46209
46213
  if (this.type === "custom") {
46210
46214
  return { min: 1, max: this.values.length };
package/dist/esm/index.js CHANGED
@@ -46191,6 +46191,7 @@ class Dice extends BaseItem {
46191
46191
  }
46192
46192
  deserialize(data) {
46193
46193
  super.deserialize(data);
46194
+ this.createRenderValues();
46194
46195
  this.transformPath();
46195
46196
  this.subject.publish(this);
46196
46197
  return this;
@@ -46198,6 +46199,9 @@ class Dice extends BaseItem {
46198
46199
  getIsRotating() {
46199
46200
  return !!this.animationFrameId;
46200
46201
  }
46202
+ getType() {
46203
+ return this.type;
46204
+ }
46201
46205
  getRange() {
46202
46206
  if (this.type === "custom") {
46203
46207
  return { min: 1, max: this.values.length };
package/dist/esm/node.js CHANGED
@@ -48726,6 +48726,7 @@ class Dice extends BaseItem {
48726
48726
  }
48727
48727
  deserialize(data) {
48728
48728
  super.deserialize(data);
48729
+ this.createRenderValues();
48729
48730
  this.transformPath();
48730
48731
  this.subject.publish(this);
48731
48732
  return this;
@@ -48733,6 +48734,9 @@ class Dice extends BaseItem {
48733
48734
  getIsRotating() {
48734
48735
  return !!this.animationFrameId;
48735
48736
  }
48737
+ getType() {
48738
+ return this.type;
48739
+ }
48736
48740
  getRange() {
48737
48741
  if (this.type === "custom") {
48738
48742
  return { min: 1, max: this.values.length };
@@ -27,6 +27,7 @@ export declare class Dice extends BaseItem {
27
27
  renderHTML(documentFactory: DocumentFactory): HTMLElement;
28
28
  deserialize(data: SerializedItemData): this;
29
29
  getIsRotating(): boolean;
30
+ getType(): DiceType;
30
31
  getRange(): {
31
32
  min: number;
32
33
  max: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.25",
3
+ "version": "0.4.27",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",