@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
|
@@ -7,7 +7,7 @@ export declare const actionToggleViewMode: {
|
|
|
7
7
|
category: "canvas";
|
|
8
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@
|
|
10
|
+
perform(elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
viewModeEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -19,22 +19,22 @@ export declare const actionToggleViewMode: {
|
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
errorMessage: React.ReactNode;
|
|
21
21
|
activeEmbeddable: {
|
|
22
|
-
element: import("@
|
|
22
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
23
23
|
state: "hover" | "active";
|
|
24
24
|
} | null;
|
|
25
|
-
newElement: import("@
|
|
26
|
-
resizingElement: import("@
|
|
27
|
-
multiElement: import("@
|
|
28
|
-
selectionElement: import("@
|
|
25
|
+
newElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
26
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
27
|
+
multiElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
28
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
bindingPreference: "enabled" | "disabled";
|
|
31
31
|
isMidpointSnappingEnabled: boolean;
|
|
32
|
-
startBoundElement: import("@
|
|
32
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
33
33
|
suggestedBinding: {
|
|
34
|
-
element: import("@
|
|
35
|
-
midPoint?: import("@
|
|
34
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
35
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
36
36
|
} | null;
|
|
37
|
-
frameToHighlight: import("@
|
|
37
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
38
38
|
frameRendering: {
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
name: boolean;
|
|
@@ -42,8 +42,8 @@ export declare const actionToggleViewMode: {
|
|
|
42
42
|
clip: boolean;
|
|
43
43
|
};
|
|
44
44
|
editingFrame: string | null;
|
|
45
|
-
elementsToHighlight: import("@
|
|
46
|
-
editingTextElement: import("@
|
|
45
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardElement>[] | null;
|
|
46
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
47
47
|
activeTool: {
|
|
48
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
49
|
locked: boolean;
|
|
@@ -61,18 +61,18 @@ export declare const actionToggleViewMode: {
|
|
|
61
61
|
exportScale: number;
|
|
62
62
|
currentItemStrokeColor: string;
|
|
63
63
|
currentItemBackgroundColor: string;
|
|
64
|
-
currentItemFillStyle: import("@
|
|
64
|
+
currentItemFillStyle: import("@hellixit/element/types").HellixitboardElement["fillStyle"];
|
|
65
65
|
currentItemStrokeWidth: number;
|
|
66
|
-
currentItemStrokeStyle: import("@
|
|
66
|
+
currentItemStrokeStyle: import("@hellixit/element/types").HellixitboardElement["strokeStyle"];
|
|
67
67
|
currentItemRoughness: number;
|
|
68
68
|
currentItemOpacity: number;
|
|
69
|
-
currentItemFontFamily: import("@
|
|
69
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
70
70
|
currentItemFontSize: number;
|
|
71
|
-
currentItemTextAlign: import("@
|
|
72
|
-
currentItemStartArrowhead: import("@
|
|
73
|
-
currentItemEndArrowhead: import("@
|
|
74
|
-
currentHoveredFontFamily: import("@
|
|
75
|
-
currentItemRoundness: import("@
|
|
71
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
72
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
73
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
74
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
75
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
76
76
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
77
77
|
viewBackgroundColor: string;
|
|
78
78
|
scrollX: number;
|
|
@@ -100,14 +100,14 @@ export declare const actionToggleViewMode: {
|
|
|
100
100
|
name: "settings";
|
|
101
101
|
} | {
|
|
102
102
|
name: "elementLinkSelector";
|
|
103
|
-
sourceElementId: import("@
|
|
103
|
+
sourceElementId: import("@hellixit/element/types").HellixitboardElement["id"];
|
|
104
104
|
} | {
|
|
105
105
|
name: "charts";
|
|
106
106
|
data: import("../charts").Spreadsheet;
|
|
107
107
|
rawText: string;
|
|
108
108
|
};
|
|
109
109
|
defaultSidebarDockedPreference: boolean;
|
|
110
|
-
lastPointerDownWith: import("@
|
|
110
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
111
111
|
selectedElementIds: Readonly<{
|
|
112
112
|
[id: string]: true;
|
|
113
113
|
}>;
|
|
@@ -125,14 +125,14 @@ export declare const actionToggleViewMode: {
|
|
|
125
125
|
duration?: number;
|
|
126
126
|
} | null;
|
|
127
127
|
zenModeEnabled: boolean;
|
|
128
|
-
theme: import("@
|
|
128
|
+
theme: import("@hellixit/element/types").Theme;
|
|
129
129
|
gridSize: number;
|
|
130
130
|
gridStep: number;
|
|
131
131
|
gridModeEnabled: boolean;
|
|
132
132
|
selectedGroupIds: {
|
|
133
133
|
[groupId: string]: boolean;
|
|
134
134
|
};
|
|
135
|
-
editingGroupId: import("@
|
|
135
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
136
136
|
width: number;
|
|
137
137
|
height: number;
|
|
138
138
|
offsetTop: number;
|
|
@@ -144,7 +144,7 @@ export declare const actionToggleViewMode: {
|
|
|
144
144
|
panels: number;
|
|
145
145
|
};
|
|
146
146
|
showHyperlinkPopup: false | "info" | "editor";
|
|
147
|
-
selectedLinearElement: import("@
|
|
147
|
+
selectedLinearElement: import("@hellixit/element").LinearElementEditor | null;
|
|
148
148
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
149
149
|
originSnapOffset: {
|
|
150
150
|
x: number;
|
|
@@ -154,21 +154,21 @@ export declare const actionToggleViewMode: {
|
|
|
154
154
|
userToFollow: import("../types").UserToFollow | null;
|
|
155
155
|
followedBy: Set<import("../types").SocketId>;
|
|
156
156
|
isCropping: boolean;
|
|
157
|
-
croppingElementId: import("@
|
|
157
|
+
croppingElementId: import("@hellixit/element/types").HellixitboardElement["id"] | null;
|
|
158
158
|
searchMatches: Readonly<{
|
|
159
|
-
focusedId: import("@
|
|
159
|
+
focusedId: import("@hellixit/element/types").HellixitboardElement["id"] | null;
|
|
160
160
|
matches: readonly import("../types").SearchMatch[];
|
|
161
161
|
}> | null;
|
|
162
162
|
activeLockedId: string | null;
|
|
163
163
|
lockedMultiSelections: {
|
|
164
164
|
[groupId: string]: true;
|
|
165
165
|
};
|
|
166
|
-
bindMode: import("@
|
|
166
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
167
167
|
};
|
|
168
168
|
captureUpdate: "EVENTUALLY";
|
|
169
169
|
};
|
|
170
170
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
171
|
-
predicate: (elements: readonly import("@
|
|
171
|
+
predicate: (elements: readonly import("@hellixit/element/types").HellixitboardElement[], appState: import("../types").AppState, appProps: import("../types").HellixitboardProps) => boolean;
|
|
172
172
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
173
173
|
} & {
|
|
174
174
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -7,7 +7,7 @@ export declare const actionToggleZenMode: {
|
|
|
7
7
|
category: "canvas";
|
|
8
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@
|
|
10
|
+
perform(elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
zenModeEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -19,22 +19,22 @@ export declare const actionToggleZenMode: {
|
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
errorMessage: React.ReactNode;
|
|
21
21
|
activeEmbeddable: {
|
|
22
|
-
element: import("@
|
|
22
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
23
23
|
state: "hover" | "active";
|
|
24
24
|
} | null;
|
|
25
|
-
newElement: import("@
|
|
26
|
-
resizingElement: import("@
|
|
27
|
-
multiElement: import("@
|
|
28
|
-
selectionElement: import("@
|
|
25
|
+
newElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
26
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
27
|
+
multiElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
28
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
bindingPreference: "enabled" | "disabled";
|
|
31
31
|
isMidpointSnappingEnabled: boolean;
|
|
32
|
-
startBoundElement: import("@
|
|
32
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
33
33
|
suggestedBinding: {
|
|
34
|
-
element: import("@
|
|
35
|
-
midPoint?: import("@
|
|
34
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
35
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
36
36
|
} | null;
|
|
37
|
-
frameToHighlight: import("@
|
|
37
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
38
38
|
frameRendering: {
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
name: boolean;
|
|
@@ -42,8 +42,8 @@ export declare const actionToggleZenMode: {
|
|
|
42
42
|
clip: boolean;
|
|
43
43
|
};
|
|
44
44
|
editingFrame: string | null;
|
|
45
|
-
elementsToHighlight: import("@
|
|
46
|
-
editingTextElement: import("@
|
|
45
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardElement>[] | null;
|
|
46
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
47
47
|
activeTool: {
|
|
48
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
49
|
locked: boolean;
|
|
@@ -61,18 +61,18 @@ export declare const actionToggleZenMode: {
|
|
|
61
61
|
exportScale: number;
|
|
62
62
|
currentItemStrokeColor: string;
|
|
63
63
|
currentItemBackgroundColor: string;
|
|
64
|
-
currentItemFillStyle: import("@
|
|
64
|
+
currentItemFillStyle: import("@hellixit/element/types").HellixitboardElement["fillStyle"];
|
|
65
65
|
currentItemStrokeWidth: number;
|
|
66
|
-
currentItemStrokeStyle: import("@
|
|
66
|
+
currentItemStrokeStyle: import("@hellixit/element/types").HellixitboardElement["strokeStyle"];
|
|
67
67
|
currentItemRoughness: number;
|
|
68
68
|
currentItemOpacity: number;
|
|
69
|
-
currentItemFontFamily: import("@
|
|
69
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
70
70
|
currentItemFontSize: number;
|
|
71
|
-
currentItemTextAlign: import("@
|
|
72
|
-
currentItemStartArrowhead: import("@
|
|
73
|
-
currentItemEndArrowhead: import("@
|
|
74
|
-
currentHoveredFontFamily: import("@
|
|
75
|
-
currentItemRoundness: import("@
|
|
71
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
72
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
73
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
74
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
75
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
76
76
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
77
77
|
viewBackgroundColor: string;
|
|
78
78
|
scrollX: number;
|
|
@@ -100,14 +100,14 @@ export declare const actionToggleZenMode: {
|
|
|
100
100
|
name: "settings";
|
|
101
101
|
} | {
|
|
102
102
|
name: "elementLinkSelector";
|
|
103
|
-
sourceElementId: import("@
|
|
103
|
+
sourceElementId: import("@hellixit/element/types").HellixitboardElement["id"];
|
|
104
104
|
} | {
|
|
105
105
|
name: "charts";
|
|
106
106
|
data: import("../charts").Spreadsheet;
|
|
107
107
|
rawText: string;
|
|
108
108
|
};
|
|
109
109
|
defaultSidebarDockedPreference: boolean;
|
|
110
|
-
lastPointerDownWith: import("@
|
|
110
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
111
111
|
selectedElementIds: Readonly<{
|
|
112
112
|
[id: string]: true;
|
|
113
113
|
}>;
|
|
@@ -124,7 +124,7 @@ export declare const actionToggleZenMode: {
|
|
|
124
124
|
closable?: boolean;
|
|
125
125
|
duration?: number;
|
|
126
126
|
} | null;
|
|
127
|
-
theme: import("@
|
|
127
|
+
theme: import("@hellixit/element/types").Theme;
|
|
128
128
|
gridSize: number;
|
|
129
129
|
gridStep: number;
|
|
130
130
|
gridModeEnabled: boolean;
|
|
@@ -132,7 +132,7 @@ export declare const actionToggleZenMode: {
|
|
|
132
132
|
selectedGroupIds: {
|
|
133
133
|
[groupId: string]: boolean;
|
|
134
134
|
};
|
|
135
|
-
editingGroupId: import("@
|
|
135
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
136
136
|
width: number;
|
|
137
137
|
height: number;
|
|
138
138
|
offsetTop: number;
|
|
@@ -144,7 +144,7 @@ export declare const actionToggleZenMode: {
|
|
|
144
144
|
panels: number;
|
|
145
145
|
};
|
|
146
146
|
showHyperlinkPopup: false | "info" | "editor";
|
|
147
|
-
selectedLinearElement: import("@
|
|
147
|
+
selectedLinearElement: import("@hellixit/element").LinearElementEditor | null;
|
|
148
148
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
149
149
|
originSnapOffset: {
|
|
150
150
|
x: number;
|
|
@@ -154,21 +154,21 @@ export declare const actionToggleZenMode: {
|
|
|
154
154
|
userToFollow: import("../types").UserToFollow | null;
|
|
155
155
|
followedBy: Set<import("../types").SocketId>;
|
|
156
156
|
isCropping: boolean;
|
|
157
|
-
croppingElementId: import("@
|
|
157
|
+
croppingElementId: import("@hellixit/element/types").HellixitboardElement["id"] | null;
|
|
158
158
|
searchMatches: Readonly<{
|
|
159
|
-
focusedId: import("@
|
|
159
|
+
focusedId: import("@hellixit/element/types").HellixitboardElement["id"] | null;
|
|
160
160
|
matches: readonly import("../types").SearchMatch[];
|
|
161
161
|
}> | null;
|
|
162
162
|
activeLockedId: string | null;
|
|
163
163
|
lockedMultiSelections: {
|
|
164
164
|
[groupId: string]: true;
|
|
165
165
|
};
|
|
166
|
-
bindMode: import("@
|
|
166
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
167
167
|
};
|
|
168
168
|
captureUpdate: "EVENTUALLY";
|
|
169
169
|
};
|
|
170
170
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
171
|
-
predicate: (elements: readonly import("@
|
|
171
|
+
predicate: (elements: readonly import("@hellixit/element/types").HellixitboardElement[], appState: import("../types").AppState, appProps: import("../types").HellixitboardProps, app: import("../types").AppClassProperties) => boolean;
|
|
172
172
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
173
173
|
} & {
|
|
174
174
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -6,8 +6,8 @@ export declare const actionSendBackward: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@
|
|
10
|
-
elements: readonly import("@
|
|
9
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
10
|
+
elements: readonly import("@hellixit/element/types").HellixitboardElement[];
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
@@ -25,8 +25,8 @@ export declare const actionBringForward: {
|
|
|
25
25
|
trackEvent: {
|
|
26
26
|
category: "element";
|
|
27
27
|
};
|
|
28
|
-
perform: (elements: readonly import("@
|
|
29
|
-
elements: readonly import("@
|
|
28
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
29
|
+
elements: readonly import("@hellixit/element/types").HellixitboardElement[];
|
|
30
30
|
appState: Readonly<import("../types").AppState>;
|
|
31
31
|
captureUpdate: "IMMEDIATELY";
|
|
32
32
|
};
|
|
@@ -44,8 +44,8 @@ export declare const actionSendToBack: {
|
|
|
44
44
|
trackEvent: {
|
|
45
45
|
category: "element";
|
|
46
46
|
};
|
|
47
|
-
perform: (elements: readonly import("@
|
|
48
|
-
elements: readonly import("@
|
|
47
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>) => {
|
|
48
|
+
elements: readonly import("@hellixit/element/types").HellixitboardElement[] | import("@hellixit/element/types").HellixitboardElement[];
|
|
49
49
|
appState: Readonly<import("../types").AppState>;
|
|
50
50
|
captureUpdate: "IMMEDIATELY";
|
|
51
51
|
};
|
|
@@ -62,8 +62,8 @@ export declare const actionBringToFront: {
|
|
|
62
62
|
trackEvent: {
|
|
63
63
|
category: "element";
|
|
64
64
|
};
|
|
65
|
-
perform: (elements: readonly import("@
|
|
66
|
-
elements: readonly import("@
|
|
65
|
+
perform: (elements: readonly import("@hellixit/element/types").OrderedHellixitboardElement[], appState: Readonly<import("../types").AppState>) => {
|
|
66
|
+
elements: readonly import("@hellixit/element/types").HellixitboardElement[] | import("@hellixit/element/types").HellixitboardElement[];
|
|
67
67
|
appState: Readonly<import("../types").AppState>;
|
|
68
68
|
captureUpdate: "IMMEDIATELY";
|
|
69
69
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { OrderedHellixitboardElement } from "@
|
|
2
|
+
import type { OrderedHellixitboardElement } from "@hellixit/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
import type { Action, UpdaterFn, ActionName, ActionResult, PanelComponentProps, ActionSource } from "./types";
|
|
5
5
|
export declare class ActionManager {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SubtypeOf } from "@
|
|
1
|
+
import type { SubtypeOf } from "@hellixit/common/utility-types";
|
|
2
2
|
import type { ActionName } from "./types";
|
|
3
3
|
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "clearCanvas" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "addToLibrary" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts" | "wrapSelectionInFrame"> | "saveScene" | "imageExport" | "commandPalette" | "searchMenu" | "toolLock";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName, idx?: number) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HellixitboardElement, OrderedHellixitboardElement } from "@
|
|
2
|
-
import type { CaptureUpdateActionType } from "@
|
|
1
|
+
import type { HellixitboardElement, OrderedHellixitboardElement } from "@hellixit/element/types";
|
|
2
|
+
import type { CaptureUpdateActionType } from "@hellixit/element";
|
|
3
3
|
import type { AppClassProperties, AppState, HellixitboardProps, BinaryFiles, UIAppState } from "../types";
|
|
4
4
|
import type React from "react";
|
|
5
5
|
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api" | "commandPalette";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LaserPointer } from "@
|
|
2
|
-
import type { LaserPointerOptions } from "@
|
|
1
|
+
import { LaserPointer } from "@hellixit/laser-pointer";
|
|
2
|
+
import type { LaserPointerOptions } from "@hellixit/laser-pointer";
|
|
3
3
|
import type { AnimationFrameHandler } from "./animation-frame-handler";
|
|
4
4
|
import type App from "./components/App";
|
|
5
5
|
export interface Trail {
|
|
@@ -2,7 +2,7 @@ import type { AppState, NormalizedZoomValue } from "./types";
|
|
|
2
2
|
export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
3
3
|
export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
|
|
4
4
|
viewBackgroundColor?: string | undefined;
|
|
5
|
-
theme?: import("@
|
|
5
|
+
theme?: import("@hellixit/element/types").Theme | undefined;
|
|
6
6
|
name?: string | null | undefined;
|
|
7
7
|
zoom?: Readonly<{
|
|
8
8
|
value: NormalizedZoomValue;
|
|
@@ -21,14 +21,14 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
21
21
|
selectedGroupIds?: {
|
|
22
22
|
[groupId: string]: boolean;
|
|
23
23
|
} | undefined;
|
|
24
|
-
selectedLinearElement?: import("@
|
|
24
|
+
selectedLinearElement?: import("@hellixit/element").LinearElementEditor | null | undefined;
|
|
25
25
|
isBindingEnabled?: boolean | undefined;
|
|
26
26
|
isMidpointSnappingEnabled?: boolean | undefined;
|
|
27
27
|
zenModeEnabled?: boolean | undefined;
|
|
28
28
|
shouldCacheIgnoreZoom?: boolean | undefined;
|
|
29
29
|
exportScale?: number | undefined;
|
|
30
30
|
currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
|
|
31
|
-
bindMode?: import("@
|
|
31
|
+
bindMode?: import("@hellixit/element/types").BindMode | undefined;
|
|
32
32
|
gridSize?: number | undefined;
|
|
33
33
|
showWelcomeScreen?: boolean | undefined;
|
|
34
34
|
bindingPreference?: "enabled" | "disabled" | undefined;
|
|
@@ -43,17 +43,17 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
43
43
|
exportWithDarkMode?: boolean | undefined;
|
|
44
44
|
currentItemStrokeColor?: string | undefined;
|
|
45
45
|
currentItemBackgroundColor?: string | undefined;
|
|
46
|
-
currentItemFillStyle?: import("@
|
|
46
|
+
currentItemFillStyle?: import("@hellixit/element/types").FillStyle | undefined;
|
|
47
47
|
currentItemStrokeWidth?: number | undefined;
|
|
48
|
-
currentItemStrokeStyle?: import("@
|
|
48
|
+
currentItemStrokeStyle?: import("@hellixit/element/types").StrokeStyle | undefined;
|
|
49
49
|
currentItemRoughness?: number | undefined;
|
|
50
50
|
currentItemOpacity?: number | undefined;
|
|
51
51
|
currentItemFontFamily?: number | undefined;
|
|
52
52
|
currentItemFontSize?: number | undefined;
|
|
53
53
|
currentItemTextAlign?: string | undefined;
|
|
54
|
-
currentItemStartArrowhead?: import("@
|
|
55
|
-
currentItemEndArrowhead?: import("@
|
|
56
|
-
currentItemRoundness?: import("@
|
|
54
|
+
currentItemStartArrowhead?: import("@hellixit/element/types").Arrowhead | null | undefined;
|
|
55
|
+
currentItemEndArrowhead?: import("@hellixit/element/types").Arrowhead | null | undefined;
|
|
56
|
+
currentItemRoundness?: import("@hellixit/element/types").StrokeRoundness | undefined;
|
|
57
57
|
cursorButton?: "up" | "down" | undefined;
|
|
58
58
|
scrolledOutside?: boolean | undefined;
|
|
59
59
|
openMenu?: "canvas" | null | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
62
62
|
tab?: import("./types").SidebarTabName;
|
|
63
63
|
} | null | undefined;
|
|
64
64
|
defaultSidebarDockedPreference?: boolean | undefined;
|
|
65
|
-
lastPointerDownWith?: import("@
|
|
65
|
+
lastPointerDownWith?: import("@hellixit/element/types").PointerType | undefined;
|
|
66
66
|
previousSelectedElementIds?: {
|
|
67
67
|
[id: string]: true;
|
|
68
68
|
} | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Radians } from "@
|
|
1
|
+
import type { Radians } from "@hellixit/math";
|
|
2
2
|
export declare const CARTESIAN_BASE_SLOT_WIDTH = 44;
|
|
3
3
|
export declare const CARTESIAN_BAR_SLOT_EXTRA_PER_SERIES = 22;
|
|
4
4
|
export declare const CARTESIAN_BAR_SLOT_EXTRA_MAX = 66;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getFontString } from "@
|
|
2
|
-
import type { ChartType } from "@
|
|
3
|
-
import type { NonDeletedHellixitboardElement } from "@
|
|
1
|
+
import { getFontString } from "@hellixit/common";
|
|
2
|
+
import type { ChartType } from "@hellixit/element/types";
|
|
3
|
+
import type { NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
4
4
|
import { type CartesianChartLayout, type CartesianChartType } from "./charts.constants";
|
|
5
5
|
import type { ChartElements, Spreadsheet, SpreadsheetSeries } from "./charts.types";
|
|
6
6
|
export declare const isSpreadsheetValidForChartType: (spreadsheet: Spreadsheet | null, chartType: ChartType) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedHellixitboardElement } from "@
|
|
1
|
+
import type { NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
2
2
|
export type ChartElements = readonly NonDeletedHellixitboardElement[];
|
|
3
3
|
export interface Spreadsheet {
|
|
4
4
|
title: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartType } from "@
|
|
1
|
+
import type { ChartType } from "@hellixit/element/types";
|
|
2
2
|
import { tryParseCells, tryParseNumber, tryParseSpreadsheet } from "./charts.parse";
|
|
3
3
|
import type { ChartElements, Spreadsheet } from "./charts.types";
|
|
4
4
|
export { type ParseSpreadsheetResult, type Spreadsheet, type SpreadsheetSeries, type ChartElements, } from "./charts.types";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ALLOWED_PASTE_MIME_TYPES } from "@
|
|
2
|
-
import type { ValueOf } from "@
|
|
3
|
-
import type { IMAGE_MIME_TYPES, STRING_MIME_TYPES } from "@
|
|
4
|
-
import type { HellixitboardElement, NonDeletedHellixitboardElement } from "@
|
|
1
|
+
import { ALLOWED_PASTE_MIME_TYPES } from "@hellixit/common";
|
|
2
|
+
import type { ValueOf } from "@hellixit/common/utility-types";
|
|
3
|
+
import type { IMAGE_MIME_TYPES, STRING_MIME_TYPES } from "@hellixit/common";
|
|
4
|
+
import type { HellixitboardElement, NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
5
5
|
import type { BinaryFiles } from "./types";
|
|
6
6
|
export type PastedMixedContent = {
|
|
7
7
|
type: "text" | "imageUrl";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HellixitboardElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "@
|
|
1
|
+
import type { HellixitboardElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "@hellixit/element/types";
|
|
2
2
|
import "./Actions.scss";
|
|
3
3
|
import type { AppClassProperties, AppProps, UIAppState, Zoom, AppState } from "../types";
|
|
4
4
|
import type { ActionManager } from "../actions/manager";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AppEventBus, type EXPORT_IMAGE_TYPES, Emitter, type EditorInterface, type StylesPanelMode } from "@
|
|
3
|
-
import { LinearElementEditor, FlowChartCreator, Scene, Store, type ElementUpdate, StoreDelta, type ApplyToOptions } from "@
|
|
4
|
-
import type { HellixitboardElement, NonDeleted, NonDeletedHellixitboardElement, HellixitboardFrameLikeElement, HellixitboardIframeElement, HellixitboardEmbeddableElement, Ordered, SceneElementsMap } from "@
|
|
5
|
-
import type { Mutable } from "@
|
|
2
|
+
import { AppEventBus, type EXPORT_IMAGE_TYPES, Emitter, type EditorInterface, type StylesPanelMode } from "@hellixit/common";
|
|
3
|
+
import { LinearElementEditor, FlowChartCreator, Scene, Store, type ElementUpdate, StoreDelta, type ApplyToOptions } from "@hellixit/element";
|
|
4
|
+
import type { HellixitboardElement, NonDeleted, NonDeletedHellixitboardElement, HellixitboardFrameLikeElement, HellixitboardIframeElement, HellixitboardEmbeddableElement, Ordered, SceneElementsMap } from "@hellixit/element/types";
|
|
5
|
+
import type { Mutable } from "@hellixit/common/utility-types";
|
|
6
6
|
import { ActionManager } from "../actions/manager";
|
|
7
7
|
import { AnimationFrameHandler } from "../animation-frame-handler";
|
|
8
8
|
import { History } from "../history";
|
|
@@ -154,7 +154,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
154
154
|
};
|
|
155
155
|
originalElements: Map<string, NonDeleted<HellixitboardElement>>;
|
|
156
156
|
resize: {
|
|
157
|
-
handleType: import("@
|
|
157
|
+
handleType: import("@hellixit/element").MaybeTransformHandleType;
|
|
158
158
|
isResizing: boolean;
|
|
159
159
|
offset: {
|
|
160
160
|
x: number;
|
|
@@ -187,7 +187,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
187
187
|
blockDragging: boolean;
|
|
188
188
|
};
|
|
189
189
|
eventListeners: {
|
|
190
|
-
onMove: null | ReturnType<typeof import("@
|
|
190
|
+
onMove: null | ReturnType<typeof import("@hellixit/common").throttleRAF>;
|
|
191
191
|
onUp: null | ((event: PointerEvent) => void);
|
|
192
192
|
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
193
193
|
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
@@ -216,7 +216,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
216
216
|
};
|
|
217
217
|
originalElements: Map<string, NonDeleted<HellixitboardElement>>;
|
|
218
218
|
resize: {
|
|
219
|
-
handleType: import("@
|
|
219
|
+
handleType: import("@hellixit/element").MaybeTransformHandleType;
|
|
220
220
|
isResizing: boolean;
|
|
221
221
|
offset: {
|
|
222
222
|
x: number;
|
|
@@ -249,7 +249,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
249
249
|
blockDragging: boolean;
|
|
250
250
|
};
|
|
251
251
|
eventListeners: {
|
|
252
|
-
onMove: null | ReturnType<typeof import("@
|
|
252
|
+
onMove: null | ReturnType<typeof import("@hellixit/common").throttleRAF>;
|
|
253
253
|
onUp: null | ((event: PointerEvent) => void);
|
|
254
254
|
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
255
255
|
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
@@ -294,7 +294,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
294
294
|
private toggleOverscrollBehavior;
|
|
295
295
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
296
296
|
focusContainer: AppClassProperties["focusContainer"];
|
|
297
|
-
getSceneElementsIncludingDeleted: () => readonly import("@
|
|
297
|
+
getSceneElementsIncludingDeleted: () => readonly import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
298
298
|
getSceneElementsMapIncludingDeleted: () => SceneElementsMap;
|
|
299
299
|
getSceneElements: () => readonly Ordered<NonDeletedHellixitboardElement>[];
|
|
300
300
|
onInsertElements: (elements: readonly HellixitboardElement[]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ColorTuple, ColorPaletteCustom } from "@
|
|
2
|
-
import type { HellixitboardElement } from "@
|
|
1
|
+
import type { ColorTuple, ColorPaletteCustom } from "@hellixit/common";
|
|
2
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
3
3
|
import "./ColorPicker.scss";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
import type { AppState } from "../../types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { HellixitboardElement } from "@
|
|
3
|
-
import type { ColorPaletteCustom } from "@
|
|
2
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
3
|
+
import type { ColorPaletteCustom } from "@hellixit/common";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
interface PickerProps {
|
|
6
6
|
color: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HellixitboardElement } from "@
|
|
2
|
-
import type { ColorPickerColor, ColorPaletteCustom } from "@
|
|
1
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
2
|
+
import type { ColorPickerColor, ColorPaletteCustom } from "@hellixit/common";
|
|
3
3
|
export declare const getColorNameAndShadeFromColor: ({ palette, color, }: {
|
|
4
4
|
palette: ColorPaletteCustom;
|
|
5
5
|
color: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorPaletteCustom } from "@
|
|
1
|
+
import type { ColorPaletteCustom } from "@hellixit/common";
|
|
2
2
|
import type { ActiveColorPickerSectionAtomType } from "./colorPickerUtils";
|
|
3
3
|
interface ColorPickerKeyNavHandlerProps {
|
|
4
4
|
event: React.KeyboardEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConvertibleTypes, HellixitboardElement, HellixitboardTextContainer, HellixitboardTextElementWithContainer } from "@
|
|
2
|
-
import type { Scene } from "@
|
|
1
|
+
import type { ConvertibleTypes, HellixitboardElement, HellixitboardTextContainer, HellixitboardTextElementWithContainer } from "@hellixit/element/types";
|
|
2
|
+
import type { Scene } from "@hellixit/element";
|
|
3
3
|
import "./ConvertElementTypePopup.scss";
|
|
4
4
|
import type App from "./App";
|
|
5
5
|
export declare const convertElementTypePopupAtom: import("jotai/vanilla/atom").PrimitiveAtom<{
|