@excalidraw/excalidraw 0.18.0-195a743 → 0.18.0-298812e
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/dev/{chunk-T3M44BFV.js → chunk-JCUIYZXF.js} +7 -3
- package/dist/dev/chunk-JCUIYZXF.js.map +7 -0
- package/dist/dev/{chunk-WMGEUIQQ.js → chunk-RQWTCZLD.js} +2 -2
- package/dist/dev/{chunk-H3EW23X2.js → chunk-ZPGIVNNG.js} +14840 -9652
- package/dist/dev/chunk-ZPGIVNNG.js.map +7 -0
- package/dist/dev/data/{image-TTQKTTOH.js → image-CB4ZYE3A.js} +3 -3
- package/dist/dev/index.css +38 -2
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +857 -5250
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-I23TB6DJ.js → en-ZDTPSZNL.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-GK4XUKZB.js → chunk-7TMLMBQX.js} +1 -1
- package/dist/prod/{chunk-2Z7RPVPO.js → chunk-GCFVWREF.js} +3 -3
- package/dist/prod/chunk-WFJFO6F4.js +33 -0
- package/dist/prod/data/image-XJI4SWH2.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +18 -18
- package/dist/prod/locales/{en-TC3OFDA6.js → en-MHZ26NAR.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +1 -0
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +4 -2
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +16 -4
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/ShapeCache.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +1 -1
- package/dist/types/element/src/binding.d.ts +1 -1
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +3 -2
- package/dist/types/element/src/index.d.ts +45 -2
- package/dist/types/element/src/linearElementEditor.d.ts +4 -8
- package/dist/types/element/src/newElement.d.ts +1 -1
- package/dist/types/element/src/resizeElements.d.ts +1 -1
- package/dist/types/element/src/selection.d.ts +1 -6
- package/dist/types/element/src/store.d.ts +227 -0
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +2 -1
- package/dist/types/element/src/types.d.ts +6 -1
- package/dist/types/element/src/zindex.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -42
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +16 -28
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +194 -272
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -86
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -40
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +18 -30
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +8 -14
- package/dist/types/excalidraw/actions/actionExport.d.ts +159 -213
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -26
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +76 -100
- package/dist/types/excalidraw/actions/actionGroup.d.ts +22 -34
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -13
- package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionMenu.d.ts +26 -44
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +16 -28
- package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -196
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -189
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionZindex.d.ts +10 -10
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +23 -23
- package/dist/types/excalidraw/components/App.d.ts +9 -9
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +14 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +9 -9
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +13 -6
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/math/src/curve.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +4 -0
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +68 -94
- package/package.json +3 -3
- package/dist/dev/chunk-H3EW23X2.js.map +0 -7
- package/dist/dev/chunk-T3M44BFV.js.map +0 -7
- package/dist/prod/chunk-7M43VNIB.js +0 -33
- package/dist/prod/data/image-7YYIWLVQ.js +0 -1
- package/dist/types/excalidraw/store.d.ts +0 -129
- /package/dist/dev/{chunk-WMGEUIQQ.js.map → chunk-RQWTCZLD.js.map} +0 -0
- /package/dist/dev/data/{image-TTQKTTOH.js.map → image-CB4ZYE3A.js.map} +0 -0
- /package/dist/dev/locales/{en-I23TB6DJ.js.map → en-ZDTPSZNL.js.map} +0 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { Emitter } from "@excalidraw/common";
|
|
2
|
+
import type App from "@excalidraw/excalidraw/components/App";
|
|
3
|
+
import type { DTO, ValueOf } from "@excalidraw/common/utility-types";
|
|
4
|
+
import type { AppState, ObservedAppState } from "@excalidraw/excalidraw/types";
|
|
5
|
+
import { ElementsDelta, AppStateDelta } from "./delta";
|
|
6
|
+
import type { OrderedExcalidrawElement, SceneElementsMap } from "./types";
|
|
7
|
+
export declare const CaptureUpdateAction: {
|
|
8
|
+
/**
|
|
9
|
+
* Immediately undoable.
|
|
10
|
+
*
|
|
11
|
+
* Use for updates which should be captured.
|
|
12
|
+
* Should be used for most of the local updates, except ephemerals such as dragging or resizing.
|
|
13
|
+
*
|
|
14
|
+
* These updates will _immediately_ make it to the local undo / redo stacks.
|
|
15
|
+
*/
|
|
16
|
+
readonly IMMEDIATELY: "IMMEDIATELY";
|
|
17
|
+
/**
|
|
18
|
+
* Never undoable.
|
|
19
|
+
*
|
|
20
|
+
* Use for updates which should never be recorded, such as remote updates
|
|
21
|
+
* or scene initialization.
|
|
22
|
+
*
|
|
23
|
+
* These updates will _never_ make it to the local undo / redo stacks.
|
|
24
|
+
*/
|
|
25
|
+
readonly NEVER: "NEVER";
|
|
26
|
+
/**
|
|
27
|
+
* Eventually undoable.
|
|
28
|
+
*
|
|
29
|
+
* Use for updates which should not be captured immediately - likely
|
|
30
|
+
* exceptions which are part of some async multi-step process. Otherwise, all
|
|
31
|
+
* such updates would end up being captured with the next
|
|
32
|
+
* `CaptureUpdateAction.IMMEDIATELY` - triggered either by the next `updateScene`
|
|
33
|
+
* or internally by the editor.
|
|
34
|
+
*
|
|
35
|
+
* These updates will _eventually_ make it to the local undo / redo stacks.
|
|
36
|
+
*/
|
|
37
|
+
readonly EVENTUALLY: "EVENTUALLY";
|
|
38
|
+
};
|
|
39
|
+
export type CaptureUpdateActionType = ValueOf<typeof CaptureUpdateAction>;
|
|
40
|
+
/**
|
|
41
|
+
* Store which captures the observed changes and emits them as `StoreIncrement` events.
|
|
42
|
+
*/
|
|
43
|
+
export declare class Store {
|
|
44
|
+
private readonly app;
|
|
45
|
+
readonly onDurableIncrementEmitter: Emitter<[DurableIncrement]>;
|
|
46
|
+
readonly onStoreIncrementEmitter: Emitter<[DurableIncrement | EphemeralIncrement]>;
|
|
47
|
+
private scheduledMacroActions;
|
|
48
|
+
private scheduledMicroActions;
|
|
49
|
+
private _snapshot;
|
|
50
|
+
get snapshot(): StoreSnapshot;
|
|
51
|
+
set snapshot(snapshot: StoreSnapshot);
|
|
52
|
+
constructor(app: App);
|
|
53
|
+
scheduleAction(action: CaptureUpdateActionType): void;
|
|
54
|
+
/**
|
|
55
|
+
* Use to schedule a delta calculation, which will consquentially be emitted as `DurableStoreIncrement` and pushed in the undo stack.
|
|
56
|
+
*/
|
|
57
|
+
scheduleCapture(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Schedule special "micro" actions, to-be executed before the next commit, before it executes a scheduled "macro" action.
|
|
60
|
+
*/
|
|
61
|
+
scheduleMicroAction(params: {
|
|
62
|
+
action: CaptureUpdateActionType;
|
|
63
|
+
elements: SceneElementsMap | undefined;
|
|
64
|
+
appState: AppState | ObservedAppState | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
action: typeof CaptureUpdateAction.IMMEDIATELY;
|
|
67
|
+
change: StoreChange;
|
|
68
|
+
delta: StoreDelta;
|
|
69
|
+
} | {
|
|
70
|
+
action: typeof CaptureUpdateAction.NEVER | typeof CaptureUpdateAction.EVENTUALLY;
|
|
71
|
+
change: StoreChange;
|
|
72
|
+
}): void;
|
|
73
|
+
/**
|
|
74
|
+
* Performs the incoming `CaptureUpdateAction` and emits the corresponding `StoreIncrement`.
|
|
75
|
+
* Emits `DurableStoreIncrement` when action is "capture", emits `EphemeralStoreIncrement` otherwise.
|
|
76
|
+
*
|
|
77
|
+
* @emits StoreIncrement
|
|
78
|
+
*/
|
|
79
|
+
commit(elements: SceneElementsMap | undefined, appState: AppState | ObservedAppState | undefined): void;
|
|
80
|
+
/**
|
|
81
|
+
* Clears the store instance.
|
|
82
|
+
*/
|
|
83
|
+
clear(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Performs delta & change calculation and emits a durable increment.
|
|
86
|
+
*
|
|
87
|
+
* @emits StoreIncrement.
|
|
88
|
+
*/
|
|
89
|
+
private emitDurableIncrement;
|
|
90
|
+
/**
|
|
91
|
+
* Performs change calculation and emits an ephemeral increment.
|
|
92
|
+
*
|
|
93
|
+
* @emits EphemeralStoreIncrement
|
|
94
|
+
*/
|
|
95
|
+
private emitEphemeralIncrement;
|
|
96
|
+
private applyChangeToSnapshot;
|
|
97
|
+
/**
|
|
98
|
+
* Clones the snapshot if there are changes detected.
|
|
99
|
+
*/
|
|
100
|
+
private maybeCloneSnapshot;
|
|
101
|
+
private flushMicroActions;
|
|
102
|
+
private processAction;
|
|
103
|
+
/**
|
|
104
|
+
* Returns the scheduled macro action.
|
|
105
|
+
*/
|
|
106
|
+
private getScheduledMacroAction;
|
|
107
|
+
/**
|
|
108
|
+
* Ensures that the scheduled actions invariant is satisfied.
|
|
109
|
+
*/
|
|
110
|
+
private satisfiesScheduledActionsInvariant;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Repsents a change to the store containing changed elements and appState.
|
|
114
|
+
*/
|
|
115
|
+
export declare class StoreChange {
|
|
116
|
+
readonly elements: Record<string, OrderedExcalidrawElement>;
|
|
117
|
+
readonly appState: Partial<ObservedAppState>;
|
|
118
|
+
private constructor();
|
|
119
|
+
static create(prevSnapshot: StoreSnapshot, nextSnapshot: StoreSnapshot): StoreChange;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Encpasulates any change to the store (durable or ephemeral).
|
|
123
|
+
*/
|
|
124
|
+
export declare abstract class StoreIncrement {
|
|
125
|
+
readonly type: "durable" | "ephemeral";
|
|
126
|
+
readonly change: StoreChange;
|
|
127
|
+
protected constructor(type: "durable" | "ephemeral", change: StoreChange);
|
|
128
|
+
static isDurable(increment: StoreIncrement): increment is DurableIncrement;
|
|
129
|
+
static isEphemeral(increment: StoreIncrement): increment is EphemeralIncrement;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Represents a durable change to the store.
|
|
133
|
+
*/
|
|
134
|
+
export declare class DurableIncrement extends StoreIncrement {
|
|
135
|
+
readonly change: StoreChange;
|
|
136
|
+
readonly delta: StoreDelta;
|
|
137
|
+
constructor(change: StoreChange, delta: StoreDelta);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Represents an ephemeral change to the store.
|
|
141
|
+
*/
|
|
142
|
+
export declare class EphemeralIncrement extends StoreIncrement {
|
|
143
|
+
readonly change: StoreChange;
|
|
144
|
+
constructor(change: StoreChange);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Represents a captured delta by the Store.
|
|
148
|
+
*/
|
|
149
|
+
export declare class StoreDelta {
|
|
150
|
+
readonly id: string;
|
|
151
|
+
readonly elements: ElementsDelta;
|
|
152
|
+
readonly appState: AppStateDelta;
|
|
153
|
+
protected constructor(id: string, elements: ElementsDelta, appState: AppStateDelta);
|
|
154
|
+
/**
|
|
155
|
+
* Create a new instance of `StoreDelta`.
|
|
156
|
+
*/
|
|
157
|
+
static create(elements: ElementsDelta, appState: AppStateDelta, opts?: {
|
|
158
|
+
id: string;
|
|
159
|
+
}): StoreDelta;
|
|
160
|
+
/**
|
|
161
|
+
* Restore a store delta instance from a DTO.
|
|
162
|
+
*/
|
|
163
|
+
static restore(storeDeltaDTO: DTO<StoreDelta>): StoreDelta;
|
|
164
|
+
/**
|
|
165
|
+
* Parse and load the delta from the remote payload.
|
|
166
|
+
*/
|
|
167
|
+
static load({ id, elements: { added, removed, updated }, }: DTO<StoreDelta>): StoreDelta;
|
|
168
|
+
/**
|
|
169
|
+
* Inverse store delta, creates new instance of `StoreDelta`.
|
|
170
|
+
*/
|
|
171
|
+
static inverse(delta: StoreDelta): StoreDelta;
|
|
172
|
+
/**
|
|
173
|
+
* Apply latest (remote) changes to the delta, creates new instance of `StoreDelta`.
|
|
174
|
+
*/
|
|
175
|
+
static applyLatestChanges(delta: StoreDelta, elements: SceneElementsMap, modifierOptions: "deleted" | "inserted"): StoreDelta;
|
|
176
|
+
/**
|
|
177
|
+
* Apply the delta to the passed elements and appState, does not modify the snapshot.
|
|
178
|
+
*/
|
|
179
|
+
static applyTo(delta: StoreDelta, elements: SceneElementsMap, appState: AppState, prevSnapshot?: StoreSnapshot): [SceneElementsMap, AppState, boolean];
|
|
180
|
+
isEmpty(): boolean;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Represents a snapshot of the captured or updated changes in the store,
|
|
184
|
+
* used for producing deltas and emitting `DurableStoreIncrement`s.
|
|
185
|
+
*/
|
|
186
|
+
export declare class StoreSnapshot {
|
|
187
|
+
readonly elements: SceneElementsMap;
|
|
188
|
+
readonly appState: ObservedAppState;
|
|
189
|
+
readonly metadata: {
|
|
190
|
+
didElementsChange: boolean;
|
|
191
|
+
didAppStateChange: boolean;
|
|
192
|
+
isEmpty?: boolean;
|
|
193
|
+
};
|
|
194
|
+
private _lastChangedElementsHash;
|
|
195
|
+
private _lastChangedAppStateHash;
|
|
196
|
+
private constructor();
|
|
197
|
+
static create(elements: SceneElementsMap, appState: AppState | ObservedAppState, metadata?: {
|
|
198
|
+
didElementsChange: boolean;
|
|
199
|
+
didAppStateChange: boolean;
|
|
200
|
+
}): StoreSnapshot;
|
|
201
|
+
static empty(): StoreSnapshot;
|
|
202
|
+
getChangedElements(prevSnapshot: StoreSnapshot): Record<string, OrderedExcalidrawElement>;
|
|
203
|
+
getChangedAppState(prevSnapshot: StoreSnapshot): Partial<ObservedAppState>;
|
|
204
|
+
isEmpty(): boolean | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Apply the change and return a new snapshot instance.
|
|
207
|
+
*/
|
|
208
|
+
applyChange(change: StoreChange): StoreSnapshot;
|
|
209
|
+
/**
|
|
210
|
+
* Efficiently clone the existing snapshot, only if we detected changes.
|
|
211
|
+
*
|
|
212
|
+
* @returns same instance if there are no changes detected, new instance otherwise.
|
|
213
|
+
*/
|
|
214
|
+
maybeClone(action: CaptureUpdateActionType, elements: SceneElementsMap | undefined, appState: AppState | ObservedAppState | undefined): StoreSnapshot;
|
|
215
|
+
private maybeCreateAppStateSnapshot;
|
|
216
|
+
private maybeCreateElementsSnapshot;
|
|
217
|
+
private detectChangedAppState;
|
|
218
|
+
/**
|
|
219
|
+
* Detect if there any changed elements.
|
|
220
|
+
*/
|
|
221
|
+
private detectChangedElements;
|
|
222
|
+
/**
|
|
223
|
+
* Perform structural clone, deep cloning only elements that changed.
|
|
224
|
+
*/
|
|
225
|
+
private createElementsSnapshot;
|
|
226
|
+
}
|
|
227
|
+
export declare const getObservedAppState: (appState: AppState) => ObservedAppState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppState } from "@excalidraw/excalidraw/types";
|
|
2
2
|
import type { ExtractSetType } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { Radians } from "@excalidraw/math";
|
|
4
|
-
import type Scene from "./Scene";
|
|
4
|
+
import type { Scene } from "./Scene";
|
|
5
5
|
import type { MaybeTransformHandleType } from "./transformHandles";
|
|
6
6
|
import type { ElementsMap, ExcalidrawElement, ExcalidrawElementType, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, NonDeletedExcalidrawElement } from "./types";
|
|
7
7
|
export declare const redrawTextBoundingBox: (textElement: ExcalidrawTextElement, container: ExcalidrawElement | null, scene: Scene) => void;
|
|
@@ -32,9 +32,9 @@ export declare const canResizeFromSides: (device: Device) => boolean;
|
|
|
32
32
|
export declare const getOmitSidesForDevice: (device: Device) => {};
|
|
33
33
|
export declare const getTransformHandlesFromCoords: ([x1, y1, x2, y2, cx, cy]: [number, number, number, number, number, number], angle: Radians, zoom: Zoom, pointerType: PointerType, omitSides?: {
|
|
34
34
|
s?: boolean | undefined;
|
|
35
|
-
n?: boolean | undefined;
|
|
36
|
-
w?: boolean | undefined;
|
|
37
35
|
e?: boolean | undefined;
|
|
36
|
+
w?: boolean | undefined;
|
|
37
|
+
n?: boolean | undefined;
|
|
38
38
|
nw?: boolean | undefined;
|
|
39
39
|
ne?: boolean | undefined;
|
|
40
40
|
sw?: boolean | undefined;
|
|
@@ -43,9 +43,9 @@ export declare const getTransformHandlesFromCoords: ([x1, y1, x2, y2, cx, cy]: [
|
|
|
43
43
|
}, margin?: number, spacing?: number) => TransformHandles;
|
|
44
44
|
export declare const getTransformHandles: (element: ExcalidrawElement, zoom: Zoom, elementsMap: ElementsMap, pointerType?: PointerType, omitSides?: {
|
|
45
45
|
s?: boolean | undefined;
|
|
46
|
-
n?: boolean | undefined;
|
|
47
|
-
w?: boolean | undefined;
|
|
48
46
|
e?: boolean | undefined;
|
|
47
|
+
w?: boolean | undefined;
|
|
48
|
+
n?: boolean | undefined;
|
|
49
49
|
nw?: boolean | undefined;
|
|
50
50
|
ne?: boolean | undefined;
|
|
51
51
|
sw?: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
|
|
2
2
|
import type { MarkNonNullable } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { Bounds } from "./bounds";
|
|
4
|
-
import type { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawEmbeddableElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, ExcalidrawFrameElement, RoundnessType, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeElement, ExcalidrawIframeLikeElement, ExcalidrawMagicFrameElement, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, PointBinding, FixedPointBinding, ExcalidrawFlowchartNodeElement } from "./types";
|
|
4
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawEmbeddableElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, ExcalidrawFrameElement, RoundnessType, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeElement, ExcalidrawIframeLikeElement, ExcalidrawMagicFrameElement, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, PointBinding, FixedPointBinding, ExcalidrawFlowchartNodeElement, ExcalidrawLinearElementSubType } from "./types";
|
|
5
5
|
export declare const isInitializedImageElement: (element: ExcalidrawElement | null) => element is InitializedExcalidrawImageElement;
|
|
6
6
|
export declare const isImageElement: (element: ExcalidrawElement | null) => element is ExcalidrawImageElement;
|
|
7
7
|
export declare const isEmbeddableElement: (element: ExcalidrawElement | null | undefined) => element is ExcalidrawEmbeddableElement;
|
|
@@ -40,3 +40,4 @@ export declare const getDefaultRoundnessTypeForElement: (element: ExcalidrawElem
|
|
|
40
40
|
} | null;
|
|
41
41
|
export declare const isFixedPointBinding: (binding: PointBinding | FixedPointBinding) => binding is FixedPointBinding;
|
|
42
42
|
export declare const isBounds: (box: unknown) => box is Bounds;
|
|
43
|
+
export declare const getLinearElementSubType: (element: ExcalidrawLinearElement) => ExcalidrawLinearElementSubType;
|
|
@@ -205,6 +205,10 @@ export type PointBinding = {
|
|
|
205
205
|
export type FixedPointBinding = Merge<PointBinding, {
|
|
206
206
|
fixedPoint: FixedPoint;
|
|
207
207
|
}>;
|
|
208
|
+
export type PointsPositionUpdates = Map<number, {
|
|
209
|
+
point: LocalPoint;
|
|
210
|
+
isDragging?: boolean;
|
|
211
|
+
}>;
|
|
208
212
|
export type Arrowhead = "arrow" | "bar" | "dot" | "circle" | "circle_outline" | "triangle" | "triangle_outline" | "diamond" | "diamond_outline" | "crowfoot_one" | "crowfoot_many" | "crowfoot_one_or_many";
|
|
209
213
|
export type ExcalidrawLinearElement = _ExcalidrawElementBase & Readonly<{
|
|
210
214
|
type: "line" | "arrow";
|
|
@@ -279,7 +283,8 @@ export type SceneElementsMap = Map<ExcalidrawElement["id"], Ordered<ExcalidrawEl
|
|
|
279
283
|
*/
|
|
280
284
|
export type NonDeletedSceneElementsMap = Map<ExcalidrawElement["id"], Ordered<NonDeletedExcalidrawElement>> & MakeBrand<"NonDeletedSceneElementsMap">;
|
|
281
285
|
export type ElementsMapOrArray = readonly ExcalidrawElement[] | Readonly<ElementsMap>;
|
|
286
|
+
export type ExcalidrawLinearElementSubType = "line" | "sharpArrow" | "curvedArrow" | "elbowArrow";
|
|
282
287
|
export type ConvertibleGenericTypes = "rectangle" | "diamond" | "ellipse";
|
|
283
|
-
export type ConvertibleLinearTypes =
|
|
288
|
+
export type ConvertibleLinearTypes = ExcalidrawLinearElementSubType;
|
|
284
289
|
export type ConvertibleTypes = ConvertibleGenericTypes | ConvertibleLinearTypes;
|
|
285
290
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppState } from "@excalidraw/excalidraw/types";
|
|
2
|
-
import type Scene from "./Scene";
|
|
2
|
+
import type { Scene } from "./Scene";
|
|
3
3
|
import type { ExcalidrawElement } from "./types";
|
|
4
4
|
export declare const moveOneLeft: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
|
|
5
5
|
export declare const moveOneRight: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
|
|
6
|
-
export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => ExcalidrawElement[] |
|
|
7
|
-
export declare const moveAllRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => ExcalidrawElement[] |
|
|
6
|
+
export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
|
|
7
|
+
export declare const moveAllRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
|
|
@@ -28,7 +28,7 @@ export declare const actionAddToLibrary: {
|
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
|
-
suggestedBindings: import("@excalidraw/element
|
|
31
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
32
32
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
33
|
frameRendering: {
|
|
34
34
|
enabled: boolean;
|
|
@@ -39,7 +39,7 @@ export declare const actionAddToLibrary: {
|
|
|
39
39
|
editingFrame: string | null;
|
|
40
40
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
41
41
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
|
-
editingLinearElement: import("@excalidraw/element
|
|
42
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
43
43
|
activeTool: {
|
|
44
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
45
|
locked: boolean;
|
|
@@ -155,8 +155,8 @@ export declare const actionAddToLibrary: {
|
|
|
155
155
|
data: import("../charts").Spreadsheet;
|
|
156
156
|
};
|
|
157
157
|
pendingImageElementId: string | null;
|
|
158
|
-
showHyperlinkPopup: false | "
|
|
159
|
-
selectedLinearElement: import("@excalidraw/element
|
|
158
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
159
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
160
160
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
161
161
|
originSnapOffset: {
|
|
162
162
|
x: number;
|
|
@@ -167,16 +167,10 @@ export declare const actionAddToLibrary: {
|
|
|
167
167
|
followedBy: Set<import("../types").SocketId>;
|
|
168
168
|
isCropping: boolean;
|
|
169
169
|
croppingElementId: string | null;
|
|
170
|
-
searchMatches:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
offsetX: number;
|
|
175
|
-
offsetY: number;
|
|
176
|
-
width: number;
|
|
177
|
-
height: number;
|
|
178
|
-
}[];
|
|
179
|
-
}[];
|
|
170
|
+
searchMatches: Readonly<{
|
|
171
|
+
focusedId: string | null;
|
|
172
|
+
matches: readonly import("../types").SearchMatch[];
|
|
173
|
+
}> | null;
|
|
180
174
|
};
|
|
181
175
|
} | {
|
|
182
176
|
captureUpdate: "EVENTUALLY";
|
|
@@ -199,7 +193,7 @@ export declare const actionAddToLibrary: {
|
|
|
199
193
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
200
194
|
isBindingEnabled: boolean;
|
|
201
195
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
202
|
-
suggestedBindings: import("@excalidraw/element
|
|
196
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
203
197
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
204
198
|
frameRendering: {
|
|
205
199
|
enabled: boolean;
|
|
@@ -210,7 +204,7 @@ export declare const actionAddToLibrary: {
|
|
|
210
204
|
editingFrame: string | null;
|
|
211
205
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
212
206
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
213
|
-
editingLinearElement: import("@excalidraw/element
|
|
207
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
214
208
|
activeTool: {
|
|
215
209
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
216
210
|
locked: boolean;
|
|
@@ -331,8 +325,8 @@ export declare const actionAddToLibrary: {
|
|
|
331
325
|
data: import("../charts").Spreadsheet;
|
|
332
326
|
};
|
|
333
327
|
pendingImageElementId: string | null;
|
|
334
|
-
showHyperlinkPopup: false | "
|
|
335
|
-
selectedLinearElement: import("@excalidraw/element
|
|
328
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
329
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
336
330
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
337
331
|
originSnapOffset: {
|
|
338
332
|
x: number;
|
|
@@ -343,16 +337,10 @@ export declare const actionAddToLibrary: {
|
|
|
343
337
|
followedBy: Set<import("../types").SocketId>;
|
|
344
338
|
isCropping: boolean;
|
|
345
339
|
croppingElementId: string | null;
|
|
346
|
-
searchMatches:
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
offsetX: number;
|
|
351
|
-
offsetY: number;
|
|
352
|
-
width: number;
|
|
353
|
-
height: number;
|
|
354
|
-
}[];
|
|
355
|
-
}[];
|
|
340
|
+
searchMatches: Readonly<{
|
|
341
|
+
focusedId: string | null;
|
|
342
|
+
matches: readonly import("../types").SearchMatch[];
|
|
343
|
+
}> | null;
|
|
356
344
|
};
|
|
357
345
|
}> | {
|
|
358
346
|
captureUpdate: "EVENTUALLY";
|
|
@@ -375,7 +363,7 @@ export declare const actionAddToLibrary: {
|
|
|
375
363
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
376
364
|
isBindingEnabled: boolean;
|
|
377
365
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
378
|
-
suggestedBindings: import("@excalidraw/element
|
|
366
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
379
367
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
380
368
|
frameRendering: {
|
|
381
369
|
enabled: boolean;
|
|
@@ -386,7 +374,7 @@ export declare const actionAddToLibrary: {
|
|
|
386
374
|
editingFrame: string | null;
|
|
387
375
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
388
376
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
389
|
-
editingLinearElement: import("@excalidraw/element
|
|
377
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
390
378
|
activeTool: {
|
|
391
379
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
392
380
|
locked: boolean;
|
|
@@ -507,8 +495,8 @@ export declare const actionAddToLibrary: {
|
|
|
507
495
|
data: import("../charts").Spreadsheet;
|
|
508
496
|
};
|
|
509
497
|
pendingImageElementId: string | null;
|
|
510
|
-
showHyperlinkPopup: false | "
|
|
511
|
-
selectedLinearElement: import("@excalidraw/element
|
|
498
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
499
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
512
500
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
513
501
|
originSnapOffset: {
|
|
514
502
|
x: number;
|
|
@@ -519,16 +507,10 @@ export declare const actionAddToLibrary: {
|
|
|
519
507
|
followedBy: Set<import("../types").SocketId>;
|
|
520
508
|
isCropping: boolean;
|
|
521
509
|
croppingElementId: string | null;
|
|
522
|
-
searchMatches:
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
offsetX: number;
|
|
527
|
-
offsetY: number;
|
|
528
|
-
width: number;
|
|
529
|
-
height: number;
|
|
530
|
-
}[];
|
|
531
|
-
}[];
|
|
510
|
+
searchMatches: Readonly<{
|
|
511
|
+
focusedId: string | null;
|
|
512
|
+
matches: readonly import("../types").SearchMatch[];
|
|
513
|
+
}> | null;
|
|
532
514
|
};
|
|
533
515
|
};
|
|
534
516
|
label: string;
|
|
@@ -15,10 +15,10 @@ export declare const actionAlignTop: {
|
|
|
15
15
|
elements: ExcalidrawElement[];
|
|
16
16
|
captureUpdate: "IMMEDIATELY";
|
|
17
17
|
};
|
|
18
|
-
keyTest: (event:
|
|
18
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
19
19
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
} & {
|
|
21
|
-
keyTest?: ((event:
|
|
21
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
22
22
|
};
|
|
23
23
|
export declare const actionAlignBottom: {
|
|
24
24
|
name: "alignBottom";
|
|
@@ -33,10 +33,10 @@ export declare const actionAlignBottom: {
|
|
|
33
33
|
elements: ExcalidrawElement[];
|
|
34
34
|
captureUpdate: "IMMEDIATELY";
|
|
35
35
|
};
|
|
36
|
-
keyTest: (event:
|
|
36
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
37
37
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
} & {
|
|
39
|
-
keyTest?: ((event:
|
|
39
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
40
40
|
};
|
|
41
41
|
export declare const actionAlignLeft: {
|
|
42
42
|
name: "alignLeft";
|
|
@@ -51,10 +51,10 @@ export declare const actionAlignLeft: {
|
|
|
51
51
|
elements: ExcalidrawElement[];
|
|
52
52
|
captureUpdate: "IMMEDIATELY";
|
|
53
53
|
};
|
|
54
|
-
keyTest: (event:
|
|
54
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
55
55
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
56
|
} & {
|
|
57
|
-
keyTest?: ((event:
|
|
57
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
58
58
|
};
|
|
59
59
|
export declare const actionAlignRight: {
|
|
60
60
|
name: "alignRight";
|
|
@@ -69,10 +69,10 @@ export declare const actionAlignRight: {
|
|
|
69
69
|
elements: ExcalidrawElement[];
|
|
70
70
|
captureUpdate: "IMMEDIATELY";
|
|
71
71
|
};
|
|
72
|
-
keyTest: (event:
|
|
72
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
73
73
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
74
74
|
} & {
|
|
75
|
-
keyTest?: ((event:
|
|
75
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
76
76
|
};
|
|
77
77
|
export declare const actionAlignVerticallyCentered: {
|
|
78
78
|
name: "alignVerticallyCentered";
|
|
@@ -48,7 +48,7 @@ export declare const actionBindText: {
|
|
|
48
48
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
49
|
isBindingEnabled: boolean;
|
|
50
50
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
|
-
suggestedBindings: import("@excalidraw/element
|
|
51
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
52
52
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
53
53
|
frameRendering: {
|
|
54
54
|
enabled: boolean;
|
|
@@ -59,7 +59,7 @@ export declare const actionBindText: {
|
|
|
59
59
|
editingFrame: string | null;
|
|
60
60
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
61
61
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
|
-
editingLinearElement: import("@excalidraw/element
|
|
62
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
63
63
|
activeTool: {
|
|
64
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
65
65
|
locked: boolean;
|
|
@@ -177,8 +177,8 @@ export declare const actionBindText: {
|
|
|
177
177
|
data: import("../charts").Spreadsheet;
|
|
178
178
|
};
|
|
179
179
|
pendingImageElementId: string | null;
|
|
180
|
-
showHyperlinkPopup: false | "
|
|
181
|
-
selectedLinearElement: import("@excalidraw/element
|
|
180
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
181
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
182
182
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
183
183
|
originSnapOffset: {
|
|
184
184
|
x: number;
|
|
@@ -189,16 +189,10 @@ export declare const actionBindText: {
|
|
|
189
189
|
followedBy: Set<import("../types").SocketId>;
|
|
190
190
|
isCropping: boolean;
|
|
191
191
|
croppingElementId: string | null;
|
|
192
|
-
searchMatches:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
offsetX: number;
|
|
197
|
-
offsetY: number;
|
|
198
|
-
width: number;
|
|
199
|
-
height: number;
|
|
200
|
-
}[];
|
|
201
|
-
}[];
|
|
192
|
+
searchMatches: Readonly<{
|
|
193
|
+
focusedId: string | null;
|
|
194
|
+
matches: readonly import("../types").SearchMatch[];
|
|
195
|
+
}> | null;
|
|
202
196
|
};
|
|
203
197
|
captureUpdate: "IMMEDIATELY";
|
|
204
198
|
};
|
|
@@ -236,7 +230,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
236
230
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
231
|
isBindingEnabled: boolean;
|
|
238
232
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
239
|
-
suggestedBindings: import("@excalidraw/element
|
|
233
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
240
234
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
241
235
|
frameRendering: {
|
|
242
236
|
enabled: boolean;
|
|
@@ -247,7 +241,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
247
241
|
editingFrame: string | null;
|
|
248
242
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
249
243
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
250
|
-
editingLinearElement: import("@excalidraw/element
|
|
244
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
251
245
|
activeTool: {
|
|
252
246
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
253
247
|
locked: boolean;
|
|
@@ -365,8 +359,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
365
359
|
data: import("../charts").Spreadsheet;
|
|
366
360
|
};
|
|
367
361
|
pendingImageElementId: string | null;
|
|
368
|
-
showHyperlinkPopup: false | "
|
|
369
|
-
selectedLinearElement: import("@excalidraw/element
|
|
362
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
363
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
370
364
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
371
365
|
originSnapOffset: {
|
|
372
366
|
x: number;
|
|
@@ -377,16 +371,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
377
371
|
followedBy: Set<import("../types").SocketId>;
|
|
378
372
|
isCropping: boolean;
|
|
379
373
|
croppingElementId: string | null;
|
|
380
|
-
searchMatches:
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
offsetX: number;
|
|
385
|
-
offsetY: number;
|
|
386
|
-
width: number;
|
|
387
|
-
height: number;
|
|
388
|
-
}[];
|
|
389
|
-
}[];
|
|
374
|
+
searchMatches: Readonly<{
|
|
375
|
+
focusedId: string | null;
|
|
376
|
+
matches: readonly import("../types").SearchMatch[];
|
|
377
|
+
}> | null;
|
|
390
378
|
};
|
|
391
379
|
captureUpdate: "IMMEDIATELY";
|
|
392
380
|
};
|