microboard-temp 0.4.14 → 0.4.16
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 +206 -0
- package/dist/cjs/index.js +206 -0
- package/dist/cjs/node.js +206 -0
- package/dist/esm/browser.js +206 -0
- package/dist/esm/index.js +206 -0
- package/dist/esm/node.js +206 -0
- package/dist/types/Items/Examples/CardGame/Dice/Dice.d.ts +42 -0
- package/dist/types/Items/Examples/CardGame/Dice/DiceOperation.d.ts +40 -0
- package/dist/types/Items/Examples/CardGame/Dice/index.d.ts +1 -0
- package/dist/types/Items/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseOperation } from "Events/EventsOperations";
|
|
2
|
+
export type DiceOperation = ChangeValue | ChangeValuesRange | SetIsRotating | SetBackgroundColor | SetBorderColor | SetBorderWidth;
|
|
3
|
+
interface ChangeValue extends BaseOperation<{
|
|
4
|
+
value: number;
|
|
5
|
+
}> {
|
|
6
|
+
class: "Dice";
|
|
7
|
+
method: "changeValue";
|
|
8
|
+
}
|
|
9
|
+
interface ChangeValuesRange extends BaseOperation<{
|
|
10
|
+
min: number;
|
|
11
|
+
max: number;
|
|
12
|
+
}> {
|
|
13
|
+
class: "Dice";
|
|
14
|
+
method: "changeValuesRange";
|
|
15
|
+
}
|
|
16
|
+
interface SetIsRotating extends BaseOperation<{
|
|
17
|
+
isRotating: boolean;
|
|
18
|
+
}> {
|
|
19
|
+
class: "Dice";
|
|
20
|
+
method: "setIsRotating";
|
|
21
|
+
}
|
|
22
|
+
interface SetBackgroundColor extends BaseOperation<{
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
}> {
|
|
25
|
+
class: "Dice";
|
|
26
|
+
method: "setBackgroundColor";
|
|
27
|
+
}
|
|
28
|
+
interface SetBorderColor extends BaseOperation<{
|
|
29
|
+
borderColor: string;
|
|
30
|
+
}> {
|
|
31
|
+
class: "Dice";
|
|
32
|
+
method: "setBorderColor";
|
|
33
|
+
}
|
|
34
|
+
export interface SetBorderWidth extends BaseOperation<{
|
|
35
|
+
borderWidth: number;
|
|
36
|
+
}> {
|
|
37
|
+
class: "Dice";
|
|
38
|
+
method: "setBorderWidth";
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dice } from './Dice';
|
|
@@ -25,5 +25,6 @@ export { Star } from "./Examples/Star";
|
|
|
25
25
|
export { Counter } from "./Examples/Counter";
|
|
26
26
|
export { Card } from "./Examples/CardGame/Card";
|
|
27
27
|
export { Deck } from "./Examples/CardGame/Deck";
|
|
28
|
+
export { Dice } from "./Examples/CardGame/Dice";
|
|
28
29
|
export { Comment } from "./Comment";
|
|
29
30
|
export type { HorisontalAlignment, VerticalAlignment } from "./Alignment";
|