@hellixit/hellixitboard 0.1.0 → 0.1.1
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/prod/chunk-IGUB3U7T.js +4 -0
- package/dist/prod/data/{image-2IKBHSIF.js → image-WXEFXRM6.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +16 -16
- package/dist/types/common/src/constants.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +2 -2
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/arrows/focus.d.ts +1 -1
- package/dist/types/element/src/binding.d.ts +3 -3
- package/dist/types/element/src/bounds.d.ts +2 -2
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +2 -2
- package/dist/types/element/src/distance.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/duplicate.d.ts +1 -1
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +1 -1
- package/dist/types/element/src/groups.d.ts +1 -1
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/image.d.ts +1 -1
- package/dist/types/element/src/linearElementEditor.d.ts +3 -3
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +1 -1
- package/dist/types/element/src/renderElement.d.ts +2 -2
- package/dist/types/element/src/resizeElements.d.ts +1 -1
- package/dist/types/element/src/resizeTest.d.ts +3 -3
- package/dist/types/element/src/shape.d.ts +3 -3
- package/dist/types/element/src/store.d.ts +2 -2
- package/dist/types/element/src/textElement.d.ts +2 -2
- package/dist/types/element/src/transform.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +3 -3
- package/dist/types/element/src/typeChecks.d.ts +1 -1
- package/dist/types/element/src/types.d.ts +3 -3
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/hellixitboard/actions/actionAddToLibrary.d.ts +82 -82
- package/dist/types/hellixitboard/actions/actionAlign.d.ts +7 -7
- package/dist/types/hellixitboard/actions/actionBoundText.d.ts +50 -50
- package/dist/types/hellixitboard/actions/actionCanvas.d.ts +275 -275
- package/dist/types/hellixitboard/actions/actionClipboard.d.ts +63 -63
- package/dist/types/hellixitboard/actions/actionCropEditor.d.ts +28 -28
- package/dist/types/hellixitboard/actions/actionDeleteSelected.d.ts +69 -69
- package/dist/types/hellixitboard/actions/actionDistribute.d.ts +3 -3
- package/dist/types/hellixitboard/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/hellixitboard/actions/actionElementLink.d.ts +32 -32
- package/dist/types/hellixitboard/actions/actionElementLock.d.ts +49 -49
- package/dist/types/hellixitboard/actions/actionEmbeddable.d.ts +29 -29
- package/dist/types/hellixitboard/actions/actionExport.d.ts +48 -48
- package/dist/types/hellixitboard/actions/actionFinalize.d.ts +1 -1
- package/dist/types/hellixitboard/actions/actionFlip.d.ts +3 -3
- package/dist/types/hellixitboard/actions/actionFrame.d.ts +210 -210
- package/dist/types/hellixitboard/actions/actionGroup.d.ts +43 -43
- package/dist/types/hellixitboard/actions/actionLinearEditor.d.ts +149 -149
- package/dist/types/hellixitboard/actions/actionLink.d.ts +31 -31
- package/dist/types/hellixitboard/actions/actionMenu.d.ts +27 -27
- package/dist/types/hellixitboard/actions/actionNavigate.d.ts +2 -2
- package/dist/types/hellixitboard/actions/actionProperties.d.ts +39 -39
- package/dist/types/hellixitboard/actions/actionSelectAll.d.ts +23 -23
- package/dist/types/hellixitboard/actions/actionStyles.d.ts +31 -31
- package/dist/types/hellixitboard/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/hellixitboard/actions/actionToggleArrowBinding.d.ts +28 -28
- package/dist/types/hellixitboard/actions/actionToggleGridMode.d.ts +29 -29
- package/dist/types/hellixitboard/actions/actionToggleMidpointSnapping.d.ts +28 -28
- package/dist/types/hellixitboard/actions/actionToggleObjectsSnapMode.d.ts +29 -29
- package/dist/types/hellixitboard/actions/actionToggleSearchMenu.d.ts +28 -28
- package/dist/types/hellixitboard/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/hellixitboard/actions/actionToggleStats.d.ts +28 -28
- package/dist/types/hellixitboard/actions/actionToggleViewMode.d.ts +29 -29
- package/dist/types/hellixitboard/actions/actionToggleZenMode.d.ts +29 -29
- package/dist/types/hellixitboard/actions/actionZindex.d.ts +8 -8
- package/dist/types/hellixitboard/actions/manager.d.ts +1 -1
- package/dist/types/hellixitboard/actions/shortcuts.d.ts +1 -1
- package/dist/types/hellixitboard/actions/types.d.ts +2 -2
- package/dist/types/hellixitboard/animated-trail.d.ts +2 -2
- package/dist/types/hellixitboard/appState.d.ts +9 -9
- package/dist/types/hellixitboard/charts/charts.constants.d.ts +1 -1
- package/dist/types/hellixitboard/charts/charts.helpers.d.ts +3 -3
- package/dist/types/hellixitboard/charts/charts.types.d.ts +1 -1
- package/dist/types/hellixitboard/charts/index.d.ts +1 -1
- package/dist/types/hellixitboard/clipboard.d.ts +4 -4
- package/dist/types/hellixitboard/components/Actions.d.ts +1 -1
- package/dist/types/hellixitboard/components/App.d.ts +9 -9
- package/dist/types/hellixitboard/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/hellixitboard/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/hellixitboard/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/hellixitboard/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/hellixitboard/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/dist/types/hellixitboard/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/hellixitboard/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/hellixitboard/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/hellixitboard/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/hellixitboard/components/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/hellixitboard/components/ElementLinkDialog.d.ts +2 -2
- package/dist/types/hellixitboard/components/EyeDropper.d.ts +1 -1
- package/dist/types/hellixitboard/components/FontPicker/FontPicker.d.ts +1 -1
- package/dist/types/hellixitboard/components/FontPicker/FontPickerList.d.ts +2 -2
- package/dist/types/hellixitboard/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/dist/types/hellixitboard/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/hellixitboard/components/HintViewer.d.ts +1 -1
- package/dist/types/hellixitboard/components/ImageExportDialog.d.ts +1 -1
- package/dist/types/hellixitboard/components/InitializeApp.d.ts +1 -1
- package/dist/types/hellixitboard/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/hellixitboard/components/LayerUI.d.ts +1 -1
- package/dist/types/hellixitboard/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/hellixitboard/components/LoadingMessage.d.ts +1 -1
- package/dist/types/hellixitboard/components/MobileMenu.d.ts +1 -1
- package/dist/types/hellixitboard/components/Stats/Angle.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/hellixitboard/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/FontSize.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/MultiFontSize.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/Position.d.ts +2 -2
- package/dist/types/hellixitboard/components/Stats/index.d.ts +1 -1
- package/dist/types/hellixitboard/components/Stats/utils.d.ts +2 -2
- package/dist/types/hellixitboard/components/TTDDialog/CodeMirrorEditor.d.ts +1 -1
- package/dist/types/hellixitboard/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/hellixitboard/components/TTDDialog/hooks/useMermaidRenderer.d.ts +1 -1
- package/dist/types/hellixitboard/components/TTDDialog/types.d.ts +3 -3
- package/dist/types/hellixitboard/components/ToolButton.d.ts +1 -1
- package/dist/types/hellixitboard/components/canvases/InteractiveCanvas.d.ts +2 -2
- package/dist/types/hellixitboard/components/canvases/NewElementCanvas.d.ts +1 -1
- package/dist/types/hellixitboard/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/hellixitboard/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/hellixitboard/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/types/hellixitboard/components/hyperlink/Hyperlink.d.ts +2 -2
- package/dist/types/hellixitboard/components/hyperlink/helpers.d.ts +3 -3
- package/dist/types/hellixitboard/components/icons.d.ts +1 -1
- package/dist/types/hellixitboard/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/dist/types/hellixitboard/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/hellixitboard/components/main-menu/MainMenu.d.ts +1 -1
- package/dist/types/hellixitboard/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/hellixitboard/data/blob.d.ts +49 -49
- package/dist/types/hellixitboard/data/filesystem.d.ts +1 -1
- package/dist/types/hellixitboard/data/index.d.ts +1 -1
- package/dist/types/hellixitboard/data/json.d.ts +24 -24
- package/dist/types/hellixitboard/data/library.d.ts +2 -2
- package/dist/types/hellixitboard/data/reconcile.d.ts +2 -2
- package/dist/types/hellixitboard/data/resave.d.ts +2 -2
- package/dist/types/hellixitboard/data/restore.d.ts +2 -2
- package/dist/types/hellixitboard/data/types.d.ts +2 -2
- package/dist/types/hellixitboard/fonts/Fonts.d.ts +3 -3
- package/dist/types/hellixitboard/history.d.ts +4 -4
- package/dist/types/hellixitboard/hooks/useEmitter.d.ts +1 -1
- package/dist/types/hellixitboard/i18n.d.ts +1 -1
- package/dist/types/hellixitboard/index.d.ts +12 -12
- package/dist/types/hellixitboard/lasso/utils.d.ts +2 -2
- package/dist/types/hellixitboard/renderer/staticScene.d.ts +1 -1
- package/dist/types/hellixitboard/renderer/staticSvgScene.d.ts +1 -1
- package/dist/types/hellixitboard/scene/Renderer.d.ts +2 -2
- package/dist/types/hellixitboard/scene/export.d.ts +1 -1
- package/dist/types/hellixitboard/scene/index.d.ts +2 -2
- package/dist/types/hellixitboard/scene/scroll.d.ts +1 -1
- package/dist/types/hellixitboard/scene/types.d.ts +3 -3
- package/dist/types/hellixitboard/snapping.d.ts +5 -5
- package/dist/types/hellixitboard/types.d.ts +7 -7
- package/dist/types/hellixitboard/wysiwyg/textWysiwyg.d.ts +1 -1
- package/dist/types/utils/src/bbox.d.ts +2 -2
- package/dist/types/utils/src/export.d.ts +2 -2
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/shape.d.ts +4 -4
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +7 -7
- package/dist/prod/chunk-6TQ3TBTF.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HellixitboardElement } from "@
|
|
1
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
2
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionDeleteSelected: {
|
|
4
4
|
name: "deleteSelectedElements";
|
|
@@ -8,8 +8,8 @@ export declare const actionDeleteSelected: {
|
|
|
8
8
|
category: "element";
|
|
9
9
|
action: string;
|
|
10
10
|
};
|
|
11
|
-
perform: (elements: readonly import("@
|
|
12
|
-
elements: import("@
|
|
11
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
|
|
12
|
+
elements: import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
13
13
|
appState: {
|
|
14
14
|
selectedLinearElement: null;
|
|
15
15
|
contextMenu: {
|
|
@@ -21,22 +21,22 @@ export declare const actionDeleteSelected: {
|
|
|
21
21
|
isLoading: boolean;
|
|
22
22
|
errorMessage: React.ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
|
-
element: import("@
|
|
24
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
25
25
|
state: "hover" | "active";
|
|
26
26
|
} | null;
|
|
27
|
-
newElement: import("@
|
|
28
|
-
resizingElement: import("@
|
|
29
|
-
multiElement: import("@
|
|
30
|
-
selectionElement: import("@
|
|
27
|
+
newElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
28
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
29
|
+
multiElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
30
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
32
|
bindingPreference: "enabled" | "disabled";
|
|
33
33
|
isMidpointSnappingEnabled: boolean;
|
|
34
|
-
startBoundElement: import("@
|
|
34
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
35
35
|
suggestedBinding: {
|
|
36
|
-
element: import("@
|
|
37
|
-
midPoint?: import("@
|
|
36
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
37
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
38
38
|
} | null;
|
|
39
|
-
frameToHighlight: import("@
|
|
39
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
40
40
|
frameRendering: {
|
|
41
41
|
enabled: boolean;
|
|
42
42
|
name: boolean;
|
|
@@ -44,8 +44,8 @@ export declare const actionDeleteSelected: {
|
|
|
44
44
|
clip: boolean;
|
|
45
45
|
};
|
|
46
46
|
editingFrame: string | null;
|
|
47
|
-
elementsToHighlight: import("@
|
|
48
|
-
editingTextElement: import("@
|
|
47
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<HellixitboardElement>[] | null;
|
|
48
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
49
49
|
activeTool: {
|
|
50
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
51
|
locked: boolean;
|
|
@@ -68,13 +68,13 @@ export declare const actionDeleteSelected: {
|
|
|
68
68
|
currentItemStrokeStyle: HellixitboardElement["strokeStyle"];
|
|
69
69
|
currentItemRoughness: number;
|
|
70
70
|
currentItemOpacity: number;
|
|
71
|
-
currentItemFontFamily: import("@
|
|
71
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
72
72
|
currentItemFontSize: number;
|
|
73
|
-
currentItemTextAlign: import("@
|
|
74
|
-
currentItemStartArrowhead: import("@
|
|
75
|
-
currentItemEndArrowhead: import("@
|
|
76
|
-
currentHoveredFontFamily: import("@
|
|
77
|
-
currentItemRoundness: import("@
|
|
73
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
74
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
75
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
76
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
77
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
78
78
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
79
79
|
viewBackgroundColor: string;
|
|
80
80
|
scrollX: number;
|
|
@@ -109,7 +109,7 @@ export declare const actionDeleteSelected: {
|
|
|
109
109
|
rawText: string;
|
|
110
110
|
};
|
|
111
111
|
defaultSidebarDockedPreference: boolean;
|
|
112
|
-
lastPointerDownWith: import("@
|
|
112
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
113
113
|
selectedElementIds: Readonly<{
|
|
114
114
|
[id: string]: true;
|
|
115
115
|
}>;
|
|
@@ -127,7 +127,7 @@ export declare const actionDeleteSelected: {
|
|
|
127
127
|
duration?: number;
|
|
128
128
|
} | null;
|
|
129
129
|
zenModeEnabled: boolean;
|
|
130
|
-
theme: import("@
|
|
130
|
+
theme: import("@hellixit/element/types").Theme;
|
|
131
131
|
gridSize: number;
|
|
132
132
|
gridStep: number;
|
|
133
133
|
gridModeEnabled: boolean;
|
|
@@ -135,7 +135,7 @@ export declare const actionDeleteSelected: {
|
|
|
135
135
|
selectedGroupIds: {
|
|
136
136
|
[groupId: string]: boolean;
|
|
137
137
|
};
|
|
138
|
-
editingGroupId: import("@
|
|
138
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
139
139
|
width: number;
|
|
140
140
|
height: number;
|
|
141
141
|
offsetTop: number;
|
|
@@ -165,11 +165,11 @@ export declare const actionDeleteSelected: {
|
|
|
165
165
|
lockedMultiSelections: {
|
|
166
166
|
[groupId: string]: true;
|
|
167
167
|
};
|
|
168
|
-
bindMode: import("@
|
|
168
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
169
169
|
};
|
|
170
170
|
captureUpdate: "IMMEDIATELY";
|
|
171
171
|
} | {
|
|
172
|
-
elements: readonly import("@
|
|
172
|
+
elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
173
173
|
appState: {
|
|
174
174
|
selectedLinearElement: {
|
|
175
175
|
selectedPointsIndices: number[];
|
|
@@ -179,24 +179,24 @@ export declare const actionDeleteSelected: {
|
|
|
179
179
|
initialState: Readonly<{
|
|
180
180
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
181
181
|
lastClickedPoint: number;
|
|
182
|
-
origin: Readonly<import("@
|
|
182
|
+
origin: Readonly<import("@hellixit/math").GlobalPoint> | null;
|
|
183
183
|
segmentMidpoint: {
|
|
184
|
-
value: import("@
|
|
184
|
+
value: import("@hellixit/math").GlobalPoint | null;
|
|
185
185
|
index: number | null;
|
|
186
186
|
added: boolean;
|
|
187
187
|
};
|
|
188
188
|
arrowStartIsInside: boolean;
|
|
189
|
-
altFocusPoint: Readonly<import("@
|
|
189
|
+
altFocusPoint: Readonly<import("@hellixit/math").GlobalPoint> | null;
|
|
190
190
|
}>;
|
|
191
191
|
isDragging: boolean;
|
|
192
|
-
lastUncommittedPoint: import("@
|
|
193
|
-
lastCommittedPoint: import("@
|
|
192
|
+
lastUncommittedPoint: import("@hellixit/math").LocalPoint | null;
|
|
193
|
+
lastCommittedPoint: import("@hellixit/math").LocalPoint | null;
|
|
194
194
|
pointerOffset: Readonly<{
|
|
195
195
|
x: number;
|
|
196
196
|
y: number;
|
|
197
197
|
}>;
|
|
198
198
|
hoverPointIndex: number;
|
|
199
|
-
segmentMidPointHoveredCoords: import("@
|
|
199
|
+
segmentMidPointHoveredCoords: import("@hellixit/math").GlobalPoint | null;
|
|
200
200
|
hoveredFocusPointBinding: "start" | "end" | null;
|
|
201
201
|
draggedFocusPointBinding: "start" | "end" | null;
|
|
202
202
|
elbowed: boolean;
|
|
@@ -213,22 +213,22 @@ export declare const actionDeleteSelected: {
|
|
|
213
213
|
isLoading: boolean;
|
|
214
214
|
errorMessage: React.ReactNode;
|
|
215
215
|
activeEmbeddable: {
|
|
216
|
-
element: import("@
|
|
216
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
217
217
|
state: "hover" | "active";
|
|
218
218
|
} | null;
|
|
219
|
-
newElement: import("@
|
|
220
|
-
resizingElement: import("@
|
|
221
|
-
multiElement: import("@
|
|
222
|
-
selectionElement: import("@
|
|
219
|
+
newElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
220
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
221
|
+
multiElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
222
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
223
223
|
isBindingEnabled: boolean;
|
|
224
224
|
bindingPreference: "enabled" | "disabled";
|
|
225
225
|
isMidpointSnappingEnabled: boolean;
|
|
226
|
-
startBoundElement: import("@
|
|
226
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
227
227
|
suggestedBinding: {
|
|
228
|
-
element: import("@
|
|
229
|
-
midPoint?: import("@
|
|
228
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
229
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
230
230
|
} | null;
|
|
231
|
-
frameToHighlight: import("@
|
|
231
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
232
232
|
frameRendering: {
|
|
233
233
|
enabled: boolean;
|
|
234
234
|
name: boolean;
|
|
@@ -236,8 +236,8 @@ export declare const actionDeleteSelected: {
|
|
|
236
236
|
clip: boolean;
|
|
237
237
|
};
|
|
238
238
|
editingFrame: string | null;
|
|
239
|
-
elementsToHighlight: import("@
|
|
240
|
-
editingTextElement: import("@
|
|
239
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<HellixitboardElement>[] | null;
|
|
240
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
241
241
|
activeTool: {
|
|
242
242
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
243
243
|
locked: boolean;
|
|
@@ -260,13 +260,13 @@ export declare const actionDeleteSelected: {
|
|
|
260
260
|
currentItemStrokeStyle: HellixitboardElement["strokeStyle"];
|
|
261
261
|
currentItemRoughness: number;
|
|
262
262
|
currentItemOpacity: number;
|
|
263
|
-
currentItemFontFamily: import("@
|
|
263
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
264
264
|
currentItemFontSize: number;
|
|
265
|
-
currentItemTextAlign: import("@
|
|
266
|
-
currentItemStartArrowhead: import("@
|
|
267
|
-
currentItemEndArrowhead: import("@
|
|
268
|
-
currentHoveredFontFamily: import("@
|
|
269
|
-
currentItemRoundness: import("@
|
|
265
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
266
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
267
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
268
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
269
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
270
270
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
271
271
|
viewBackgroundColor: string;
|
|
272
272
|
scrollX: number;
|
|
@@ -301,7 +301,7 @@ export declare const actionDeleteSelected: {
|
|
|
301
301
|
rawText: string;
|
|
302
302
|
};
|
|
303
303
|
defaultSidebarDockedPreference: boolean;
|
|
304
|
-
lastPointerDownWith: import("@
|
|
304
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
305
305
|
selectedElementIds: Readonly<{
|
|
306
306
|
[id: string]: true;
|
|
307
307
|
}>;
|
|
@@ -319,7 +319,7 @@ export declare const actionDeleteSelected: {
|
|
|
319
319
|
duration?: number;
|
|
320
320
|
} | null;
|
|
321
321
|
zenModeEnabled: boolean;
|
|
322
|
-
theme: import("@
|
|
322
|
+
theme: import("@hellixit/element/types").Theme;
|
|
323
323
|
gridSize: number;
|
|
324
324
|
gridStep: number;
|
|
325
325
|
gridModeEnabled: boolean;
|
|
@@ -327,7 +327,7 @@ export declare const actionDeleteSelected: {
|
|
|
327
327
|
selectedGroupIds: {
|
|
328
328
|
[groupId: string]: boolean;
|
|
329
329
|
};
|
|
330
|
-
editingGroupId: import("@
|
|
330
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
331
331
|
width: number;
|
|
332
332
|
height: number;
|
|
333
333
|
offsetTop: number;
|
|
@@ -357,7 +357,7 @@ export declare const actionDeleteSelected: {
|
|
|
357
357
|
lockedMultiSelections: {
|
|
358
358
|
[groupId: string]: true;
|
|
359
359
|
};
|
|
360
|
-
bindMode: import("@
|
|
360
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
361
361
|
};
|
|
362
362
|
captureUpdate: "IMMEDIATELY";
|
|
363
363
|
} | {
|
|
@@ -383,17 +383,17 @@ export declare const actionDeleteSelected: {
|
|
|
383
383
|
showWelcomeScreen: boolean;
|
|
384
384
|
isLoading: boolean;
|
|
385
385
|
errorMessage: React.ReactNode;
|
|
386
|
-
resizingElement: import("@
|
|
387
|
-
selectionElement: import("@
|
|
386
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
387
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
388
388
|
isBindingEnabled: boolean;
|
|
389
389
|
bindingPreference: "enabled" | "disabled";
|
|
390
390
|
isMidpointSnappingEnabled: boolean;
|
|
391
|
-
startBoundElement: import("@
|
|
391
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
392
392
|
suggestedBinding: {
|
|
393
|
-
element: import("@
|
|
394
|
-
midPoint?: import("@
|
|
393
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
394
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
395
395
|
} | null;
|
|
396
|
-
frameToHighlight: import("@
|
|
396
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
397
397
|
frameRendering: {
|
|
398
398
|
enabled: boolean;
|
|
399
399
|
name: boolean;
|
|
@@ -401,8 +401,8 @@ export declare const actionDeleteSelected: {
|
|
|
401
401
|
clip: boolean;
|
|
402
402
|
};
|
|
403
403
|
editingFrame: string | null;
|
|
404
|
-
elementsToHighlight: import("@
|
|
405
|
-
editingTextElement: import("@
|
|
404
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<HellixitboardElement>[] | null;
|
|
405
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
406
406
|
preferredSelectionTool: {
|
|
407
407
|
type: "selection" | "lasso";
|
|
408
408
|
initialized: boolean;
|
|
@@ -420,13 +420,13 @@ export declare const actionDeleteSelected: {
|
|
|
420
420
|
currentItemStrokeStyle: HellixitboardElement["strokeStyle"];
|
|
421
421
|
currentItemRoughness: number;
|
|
422
422
|
currentItemOpacity: number;
|
|
423
|
-
currentItemFontFamily: import("@
|
|
423
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
424
424
|
currentItemFontSize: number;
|
|
425
|
-
currentItemTextAlign: import("@
|
|
426
|
-
currentItemStartArrowhead: import("@
|
|
427
|
-
currentItemEndArrowhead: import("@
|
|
428
|
-
currentHoveredFontFamily: import("@
|
|
429
|
-
currentItemRoundness: import("@
|
|
425
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
426
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
427
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
428
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
429
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
430
430
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
431
431
|
viewBackgroundColor: string;
|
|
432
432
|
scrollX: number;
|
|
@@ -461,7 +461,7 @@ export declare const actionDeleteSelected: {
|
|
|
461
461
|
rawText: string;
|
|
462
462
|
};
|
|
463
463
|
defaultSidebarDockedPreference: boolean;
|
|
464
|
-
lastPointerDownWith: import("@
|
|
464
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
465
465
|
hoveredElementIds: Readonly<{
|
|
466
466
|
[id: string]: true;
|
|
467
467
|
}>;
|
|
@@ -476,7 +476,7 @@ export declare const actionDeleteSelected: {
|
|
|
476
476
|
duration?: number;
|
|
477
477
|
} | null;
|
|
478
478
|
zenModeEnabled: boolean;
|
|
479
|
-
theme: import("@
|
|
479
|
+
theme: import("@hellixit/element/types").Theme;
|
|
480
480
|
gridSize: number;
|
|
481
481
|
gridStep: number;
|
|
482
482
|
gridModeEnabled: boolean;
|
|
@@ -510,7 +510,7 @@ export declare const actionDeleteSelected: {
|
|
|
510
510
|
lockedMultiSelections: {
|
|
511
511
|
[groupId: string]: true;
|
|
512
512
|
};
|
|
513
|
-
bindMode: import("@
|
|
513
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
514
514
|
};
|
|
515
515
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
516
516
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HellixitboardElement } from "@
|
|
1
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
2
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const distributeHorizontally: {
|
|
4
4
|
name: "distributeHorizontally";
|
|
@@ -6,7 +6,7 @@ export declare const distributeHorizontally: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@
|
|
9
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
10
10
|
appState: Readonly<AppState>;
|
|
11
11
|
elements: HellixitboardElement[];
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -22,7 +22,7 @@ export declare const distributeVertically: {
|
|
|
22
22
|
trackEvent: {
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
|
-
perform: (elements: readonly import("@
|
|
25
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
26
26
|
appState: Readonly<AppState>;
|
|
27
27
|
elements: HellixitboardElement[];
|
|
28
28
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -5,8 +5,8 @@ export declare const actionDuplicateSelection: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
perform: (elements: readonly import("@
|
|
9
|
-
elements: readonly import("@
|
|
8
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
|
|
9
|
+
elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
10
10
|
appState: import("../types").AppState;
|
|
11
11
|
captureUpdate: "IMMEDIATELY";
|
|
12
12
|
};
|
|
@@ -5,7 +5,7 @@ export declare const actionCopyElementLink: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
perform: (elements: readonly import("@
|
|
8
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
11
11
|
message: string;
|
|
@@ -17,11 +17,11 @@ export declare const actionCopyElementLink: {
|
|
|
17
17
|
app?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
appState: Readonly<import("../types").AppState>;
|
|
20
|
-
elements: readonly import("@
|
|
20
|
+
elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
21
21
|
app: import("../types").AppClassProperties;
|
|
22
22
|
captureUpdate: "EVENTUALLY";
|
|
23
23
|
}>;
|
|
24
|
-
predicate: (elements: readonly import("@
|
|
24
|
+
predicate: (elements: readonly import("@hellixit/element/types").HellixitboardElement[], appState: import("../types").AppState) => boolean;
|
|
25
25
|
} & {
|
|
26
26
|
keyTest?: undefined;
|
|
27
27
|
};
|
|
@@ -29,8 +29,8 @@ export declare const actionLinkToElement: {
|
|
|
29
29
|
name: "linkToElement";
|
|
30
30
|
label: string;
|
|
31
31
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
perform: (elements: readonly import("@
|
|
33
|
-
elements: readonly import("@
|
|
32
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
33
|
+
elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
34
34
|
appState: Readonly<import("../types").AppState>;
|
|
35
35
|
app: import("../types").AppClassProperties;
|
|
36
36
|
captureUpdate: "EVENTUALLY";
|
|
@@ -49,22 +49,22 @@ export declare const actionLinkToElement: {
|
|
|
49
49
|
isLoading: boolean;
|
|
50
50
|
errorMessage: React.ReactNode;
|
|
51
51
|
activeEmbeddable: {
|
|
52
|
-
element: import("@
|
|
52
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
53
53
|
state: "hover" | "active";
|
|
54
54
|
} | null;
|
|
55
|
-
newElement: import("@
|
|
56
|
-
resizingElement: import("@
|
|
57
|
-
multiElement: import("@
|
|
58
|
-
selectionElement: import("@
|
|
55
|
+
newElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
56
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
57
|
+
multiElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
58
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
59
59
|
isBindingEnabled: boolean;
|
|
60
60
|
bindingPreference: "enabled" | "disabled";
|
|
61
61
|
isMidpointSnappingEnabled: boolean;
|
|
62
|
-
startBoundElement: import("@
|
|
62
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
63
63
|
suggestedBinding: {
|
|
64
|
-
element: import("@
|
|
65
|
-
midPoint?: import("@
|
|
64
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
65
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
66
66
|
} | null;
|
|
67
|
-
frameToHighlight: import("@
|
|
67
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
68
68
|
frameRendering: {
|
|
69
69
|
enabled: boolean;
|
|
70
70
|
name: boolean;
|
|
@@ -72,8 +72,8 @@ export declare const actionLinkToElement: {
|
|
|
72
72
|
clip: boolean;
|
|
73
73
|
};
|
|
74
74
|
editingFrame: string | null;
|
|
75
|
-
elementsToHighlight: import("@
|
|
76
|
-
editingTextElement: import("@
|
|
75
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardElement>[] | null;
|
|
76
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
77
77
|
activeTool: {
|
|
78
78
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
79
79
|
locked: boolean;
|
|
@@ -91,18 +91,18 @@ export declare const actionLinkToElement: {
|
|
|
91
91
|
exportScale: number;
|
|
92
92
|
currentItemStrokeColor: string;
|
|
93
93
|
currentItemBackgroundColor: string;
|
|
94
|
-
currentItemFillStyle: import("@
|
|
94
|
+
currentItemFillStyle: import("@hellixit/element/types").HellixitboardElement["fillStyle"];
|
|
95
95
|
currentItemStrokeWidth: number;
|
|
96
|
-
currentItemStrokeStyle: import("@
|
|
96
|
+
currentItemStrokeStyle: import("@hellixit/element/types").HellixitboardElement["strokeStyle"];
|
|
97
97
|
currentItemRoughness: number;
|
|
98
98
|
currentItemOpacity: number;
|
|
99
|
-
currentItemFontFamily: import("@
|
|
99
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
100
100
|
currentItemFontSize: number;
|
|
101
|
-
currentItemTextAlign: import("@
|
|
102
|
-
currentItemStartArrowhead: import("@
|
|
103
|
-
currentItemEndArrowhead: import("@
|
|
104
|
-
currentHoveredFontFamily: import("@
|
|
105
|
-
currentItemRoundness: import("@
|
|
101
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
102
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
103
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
104
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
105
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
106
106
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
107
107
|
viewBackgroundColor: string;
|
|
108
108
|
scrollX: number;
|
|
@@ -120,7 +120,7 @@ export declare const actionLinkToElement: {
|
|
|
120
120
|
tab?: import("../types").SidebarTabName;
|
|
121
121
|
} | null;
|
|
122
122
|
defaultSidebarDockedPreference: boolean;
|
|
123
|
-
lastPointerDownWith: import("@
|
|
123
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
124
124
|
selectedElementIds: Readonly<{
|
|
125
125
|
[id: string]: true;
|
|
126
126
|
}>;
|
|
@@ -138,7 +138,7 @@ export declare const actionLinkToElement: {
|
|
|
138
138
|
duration?: number;
|
|
139
139
|
} | null;
|
|
140
140
|
zenModeEnabled: boolean;
|
|
141
|
-
theme: import("@
|
|
141
|
+
theme: import("@hellixit/element/types").Theme;
|
|
142
142
|
gridSize: number;
|
|
143
143
|
gridStep: number;
|
|
144
144
|
gridModeEnabled: boolean;
|
|
@@ -146,7 +146,7 @@ export declare const actionLinkToElement: {
|
|
|
146
146
|
selectedGroupIds: {
|
|
147
147
|
[groupId: string]: boolean;
|
|
148
148
|
};
|
|
149
|
-
editingGroupId: import("@
|
|
149
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
150
150
|
width: number;
|
|
151
151
|
height: number;
|
|
152
152
|
offsetTop: number;
|
|
@@ -158,7 +158,7 @@ export declare const actionLinkToElement: {
|
|
|
158
158
|
panels: number;
|
|
159
159
|
};
|
|
160
160
|
showHyperlinkPopup: false | "info" | "editor";
|
|
161
|
-
selectedLinearElement: import("@
|
|
161
|
+
selectedLinearElement: import("@hellixit/element").LinearElementEditor | null;
|
|
162
162
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
163
|
originSnapOffset: {
|
|
164
164
|
x: number;
|
|
@@ -168,22 +168,22 @@ export declare const actionLinkToElement: {
|
|
|
168
168
|
userToFollow: import("../types").UserToFollow | null;
|
|
169
169
|
followedBy: Set<import("../types").SocketId>;
|
|
170
170
|
isCropping: boolean;
|
|
171
|
-
croppingElementId: import("@
|
|
171
|
+
croppingElementId: import("@hellixit/element/types").HellixitboardElement["id"] | null;
|
|
172
172
|
searchMatches: Readonly<{
|
|
173
|
-
focusedId: import("@
|
|
173
|
+
focusedId: import("@hellixit/element/types").HellixitboardElement["id"] | null;
|
|
174
174
|
matches: readonly import("../types").SearchMatch[];
|
|
175
175
|
}> | null;
|
|
176
176
|
activeLockedId: string | null;
|
|
177
177
|
lockedMultiSelections: {
|
|
178
178
|
[groupId: string]: true;
|
|
179
179
|
};
|
|
180
|
-
bindMode: import("@
|
|
180
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
181
181
|
};
|
|
182
182
|
captureUpdate: "IMMEDIATELY";
|
|
183
183
|
elements?: undefined;
|
|
184
184
|
app?: undefined;
|
|
185
185
|
};
|
|
186
|
-
predicate: (elements: readonly import("@
|
|
186
|
+
predicate: (elements: readonly import("@hellixit/element/types").HellixitboardElement[], appState: import("../types").AppState, appProps: import("../types").HellixitboardProps, app: import("../types").AppClassProperties) => boolean;
|
|
187
187
|
trackEvent: false;
|
|
188
188
|
} & {
|
|
189
189
|
keyTest?: undefined;
|