microboard-temp 0.2.1 → 0.2.2
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 +5 -5
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/node.js +5 -5
- package/dist/esm/browser.js +5 -5
- package/dist/esm/index.js +5 -5
- package/dist/esm/node.js +5 -5
- package/dist/types/Events/Log/EventsLog.d.ts +1 -1
- package/dist/types/Events/Log/createEventsList.d.ts +1 -1
- package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +76 -0
- package/dist/types/Events/MessageRouter/createMessageRouter.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handleBoardSubscriptionCompletedMsg.d.ts +1 -1
- package/dist/types/Events/MessageRouter/index.d.ts +1 -0
- package/dist/types/Events/mergeRecords.d.ts +1 -1
- package/dist/types/Items/RichText/CanvasText/DropflowRender.d.ts +0 -7
- package/package.json +1 -1
- package/dist/types/Items/BaseItemOld/BaseItem.d.ts +0 -24
- package/dist/types/Items/BaseItemOld/index.d.ts +0 -0
package/dist/cjs/browser.js
CHANGED
|
@@ -40446,7 +40446,7 @@ class ImageItem extends BaseItem {
|
|
|
40446
40446
|
}
|
|
40447
40447
|
}
|
|
40448
40448
|
// src/isSafari.ts
|
|
40449
|
-
function
|
|
40449
|
+
function isSafari() {
|
|
40450
40450
|
if (typeof navigator === "undefined") {
|
|
40451
40451
|
return false;
|
|
40452
40452
|
}
|
|
@@ -40552,8 +40552,8 @@ class Drawing extends BaseItem {
|
|
|
40552
40552
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40553
40553
|
context.quadraticCurveTo(points[j].x, points[j].y, cx, cy);
|
|
40554
40554
|
}
|
|
40555
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40556
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40555
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40556
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40557
40557
|
context.quadraticCurveTo(points[j].x, points[j].y, x, y);
|
|
40558
40558
|
}
|
|
40559
40559
|
let left = Number.MAX_SAFE_INTEGER;
|
|
@@ -40684,8 +40684,8 @@ class Drawing extends BaseItem {
|
|
|
40684
40684
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40685
40685
|
pathData += ` Q ${points[j].x} ${points[j].y} ${cx} ${cy}`;
|
|
40686
40686
|
}
|
|
40687
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40688
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40687
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40688
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40689
40689
|
pathData += ` Q ${points[j].x} ${points[j].y} ${x} ${y}`;
|
|
40690
40690
|
}
|
|
40691
40691
|
return pathData;
|
package/dist/cjs/index.js
CHANGED
|
@@ -40446,7 +40446,7 @@ class ImageItem extends BaseItem {
|
|
|
40446
40446
|
}
|
|
40447
40447
|
}
|
|
40448
40448
|
// src/isSafari.ts
|
|
40449
|
-
function
|
|
40449
|
+
function isSafari() {
|
|
40450
40450
|
if (typeof navigator === "undefined") {
|
|
40451
40451
|
return false;
|
|
40452
40452
|
}
|
|
@@ -40552,8 +40552,8 @@ class Drawing extends BaseItem {
|
|
|
40552
40552
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40553
40553
|
context.quadraticCurveTo(points[j].x, points[j].y, cx, cy);
|
|
40554
40554
|
}
|
|
40555
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40556
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40555
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40556
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40557
40557
|
context.quadraticCurveTo(points[j].x, points[j].y, x, y);
|
|
40558
40558
|
}
|
|
40559
40559
|
let left = Number.MAX_SAFE_INTEGER;
|
|
@@ -40684,8 +40684,8 @@ class Drawing extends BaseItem {
|
|
|
40684
40684
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40685
40685
|
pathData += ` Q ${points[j].x} ${points[j].y} ${cx} ${cy}`;
|
|
40686
40686
|
}
|
|
40687
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40688
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40687
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40688
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40689
40689
|
pathData += ` Q ${points[j].x} ${points[j].y} ${x} ${y}`;
|
|
40690
40690
|
}
|
|
40691
40691
|
return pathData;
|
package/dist/cjs/node.js
CHANGED
|
@@ -42986,7 +42986,7 @@ class ImageItem extends BaseItem {
|
|
|
42986
42986
|
}
|
|
42987
42987
|
}
|
|
42988
42988
|
// src/isSafari.ts
|
|
42989
|
-
function
|
|
42989
|
+
function isSafari() {
|
|
42990
42990
|
if (typeof navigator === "undefined") {
|
|
42991
42991
|
return false;
|
|
42992
42992
|
}
|
|
@@ -43092,8 +43092,8 @@ class Drawing extends BaseItem {
|
|
|
43092
43092
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
43093
43093
|
context.quadraticCurveTo(points[j].x, points[j].y, cx, cy);
|
|
43094
43094
|
}
|
|
43095
|
-
const x = points[j].x === points[j + 1].x &&
|
|
43096
|
-
const y = points[j].y === points[j + 1].y &&
|
|
43095
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
43096
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
43097
43097
|
context.quadraticCurveTo(points[j].x, points[j].y, x, y);
|
|
43098
43098
|
}
|
|
43099
43099
|
let left = Number.MAX_SAFE_INTEGER;
|
|
@@ -43224,8 +43224,8 @@ class Drawing extends BaseItem {
|
|
|
43224
43224
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
43225
43225
|
pathData += ` Q ${points[j].x} ${points[j].y} ${cx} ${cy}`;
|
|
43226
43226
|
}
|
|
43227
|
-
const x = points[j].x === points[j + 1].x &&
|
|
43228
|
-
const y = points[j].y === points[j + 1].y &&
|
|
43227
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
43228
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
43229
43229
|
pathData += ` Q ${points[j].x} ${points[j].y} ${x} ${y}`;
|
|
43230
43230
|
}
|
|
43231
43231
|
return pathData;
|
package/dist/esm/browser.js
CHANGED
|
@@ -40294,7 +40294,7 @@ class ImageItem extends BaseItem {
|
|
|
40294
40294
|
}
|
|
40295
40295
|
}
|
|
40296
40296
|
// src/isSafari.ts
|
|
40297
|
-
function
|
|
40297
|
+
function isSafari() {
|
|
40298
40298
|
if (typeof navigator === "undefined") {
|
|
40299
40299
|
return false;
|
|
40300
40300
|
}
|
|
@@ -40400,8 +40400,8 @@ class Drawing extends BaseItem {
|
|
|
40400
40400
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40401
40401
|
context.quadraticCurveTo(points[j].x, points[j].y, cx, cy);
|
|
40402
40402
|
}
|
|
40403
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40404
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40403
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40404
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40405
40405
|
context.quadraticCurveTo(points[j].x, points[j].y, x, y);
|
|
40406
40406
|
}
|
|
40407
40407
|
let left = Number.MAX_SAFE_INTEGER;
|
|
@@ -40532,8 +40532,8 @@ class Drawing extends BaseItem {
|
|
|
40532
40532
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40533
40533
|
pathData += ` Q ${points[j].x} ${points[j].y} ${cx} ${cy}`;
|
|
40534
40534
|
}
|
|
40535
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40536
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40535
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40536
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40537
40537
|
pathData += ` Q ${points[j].x} ${points[j].y} ${x} ${y}`;
|
|
40538
40538
|
}
|
|
40539
40539
|
return pathData;
|
package/dist/esm/index.js
CHANGED
|
@@ -40287,7 +40287,7 @@ class ImageItem extends BaseItem {
|
|
|
40287
40287
|
}
|
|
40288
40288
|
}
|
|
40289
40289
|
// src/isSafari.ts
|
|
40290
|
-
function
|
|
40290
|
+
function isSafari() {
|
|
40291
40291
|
if (typeof navigator === "undefined") {
|
|
40292
40292
|
return false;
|
|
40293
40293
|
}
|
|
@@ -40393,8 +40393,8 @@ class Drawing extends BaseItem {
|
|
|
40393
40393
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40394
40394
|
context.quadraticCurveTo(points[j].x, points[j].y, cx, cy);
|
|
40395
40395
|
}
|
|
40396
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40397
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40396
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40397
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40398
40398
|
context.quadraticCurveTo(points[j].x, points[j].y, x, y);
|
|
40399
40399
|
}
|
|
40400
40400
|
let left = Number.MAX_SAFE_INTEGER;
|
|
@@ -40525,8 +40525,8 @@ class Drawing extends BaseItem {
|
|
|
40525
40525
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
40526
40526
|
pathData += ` Q ${points[j].x} ${points[j].y} ${cx} ${cy}`;
|
|
40527
40527
|
}
|
|
40528
|
-
const x = points[j].x === points[j + 1].x &&
|
|
40529
|
-
const y = points[j].y === points[j + 1].y &&
|
|
40528
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
40529
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
40530
40530
|
pathData += ` Q ${points[j].x} ${points[j].y} ${x} ${y}`;
|
|
40531
40531
|
}
|
|
40532
40532
|
return pathData;
|
package/dist/esm/node.js
CHANGED
|
@@ -42822,7 +42822,7 @@ class ImageItem extends BaseItem {
|
|
|
42822
42822
|
}
|
|
42823
42823
|
}
|
|
42824
42824
|
// src/isSafari.ts
|
|
42825
|
-
function
|
|
42825
|
+
function isSafari() {
|
|
42826
42826
|
if (typeof navigator === "undefined") {
|
|
42827
42827
|
return false;
|
|
42828
42828
|
}
|
|
@@ -42928,8 +42928,8 @@ class Drawing extends BaseItem {
|
|
|
42928
42928
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
42929
42929
|
context.quadraticCurveTo(points[j].x, points[j].y, cx, cy);
|
|
42930
42930
|
}
|
|
42931
|
-
const x = points[j].x === points[j + 1].x &&
|
|
42932
|
-
const y = points[j].y === points[j + 1].y &&
|
|
42931
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
42932
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
42933
42933
|
context.quadraticCurveTo(points[j].x, points[j].y, x, y);
|
|
42934
42934
|
}
|
|
42935
42935
|
let left = Number.MAX_SAFE_INTEGER;
|
|
@@ -43060,8 +43060,8 @@ class Drawing extends BaseItem {
|
|
|
43060
43060
|
const cy = (points[j].y + points[j + 1].y) / 2;
|
|
43061
43061
|
pathData += ` Q ${points[j].x} ${points[j].y} ${cx} ${cy}`;
|
|
43062
43062
|
}
|
|
43063
|
-
const x = points[j].x === points[j + 1].x &&
|
|
43064
|
-
const y = points[j].y === points[j + 1].y &&
|
|
43063
|
+
const x = points[j].x === points[j + 1].x && isSafari() ? points[j + 1].x + 0.01 : points[j + 1].x;
|
|
43064
|
+
const y = points[j].y === points[j + 1].y && isSafari() ? points[j + 1].y + 0.01 : points[j + 1].y;
|
|
43065
43065
|
pathData += ` Q ${points[j].x} ${points[j].y} ${x} ${y}`;
|
|
43066
43066
|
}
|
|
43067
43067
|
return pathData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Board, BoardSnapshot } from 'Board';
|
|
2
2
|
import { BoardEvent, BoardEventPack, SyncBoardEvent, SyncEvent } from '../Events';
|
|
3
3
|
import { EventsList } from './createEventsList';
|
|
4
|
-
import { Command } from '
|
|
4
|
+
import { Command } from '../Command';
|
|
5
5
|
export interface HistoryRecord {
|
|
6
6
|
event: BoardEvent;
|
|
7
7
|
command: Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Command } from "Plugin";
|
|
2
1
|
import { BoardEvent } from "../Events";
|
|
3
2
|
import { SyncLog, SyncLogSubject } from "../SyncLog";
|
|
4
3
|
import { HistoryRecord } from "./EventsLog";
|
|
4
|
+
import { Command } from "../Command";
|
|
5
5
|
export type FilterPredicate = (value: HistoryRecord, index: number, array: HistoryRecord[]) => boolean;
|
|
6
6
|
export interface EventsList {
|
|
7
7
|
addConfirmedRecords(records: HistoryRecord[]): void;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { AiChatMsg, Board, BoardEventMsg, ConfirmationMsg, ModeMsg, PresenceEventMsg, PresenceEventType, SnapshotRequestMsg, UserJoinMsg } from "index";
|
|
2
|
+
import { SyncBoardEventPack } from "Events/Events";
|
|
3
|
+
export interface AuthMsg {
|
|
4
|
+
type: "Auth";
|
|
5
|
+
jwt: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LogoutMsg {
|
|
8
|
+
type: "Logout";
|
|
9
|
+
}
|
|
10
|
+
export interface InvalidateRightsMsg {
|
|
11
|
+
type: "InvalidateRights";
|
|
12
|
+
boardId: string;
|
|
13
|
+
byUser: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface GetModeMsg {
|
|
16
|
+
type: "GetMode";
|
|
17
|
+
boardId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SubscribeMsg {
|
|
20
|
+
type: "Subscribe";
|
|
21
|
+
boardId: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
index: number;
|
|
24
|
+
accessKey?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface UnsubscribeMsg {
|
|
27
|
+
type: "Unsubscribe";
|
|
28
|
+
boardId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ErrorMsg {
|
|
31
|
+
type: "Error";
|
|
32
|
+
message: string;
|
|
33
|
+
deniedBoardId?: string;
|
|
34
|
+
expectedSequence?: number;
|
|
35
|
+
receivedSequence?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface VersionCheckMsg {
|
|
38
|
+
type: "VersionCheck";
|
|
39
|
+
version: string;
|
|
40
|
+
}
|
|
41
|
+
export interface AuthConfirmationMsg {
|
|
42
|
+
type: "AuthConfirmation";
|
|
43
|
+
}
|
|
44
|
+
export interface PingMsg {
|
|
45
|
+
type: "ping";
|
|
46
|
+
}
|
|
47
|
+
export interface BoardAccessDeniedMsg {
|
|
48
|
+
type: "BoardAccessDenied";
|
|
49
|
+
boardId: string;
|
|
50
|
+
}
|
|
51
|
+
export interface BoardSubscriptionCompletedMsg {
|
|
52
|
+
type: "BoardSubscriptionCompleted";
|
|
53
|
+
boardId: string;
|
|
54
|
+
mode: "view" | "edit";
|
|
55
|
+
snapshot: string | null;
|
|
56
|
+
eventsSinceLastSnapshot: SyncBoardEventPack[];
|
|
57
|
+
initialSequenceNumber: number;
|
|
58
|
+
}
|
|
59
|
+
export type EventsMsg = ModeMsg | BoardEventMsg | SnapshotRequestMsg | ConfirmationMsg | BoardSubscriptionCompletedMsg | UserJoinMsg | PresenceEventMsg | AiChatMsg;
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { EventsMsg } from "App/Connection";
|
|
2
1
|
import { Board } from "Board";
|
|
2
|
+
import { EventsMsg } from "./boardMessageInterface";
|
|
3
3
|
type MessageHandler<T extends EventsMsg = EventsMsg> = (message: T, board: Board) => void;
|
|
4
4
|
export interface MessageRouter {
|
|
5
5
|
addHandler: <T extends EventsMsg>(type: string, handler: MessageHandler<T>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BoardSubscriptionCompletedMsg } from 'App/Connection';
|
|
2
1
|
import { Board } from 'Board';
|
|
2
|
+
import { BoardSubscriptionCompletedMsg } from './boardMessageInterface';
|
|
3
3
|
export declare function handleBoardSubscriptionCompletedMsg(msg: BoardSubscriptionCompletedMsg, board: Board): void;
|
|
4
4
|
export declare function handleSeqNumApplication(initialSequenceNumber: number, board: Board): void;
|
|
5
5
|
export declare function startIntervals(board: Board): void;
|
|
@@ -4,3 +4,4 @@ export type { BoardEventMsg } from "./handleBoardEventMessage";
|
|
|
4
4
|
export type { ConfirmationMsg } from "./handleConfirmation";
|
|
5
5
|
export type { SnapshotRequestMsg } from "./handleCreateSnapshotRequestMessage";
|
|
6
6
|
export type { ModeMsg } from "./handleModeMessage";
|
|
7
|
+
export * from "./boardMessageInterface";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HistoryRecord } from "./
|
|
1
|
+
import type { HistoryRecord } from "./Log";
|
|
2
2
|
export declare function mergeRecords(records: HistoryRecord[]): HistoryRecord[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BlockNode } from '../Editor/BlockNode';
|
|
2
|
-
import { LayoutBlockNodes } from './LayoutBlockNodes';
|
|
3
|
-
import { Descendant } from 'slate';
|
|
4
|
-
export declare function getBlockNodes(data: BlockNode[], maxWidth: number, shrink?: boolean, isFrame?: boolean): LayoutBlockNodes;
|
|
5
|
-
export declare function getOneCharacterMaxWidth(data: Descendant[]): number;
|
|
6
|
-
export declare function measureText(fontSize: any, fontFamily: any, text: any): TextMetrics;
|
|
7
|
-
export declare function findMinimumWidthForSingleLineHeight(data: BlockNode[], singleLineHeight: number, maxWidth: number): number;
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Matrix } from ".";
|
|
2
|
-
import { Mbr, RichText } from "..";
|
|
3
|
-
import { ResizeOp } from "./BaseItemOperation";
|
|
4
|
-
export declare class BaseItemOld extends Mbr {
|
|
5
|
-
private id;
|
|
6
|
-
matrix: any;
|
|
7
|
-
previous: any;
|
|
8
|
-
isLocked: boolean;
|
|
9
|
-
link: string | null;
|
|
10
|
-
constructor(id?: string);
|
|
11
|
-
getId(): string;
|
|
12
|
-
setId(id: string): this;
|
|
13
|
-
/** Get RichText handle if exists */
|
|
14
|
-
getRichText(): RichText | null;
|
|
15
|
-
/** Get link from this item to another item */
|
|
16
|
-
getLinkFromItem(): string | null;
|
|
17
|
-
setLinkFromItem(link: string): void;
|
|
18
|
-
/** Get link to this */
|
|
19
|
-
getLinkToItem(): string;
|
|
20
|
-
isOnlyProportionalScalingAllowed(): boolean;
|
|
21
|
-
transform(matrix: Matrix): void;
|
|
22
|
-
resize(data: ResizeOp): void;
|
|
23
|
-
setLock(isLocked: boolean): void;
|
|
24
|
-
}
|
|
File without changes
|