microboard-temp 0.6.2 → 0.6.3
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 +3088 -2981
- package/dist/cjs/index.js +3088 -2981
- package/dist/cjs/node.js +3194 -3087
- package/dist/esm/browser.js +2153 -2043
- package/dist/esm/index.js +2153 -2043
- package/dist/esm/node.js +2159 -2049
- package/dist/types/Camera/Camera.d.ts +6 -3
- package/dist/types/Items/Frame/Basic/1-1/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/16-9/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/3-2/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/4-3/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/9-18/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/A4/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/Custom/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/Letter/index.d.ts +4 -2
- package/dist/types/Items/Frame/Basic/index.d.ts +8 -8
- package/dist/types/Items/Mbr/index.d.ts +0 -1
- package/dist/types/Items/Mbr/updateRects.d.ts +1 -1
- package/dist/types/Items/Path/Path.d.ts +2 -1
- package/dist/types/Items/Point/Point.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/markdown/markdownProcessor.d.ts +3 -0
- package/dist/types/Items/Sticker/Sticker.d.ts +6 -1
- package/dist/types/Items/index.d.ts +2 -1
- package/dist/types/Pointer/Pointer.d.ts +1 -1
- package/dist/types/Settings.d.ts +1 -1
- package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +8 -3
- package/package.json +1 -1
|
@@ -23,8 +23,11 @@ export declare class Camera {
|
|
|
23
23
|
boardId: string;
|
|
24
24
|
private observableItem;
|
|
25
25
|
private throttledZoom;
|
|
26
|
-
private isAnimating;
|
|
27
26
|
isTrackingAnimation: boolean;
|
|
27
|
+
private localAnimationTarget;
|
|
28
|
+
private localAnimationId;
|
|
29
|
+
private localLastTime;
|
|
30
|
+
private localSpringVelocity;
|
|
28
31
|
private trackingAnimationId;
|
|
29
32
|
private trackingTarget;
|
|
30
33
|
private lastTrackingTime;
|
|
@@ -72,8 +75,8 @@ export declare class Camera {
|
|
|
72
75
|
zoomOutFromViewCenter(): void;
|
|
73
76
|
addToView(mbr: Mbr, inView: Item[]): void;
|
|
74
77
|
viewRectangle(mbr: Mbr, offsetInPercent?: number, duration?: number): void;
|
|
75
|
-
|
|
76
|
-
private
|
|
78
|
+
cancelLocalAnimation(): void;
|
|
79
|
+
private animateLocalToTarget;
|
|
77
80
|
zoomToFit(rect: Mbr, offsetInPercent?: number, duration?: number): void;
|
|
78
81
|
getViewPointer(): {
|
|
79
82
|
x: number;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const Frame1x1: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const Frame16x9: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const Frame3x2: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const Frame4x3: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const Frame9x18: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const A4: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const Custom: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Mbr
|
|
1
|
+
import { Mbr } from '../../../Mbr';
|
|
2
|
+
import { Path } from '../../../Path';
|
|
3
|
+
import { Point } from '../../../Point';
|
|
2
4
|
export declare const Letter: {
|
|
3
5
|
name: string;
|
|
4
6
|
textBounds: Mbr;
|
|
5
|
-
path: Path;
|
|
7
|
+
readonly path: Path;
|
|
6
8
|
anchorPoints: Point[];
|
|
7
9
|
};
|
|
@@ -2,49 +2,49 @@ export declare const Frames: {
|
|
|
2
2
|
readonly Custom: {
|
|
3
3
|
name: string;
|
|
4
4
|
textBounds: import("../..").Mbr;
|
|
5
|
-
path: import("../..").Path;
|
|
5
|
+
readonly path: import("../..").Path;
|
|
6
6
|
anchorPoints: import("../..").Point[];
|
|
7
7
|
};
|
|
8
8
|
readonly Frame16x9: {
|
|
9
9
|
name: string;
|
|
10
10
|
textBounds: import("../..").Mbr;
|
|
11
|
-
path: import("../..").Path;
|
|
11
|
+
readonly path: import("../..").Path;
|
|
12
12
|
anchorPoints: import("../..").Point[];
|
|
13
13
|
};
|
|
14
14
|
readonly Frame4x3: {
|
|
15
15
|
name: string;
|
|
16
16
|
textBounds: import("../..").Mbr;
|
|
17
|
-
path: import("../..").Path;
|
|
17
|
+
readonly path: import("../..").Path;
|
|
18
18
|
anchorPoints: import("../..").Point[];
|
|
19
19
|
};
|
|
20
20
|
readonly A4: {
|
|
21
21
|
name: string;
|
|
22
22
|
textBounds: import("../..").Mbr;
|
|
23
|
-
path: import("../..").Path;
|
|
23
|
+
readonly path: import("../..").Path;
|
|
24
24
|
anchorPoints: import("../..").Point[];
|
|
25
25
|
};
|
|
26
26
|
readonly Letter: {
|
|
27
27
|
name: string;
|
|
28
28
|
textBounds: import("../..").Mbr;
|
|
29
|
-
path: import("../..").Path;
|
|
29
|
+
readonly path: import("../..").Path;
|
|
30
30
|
anchorPoints: import("../..").Point[];
|
|
31
31
|
};
|
|
32
32
|
readonly Frame1x1: {
|
|
33
33
|
name: string;
|
|
34
34
|
textBounds: import("../..").Mbr;
|
|
35
|
-
path: import("../..").Path;
|
|
35
|
+
readonly path: import("../..").Path;
|
|
36
36
|
anchorPoints: import("../..").Point[];
|
|
37
37
|
};
|
|
38
38
|
readonly Frame3x2: {
|
|
39
39
|
name: string;
|
|
40
40
|
textBounds: import("../..").Mbr;
|
|
41
|
-
path: import("../..").Path;
|
|
41
|
+
readonly path: import("../..").Path;
|
|
42
42
|
anchorPoints: import("../..").Point[];
|
|
43
43
|
};
|
|
44
44
|
readonly Frame9x18: {
|
|
45
45
|
name: string;
|
|
46
46
|
textBounds: import("../..").Mbr;
|
|
47
|
-
path: import("../..").Path;
|
|
47
|
+
readonly path: import("../..").Path;
|
|
48
48
|
anchorPoints: import("../..").Point[];
|
|
49
49
|
};
|
|
50
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Board } from '../../Board';
|
|
2
2
|
import { Camera } from '../../Camera';
|
|
3
|
-
import { Mbr } from '
|
|
3
|
+
import { Mbr } from './Mbr';
|
|
4
4
|
import { RefObject } from 'react';
|
|
5
5
|
export declare function updateRects(board: Board, ref: RefObject<HTMLElement>, mbr?: Mbr, verticalOffset?: number, horizontalOffset?: number, fit?: 'hyperLink' | 'boardMenu' | 'contextPanel' | 'linkToBtn' | 'comment' | 'threadPanel'): Mbr | null;
|
|
6
6
|
export declare function getContextPanelRect(selectionMbr: Mbr, camera: Camera, panel: HTMLElement, toLeft: boolean, horizontalOffset?: number, verticalOffset?: number): Mbr;
|
|
@@ -4,7 +4,8 @@ import { Line } from '../Line';
|
|
|
4
4
|
import { CubicBezier, QuadraticBezier } from '../Curve';
|
|
5
5
|
import { Point } from '../Point';
|
|
6
6
|
import { Mbr } from '../Mbr';
|
|
7
|
-
import { Arc
|
|
7
|
+
import { Arc } from '../Arc';
|
|
8
|
+
import { Matrix } from '../Transformation/Matrix';
|
|
8
9
|
import { GeometricNormal } from '../GeometricNormal';
|
|
9
10
|
import { DocumentFactory } from '../../api/DocumentFactory';
|
|
10
11
|
export type Segment = Line | QuadraticBezier | CubicBezier | Arc;
|
|
@@ -6,11 +6,14 @@ export declare class MarkdownProcessor {
|
|
|
6
6
|
private isProcessingChunk;
|
|
7
7
|
private stopProcessingMarkDownCb;
|
|
8
8
|
private currentNode;
|
|
9
|
+
private doneResolvers;
|
|
9
10
|
editor: Editor;
|
|
10
11
|
readonly subject: Subject<MarkdownProcessor>;
|
|
11
12
|
constructor(editor: Editor);
|
|
12
13
|
setStopProcessingMarkDownCb(cb: (() => void) | null): void;
|
|
13
14
|
getStopProcessingMarkDownCb(): (() => void) | null;
|
|
15
|
+
waitForDone(): Promise<void>;
|
|
16
|
+
private notifyDone;
|
|
14
17
|
deserializeMarkdown(isNewParagraphNeeded: boolean): boolean;
|
|
15
18
|
processMarkdown(chunk: string): boolean;
|
|
16
19
|
private processNextChunk;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { Operation } from "../../Events";
|
|
2
2
|
import { Subject } from "../../Subject";
|
|
3
|
-
import { Line
|
|
3
|
+
import { Line } from "../Line";
|
|
4
|
+
import { Matrix } from "../Transformation/Matrix";
|
|
5
|
+
import { Mbr } from "../Mbr/Mbr";
|
|
6
|
+
import { Path, Paths } from "../Path";
|
|
7
|
+
import { Point } from "../Point/Point";
|
|
8
|
+
import { Transformation } from "../Transformation/Transformation";
|
|
4
9
|
import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
|
|
5
10
|
import { DrawingContext } from "../DrawingContext";
|
|
6
11
|
import { GeometricNormal } from "../GeometricNormal";
|
|
@@ -2,7 +2,8 @@ export { Point } from "./Point";
|
|
|
2
2
|
export { Line } from "./Line";
|
|
3
3
|
export { CubicBezier, QuadraticBezier } from "./Curve";
|
|
4
4
|
export { Arc } from "./Arc";
|
|
5
|
-
export { Mbr
|
|
5
|
+
export { Mbr } from "./Mbr";
|
|
6
|
+
export { updateRects } from "./Mbr/updateRects";
|
|
6
7
|
export { DrawingContext } from "./DrawingContext";
|
|
7
8
|
export * from "./Path";
|
|
8
9
|
export * from "./Transformation";
|
package/dist/types/Settings.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BrowserDocumentFactory } from "./api/BrowserDocumentFactory";
|
|
|
3
3
|
import { BrowserPath2D } from "./api/BrowserPath2DFactory";
|
|
4
4
|
import { MockDocumentFactory } from "./api/MockDocumentFactory";
|
|
5
5
|
import { MockPath2D } from "./api/MockPath2D";
|
|
6
|
-
import { BorderStyle } from "./Items";
|
|
6
|
+
import type { BorderStyle } from "./Items/Path/Path";
|
|
7
7
|
export interface Connection {
|
|
8
8
|
connectionId: number;
|
|
9
9
|
getCurrentUser: () => string;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { Mbr
|
|
2
|
-
import {
|
|
1
|
+
import { Mbr } from '../../Items/Mbr/Mbr';
|
|
2
|
+
import type { Point } from '../../Items/Point/Point';
|
|
3
|
+
import type { Item } from '../../Items/Item';
|
|
3
4
|
import { Layers } from './Layers';
|
|
4
5
|
import { RTreeIndex } from '../RTreeIndex';
|
|
5
|
-
export declare class Container
|
|
6
|
+
export declare class Container {
|
|
6
7
|
id: string;
|
|
7
8
|
item: Item;
|
|
8
9
|
layer: number;
|
|
9
10
|
zIndex: number;
|
|
11
|
+
left: number;
|
|
12
|
+
top: number;
|
|
13
|
+
right: number;
|
|
14
|
+
bottom: number;
|
|
10
15
|
constructor(id: string, item: Item, layer: number, zIndex: number);
|
|
11
16
|
}
|
|
12
17
|
export declare class LayeredIndex<T extends Item> {
|