microboard-temp 0.4.27 → 0.4.28
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
|
@@ -46257,7 +46257,7 @@ class Dice extends BaseItem {
|
|
|
46257
46257
|
if (values2) {
|
|
46258
46258
|
this.values = values2;
|
|
46259
46259
|
}
|
|
46260
|
-
this.
|
|
46260
|
+
this.updateRenderValues();
|
|
46261
46261
|
this.transformPath();
|
|
46262
46262
|
this.transformation.subject.subscribe(() => {
|
|
46263
46263
|
this.transformPath();
|
|
@@ -46273,7 +46273,7 @@ class Dice extends BaseItem {
|
|
|
46273
46273
|
this.path.setBorderColor(this.borderColor);
|
|
46274
46274
|
this.path.setBorderWidth(this.borderWidth);
|
|
46275
46275
|
}
|
|
46276
|
-
|
|
46276
|
+
updateRenderValues() {
|
|
46277
46277
|
this.values.forEach((value, index2) => {
|
|
46278
46278
|
if (typeof value === "number") {
|
|
46279
46279
|
this.renderValues[index2] = value;
|
|
@@ -46348,7 +46348,7 @@ class Dice extends BaseItem {
|
|
|
46348
46348
|
}
|
|
46349
46349
|
deserialize(data) {
|
|
46350
46350
|
super.deserialize(data);
|
|
46351
|
-
this.
|
|
46351
|
+
this.updateRenderValues();
|
|
46352
46352
|
this.transformPath();
|
|
46353
46353
|
this.subject.publish(this);
|
|
46354
46354
|
return this;
|
|
@@ -46455,6 +46455,7 @@ class Dice extends BaseItem {
|
|
|
46455
46455
|
this.valueIndex = 0;
|
|
46456
46456
|
}
|
|
46457
46457
|
this.values = op.newData.values;
|
|
46458
|
+
this.updateRenderValues();
|
|
46458
46459
|
break;
|
|
46459
46460
|
}
|
|
46460
46461
|
break;
|
package/dist/cjs/index.js
CHANGED
|
@@ -46257,7 +46257,7 @@ class Dice extends BaseItem {
|
|
|
46257
46257
|
if (values2) {
|
|
46258
46258
|
this.values = values2;
|
|
46259
46259
|
}
|
|
46260
|
-
this.
|
|
46260
|
+
this.updateRenderValues();
|
|
46261
46261
|
this.transformPath();
|
|
46262
46262
|
this.transformation.subject.subscribe(() => {
|
|
46263
46263
|
this.transformPath();
|
|
@@ -46273,7 +46273,7 @@ class Dice extends BaseItem {
|
|
|
46273
46273
|
this.path.setBorderColor(this.borderColor);
|
|
46274
46274
|
this.path.setBorderWidth(this.borderWidth);
|
|
46275
46275
|
}
|
|
46276
|
-
|
|
46276
|
+
updateRenderValues() {
|
|
46277
46277
|
this.values.forEach((value, index2) => {
|
|
46278
46278
|
if (typeof value === "number") {
|
|
46279
46279
|
this.renderValues[index2] = value;
|
|
@@ -46348,7 +46348,7 @@ class Dice extends BaseItem {
|
|
|
46348
46348
|
}
|
|
46349
46349
|
deserialize(data) {
|
|
46350
46350
|
super.deserialize(data);
|
|
46351
|
-
this.
|
|
46351
|
+
this.updateRenderValues();
|
|
46352
46352
|
this.transformPath();
|
|
46353
46353
|
this.subject.publish(this);
|
|
46354
46354
|
return this;
|
|
@@ -46455,6 +46455,7 @@ class Dice extends BaseItem {
|
|
|
46455
46455
|
this.valueIndex = 0;
|
|
46456
46456
|
}
|
|
46457
46457
|
this.values = op.newData.values;
|
|
46458
|
+
this.updateRenderValues();
|
|
46458
46459
|
break;
|
|
46459
46460
|
}
|
|
46460
46461
|
break;
|
package/dist/cjs/node.js
CHANGED
|
@@ -48797,7 +48797,7 @@ class Dice extends BaseItem {
|
|
|
48797
48797
|
if (values2) {
|
|
48798
48798
|
this.values = values2;
|
|
48799
48799
|
}
|
|
48800
|
-
this.
|
|
48800
|
+
this.updateRenderValues();
|
|
48801
48801
|
this.transformPath();
|
|
48802
48802
|
this.transformation.subject.subscribe(() => {
|
|
48803
48803
|
this.transformPath();
|
|
@@ -48813,7 +48813,7 @@ class Dice extends BaseItem {
|
|
|
48813
48813
|
this.path.setBorderColor(this.borderColor);
|
|
48814
48814
|
this.path.setBorderWidth(this.borderWidth);
|
|
48815
48815
|
}
|
|
48816
|
-
|
|
48816
|
+
updateRenderValues() {
|
|
48817
48817
|
this.values.forEach((value, index2) => {
|
|
48818
48818
|
if (typeof value === "number") {
|
|
48819
48819
|
this.renderValues[index2] = value;
|
|
@@ -48888,7 +48888,7 @@ class Dice extends BaseItem {
|
|
|
48888
48888
|
}
|
|
48889
48889
|
deserialize(data) {
|
|
48890
48890
|
super.deserialize(data);
|
|
48891
|
-
this.
|
|
48891
|
+
this.updateRenderValues();
|
|
48892
48892
|
this.transformPath();
|
|
48893
48893
|
this.subject.publish(this);
|
|
48894
48894
|
return this;
|
|
@@ -48995,6 +48995,7 @@ class Dice extends BaseItem {
|
|
|
48995
48995
|
this.valueIndex = 0;
|
|
48996
48996
|
}
|
|
48997
48997
|
this.values = op.newData.values;
|
|
48998
|
+
this.updateRenderValues();
|
|
48998
48999
|
break;
|
|
48999
49000
|
}
|
|
49000
49001
|
break;
|
package/dist/esm/browser.js
CHANGED
|
@@ -46107,7 +46107,7 @@ class Dice extends BaseItem {
|
|
|
46107
46107
|
if (values2) {
|
|
46108
46108
|
this.values = values2;
|
|
46109
46109
|
}
|
|
46110
|
-
this.
|
|
46110
|
+
this.updateRenderValues();
|
|
46111
46111
|
this.transformPath();
|
|
46112
46112
|
this.transformation.subject.subscribe(() => {
|
|
46113
46113
|
this.transformPath();
|
|
@@ -46123,7 +46123,7 @@ class Dice extends BaseItem {
|
|
|
46123
46123
|
this.path.setBorderColor(this.borderColor);
|
|
46124
46124
|
this.path.setBorderWidth(this.borderWidth);
|
|
46125
46125
|
}
|
|
46126
|
-
|
|
46126
|
+
updateRenderValues() {
|
|
46127
46127
|
this.values.forEach((value, index2) => {
|
|
46128
46128
|
if (typeof value === "number") {
|
|
46129
46129
|
this.renderValues[index2] = value;
|
|
@@ -46198,7 +46198,7 @@ class Dice extends BaseItem {
|
|
|
46198
46198
|
}
|
|
46199
46199
|
deserialize(data) {
|
|
46200
46200
|
super.deserialize(data);
|
|
46201
|
-
this.
|
|
46201
|
+
this.updateRenderValues();
|
|
46202
46202
|
this.transformPath();
|
|
46203
46203
|
this.subject.publish(this);
|
|
46204
46204
|
return this;
|
|
@@ -46305,6 +46305,7 @@ class Dice extends BaseItem {
|
|
|
46305
46305
|
this.valueIndex = 0;
|
|
46306
46306
|
}
|
|
46307
46307
|
this.values = op.newData.values;
|
|
46308
|
+
this.updateRenderValues();
|
|
46308
46309
|
break;
|
|
46309
46310
|
}
|
|
46310
46311
|
break;
|
package/dist/esm/index.js
CHANGED
|
@@ -46100,7 +46100,7 @@ class Dice extends BaseItem {
|
|
|
46100
46100
|
if (values2) {
|
|
46101
46101
|
this.values = values2;
|
|
46102
46102
|
}
|
|
46103
|
-
this.
|
|
46103
|
+
this.updateRenderValues();
|
|
46104
46104
|
this.transformPath();
|
|
46105
46105
|
this.transformation.subject.subscribe(() => {
|
|
46106
46106
|
this.transformPath();
|
|
@@ -46116,7 +46116,7 @@ class Dice extends BaseItem {
|
|
|
46116
46116
|
this.path.setBorderColor(this.borderColor);
|
|
46117
46117
|
this.path.setBorderWidth(this.borderWidth);
|
|
46118
46118
|
}
|
|
46119
|
-
|
|
46119
|
+
updateRenderValues() {
|
|
46120
46120
|
this.values.forEach((value, index2) => {
|
|
46121
46121
|
if (typeof value === "number") {
|
|
46122
46122
|
this.renderValues[index2] = value;
|
|
@@ -46191,7 +46191,7 @@ class Dice extends BaseItem {
|
|
|
46191
46191
|
}
|
|
46192
46192
|
deserialize(data) {
|
|
46193
46193
|
super.deserialize(data);
|
|
46194
|
-
this.
|
|
46194
|
+
this.updateRenderValues();
|
|
46195
46195
|
this.transformPath();
|
|
46196
46196
|
this.subject.publish(this);
|
|
46197
46197
|
return this;
|
|
@@ -46298,6 +46298,7 @@ class Dice extends BaseItem {
|
|
|
46298
46298
|
this.valueIndex = 0;
|
|
46299
46299
|
}
|
|
46300
46300
|
this.values = op.newData.values;
|
|
46301
|
+
this.updateRenderValues();
|
|
46301
46302
|
break;
|
|
46302
46303
|
}
|
|
46303
46304
|
break;
|
package/dist/esm/node.js
CHANGED
|
@@ -48635,7 +48635,7 @@ class Dice extends BaseItem {
|
|
|
48635
48635
|
if (values2) {
|
|
48636
48636
|
this.values = values2;
|
|
48637
48637
|
}
|
|
48638
|
-
this.
|
|
48638
|
+
this.updateRenderValues();
|
|
48639
48639
|
this.transformPath();
|
|
48640
48640
|
this.transformation.subject.subscribe(() => {
|
|
48641
48641
|
this.transformPath();
|
|
@@ -48651,7 +48651,7 @@ class Dice extends BaseItem {
|
|
|
48651
48651
|
this.path.setBorderColor(this.borderColor);
|
|
48652
48652
|
this.path.setBorderWidth(this.borderWidth);
|
|
48653
48653
|
}
|
|
48654
|
-
|
|
48654
|
+
updateRenderValues() {
|
|
48655
48655
|
this.values.forEach((value, index2) => {
|
|
48656
48656
|
if (typeof value === "number") {
|
|
48657
48657
|
this.renderValues[index2] = value;
|
|
@@ -48726,7 +48726,7 @@ class Dice extends BaseItem {
|
|
|
48726
48726
|
}
|
|
48727
48727
|
deserialize(data) {
|
|
48728
48728
|
super.deserialize(data);
|
|
48729
|
-
this.
|
|
48729
|
+
this.updateRenderValues();
|
|
48730
48730
|
this.transformPath();
|
|
48731
48731
|
this.subject.publish(this);
|
|
48732
48732
|
return this;
|
|
@@ -48833,6 +48833,7 @@ class Dice extends BaseItem {
|
|
|
48833
48833
|
this.valueIndex = 0;
|
|
48834
48834
|
}
|
|
48835
48835
|
this.values = op.newData.values;
|
|
48836
|
+
this.updateRenderValues();
|
|
48836
48837
|
break;
|
|
48837
48838
|
}
|
|
48838
48839
|
break;
|
|
@@ -14,13 +14,13 @@ export declare class Dice extends BaseItem {
|
|
|
14
14
|
readonly subject: Subject<Dice>;
|
|
15
15
|
private borderWidth;
|
|
16
16
|
valueIndex: number;
|
|
17
|
-
values: number
|
|
17
|
+
values: (number | string)[];
|
|
18
18
|
renderValues: Record<number, number | HTMLImageElement>;
|
|
19
19
|
private animationFrameId?;
|
|
20
20
|
drawingContext: DrawingContext | null;
|
|
21
|
-
constructor(board: Board, id?: string, type?: DiceType, values?: number
|
|
21
|
+
constructor(board: Board, id?: string, type?: DiceType, values?: (number | string)[]);
|
|
22
22
|
private transformPath;
|
|
23
|
-
|
|
23
|
+
updateRenderValues(): void;
|
|
24
24
|
render(context: DrawingContext): void;
|
|
25
25
|
updateMbr(): void;
|
|
26
26
|
getPath(): Path;
|