microboard-temp 0.2.2 → 0.2.4
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/node.js
CHANGED
|
@@ -57954,7 +57954,19 @@ class Path2DFactory {
|
|
|
57954
57954
|
|
|
57955
57955
|
// src/api/NodePath2DFactory.ts
|
|
57956
57956
|
class NodePath2D extends Path2DFactory {
|
|
57957
|
-
nativePath = {
|
|
57957
|
+
nativePath = {
|
|
57958
|
+
addPath: () => {},
|
|
57959
|
+
arc: () => {},
|
|
57960
|
+
arcTo: () => {},
|
|
57961
|
+
bezierCurveTo: () => {},
|
|
57962
|
+
closePath: () => {},
|
|
57963
|
+
ellipse: () => {},
|
|
57964
|
+
lineTo: () => {},
|
|
57965
|
+
moveTo: () => {},
|
|
57966
|
+
quadraticCurveTo: () => {},
|
|
57967
|
+
rect: () => {},
|
|
57968
|
+
roundRect: () => {}
|
|
57969
|
+
};
|
|
57958
57970
|
constructor(d) {
|
|
57959
57971
|
super();
|
|
57960
57972
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -57790,7 +57790,19 @@ class Path2DFactory {
|
|
|
57790
57790
|
|
|
57791
57791
|
// src/api/NodePath2DFactory.ts
|
|
57792
57792
|
class NodePath2D extends Path2DFactory {
|
|
57793
|
-
nativePath = {
|
|
57793
|
+
nativePath = {
|
|
57794
|
+
addPath: () => {},
|
|
57795
|
+
arc: () => {},
|
|
57796
|
+
arcTo: () => {},
|
|
57797
|
+
bezierCurveTo: () => {},
|
|
57798
|
+
closePath: () => {},
|
|
57799
|
+
ellipse: () => {},
|
|
57800
|
+
lineTo: () => {},
|
|
57801
|
+
moveTo: () => {},
|
|
57802
|
+
quadraticCurveTo: () => {},
|
|
57803
|
+
rect: () => {},
|
|
57804
|
+
roundRect: () => {}
|
|
57805
|
+
};
|
|
57794
57806
|
constructor(d) {
|
|
57795
57807
|
super();
|
|
57796
57808
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AiChatMsg,
|
|
1
|
+
import { AiChatMsg, BoardEventMsg, ConfirmationMsg, ModeMsg, PresenceEventMsg, SnapshotRequestMsg, UserJoinMsg } from "index";
|
|
2
2
|
import { SyncBoardEventPack } from "Events/Events";
|
|
3
3
|
export interface AuthMsg {
|
|
4
4
|
type: "Auth";
|
|
@@ -58,19 +58,3 @@ export interface BoardSubscriptionCompletedMsg {
|
|
|
58
58
|
}
|
|
59
59
|
export type EventsMsg = ModeMsg | BoardEventMsg | SnapshotRequestMsg | ConfirmationMsg | BoardSubscriptionCompletedMsg | UserJoinMsg | PresenceEventMsg | AiChatMsg;
|
|
60
60
|
export type SocketMsg = EventsMsg | AuthMsg | AuthConfirmationMsg | LogoutMsg | GetModeMsg | InvalidateRightsMsg | UserJoinMsg | SubscribeMsg | UnsubscribeMsg | VersionCheckMsg | ErrorMsg | ModeMsg | PingMsg | AiChatMsg | BoardAccessDeniedMsg;
|
|
61
|
-
export interface Connection {
|
|
62
|
-
connectionId: number;
|
|
63
|
-
getCurrentUser: () => string;
|
|
64
|
-
connect(): Promise<void>;
|
|
65
|
-
subscribe(board: Board): void;
|
|
66
|
-
unsubscribe(board: Board): void;
|
|
67
|
-
publishPresenceEvent(boardId: string, event: PresenceEventType): void;
|
|
68
|
-
publishAuth(): Promise<void>;
|
|
69
|
-
publishLogout(): void;
|
|
70
|
-
onMessage?: (msg: SocketMsg) => void;
|
|
71
|
-
onAccessDenied: (boardId: string, forceUpdate?: boolean) => void;
|
|
72
|
-
notifyAboutLostConnection: () => void;
|
|
73
|
-
dismissNotificationAboutLostConnection: () => void;
|
|
74
|
-
resetConnection: () => void;
|
|
75
|
-
send: (msg: SocketMsg) => void;
|
|
76
|
-
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { Path2DFactory } from './Path2DFactory';
|
|
2
2
|
export declare class NodePath2D extends Path2DFactory {
|
|
3
|
-
nativePath: {
|
|
3
|
+
nativePath: {
|
|
4
|
+
addPath: () => void;
|
|
5
|
+
arc: () => void;
|
|
6
|
+
arcTo: () => void;
|
|
7
|
+
bezierCurveTo: () => void;
|
|
8
|
+
closePath: () => void;
|
|
9
|
+
ellipse: () => void;
|
|
10
|
+
lineTo: () => void;
|
|
11
|
+
moveTo: () => void;
|
|
12
|
+
quadraticCurveTo: () => void;
|
|
13
|
+
rect: () => void;
|
|
14
|
+
roundRect: () => void;
|
|
15
|
+
};
|
|
4
16
|
constructor(d?: string);
|
|
5
17
|
addPath(path: Path2DFactory, transform?: DOMMatrix2DInit): void;
|
|
6
18
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
|