microboard-temp 0.4.17 → 0.4.19
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.css +12 -12
- package/dist/cjs/browser.js +3565 -3553
- package/dist/cjs/index.css +12 -12
- package/dist/cjs/index.js +3565 -3553
- package/dist/cjs/node.css +12 -12
- package/dist/cjs/node.js +3503 -3491
- package/dist/esm/browser.css +12 -12
- package/dist/esm/browser.js +3565 -3553
- package/dist/esm/index.css +12 -12
- package/dist/esm/index.js +3565 -3553
- package/dist/esm/node.css +12 -12
- package/dist/esm/node.js +3503 -3491
- package/dist/microboard.css +1 -0
- package/dist/types/Board.d.ts +2 -2
- package/dist/types/Items/Examples/CardGame/Dice/Dice.d.ts +5 -2
- package/dist/types/Selection/QuickAddButtons/QuickAddButtons.d.ts +2 -1
- package/package.json +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap";@import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap";:root{--background-surface-default:#fff;--background-button-secondary:#fff;--background-button-secondary-hover:#f7f7f8;--background-badge-purple-disabled:#f7f1fd;--background-badge-gray:#e9eaec;--background-accent-purple:#924fe8;--border-action-normal:#dedfe3;--border-action-focus:#924fe8;--border-select-primary:#924fe8;--text-base-primary:#14151a;--text-base-secondary:rgba(15,19,36,.6);--text-base-quaternary:rgba(10,15,41,.25);--text-accent-purple:#9859e9;--icon-base-primary:#14151a;--icon-base-secondary:#696b76;--icon-accent-purple:#924fe8;--absolute-position-panel-padding:12px}*{box-sizing:border-box;background:0 0;border:none;margin:0;padding:0;font-family:inherit}html{font-size:62.5%}body{color:var(--text-base-primary);font-optical-sizing:auto;font-family:Manrope,sans-serif;font-size:1.6rem;font-style:normal}html,body{overscroll-behavior-x:none;-webkit-user-select:none}input:-webkit-autofill{-webkit-box-shadow:inset 0 0 0 30px #fff!important}input:-webkit-autofill:hover{-webkit-box-shadow:inset 0 0 0 30px #fff!important}input:-webkit-autofill:focus{-webkit-box-shadow:inset 0 0 0 30px #fff!important}input:-webkit-autofill:active{-webkit-box-shadow:inset 0 0 0 30px #fff!important}.microboard-quickAddButton{transform-origin:50%;z-index:2;background-color:#93aff6;border:1px solid #fff;-webkit-border-radius:50%;border-radius:50%;margin:auto;padding:14px;transition:transform .2s,border 0s .2s;position:absolute;transform:translate(-50%,-50%)scale(.25)}.microboard-invisible{display:none}.microboard-quickAddButtonActive{background-color:#924fe8;border:none;transform:translate(-50%,-50%)scale(1)}.microboard-quickAddButton:after{content:"";opacity:1;-webkit-border-radius:50%;border-radius:50%;transition:all .2s .2s;position:absolute;top:0;bottom:0;left:0;right:0;transform:scale(4)}.microboard-quickAddButtonActive:after{opacity:0;transform:none}.microboard-quickAddButton:before{content:"";--quick-add-button-width:17px;--quick-add-button-height:10px;width:var(--quick-add-button-width);height:var(--quick-add-button-height);opacity:0;transform-origin:50%;background:url("data:image/svg+xml;utf8,<svg width=\"var(--quick-add-button-width)\" height=\"var(--quick-add-button-height)\" viewBox=\"0 0 17 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M16.7593 5.00009L10.5339 9.58329L9.68819 8.30677L12.9245 5.83329H0.0415039V4.16663H12.9241L9.68819 1.69341L10.5339 0.416626L16.7593 5.00009Z\" fill=\"white\"/></svg>") no-repeat;transition:opacity .2s;position:absolute;top:35%;left:20%}.microboard-quickAddButtonActive:before{opacity:1}.microboard-quickAddButton.microboard-left:before{rotate:180deg}.microboard-quickAddButton.microboard-right:before{rotate:none}.microboard-quickAddButton.microboard-top:before{rotate:270deg}.microboard-quickAddButton.microboard-bottom:before{rotate:90deg}
|
package/dist/types/Board.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BoardOps, ItemsIndexRecord } from "BoardOperations";
|
|
|
2
2
|
import { Camera } from "Camera";
|
|
3
3
|
import { Events, Operation } from "Events";
|
|
4
4
|
import { SyncBoardEvent } from "Events/Events";
|
|
5
|
-
import { Item, ItemData,
|
|
5
|
+
import { FrameData, Item, ItemData, Matrix, Mbr } from "Items";
|
|
6
6
|
import { AINode } from "Items/AINode";
|
|
7
7
|
import { DrawingContext } from "Items/DrawingContext";
|
|
8
8
|
import { Group } from "Items/Group";
|
|
@@ -10,11 +10,11 @@ import { ImageItem } from "Items/Image";
|
|
|
10
10
|
import { Keyboard } from "Keyboard";
|
|
11
11
|
import { Pointer } from "Pointer";
|
|
12
12
|
import { Presence } from "Presence/Presence";
|
|
13
|
+
import { BoardSelection } from "Selection";
|
|
13
14
|
import { SpatialIndex } from "SpatialIndex";
|
|
14
15
|
import { Subject } from "Subject";
|
|
15
16
|
import { Tools } from "Tools";
|
|
16
17
|
import { ItemsMap } from "Validators";
|
|
17
|
-
import { BoardSelection } from "Selection";
|
|
18
18
|
import { ItemDataWithId } from "./Items/Item";
|
|
19
19
|
export type InterfaceType = "edit" | "view" | "loading";
|
|
20
20
|
export declare class Board {
|
|
@@ -11,12 +11,13 @@ export declare class Dice extends BaseItem {
|
|
|
11
11
|
private path;
|
|
12
12
|
readonly subject: Subject<Dice>;
|
|
13
13
|
private borderWidth;
|
|
14
|
-
isRotating: boolean;
|
|
15
14
|
value: number;
|
|
16
15
|
range: {
|
|
17
16
|
min: number;
|
|
18
17
|
max: number;
|
|
19
18
|
};
|
|
19
|
+
private animationFrameId?;
|
|
20
|
+
drawingContext: DrawingContext | null;
|
|
20
21
|
constructor(board: Board, id?: string);
|
|
21
22
|
private transformPath;
|
|
22
23
|
render(context: DrawingContext): void;
|
|
@@ -31,12 +32,14 @@ export declare class Dice extends BaseItem {
|
|
|
31
32
|
setBorderWidth(borderWidth: BorderWidth): void;
|
|
32
33
|
private applyBorderColor;
|
|
33
34
|
setBorderColor(borderColor: string): void;
|
|
34
|
-
setIsRotating(isRotating: boolean): void;
|
|
35
35
|
setValuesRange(range: {
|
|
36
36
|
min: number;
|
|
37
37
|
max: number;
|
|
38
38
|
}): void;
|
|
39
39
|
setValue(value: number): void;
|
|
40
|
+
setIsRotating(isRotating: boolean): void;
|
|
40
41
|
throwDice(): void;
|
|
41
42
|
apply(op: DiceOperation): void;
|
|
43
|
+
startRotation(): void;
|
|
44
|
+
stopRotation(): void;
|
|
42
45
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Board } from "Board";
|
|
2
|
-
import {
|
|
2
|
+
import { ConnectorData, Item, Point } from "Items";
|
|
3
3
|
import { DrawingContext } from "Items/DrawingContext";
|
|
4
4
|
import { BoardSelection } from "Selection";
|
|
5
|
+
import "./QuickAddButtons.css";
|
|
5
6
|
export interface QuickAddButtons {
|
|
6
7
|
clear: () => void;
|
|
7
8
|
render: (context: DrawingContext) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microboard-temp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.19",
|
|
4
4
|
"description": "A flexible interactive whiteboard library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"require": "./dist/cjs/index.js"
|
|
21
21
|
},
|
|
22
22
|
"types": "./dist/types/index.d.ts"
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
"./style": "./dist/microboard.css"
|
|
24
25
|
},
|
|
25
26
|
"files": [
|
|
26
27
|
"dist"
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"eslint": "^9.27.0",
|
|
58
59
|
"i18next": "23.11.2",
|
|
59
60
|
"i18next-browser-languagedetector": "7.2.1",
|
|
61
|
+
"lightningcss": "^1.30.1",
|
|
60
62
|
"rbush": "^4.0.1",
|
|
61
63
|
"rbush-knn": "^4.0.0",
|
|
62
64
|
"react-i18next": "14.1.0",
|