@hellixit/hellixitboard 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -53
- 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,6 +1,6 @@
|
|
|
1
|
-
import { IMAGE_MIME_TYPES, MIME_TYPES } from "@
|
|
2
|
-
import type { ValueOf } from "@
|
|
3
|
-
import type { HellixitboardElement, FileId } from "@
|
|
1
|
+
import { IMAGE_MIME_TYPES, MIME_TYPES } from "@hellixit/common";
|
|
2
|
+
import type { ValueOf } from "@hellixit/common/utility-types";
|
|
3
|
+
import type { HellixitboardElement, FileId } from "@hellixit/element/types";
|
|
4
4
|
import type { AppState, DataURL, LibraryItem } from "../types";
|
|
5
5
|
import type { ImportedLibraryData } from "./types";
|
|
6
6
|
export declare const getMimeType: (blob: Blob | string) => string;
|
|
@@ -18,10 +18,10 @@ localAppState: AppState | null, localElements: readonly HellixitboardElement[] |
|
|
|
18
18
|
fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
19
19
|
type: "application/vnd.excalidraw+json";
|
|
20
20
|
data: {
|
|
21
|
-
elements: import("@
|
|
21
|
+
elements: import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
22
22
|
appState: {
|
|
23
23
|
viewBackgroundColor: string;
|
|
24
|
-
theme: import("@
|
|
24
|
+
theme: import("@hellixit/element/types").Theme;
|
|
25
25
|
frameRendering: {
|
|
26
26
|
enabled: boolean;
|
|
27
27
|
name: boolean;
|
|
@@ -50,39 +50,39 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
50
50
|
data: import("../charts").Spreadsheet;
|
|
51
51
|
rawText: string;
|
|
52
52
|
};
|
|
53
|
-
editingGroupId: import("@
|
|
53
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
54
54
|
selectedElementIds: Readonly<{
|
|
55
55
|
[id: string]: true;
|
|
56
56
|
}>;
|
|
57
|
-
frameToHighlight: import("@
|
|
57
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
58
58
|
activeTool: {
|
|
59
59
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
60
60
|
locked: boolean;
|
|
61
61
|
fromSelection: boolean;
|
|
62
62
|
} & import("../types").ActiveTool;
|
|
63
63
|
activeEmbeddable: {
|
|
64
|
-
element: import("@
|
|
64
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
65
65
|
state: "hover" | "active";
|
|
66
66
|
} | null;
|
|
67
|
-
selectionElement: import("@
|
|
67
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
68
68
|
selectedGroupIds: {
|
|
69
69
|
[groupId: string]: boolean;
|
|
70
70
|
};
|
|
71
|
-
selectedLinearElement: import("@
|
|
72
|
-
multiElement: import("@
|
|
73
|
-
newElement: import("@
|
|
71
|
+
selectedLinearElement: import("@hellixit/element").LinearElementEditor | null;
|
|
72
|
+
multiElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
73
|
+
newElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
74
74
|
isBindingEnabled: boolean;
|
|
75
75
|
isMidpointSnappingEnabled: boolean;
|
|
76
76
|
suggestedBinding: {
|
|
77
|
-
element: import("@
|
|
78
|
-
midPoint?: import("@
|
|
77
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
78
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
79
79
|
} | null;
|
|
80
80
|
isRotating: boolean;
|
|
81
|
-
elementsToHighlight: import("@
|
|
81
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<HellixitboardElement>[] | null;
|
|
82
82
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
83
83
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
84
84
|
zenModeEnabled: boolean;
|
|
85
|
-
editingTextElement: import("@
|
|
85
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
86
86
|
isCropping: boolean;
|
|
87
87
|
croppingElementId: HellixitboardElement["id"] | null;
|
|
88
88
|
searchMatches: Readonly<{
|
|
@@ -96,7 +96,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
96
96
|
shouldCacheIgnoreZoom: boolean;
|
|
97
97
|
exportScale: number;
|
|
98
98
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
99
|
-
bindMode: import("@
|
|
99
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
100
100
|
gridSize: number;
|
|
101
101
|
contextMenu: {
|
|
102
102
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -106,9 +106,9 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
106
106
|
showWelcomeScreen: boolean;
|
|
107
107
|
isLoading: boolean;
|
|
108
108
|
errorMessage: React.ReactNode;
|
|
109
|
-
resizingElement: import("@
|
|
109
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
110
110
|
bindingPreference: "enabled" | "disabled";
|
|
111
|
-
startBoundElement: import("@
|
|
111
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
112
112
|
editingFrame: string | null;
|
|
113
113
|
preferredSelectionTool: {
|
|
114
114
|
type: "selection" | "lasso";
|
|
@@ -126,13 +126,13 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
126
126
|
currentItemStrokeStyle: HellixitboardElement["strokeStyle"];
|
|
127
127
|
currentItemRoughness: number;
|
|
128
128
|
currentItemOpacity: number;
|
|
129
|
-
currentItemFontFamily: import("@
|
|
129
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
130
130
|
currentItemFontSize: number;
|
|
131
|
-
currentItemTextAlign: import("@
|
|
132
|
-
currentItemStartArrowhead: import("@
|
|
133
|
-
currentItemEndArrowhead: import("@
|
|
134
|
-
currentHoveredFontFamily: import("@
|
|
135
|
-
currentItemRoundness: import("@
|
|
131
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
132
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
133
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
134
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
135
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
136
136
|
cursorButton: "up" | "down";
|
|
137
137
|
scrolledOutside: boolean;
|
|
138
138
|
isResizing: boolean;
|
|
@@ -143,7 +143,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
143
143
|
tab?: import("../types").SidebarTabName;
|
|
144
144
|
} | null;
|
|
145
145
|
defaultSidebarDockedPreference: boolean;
|
|
146
|
-
lastPointerDownWith: import("@
|
|
146
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
147
147
|
previousSelectedElementIds: {
|
|
148
148
|
[id: string]: true;
|
|
149
149
|
};
|
|
@@ -183,10 +183,10 @@ export declare const loadFromBlob: (blob: Blob,
|
|
|
183
183
|
localAppState: AppState | null, localElements: readonly HellixitboardElement[] | null,
|
|
184
184
|
/** FileSystemFileHandle. Defaults to `blob.handle` if defined, otherwise null. */
|
|
185
185
|
fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
186
|
-
elements: import("@
|
|
186
|
+
elements: import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
187
187
|
appState: {
|
|
188
188
|
viewBackgroundColor: string;
|
|
189
|
-
theme: import("@
|
|
189
|
+
theme: import("@hellixit/element/types").Theme;
|
|
190
190
|
frameRendering: {
|
|
191
191
|
enabled: boolean;
|
|
192
192
|
name: boolean;
|
|
@@ -215,39 +215,39 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
215
215
|
data: import("../charts").Spreadsheet;
|
|
216
216
|
rawText: string;
|
|
217
217
|
};
|
|
218
|
-
editingGroupId: import("@
|
|
218
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
219
219
|
selectedElementIds: Readonly<{
|
|
220
220
|
[id: string]: true;
|
|
221
221
|
}>;
|
|
222
|
-
frameToHighlight: import("@
|
|
222
|
+
frameToHighlight: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
223
223
|
activeTool: {
|
|
224
224
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
225
225
|
locked: boolean;
|
|
226
226
|
fromSelection: boolean;
|
|
227
227
|
} & import("../types").ActiveTool;
|
|
228
228
|
activeEmbeddable: {
|
|
229
|
-
element: import("@
|
|
229
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
230
230
|
state: "hover" | "active";
|
|
231
231
|
} | null;
|
|
232
|
-
selectionElement: import("@
|
|
232
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
233
233
|
selectedGroupIds: {
|
|
234
234
|
[groupId: string]: boolean;
|
|
235
235
|
};
|
|
236
|
-
selectedLinearElement: import("@
|
|
237
|
-
multiElement: import("@
|
|
238
|
-
newElement: import("@
|
|
236
|
+
selectedLinearElement: import("@hellixit/element").LinearElementEditor | null;
|
|
237
|
+
multiElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
238
|
+
newElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
239
239
|
isBindingEnabled: boolean;
|
|
240
240
|
isMidpointSnappingEnabled: boolean;
|
|
241
241
|
suggestedBinding: {
|
|
242
|
-
element: import("@
|
|
243
|
-
midPoint?: import("@
|
|
242
|
+
element: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
243
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
244
244
|
} | null;
|
|
245
245
|
isRotating: boolean;
|
|
246
|
-
elementsToHighlight: import("@
|
|
246
|
+
elementsToHighlight: import("@hellixit/element/types").NonDeleted<HellixitboardElement>[] | null;
|
|
247
247
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
248
248
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
249
249
|
zenModeEnabled: boolean;
|
|
250
|
-
editingTextElement: import("@
|
|
250
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
251
251
|
isCropping: boolean;
|
|
252
252
|
croppingElementId: HellixitboardElement["id"] | null;
|
|
253
253
|
searchMatches: Readonly<{
|
|
@@ -261,7 +261,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
261
261
|
shouldCacheIgnoreZoom: boolean;
|
|
262
262
|
exportScale: number;
|
|
263
263
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
264
|
-
bindMode: import("@
|
|
264
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
265
265
|
gridSize: number;
|
|
266
266
|
contextMenu: {
|
|
267
267
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -271,9 +271,9 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
271
271
|
showWelcomeScreen: boolean;
|
|
272
272
|
isLoading: boolean;
|
|
273
273
|
errorMessage: React.ReactNode;
|
|
274
|
-
resizingElement: import("@
|
|
274
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
275
275
|
bindingPreference: "enabled" | "disabled";
|
|
276
|
-
startBoundElement: import("@
|
|
276
|
+
startBoundElement: import("@hellixit/element/types").NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
277
277
|
editingFrame: string | null;
|
|
278
278
|
preferredSelectionTool: {
|
|
279
279
|
type: "selection" | "lasso";
|
|
@@ -291,13 +291,13 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
291
291
|
currentItemStrokeStyle: HellixitboardElement["strokeStyle"];
|
|
292
292
|
currentItemRoughness: number;
|
|
293
293
|
currentItemOpacity: number;
|
|
294
|
-
currentItemFontFamily: import("@
|
|
294
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
295
295
|
currentItemFontSize: number;
|
|
296
|
-
currentItemTextAlign: import("@
|
|
297
|
-
currentItemStartArrowhead: import("@
|
|
298
|
-
currentItemEndArrowhead: import("@
|
|
299
|
-
currentHoveredFontFamily: import("@
|
|
300
|
-
currentItemRoundness: import("@
|
|
296
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
297
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
298
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
299
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
300
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
301
301
|
cursorButton: "up" | "down";
|
|
302
302
|
scrolledOutside: boolean;
|
|
303
303
|
isResizing: boolean;
|
|
@@ -308,7 +308,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
308
308
|
tab?: import("../types").SidebarTabName;
|
|
309
309
|
} | null;
|
|
310
310
|
defaultSidebarDockedPreference: boolean;
|
|
311
|
-
lastPointerDownWith: import("@
|
|
311
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
312
312
|
previousSelectedElementIds: {
|
|
313
313
|
[id: string]: true;
|
|
314
314
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { supported as nativeFileSystemSupported } from "browser-fs-access";
|
|
2
|
-
import { MIME_TYPES } from "@
|
|
2
|
+
import { MIME_TYPES } from "@hellixit/common";
|
|
3
3
|
type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">;
|
|
4
4
|
export declare const fileOpen: <M extends boolean | undefined = false>(opts: {
|
|
5
5
|
extensions?: FILE_EXTENSION[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HellixitboardElement, HellixitboardFrameLikeElement, NonDeletedHellixitboardElement } from "@
|
|
1
|
+
import type { HellixitboardElement, HellixitboardFrameLikeElement, NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
2
2
|
import type { ExportType } from "../scene/types";
|
|
3
3
|
import type { AppState, BinaryFiles } from "../types";
|
|
4
4
|
export { loadFromBlob } from "./blob";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HellixitboardElement, NonDeleted } from "@
|
|
2
|
-
import type { MaybePromise } from "@
|
|
1
|
+
import type { HellixitboardElement, NonDeleted } from "@hellixit/element/types";
|
|
2
|
+
import type { MaybePromise } from "@hellixit/common/utility-types";
|
|
3
3
|
import type { AppState, BinaryFiles, LibraryItems } from "../types";
|
|
4
4
|
import type { ImportedDataState, ImportedLibraryData } from "./types";
|
|
5
5
|
export type JSONExportData = {
|
|
@@ -16,10 +16,10 @@ export declare const saveAsJSON: ({ data, filename, fileHandle, }: {
|
|
|
16
16
|
fileHandle: FileSystemFileHandle | null;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const loadFromJSON: (localAppState: AppState, localElements: readonly HellixitboardElement[] | null) => Promise<{
|
|
19
|
-
elements: import("@
|
|
19
|
+
elements: import("@hellixit/element/types").OrderedHellixitboardElement[];
|
|
20
20
|
appState: {
|
|
21
21
|
viewBackgroundColor: string;
|
|
22
|
-
theme: import("@
|
|
22
|
+
theme: import("@hellixit/element/types").Theme;
|
|
23
23
|
frameRendering: {
|
|
24
24
|
enabled: boolean;
|
|
25
25
|
name: boolean;
|
|
@@ -48,39 +48,39 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
48
48
|
data: import("../charts").Spreadsheet;
|
|
49
49
|
rawText: string;
|
|
50
50
|
};
|
|
51
|
-
editingGroupId: import("@
|
|
51
|
+
editingGroupId: import("@hellixit/element/types").GroupId | null;
|
|
52
52
|
selectedElementIds: Readonly<{
|
|
53
53
|
[id: string]: true;
|
|
54
54
|
}>;
|
|
55
|
-
frameToHighlight: NonDeleted<import("@
|
|
55
|
+
frameToHighlight: NonDeleted<import("@hellixit/element/types").HellixitboardFrameLikeElement> | null;
|
|
56
56
|
activeTool: {
|
|
57
57
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
58
58
|
locked: boolean;
|
|
59
59
|
fromSelection: boolean;
|
|
60
60
|
} & import("../types").ActiveTool;
|
|
61
61
|
activeEmbeddable: {
|
|
62
|
-
element: import("@
|
|
62
|
+
element: import("@hellixit/element/types").NonDeletedHellixitboardElement;
|
|
63
63
|
state: "hover" | "active";
|
|
64
64
|
} | null;
|
|
65
|
-
selectionElement: import("@
|
|
65
|
+
selectionElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
66
66
|
selectedGroupIds: {
|
|
67
67
|
[groupId: string]: boolean;
|
|
68
68
|
};
|
|
69
|
-
selectedLinearElement: import("@
|
|
70
|
-
multiElement: NonDeleted<import("@
|
|
71
|
-
newElement: NonDeleted<import("@
|
|
69
|
+
selectedLinearElement: import("@hellixit/element").LinearElementEditor | null;
|
|
70
|
+
multiElement: NonDeleted<import("@hellixit/element/types").HellixitboardLinearElement> | null;
|
|
71
|
+
newElement: NonDeleted<import("@hellixit/element/types").HellixitboardNonSelectionElement> | null;
|
|
72
72
|
isBindingEnabled: boolean;
|
|
73
73
|
isMidpointSnappingEnabled: boolean;
|
|
74
74
|
suggestedBinding: {
|
|
75
|
-
element: NonDeleted<import("@
|
|
76
|
-
midPoint?: import("@
|
|
75
|
+
element: NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement>;
|
|
76
|
+
midPoint?: import("@hellixit/math").GlobalPoint;
|
|
77
77
|
} | null;
|
|
78
78
|
isRotating: boolean;
|
|
79
79
|
elementsToHighlight: NonDeleted<HellixitboardElement>[] | null;
|
|
80
80
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
81
81
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
82
82
|
zenModeEnabled: boolean;
|
|
83
|
-
editingTextElement: import("@
|
|
83
|
+
editingTextElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
84
84
|
isCropping: boolean;
|
|
85
85
|
croppingElementId: HellixitboardElement["id"] | null;
|
|
86
86
|
searchMatches: Readonly<{
|
|
@@ -94,7 +94,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
94
94
|
shouldCacheIgnoreZoom: boolean;
|
|
95
95
|
exportScale: number;
|
|
96
96
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
97
|
-
bindMode: import("@
|
|
97
|
+
bindMode: import("@hellixit/element/types").BindMode;
|
|
98
98
|
gridSize: number;
|
|
99
99
|
contextMenu: {
|
|
100
100
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -104,9 +104,9 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
104
104
|
showWelcomeScreen: boolean;
|
|
105
105
|
isLoading: boolean;
|
|
106
106
|
errorMessage: React.ReactNode;
|
|
107
|
-
resizingElement: import("@
|
|
107
|
+
resizingElement: import("@hellixit/element/types").NonDeletedHellixitboardElement | null;
|
|
108
108
|
bindingPreference: "enabled" | "disabled";
|
|
109
|
-
startBoundElement: NonDeleted<import("@
|
|
109
|
+
startBoundElement: NonDeleted<import("@hellixit/element/types").HellixitboardBindableElement> | null;
|
|
110
110
|
editingFrame: string | null;
|
|
111
111
|
preferredSelectionTool: {
|
|
112
112
|
type: "selection" | "lasso";
|
|
@@ -124,13 +124,13 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
124
124
|
currentItemStrokeStyle: HellixitboardElement["strokeStyle"];
|
|
125
125
|
currentItemRoughness: number;
|
|
126
126
|
currentItemOpacity: number;
|
|
127
|
-
currentItemFontFamily: import("@
|
|
127
|
+
currentItemFontFamily: import("@hellixit/element/types").FontFamilyValues;
|
|
128
128
|
currentItemFontSize: number;
|
|
129
|
-
currentItemTextAlign: import("@
|
|
130
|
-
currentItemStartArrowhead: import("@
|
|
131
|
-
currentItemEndArrowhead: import("@
|
|
132
|
-
currentHoveredFontFamily: import("@
|
|
133
|
-
currentItemRoundness: import("@
|
|
129
|
+
currentItemTextAlign: import("@hellixit/element/types").TextAlign;
|
|
130
|
+
currentItemStartArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
131
|
+
currentItemEndArrowhead: import("@hellixit/element/types").Arrowhead | null;
|
|
132
|
+
currentHoveredFontFamily: import("@hellixit/element/types").FontFamilyValues | null;
|
|
133
|
+
currentItemRoundness: import("@hellixit/element/types").StrokeRoundness;
|
|
134
134
|
cursorButton: "up" | "down";
|
|
135
135
|
scrolledOutside: boolean;
|
|
136
136
|
isResizing: boolean;
|
|
@@ -141,7 +141,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
141
141
|
tab?: import("../types").SidebarTabName;
|
|
142
142
|
} | null;
|
|
143
143
|
defaultSidebarDockedPreference: boolean;
|
|
144
|
-
lastPointerDownWith: import("@
|
|
144
|
+
lastPointerDownWith: import("@hellixit/element/types").PointerType;
|
|
145
145
|
previousSelectedElementIds: {
|
|
146
146
|
[id: string]: true;
|
|
147
147
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HellixitboardElement } from "@
|
|
2
|
-
import type { MaybePromise } from "@
|
|
1
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
2
|
+
import type { MaybePromise } from "@hellixit/common/utility-types";
|
|
3
3
|
import type App from "../components/App";
|
|
4
4
|
import type { LibraryItems, HellixitboardImperativeAPI, LibraryItemsSource, LibraryItems_anyVersion } from "../types";
|
|
5
5
|
export type LibraryPersistedData = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OrderedHellixitboardElement } from "@
|
|
2
|
-
import type { MakeBrand } from "@
|
|
1
|
+
import type { OrderedHellixitboardElement } from "@hellixit/element/types";
|
|
2
|
+
import type { MakeBrand } from "@hellixit/common/utility-types";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export type ReconciledHellixitboardElement = OrderedHellixitboardElement & MakeBrand<"ReconciledElement">;
|
|
5
5
|
export type RemoteHellixitboardElement = OrderedHellixitboardElement & MakeBrand<"RemoteHellixitboardElement">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MaybePromise } from "@
|
|
2
|
-
import type { HellixitboardElement } from "@
|
|
1
|
+
import type { MaybePromise } from "@hellixit/common/utility-types";
|
|
2
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
3
3
|
import type { AppState, BinaryFiles } from "../types";
|
|
4
4
|
export declare const resaveAsImageWithScene: (data: MaybePromise<{
|
|
5
5
|
elements: readonly HellixitboardElement[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type CombineBrandsIfNeeded } from "@
|
|
2
|
-
import type { ElementsMap, ElementsMapOrArray, HellixitboardElement, HellixitboardSelectionElement, OrderedHellixitboardElement } from "@
|
|
1
|
+
import { type CombineBrandsIfNeeded } from "@hellixit/common";
|
|
2
|
+
import type { ElementsMap, ElementsMapOrArray, HellixitboardElement, HellixitboardSelectionElement, OrderedHellixitboardElement } from "@hellixit/element/types";
|
|
3
3
|
import type { AppState, BinaryFiles, LibraryItem } from "../types";
|
|
4
4
|
import type { ImportedDataState } from "./types";
|
|
5
5
|
type RestoredAppState = Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VERSIONS } from "@
|
|
2
|
-
import type { HellixitboardElement } from "@
|
|
1
|
+
import type { VERSIONS } from "@hellixit/common";
|
|
2
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
3
3
|
import type { cleanAppStateForExport } from "../appState";
|
|
4
4
|
import type { AppState, BinaryFiles, LibraryItem, LibraryItems, LibraryItems_anyVersion } from "../types";
|
|
5
5
|
export interface ExportedDataState {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type FontMetadata } from "@
|
|
2
|
-
import type { HellixitboardElement } from "@
|
|
3
|
-
import type { Scene } from "@
|
|
1
|
+
import { type FontMetadata } from "@hellixit/common";
|
|
2
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
3
|
+
import type { Scene } from "@hellixit/element";
|
|
4
4
|
import { HellixitboardFontFace } from "./HellixitboardFontFace";
|
|
5
5
|
export declare class Fonts {
|
|
6
6
|
static readonly loadedFontsCache: Set<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Emitter } from "@
|
|
2
|
-
import { StoreDelta } from "@
|
|
3
|
-
import type { StoreSnapshot, Store } from "@
|
|
4
|
-
import type { SceneElementsMap } from "@
|
|
1
|
+
import { Emitter } from "@hellixit/common";
|
|
2
|
+
import { StoreDelta } from "@hellixit/element";
|
|
3
|
+
import type { StoreSnapshot, Store } from "@hellixit/element";
|
|
4
|
+
import type { SceneElementsMap } from "@hellixit/element/types";
|
|
5
5
|
import type { AppState } from "./types";
|
|
6
6
|
export declare class HistoryDelta extends StoreDelta {
|
|
7
7
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Emitter } from "@
|
|
1
|
+
import type { Emitter } from "@hellixit/common";
|
|
2
2
|
export declare const useEmitter: <TEvent extends unknown>(emitter: Emitter<[TEvent]>, initialState: TEvent) => TEvent;
|
|
@@ -18,20 +18,20 @@ export declare const HellixitboardAPIProvider: ({ children, }: {
|
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare const Hellixitboard: React.MemoExoticComponent<(props: HellixitboardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
21
|
-
export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements, } from "@
|
|
22
|
-
export { getTextFromElements } from "@
|
|
23
|
-
export { isInvisiblySmallElement } from "@
|
|
21
|
+
export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements, } from "@hellixit/element";
|
|
22
|
+
export { getTextFromElements } from "@hellixit/element";
|
|
23
|
+
export { isInvisiblySmallElement } from "@hellixit/element";
|
|
24
24
|
export { defaultLang, useI18n, languages } from "./i18n";
|
|
25
25
|
export { restoreAppState, restoreElement, restoreElements, restoreLibraryItems, } from "./data/restore";
|
|
26
26
|
export { reconcileElements } from "./data/reconcile";
|
|
27
|
-
export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@
|
|
27
|
+
export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@hellixit/utils/export";
|
|
28
28
|
export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
|
|
29
29
|
export { loadFromBlob, loadSceneOrLibraryFromBlob, loadLibraryFromBlob, } from "./data/blob";
|
|
30
30
|
export { mergeLibraryItems, getLibraryItemsHash } from "./data/library";
|
|
31
|
-
export { isLinearElement } from "@
|
|
32
|
-
export { FONT_FAMILY, THEME, MIME_TYPES, ROUNDNESS, DEFAULT_LASER_COLOR, UserIdleState, normalizeLink, sceneCoordsToViewportCoords, viewportCoordsToSceneCoords, getFormFactor, throttleRAF, } from "@
|
|
33
|
-
export { mutateElement, newElementWith, bumpVersion, } from "@
|
|
34
|
-
export { CaptureUpdateAction } from "@
|
|
31
|
+
export { isLinearElement } from "@hellixit/element";
|
|
32
|
+
export { FONT_FAMILY, THEME, MIME_TYPES, ROUNDNESS, DEFAULT_LASER_COLOR, UserIdleState, normalizeLink, sceneCoordsToViewportCoords, viewportCoordsToSceneCoords, getFormFactor, throttleRAF, } from "@hellixit/common";
|
|
33
|
+
export { mutateElement, newElementWith, bumpVersion, } from "@hellixit/element";
|
|
34
|
+
export { CaptureUpdateAction } from "@hellixit/element";
|
|
35
35
|
export { parseLibraryTokensFromUrl, useHandleLibrary } from "./data/library";
|
|
36
36
|
export { Sidebar } from "./components/Sidebar/Sidebar";
|
|
37
37
|
export { Button } from "./components/Button";
|
|
@@ -49,12 +49,12 @@ export { TTDDialogTrigger } from "./components/TTDDialog/TTDDialogTrigger";
|
|
|
49
49
|
export { TTDStreamFetch } from "./components/TTDDialog/utils/TTDStreamFetch";
|
|
50
50
|
export type { TTDPersistenceAdapter, SavedChat, SavedChats, } from "./components/TTDDialog/types";
|
|
51
51
|
export { zoomToFitBounds } from "./actions/actionCanvas";
|
|
52
|
-
export { getCommonBounds, getVisibleSceneBounds, convertToHellixitboardElements, } from "@
|
|
53
|
-
export { elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox, } from "@
|
|
52
|
+
export { getCommonBounds, getVisibleSceneBounds, convertToHellixitboardElements, } from "@hellixit/element";
|
|
53
|
+
export { elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox, } from "@hellixit/utils/withinBounds";
|
|
54
54
|
export { DiagramToCodePlugin } from "./components/DiagramToCodePlugin/DiagramToCodePlugin";
|
|
55
55
|
export { getDataURL } from "./data/blob";
|
|
56
|
-
export { isElementLink } from "@
|
|
57
|
-
export { setCustomTextMetricsProvider } from "@
|
|
56
|
+
export { isElementLink } from "@hellixit/element";
|
|
57
|
+
export { setCustomTextMetricsProvider } from "@hellixit/element";
|
|
58
58
|
export { CommandPalette } from "./components/CommandPalette/CommandPalette";
|
|
59
59
|
export { renderSpreadsheet, tryParseSpreadsheet, isSpreadsheetValidForChartType, } from "./charts";
|
|
60
60
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ElementsSegmentsMap, GlobalPoint } from "@
|
|
2
|
-
import type { ElementsMap, HellixitboardElement } from "@
|
|
1
|
+
import type { ElementsSegmentsMap, GlobalPoint } from "@hellixit/math/types";
|
|
2
|
+
import type { ElementsMap, HellixitboardElement } from "@hellixit/element/types";
|
|
3
3
|
export declare const getLassoSelectedElementIds: (input: {
|
|
4
4
|
lassoPath: GlobalPoint[];
|
|
5
5
|
elements: readonly HellixitboardElement[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HellixitboardFrameLikeElement } from "@
|
|
1
|
+
import type { HellixitboardFrameLikeElement } from "@hellixit/element/types";
|
|
2
2
|
import type { StaticCanvasRenderConfig, StaticSceneRenderConfig } from "../scene/types";
|
|
3
3
|
import type { StaticCanvasAppState } from "../types";
|
|
4
4
|
export declare const frameClip: (frame: HellixitboardFrameLikeElement, context: CanvasRenderingContext2D, renderConfig: StaticCanvasRenderConfig, appState: StaticCanvasAppState) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedHellixitboardElement } from "@
|
|
1
|
+
import type { NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
2
2
|
import type { RenderableElementsMap, SVGRenderConfig } from "../scene/types";
|
|
3
3
|
import type { BinaryFiles } from "../types";
|
|
4
4
|
import type { RoughSVG } from "roughjs/bin/svg";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HellixitboardElement, NonDeletedHellixitboardElement } from "@
|
|
2
|
-
import type { Scene } from "@
|
|
1
|
+
import type { HellixitboardElement, NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
2
|
+
import type { Scene } from "@hellixit/element";
|
|
3
3
|
import type { RenderableElementsMap } from "./types";
|
|
4
4
|
import type { AppState } from "../types";
|
|
5
5
|
export declare class Renderer {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HellixitboardFrameLikeElement, NonDeletedHellixitboardElement } from "@
|
|
1
|
+
import type { HellixitboardFrameLikeElement, NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
2
2
|
import type { AppState, BinaryFiles } from "../types";
|
|
3
3
|
export declare const exportToCanvas: (elements: readonly NonDeletedHellixitboardElement[], appState: AppState, files: BinaryFiles, { exportBackground, exportPadding, viewBackgroundColor, exportingFrame, }: {
|
|
4
4
|
exportBackground: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { isSomeElementSelected, getElementsWithinSelection, getSelectedElements, getTargetElements, } from "@
|
|
1
|
+
export { isSomeElementSelected, getElementsWithinSelection, getSelectedElements, getTargetElements, } from "@hellixit/element";
|
|
2
2
|
export { calculateScrollCenter } from "./scroll";
|
|
3
|
-
export { hasBackground, hasStrokeWidth, hasStrokeStyle, canHaveArrowheads, canChangeRoundness, canAnimate, } from "@
|
|
3
|
+
export { hasBackground, hasStrokeWidth, hasStrokeStyle, canHaveArrowheads, canChangeRoundness, canAnimate, } from "@hellixit/element";
|
|
4
4
|
export { getNormalizedZoom, getNormalizedGridSize, getNormalizedGridStep, } from "./normalize";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HellixitboardElement } from "@
|
|
1
|
+
import type { HellixitboardElement } from "@hellixit/element/types";
|
|
2
2
|
import type { AppState, Offsets, PointerCoords, Zoom } from "../types";
|
|
3
3
|
export declare const centerScrollOn: ({ scenePoint, viewportDimensions, zoom, offsets, }: {
|
|
4
4
|
scenePoint: PointerCoords;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { UserIdleState, EditorInterface } from "@
|
|
2
|
-
import type { HellixitboardElement, NonDeletedElementsMap, NonDeletedHellixitboardElement, NonDeletedSceneElementsMap } from "@
|
|
3
|
-
import type { MakeBrand } from "@
|
|
1
|
+
import type { UserIdleState, EditorInterface } from "@hellixit/common";
|
|
2
|
+
import type { HellixitboardElement, NonDeletedElementsMap, NonDeletedHellixitboardElement, NonDeletedSceneElementsMap } from "@hellixit/element/types";
|
|
3
|
+
import type { MakeBrand } from "@hellixit/common/utility-types";
|
|
4
4
|
import type { AppClassProperties, AppState, EmbedsValidationStatus, ElementsPendingErasure, InteractiveCanvasAppState, StaticCanvasAppState, SocketId, PendingHellixitboardElements } from "../types";
|
|
5
5
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
6
6
|
import type { Drawable } from "roughjs/bin/core";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type GlobalPoint } from "@
|
|
2
|
-
import type { InclusiveRange } from "@
|
|
3
|
-
import type { Bounds } from "@
|
|
4
|
-
import type { MaybeTransformHandleType } from "@
|
|
5
|
-
import type { ElementsMap, HellixitboardElement, NonDeletedHellixitboardElement } from "@
|
|
1
|
+
import { type GlobalPoint } from "@hellixit/math";
|
|
2
|
+
import type { InclusiveRange } from "@hellixit/math";
|
|
3
|
+
import type { Bounds } from "@hellixit/common";
|
|
4
|
+
import type { MaybeTransformHandleType } from "@hellixit/element";
|
|
5
|
+
import type { ElementsMap, HellixitboardElement, NonDeletedHellixitboardElement } from "@hellixit/element/types";
|
|
6
6
|
import type { AppClassProperties, AppState, KeyboardModifiersObject } from "./types";
|
|
7
7
|
export declare const getSnapDistance: (zoomValue: number) => number;
|
|
8
8
|
type Vector2D = {
|