haoxin-excalidraw-sdk 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/{chunk-UQ6ZQBJL.js → chunk-PTYT4VPM.js} +86 -86
- package/dist/dev/{chunk-ZPPZRCRK.js → chunk-VC7V2GEZ.js} +2 -2
- package/dist/dev/{chunk-ZPPZRCRK.js.map → chunk-VC7V2GEZ.js.map} +1 -1
- package/dist/dev/data/{image-Y5OJMJOH.js → image-CVHJEERS.js} +3 -3
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +463 -463
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-5BVJZ5IS.js +6 -0
- package/dist/prod/{chunk-RGO43SBQ.js → chunk-ZHX5UPTB.js} +1 -1
- package/dist/prod/data/image-7GV76HIR.js +1 -0
- package/dist/prod/index.js +11 -11
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/package.json +4 -4
- package/dist/prod/chunk-KMNRI53A.js +0 -6
- package/dist/prod/data/image-VENYR4E5.js +0 -1
- /package/dist/dev/{chunk-UQ6ZQBJL.js.map → chunk-PTYT4VPM.js.map} +0 -0
- /package/dist/dev/data/{image-Y5OJMJOH.js.map → image-CVHJEERS.js.map} +0 -0
package/dist/dev/index.js
CHANGED
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
serializeLibraryAsJSON,
|
|
70
70
|
strokeEllipseWithRotation,
|
|
71
71
|
strokeRectWithRotation
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-PTYT4VPM.js";
|
|
73
73
|
import {
|
|
74
74
|
define_import_meta_env_default
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-VC7V2GEZ.js";
|
|
76
76
|
import {
|
|
77
77
|
en_default
|
|
78
78
|
} from "./chunk-ZSSURRA2.js";
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
|
|
88
88
|
// index.tsx
|
|
89
89
|
import React48, { useEffect as useEffect49 } from "react";
|
|
90
|
-
import { DEFAULT_UI_OPTIONS, isShallowEqual as isShallowEqual9 } from "haoxin-excalidraw-common";
|
|
90
|
+
import { DEFAULT_UI_OPTIONS, isShallowEqual as isShallowEqual9 } from "haoxin-excalidraw-sdk-common";
|
|
91
91
|
|
|
92
92
|
// components/App.tsx
|
|
93
93
|
import clsx57 from "clsx";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
vectorSubtract as vectorSubtract2,
|
|
108
108
|
vectorDot,
|
|
109
109
|
vectorNormalize as vectorNormalize4
|
|
110
|
-
} from "haoxin-excalidraw-math";
|
|
110
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
111
111
|
import {
|
|
112
112
|
COLOR_PALETTE as COLOR_PALETTE6,
|
|
113
113
|
CODES as CODES13,
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
isMobile,
|
|
193
193
|
MINIMUM_ARROW_SIZE,
|
|
194
194
|
DOUBLE_TAP_POSITION_THRESHOLD
|
|
195
|
-
} from "haoxin-excalidraw-common";
|
|
195
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
196
196
|
import {
|
|
197
197
|
getObservedAppState,
|
|
198
198
|
getCommonBounds as getCommonBounds12,
|
|
@@ -324,29 +324,29 @@ import {
|
|
|
324
324
|
isSimpleArrow,
|
|
325
325
|
StoreDelta as StoreDelta2,
|
|
326
326
|
positionElementsOnGrid
|
|
327
|
-
} from "haoxin-excalidraw-element";
|
|
327
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
328
328
|
|
|
329
329
|
// actions/actionDeleteSelected.tsx
|
|
330
|
-
import { KEYS, updateActiveTool } from "haoxin-excalidraw-common";
|
|
331
|
-
import { getNonDeletedElements } from "haoxin-excalidraw-element";
|
|
332
|
-
import { fixBindingsAfterDeletion } from "haoxin-excalidraw-element";
|
|
333
|
-
import { LinearElementEditor } from "haoxin-excalidraw-element";
|
|
334
|
-
import { newElementWith } from "haoxin-excalidraw-element";
|
|
335
|
-
import { getContainerElement } from "haoxin-excalidraw-element";
|
|
330
|
+
import { KEYS, updateActiveTool } from "haoxin-excalidraw-sdk-common";
|
|
331
|
+
import { getNonDeletedElements } from "haoxin-excalidraw-sdk-element";
|
|
332
|
+
import { fixBindingsAfterDeletion } from "haoxin-excalidraw-sdk-element";
|
|
333
|
+
import { LinearElementEditor } from "haoxin-excalidraw-sdk-element";
|
|
334
|
+
import { newElementWith } from "haoxin-excalidraw-sdk-element";
|
|
335
|
+
import { getContainerElement } from "haoxin-excalidraw-sdk-element";
|
|
336
336
|
import {
|
|
337
337
|
isBoundToContainer,
|
|
338
338
|
isElbowArrow,
|
|
339
339
|
isFrameLikeElement
|
|
340
|
-
} from "haoxin-excalidraw-element";
|
|
341
|
-
import { getFrameChildren } from "haoxin-excalidraw-element";
|
|
340
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
341
|
+
import { getFrameChildren } from "haoxin-excalidraw-sdk-element";
|
|
342
342
|
import {
|
|
343
343
|
getElementsInGroup,
|
|
344
344
|
selectGroupsForSelectedElements
|
|
345
|
-
} from "haoxin-excalidraw-element";
|
|
346
|
-
import { CaptureUpdateAction } from "haoxin-excalidraw-element";
|
|
345
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
346
|
+
import { CaptureUpdateAction } from "haoxin-excalidraw-sdk-element";
|
|
347
347
|
|
|
348
348
|
// i18n.ts
|
|
349
|
-
import { isDevEnv } from "haoxin-excalidraw-common";
|
|
349
|
+
import { isDevEnv } from "haoxin-excalidraw-sdk-common";
|
|
350
350
|
|
|
351
351
|
// editor-jotai.ts
|
|
352
352
|
import {
|
|
@@ -547,7 +547,7 @@ var useI18n = () => {
|
|
|
547
547
|
import clsx from "clsx";
|
|
548
548
|
import oc from "open-color";
|
|
549
549
|
import React from "react";
|
|
550
|
-
import { THEME } from "haoxin-excalidraw-common";
|
|
550
|
+
import { THEME } from "haoxin-excalidraw-sdk-common";
|
|
551
551
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
552
552
|
var iconFillColor = (theme) => "var(--icon-fill-color)";
|
|
553
553
|
var handlerColor = (theme) => theme === THEME.LIGHT ? oc.white : "#1e1e1e";
|
|
@@ -2846,7 +2846,7 @@ var elementLinkIcon = createIcon(
|
|
|
2846
2846
|
// components/ToolButton.tsx
|
|
2847
2847
|
import clsx2 from "clsx";
|
|
2848
2848
|
import React3, { useEffect, useRef, useState } from "react";
|
|
2849
|
-
import { isPromiseLike } from "haoxin-excalidraw-common";
|
|
2849
|
+
import { isPromiseLike } from "haoxin-excalidraw-sdk-common";
|
|
2850
2850
|
|
|
2851
2851
|
// components/Spinner.tsx
|
|
2852
2852
|
import React2 from "react";
|
|
@@ -3262,14 +3262,14 @@ var actionDeleteSelected = register({
|
|
|
3262
3262
|
});
|
|
3263
3263
|
|
|
3264
3264
|
// actions/actionZindex.tsx
|
|
3265
|
-
import { KEYS as KEYS2, CODES, getShortcutKey, isDarwin } from "haoxin-excalidraw-common";
|
|
3265
|
+
import { KEYS as KEYS2, CODES, getShortcutKey, isDarwin } from "haoxin-excalidraw-sdk-common";
|
|
3266
3266
|
import {
|
|
3267
3267
|
moveOneLeft,
|
|
3268
3268
|
moveOneRight,
|
|
3269
3269
|
moveAllLeft,
|
|
3270
3270
|
moveAllRight
|
|
3271
|
-
} from "haoxin-excalidraw-element";
|
|
3272
|
-
import { CaptureUpdateAction as CaptureUpdateAction2 } from "haoxin-excalidraw-element";
|
|
3271
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3272
|
+
import { CaptureUpdateAction as CaptureUpdateAction2 } from "haoxin-excalidraw-sdk-element";
|
|
3273
3273
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
3274
3274
|
var actionSendBackward = register({
|
|
3275
3275
|
name: "sendBackward",
|
|
@@ -3375,12 +3375,12 @@ var actionBringToFront = register({
|
|
|
3375
3375
|
});
|
|
3376
3376
|
|
|
3377
3377
|
// actions/actionSelectAll.ts
|
|
3378
|
-
import { getNonDeletedElements as getNonDeletedElements2 } from "haoxin-excalidraw-element";
|
|
3379
|
-
import { LinearElementEditor as LinearElementEditor2 } from "haoxin-excalidraw-element";
|
|
3380
|
-
import { isLinearElement, isTextElement } from "haoxin-excalidraw-element";
|
|
3381
|
-
import { arrayToMap, KEYS as KEYS3 } from "haoxin-excalidraw-common";
|
|
3382
|
-
import { selectGroupsForSelectedElements as selectGroupsForSelectedElements2 } from "haoxin-excalidraw-element";
|
|
3383
|
-
import { CaptureUpdateAction as CaptureUpdateAction3 } from "haoxin-excalidraw-element";
|
|
3378
|
+
import { getNonDeletedElements as getNonDeletedElements2 } from "haoxin-excalidraw-sdk-element";
|
|
3379
|
+
import { LinearElementEditor as LinearElementEditor2 } from "haoxin-excalidraw-sdk-element";
|
|
3380
|
+
import { isLinearElement, isTextElement } from "haoxin-excalidraw-sdk-element";
|
|
3381
|
+
import { arrayToMap, KEYS as KEYS3 } from "haoxin-excalidraw-sdk-common";
|
|
3382
|
+
import { selectGroupsForSelectedElements as selectGroupsForSelectedElements2 } from "haoxin-excalidraw-sdk-element";
|
|
3383
|
+
import { CaptureUpdateAction as CaptureUpdateAction3 } from "haoxin-excalidraw-sdk-element";
|
|
3384
3384
|
var actionSelectAll = register({
|
|
3385
3385
|
name: "selectAll",
|
|
3386
3386
|
label: "labels.selectAll",
|
|
@@ -3426,16 +3426,16 @@ import {
|
|
|
3426
3426
|
KEYS as KEYS4,
|
|
3427
3427
|
arrayToMap as arrayToMap2,
|
|
3428
3428
|
getShortcutKey as getShortcutKey2
|
|
3429
|
-
} from "haoxin-excalidraw-common";
|
|
3430
|
-
import { getNonDeletedElements as getNonDeletedElements3 } from "haoxin-excalidraw-element";
|
|
3431
|
-
import { LinearElementEditor as LinearElementEditor3 } from "haoxin-excalidraw-element";
|
|
3429
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
3430
|
+
import { getNonDeletedElements as getNonDeletedElements3 } from "haoxin-excalidraw-sdk-element";
|
|
3431
|
+
import { LinearElementEditor as LinearElementEditor3 } from "haoxin-excalidraw-sdk-element";
|
|
3432
3432
|
import {
|
|
3433
3433
|
getSelectedElements as getSelectedElements2,
|
|
3434
3434
|
getSelectionStateForElements
|
|
3435
|
-
} from "haoxin-excalidraw-element";
|
|
3436
|
-
import { syncMovedIndices } from "haoxin-excalidraw-element";
|
|
3437
|
-
import { duplicateElements } from "haoxin-excalidraw-element";
|
|
3438
|
-
import { CaptureUpdateAction as CaptureUpdateAction4 } from "haoxin-excalidraw-element";
|
|
3435
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3436
|
+
import { syncMovedIndices } from "haoxin-excalidraw-sdk-element";
|
|
3437
|
+
import { duplicateElements } from "haoxin-excalidraw-sdk-element";
|
|
3438
|
+
import { CaptureUpdateAction as CaptureUpdateAction4 } from "haoxin-excalidraw-sdk-element";
|
|
3439
3439
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3440
3440
|
var actionDuplicateSelection = register({
|
|
3441
3441
|
name: "duplicateSelection",
|
|
@@ -3523,7 +3523,7 @@ var actionDuplicateSelection = register({
|
|
|
3523
3523
|
});
|
|
3524
3524
|
|
|
3525
3525
|
// actions/actionProperties.tsx
|
|
3526
|
-
import { pointFrom } from "haoxin-excalidraw-math";
|
|
3526
|
+
import { pointFrom } from "haoxin-excalidraw-sdk-math";
|
|
3527
3527
|
import { useEffect as useEffect13, useMemo as useMemo4, useRef as useRef11, useState as useState6 } from "react";
|
|
3528
3528
|
import {
|
|
3529
3529
|
DEFAULT_ELEMENT_BACKGROUND_COLOR_PALETTE,
|
|
@@ -3545,19 +3545,19 @@ import {
|
|
|
3545
3545
|
getLineHeight,
|
|
3546
3546
|
isTransparent as isTransparent2,
|
|
3547
3547
|
reduceToCommonValue
|
|
3548
|
-
} from "haoxin-excalidraw-common";
|
|
3549
|
-
import { canBecomePolygon, getNonDeletedElements as getNonDeletedElements4 } from "haoxin-excalidraw-element";
|
|
3548
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
3549
|
+
import { canBecomePolygon, getNonDeletedElements as getNonDeletedElements4 } from "haoxin-excalidraw-sdk-element";
|
|
3550
3550
|
import {
|
|
3551
3551
|
bindLinearElement,
|
|
3552
3552
|
calculateFixedPointForElbowArrowBinding,
|
|
3553
3553
|
updateBoundElements
|
|
3554
|
-
} from "haoxin-excalidraw-element";
|
|
3555
|
-
import { LinearElementEditor as LinearElementEditor4 } from "haoxin-excalidraw-element";
|
|
3556
|
-
import { newElementWith as newElementWith2 } from "haoxin-excalidraw-element";
|
|
3554
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3555
|
+
import { LinearElementEditor as LinearElementEditor4 } from "haoxin-excalidraw-sdk-element";
|
|
3556
|
+
import { newElementWith as newElementWith2 } from "haoxin-excalidraw-sdk-element";
|
|
3557
3557
|
import {
|
|
3558
3558
|
getBoundTextElement,
|
|
3559
3559
|
redrawTextBoundingBox
|
|
3560
|
-
} from "haoxin-excalidraw-element";
|
|
3560
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3561
3561
|
import {
|
|
3562
3562
|
isArrowElement,
|
|
3563
3563
|
isBoundToContainer as isBoundToContainer2,
|
|
@@ -3566,16 +3566,16 @@ import {
|
|
|
3566
3566
|
isLineElement,
|
|
3567
3567
|
isTextElement as isTextElement2,
|
|
3568
3568
|
isUsingAdaptiveRadius
|
|
3569
|
-
} from "haoxin-excalidraw-element";
|
|
3570
|
-
import { hasStrokeColor } from "haoxin-excalidraw-element";
|
|
3569
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3570
|
+
import { hasStrokeColor } from "haoxin-excalidraw-sdk-element";
|
|
3571
3571
|
import {
|
|
3572
3572
|
updateElbowArrowPoints,
|
|
3573
3573
|
CaptureUpdateAction as CaptureUpdateAction5,
|
|
3574
3574
|
toggleLinePolygonState
|
|
3575
|
-
} from "haoxin-excalidraw-element";
|
|
3575
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3576
3576
|
|
|
3577
3577
|
// analytics.ts
|
|
3578
|
-
import { isDevEnv as isDevEnv2 } from "haoxin-excalidraw-common";
|
|
3578
|
+
import { isDevEnv as isDevEnv2 } from "haoxin-excalidraw-sdk-common";
|
|
3579
3579
|
var ALLOWED_CATEGORIES_TO_TRACK = /* @__PURE__ */ new Set(["command_palette", "export"]);
|
|
3580
3580
|
var trackEvent = (category, action, label, value) => {
|
|
3581
3581
|
try {
|
|
@@ -3674,7 +3674,7 @@ import {
|
|
|
3674
3674
|
COLOR_OUTLINE_CONTRAST_THRESHOLD as COLOR_OUTLINE_CONTRAST_THRESHOLD2,
|
|
3675
3675
|
COLOR_PALETTE as COLOR_PALETTE2,
|
|
3676
3676
|
isTransparent
|
|
3677
|
-
} from "haoxin-excalidraw-common";
|
|
3677
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
3678
3678
|
|
|
3679
3679
|
// components/ButtonSeparator.tsx
|
|
3680
3680
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
@@ -3693,7 +3693,7 @@ var ButtonSeparator = () => /* @__PURE__ */ jsx9(
|
|
|
3693
3693
|
// components/EyeDropper.tsx
|
|
3694
3694
|
import { useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
3695
3695
|
import { createPortal } from "react-dom";
|
|
3696
|
-
import { EVENT as EVENT2, KEYS as KEYS5, rgbToHex } from "haoxin-excalidraw-common";
|
|
3696
|
+
import { EVENT as EVENT2, KEYS as KEYS5, rgbToHex } from "haoxin-excalidraw-sdk-common";
|
|
3697
3697
|
|
|
3698
3698
|
// context/ui-appState.ts
|
|
3699
3699
|
import React4 from "react";
|
|
@@ -3702,7 +3702,7 @@ var useUIAppState = () => React4.useContext(UIAppStateContext);
|
|
|
3702
3702
|
|
|
3703
3703
|
// hooks/useCreatePortalContainer.ts
|
|
3704
3704
|
import { useState as useState2, useLayoutEffect } from "react";
|
|
3705
|
-
import { THEME as THEME2 } from "haoxin-excalidraw-common";
|
|
3705
|
+
import { THEME as THEME2 } from "haoxin-excalidraw-sdk-common";
|
|
3706
3706
|
var useCreatePortalContainer = (opts) => {
|
|
3707
3707
|
const [div, setDiv] = useState2(null);
|
|
3708
3708
|
const device = useDevice();
|
|
@@ -3733,7 +3733,7 @@ var useCreatePortalContainer = (opts) => {
|
|
|
3733
3733
|
|
|
3734
3734
|
// hooks/useOutsideClick.ts
|
|
3735
3735
|
import { useEffect as useEffect2 } from "react";
|
|
3736
|
-
import { EVENT } from "haoxin-excalidraw-common";
|
|
3736
|
+
import { EVENT } from "haoxin-excalidraw-sdk-common";
|
|
3737
3737
|
function useOutsideClick(ref, callback, isInside) {
|
|
3738
3738
|
useEffect2(() => {
|
|
3739
3739
|
function onOutsideClick(event) {
|
|
@@ -3932,7 +3932,7 @@ var EyeDropper = ({ onCancel, onChange, onSelect, colorPickerType }) => {
|
|
|
3932
3932
|
import * as Popover from "@radix-ui/react-popover";
|
|
3933
3933
|
import clsx6 from "clsx";
|
|
3934
3934
|
import React6 from "react";
|
|
3935
|
-
import { isInteractive } from "haoxin-excalidraw-common";
|
|
3935
|
+
import { isInteractive } from "haoxin-excalidraw-sdk-common";
|
|
3936
3936
|
|
|
3937
3937
|
// components/Island.tsx
|
|
3938
3938
|
import React5 from "react";
|
|
@@ -4012,10 +4012,10 @@ var PropertiesPopover = React6.forwardRef(
|
|
|
4012
4012
|
// components/ColorPicker/ColorInput.tsx
|
|
4013
4013
|
import clsx7 from "clsx";
|
|
4014
4014
|
import { useCallback, useEffect as useEffect4, useRef as useRef4, useState as useState3 } from "react";
|
|
4015
|
-
import { KEYS as KEYS6, getShortcutKey as getShortcutKey3 } from "haoxin-excalidraw-common";
|
|
4015
|
+
import { KEYS as KEYS6, getShortcutKey as getShortcutKey3 } from "haoxin-excalidraw-sdk-common";
|
|
4016
4016
|
|
|
4017
4017
|
// components/ColorPicker/colorPickerUtils.ts
|
|
4018
|
-
import { MAX_CUSTOM_COLORS_USED_IN_CANVAS } from "haoxin-excalidraw-common";
|
|
4018
|
+
import { MAX_CUSTOM_COLORS_USED_IN_CANVAS } from "haoxin-excalidraw-sdk-common";
|
|
4019
4019
|
var getColorNameAndShadeFromColor = ({
|
|
4020
4020
|
palette: palette2,
|
|
4021
4021
|
color
|
|
@@ -4215,12 +4215,12 @@ var ColorInput = ({
|
|
|
4215
4215
|
|
|
4216
4216
|
// components/ColorPicker/Picker.tsx
|
|
4217
4217
|
import React7, { useEffect as useEffect8, useImperativeHandle, useState as useState4 } from "react";
|
|
4218
|
-
import { EVENT as EVENT3 } from "haoxin-excalidraw-common";
|
|
4218
|
+
import { EVENT as EVENT3 } from "haoxin-excalidraw-sdk-common";
|
|
4219
4219
|
import {
|
|
4220
4220
|
DEFAULT_ELEMENT_BACKGROUND_COLOR_INDEX,
|
|
4221
4221
|
DEFAULT_ELEMENT_STROKE_COLOR_INDEX,
|
|
4222
4222
|
KEYS as KEYS8
|
|
4223
|
-
} from "haoxin-excalidraw-common";
|
|
4223
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
4224
4224
|
|
|
4225
4225
|
// components/ColorPicker/CustomColorList.tsx
|
|
4226
4226
|
import clsx8 from "clsx";
|
|
@@ -4453,7 +4453,7 @@ var ShadeList = ({ color, onChange, palette: palette2 }) => {
|
|
|
4453
4453
|
};
|
|
4454
4454
|
|
|
4455
4455
|
// components/ColorPicker/keyboardNavHandlers.ts
|
|
4456
|
-
import { COLORS_PER_ROW, COLOR_PALETTE, KEYS as KEYS7 } from "haoxin-excalidraw-common";
|
|
4456
|
+
import { COLORS_PER_ROW, COLOR_PALETTE, KEYS as KEYS7 } from "haoxin-excalidraw-sdk-common";
|
|
4457
4457
|
var arrowHandler = (eventKey, currentIndex, length) => {
|
|
4458
4458
|
const rows = Math.ceil(length / COLORS_PER_ROW);
|
|
4459
4459
|
currentIndex = currentIndex ?? -1;
|
|
@@ -4770,7 +4770,7 @@ import {
|
|
|
4770
4770
|
DEFAULT_CANVAS_BACKGROUND_PICKS,
|
|
4771
4771
|
DEFAULT_ELEMENT_BACKGROUND_PICKS,
|
|
4772
4772
|
DEFAULT_ELEMENT_STROKE_PICKS
|
|
4773
|
-
} from "haoxin-excalidraw-common";
|
|
4773
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
4774
4774
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
4775
4775
|
var TopPicks = ({
|
|
4776
4776
|
onChange,
|
|
@@ -4994,7 +4994,7 @@ var ColorPicker = ({
|
|
|
4994
4994
|
// components/FontPicker/FontPicker.tsx
|
|
4995
4995
|
import * as Popover4 from "@radix-ui/react-popover";
|
|
4996
4996
|
import React12, { useCallback as useCallback3, useMemo as useMemo3 } from "react";
|
|
4997
|
-
import { FONT_FAMILY as FONT_FAMILY2 } from "haoxin-excalidraw-common";
|
|
4997
|
+
import { FONT_FAMILY as FONT_FAMILY2 } from "haoxin-excalidraw-sdk-common";
|
|
4998
4998
|
|
|
4999
4999
|
// components/FontPicker/FontPickerList.tsx
|
|
5000
5000
|
import React11, {
|
|
@@ -5009,7 +5009,7 @@ import {
|
|
|
5009
5009
|
debounce,
|
|
5010
5010
|
FONT_FAMILY,
|
|
5011
5011
|
getFontFamilyString
|
|
5012
|
-
} from "haoxin-excalidraw-common";
|
|
5012
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
5013
5013
|
|
|
5014
5014
|
// components/QuickSearch.tsx
|
|
5015
5015
|
import clsx13 from "clsx";
|
|
@@ -5064,7 +5064,7 @@ MenuGroup.displayName = "DropdownMenuGroup";
|
|
|
5064
5064
|
|
|
5065
5065
|
// components/dropdownMenu/DropdownMenuItem.tsx
|
|
5066
5066
|
import { useEffect as useEffect9, useRef as useRef9 } from "react";
|
|
5067
|
-
import { THEME as THEME3 } from "haoxin-excalidraw-common";
|
|
5067
|
+
import { THEME as THEME3 } from "haoxin-excalidraw-sdk-common";
|
|
5068
5068
|
|
|
5069
5069
|
// components/Ellipsify.tsx
|
|
5070
5070
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
@@ -5106,7 +5106,7 @@ var DropdownMenuItemContent_default = MenuItemContent;
|
|
|
5106
5106
|
|
|
5107
5107
|
// components/dropdownMenu/common.ts
|
|
5108
5108
|
import React9, { useContext } from "react";
|
|
5109
|
-
import { EVENT as EVENT4, composeEventHandlers } from "haoxin-excalidraw-common";
|
|
5109
|
+
import { EVENT as EVENT4, composeEventHandlers } from "haoxin-excalidraw-sdk-common";
|
|
5110
5110
|
var DropdownMenuContentPropsContext = React9.createContext({});
|
|
5111
5111
|
var getDropdownMenuItemClassName = (className = "", selected = false, hovered = false) => {
|
|
5112
5112
|
return `dropdown-menu-item dropdown-menu-item-base ${className}
|
|
@@ -5213,7 +5213,7 @@ DropdownMenuItem.Badge = DropDownMenuItemBadge;
|
|
|
5213
5213
|
var DropdownMenuItem_default = DropdownMenuItem;
|
|
5214
5214
|
|
|
5215
5215
|
// components/FontPicker/keyboardNavHandlers.ts
|
|
5216
|
-
import { KEYS as KEYS9 } from "haoxin-excalidraw-common";
|
|
5216
|
+
import { KEYS as KEYS9 } from "haoxin-excalidraw-sdk-common";
|
|
5217
5217
|
var fontPickerKeyHandler = ({
|
|
5218
5218
|
event,
|
|
5219
5219
|
inputRef,
|
|
@@ -5576,7 +5576,7 @@ var FontPicker = React12.memo(
|
|
|
5576
5576
|
import * as Popover5 from "@radix-ui/react-popover";
|
|
5577
5577
|
import clsx15 from "clsx";
|
|
5578
5578
|
import React13, { useEffect as useEffect11 } from "react";
|
|
5579
|
-
import { isArrowKey, KEYS as KEYS10 } from "haoxin-excalidraw-common";
|
|
5579
|
+
import { isArrowKey, KEYS as KEYS10 } from "haoxin-excalidraw-sdk-common";
|
|
5580
5580
|
|
|
5581
5581
|
// components/InlineIcon.tsx
|
|
5582
5582
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
@@ -7235,7 +7235,7 @@ var actionChangeArrowType = register({
|
|
|
7235
7235
|
});
|
|
7236
7236
|
|
|
7237
7237
|
// actions/actionCanvas.tsx
|
|
7238
|
-
import { clamp, roundToStep } from "haoxin-excalidraw-math";
|
|
7238
|
+
import { clamp, roundToStep } from "haoxin-excalidraw-sdk-math";
|
|
7239
7239
|
import {
|
|
7240
7240
|
DEFAULT_CANVAS_BACKGROUND_PICKS as DEFAULT_CANVAS_BACKGROUND_PICKS2,
|
|
7241
7241
|
CURSOR_TYPE as CURSOR_TYPE2,
|
|
@@ -7247,11 +7247,11 @@ import {
|
|
|
7247
7247
|
updateActiveTool as updateActiveTool2,
|
|
7248
7248
|
CODES as CODES2,
|
|
7249
7249
|
KEYS as KEYS12
|
|
7250
|
-
} from "haoxin-excalidraw-common";
|
|
7251
|
-
import { getNonDeletedElements as getNonDeletedElements5 } from "haoxin-excalidraw-element";
|
|
7252
|
-
import { newElementWith as newElementWith3 } from "haoxin-excalidraw-element";
|
|
7253
|
-
import { getCommonBounds } from "haoxin-excalidraw-element";
|
|
7254
|
-
import { CaptureUpdateAction as CaptureUpdateAction6 } from "haoxin-excalidraw-element";
|
|
7250
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
7251
|
+
import { getNonDeletedElements as getNonDeletedElements5 } from "haoxin-excalidraw-sdk-element";
|
|
7252
|
+
import { newElementWith as newElementWith3 } from "haoxin-excalidraw-sdk-element";
|
|
7253
|
+
import { getCommonBounds } from "haoxin-excalidraw-sdk-element";
|
|
7254
|
+
import { CaptureUpdateAction as CaptureUpdateAction6 } from "haoxin-excalidraw-sdk-element";
|
|
7255
7255
|
|
|
7256
7256
|
// components/Tooltip.tsx
|
|
7257
7257
|
import { useEffect as useEffect14 } from "react";
|
|
@@ -7336,7 +7336,7 @@ var Tooltip = ({
|
|
|
7336
7336
|
|
|
7337
7337
|
// cursor.ts
|
|
7338
7338
|
import OpenColor from "open-color";
|
|
7339
|
-
import { CURSOR_TYPE, MIME_TYPES, THEME as THEME4 } from "haoxin-excalidraw-common";
|
|
7339
|
+
import { CURSOR_TYPE, MIME_TYPES, THEME as THEME4 } from "haoxin-excalidraw-sdk-common";
|
|
7340
7340
|
var laserPointerCursorSVG_tag = `<svg viewBox="0 0 24 24" stroke-width="1" width="28" height="28" xmlns="http://www.w3.org/2000/svg">`;
|
|
7341
7341
|
var laserPointerCursorBackgroundSVG = `<path d="M6.164 11.755a5.314 5.314 0 0 1-4.932-5.298 5.314 5.314 0 0 1 5.311-5.311 5.314 5.314 0 0 1 5.307 5.113l8.773 8.773a3.322 3.322 0 0 1 0 4.696l-.895.895a3.322 3.322 0 0 1-4.696 0l-8.868-8.868Z" style="fill:#fff"/>`;
|
|
7342
7342
|
var laserPointerCursorIconSVG = `<path stroke="#1b1b1f" fill="#fff" d="m7.868 11.113 7.773 7.774a2.359 2.359 0 0 0 1.667.691 2.368 2.368 0 0 0 2.357-2.358c0-.625-.248-1.225-.69-1.667L11.201 7.78 9.558 9.469l-1.69 1.643v.001Zm10.273 3.606-3.333 3.333m-3.25-6.583 2 2m-7-7 3 3M3.664 3.625l1 1M2.529 6.922l1.407-.144m5.735-2.932-1.118.866M4.285 9.823l.758-1.194m1.863-6.207-.13 1.408"/>`;
|
|
@@ -7892,8 +7892,8 @@ var actionToggleHandTool = register({
|
|
|
7892
7892
|
});
|
|
7893
7893
|
|
|
7894
7894
|
// actions/actionEmbeddable.ts
|
|
7895
|
-
import { updateActiveTool as updateActiveTool3 } from "haoxin-excalidraw-common";
|
|
7896
|
-
import { CaptureUpdateAction as CaptureUpdateAction7 } from "haoxin-excalidraw-element";
|
|
7895
|
+
import { updateActiveTool as updateActiveTool3 } from "haoxin-excalidraw-sdk-common";
|
|
7896
|
+
import { CaptureUpdateAction as CaptureUpdateAction7 } from "haoxin-excalidraw-sdk-element";
|
|
7897
7897
|
var actionSetEmbeddableAsActiveTool = register({
|
|
7898
7898
|
name: "setEmbeddableAsActiveTool",
|
|
7899
7899
|
trackEvent: { category: "toolbar" },
|
|
@@ -7921,32 +7921,32 @@ var actionSetEmbeddableAsActiveTool = register({
|
|
|
7921
7921
|
});
|
|
7922
7922
|
|
|
7923
7923
|
// actions/actionFinalize.tsx
|
|
7924
|
-
import { pointFrom as pointFrom2 } from "haoxin-excalidraw-math";
|
|
7924
|
+
import { pointFrom as pointFrom2 } from "haoxin-excalidraw-sdk-math";
|
|
7925
7925
|
import {
|
|
7926
7926
|
maybeBindLinearElement,
|
|
7927
7927
|
bindOrUnbindLinearElement,
|
|
7928
7928
|
isBindingEnabled
|
|
7929
|
-
} from "haoxin-excalidraw-element/binding";
|
|
7929
|
+
} from "haoxin-excalidraw-sdk-element/binding";
|
|
7930
7930
|
import {
|
|
7931
7931
|
isValidPolygon,
|
|
7932
7932
|
LinearElementEditor as LinearElementEditor5,
|
|
7933
7933
|
newElementWith as newElementWith4
|
|
7934
|
-
} from "haoxin-excalidraw-element";
|
|
7934
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
7935
7935
|
import {
|
|
7936
7936
|
isBindingElement,
|
|
7937
7937
|
isFreeDrawElement,
|
|
7938
7938
|
isLinearElement as isLinearElement3,
|
|
7939
7939
|
isLineElement as isLineElement2
|
|
7940
|
-
} from "haoxin-excalidraw-element";
|
|
7940
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
7941
7941
|
import {
|
|
7942
7942
|
KEYS as KEYS13,
|
|
7943
7943
|
arrayToMap as arrayToMap4,
|
|
7944
7944
|
tupleToCoors,
|
|
7945
7945
|
updateActiveTool as updateActiveTool4
|
|
7946
|
-
} from "haoxin-excalidraw-common";
|
|
7947
|
-
import { isPathALoop } from "haoxin-excalidraw-element";
|
|
7948
|
-
import { isInvisiblySmallElement } from "haoxin-excalidraw-element";
|
|
7949
|
-
import { CaptureUpdateAction as CaptureUpdateAction8 } from "haoxin-excalidraw-element";
|
|
7946
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
7947
|
+
import { isPathALoop } from "haoxin-excalidraw-sdk-element";
|
|
7948
|
+
import { isInvisiblySmallElement } from "haoxin-excalidraw-sdk-element";
|
|
7949
|
+
import { CaptureUpdateAction as CaptureUpdateAction8 } from "haoxin-excalidraw-sdk-element";
|
|
7950
7950
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
7951
7951
|
var actionFinalize = register({
|
|
7952
7952
|
name: "finalize",
|
|
@@ -8168,9 +8168,9 @@ import {
|
|
|
8168
8168
|
DEFAULT_EXPORT_PADDING as DEFAULT_EXPORT_PADDING2,
|
|
8169
8169
|
EXPORT_SCALES,
|
|
8170
8170
|
THEME as THEME7
|
|
8171
|
-
} from "haoxin-excalidraw-common";
|
|
8172
|
-
import { getNonDeletedElements as getNonDeletedElements7 } from "haoxin-excalidraw-element";
|
|
8173
|
-
import { CaptureUpdateAction as CaptureUpdateAction9 } from "haoxin-excalidraw-element";
|
|
8171
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
8172
|
+
import { getNonDeletedElements as getNonDeletedElements7 } from "haoxin-excalidraw-sdk-element";
|
|
8173
|
+
import { CaptureUpdateAction as CaptureUpdateAction9 } from "haoxin-excalidraw-sdk-element";
|
|
8174
8174
|
|
|
8175
8175
|
// components/CheckboxItem.tsx
|
|
8176
8176
|
import clsx16 from "clsx";
|
|
@@ -8204,7 +8204,7 @@ var CheckboxItem = ({ children, checked, onChange, className }) => {
|
|
|
8204
8204
|
};
|
|
8205
8205
|
|
|
8206
8206
|
// components/DarkModeToggle.tsx
|
|
8207
|
-
import { THEME as THEME6 } from "haoxin-excalidraw-common";
|
|
8207
|
+
import { THEME as THEME6 } from "haoxin-excalidraw-sdk-common";
|
|
8208
8208
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
8209
8209
|
var DarkModeToggle = (props) => {
|
|
8210
8210
|
const title = props.title || (props.value === THEME6.DARK ? t("buttons.lightMode") : t("buttons.darkMode"));
|
|
@@ -8239,7 +8239,7 @@ var ICONS = {
|
|
|
8239
8239
|
|
|
8240
8240
|
// components/ProjectName.tsx
|
|
8241
8241
|
import { useState as useState7 } from "react";
|
|
8242
|
-
import { focusNearestParent, KEYS as KEYS14 } from "haoxin-excalidraw-common";
|
|
8242
|
+
import { focusNearestParent, KEYS as KEYS14 } from "haoxin-excalidraw-sdk-common";
|
|
8243
8243
|
import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8244
8244
|
var ProjectName = (props) => {
|
|
8245
8245
|
const { id } = useExcalidrawContainer();
|
|
@@ -8288,10 +8288,10 @@ import {
|
|
|
8288
8288
|
MIME_TYPES as MIME_TYPES3,
|
|
8289
8289
|
cloneJSON,
|
|
8290
8290
|
SVG_DOCUMENT_PREAMBLE
|
|
8291
|
-
} from "haoxin-excalidraw-common";
|
|
8292
|
-
import { getNonDeletedElements as getNonDeletedElements6 } from "haoxin-excalidraw-element";
|
|
8293
|
-
import { isFrameLikeElement as isFrameLikeElement3 } from "haoxin-excalidraw-element";
|
|
8294
|
-
import { getElementsOverlappingFrame } from "haoxin-excalidraw-element";
|
|
8291
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
8292
|
+
import { getNonDeletedElements as getNonDeletedElements6 } from "haoxin-excalidraw-sdk-element";
|
|
8293
|
+
import { isFrameLikeElement as isFrameLikeElement3 } from "haoxin-excalidraw-sdk-element";
|
|
8294
|
+
import { getElementsOverlappingFrame } from "haoxin-excalidraw-sdk-element";
|
|
8295
8295
|
|
|
8296
8296
|
// clipboard.ts
|
|
8297
8297
|
import {
|
|
@@ -8302,17 +8302,17 @@ import {
|
|
|
8302
8302
|
isMemberOf,
|
|
8303
8303
|
isPromiseLike as isPromiseLike2,
|
|
8304
8304
|
EVENT as EVENT5
|
|
8305
|
-
} from "haoxin-excalidraw-common";
|
|
8306
|
-
import { mutateElement } from "haoxin-excalidraw-element";
|
|
8307
|
-
import { deepCopyElement } from "haoxin-excalidraw-element";
|
|
8305
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
8306
|
+
import { mutateElement } from "haoxin-excalidraw-sdk-element";
|
|
8307
|
+
import { deepCopyElement } from "haoxin-excalidraw-sdk-element";
|
|
8308
8308
|
import {
|
|
8309
8309
|
isFrameLikeElement as isFrameLikeElement2,
|
|
8310
8310
|
isInitializedImageElement
|
|
8311
|
-
} from "haoxin-excalidraw-element";
|
|
8312
|
-
import { getContainingFrame } from "haoxin-excalidraw-element";
|
|
8311
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
8312
|
+
import { getContainingFrame } from "haoxin-excalidraw-sdk-element";
|
|
8313
8313
|
|
|
8314
8314
|
// charts.ts
|
|
8315
|
-
import { pointFrom as pointFrom3 } from "haoxin-excalidraw-math";
|
|
8315
|
+
import { pointFrom as pointFrom3 } from "haoxin-excalidraw-sdk-math";
|
|
8316
8316
|
import {
|
|
8317
8317
|
COLOR_PALETTE as COLOR_PALETTE3,
|
|
8318
8318
|
DEFAULT_CHART_COLOR_INDEX,
|
|
@@ -8322,12 +8322,12 @@ import {
|
|
|
8322
8322
|
VERTICAL_ALIGN as VERTICAL_ALIGN2,
|
|
8323
8323
|
randomId,
|
|
8324
8324
|
isDevEnv as isDevEnv3
|
|
8325
|
-
} from "haoxin-excalidraw-common";
|
|
8325
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
8326
8326
|
import {
|
|
8327
8327
|
newTextElement,
|
|
8328
8328
|
newLinearElement,
|
|
8329
8329
|
newElement
|
|
8330
|
-
} from "haoxin-excalidraw-element";
|
|
8330
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
8331
8331
|
var BAR_WIDTH = 32;
|
|
8332
8332
|
var BAR_GAP = 12;
|
|
8333
8333
|
var BAR_HEIGHT = 256;
|
|
@@ -9145,7 +9145,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
9145
9145
|
let blob = canvasToBlob(tempCanvas);
|
|
9146
9146
|
if (appState.exportEmbedScene) {
|
|
9147
9147
|
blob = blob.then(
|
|
9148
|
-
(blob2) => import("./data/image-
|
|
9148
|
+
(blob2) => import("./data/image-CVHJEERS.js").then(
|
|
9149
9149
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
9150
9150
|
blob: blob2,
|
|
9151
9151
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -9485,8 +9485,8 @@ import {
|
|
|
9485
9485
|
CODES as CODES3,
|
|
9486
9486
|
KEYS as KEYS16,
|
|
9487
9487
|
getLineHeight as getLineHeight2
|
|
9488
|
-
} from "haoxin-excalidraw-common";
|
|
9489
|
-
import { newElementWith as newElementWith5 } from "haoxin-excalidraw-element";
|
|
9488
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
9489
|
+
import { newElementWith as newElementWith5 } from "haoxin-excalidraw-sdk-element";
|
|
9490
9490
|
import {
|
|
9491
9491
|
hasBoundTextElement,
|
|
9492
9492
|
canApplyRoundnessTypeToElement,
|
|
@@ -9495,12 +9495,12 @@ import {
|
|
|
9495
9495
|
isArrowElement as isArrowElement2,
|
|
9496
9496
|
isExcalidrawElement,
|
|
9497
9497
|
isTextElement as isTextElement3
|
|
9498
|
-
} from "haoxin-excalidraw-element";
|
|
9498
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
9499
9499
|
import {
|
|
9500
9500
|
getBoundTextElement as getBoundTextElement2,
|
|
9501
9501
|
redrawTextBoundingBox as redrawTextBoundingBox2
|
|
9502
|
-
} from "haoxin-excalidraw-element";
|
|
9503
|
-
import { CaptureUpdateAction as CaptureUpdateAction10 } from "haoxin-excalidraw-element";
|
|
9502
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
9503
|
+
import { CaptureUpdateAction as CaptureUpdateAction10 } from "haoxin-excalidraw-sdk-element";
|
|
9504
9504
|
var copiedStyles = "{}";
|
|
9505
9505
|
var actionCopyStyles = register({
|
|
9506
9506
|
name: "copyStyles",
|
|
@@ -9610,10 +9610,10 @@ var actionPasteStyles = register({
|
|
|
9610
9610
|
});
|
|
9611
9611
|
|
|
9612
9612
|
// actions/actionMenu.tsx
|
|
9613
|
-
import { KEYS as KEYS17 } from "haoxin-excalidraw-common";
|
|
9614
|
-
import { getNonDeletedElements as getNonDeletedElements8 } from "haoxin-excalidraw-element";
|
|
9615
|
-
import { showSelectedShapeActions } from "haoxin-excalidraw-element";
|
|
9616
|
-
import { CaptureUpdateAction as CaptureUpdateAction11 } from "haoxin-excalidraw-element";
|
|
9613
|
+
import { KEYS as KEYS17 } from "haoxin-excalidraw-sdk-common";
|
|
9614
|
+
import { getNonDeletedElements as getNonDeletedElements8 } from "haoxin-excalidraw-sdk-element";
|
|
9615
|
+
import { showSelectedShapeActions } from "haoxin-excalidraw-sdk-element";
|
|
9616
|
+
import { CaptureUpdateAction as CaptureUpdateAction11 } from "haoxin-excalidraw-sdk-element";
|
|
9617
9617
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
9618
9618
|
var actionToggleCanvasMenu = register({
|
|
9619
9619
|
name: "toggleCanvasMenu",
|
|
@@ -9687,9 +9687,9 @@ var actionShortcuts = register({
|
|
|
9687
9687
|
});
|
|
9688
9688
|
|
|
9689
9689
|
// actions/actionGroup.tsx
|
|
9690
|
-
import { getNonDeletedElements as getNonDeletedElements9 } from "haoxin-excalidraw-element";
|
|
9691
|
-
import { newElementWith as newElementWith6 } from "haoxin-excalidraw-element";
|
|
9692
|
-
import { isBoundToContainer as isBoundToContainer3 } from "haoxin-excalidraw-element";
|
|
9690
|
+
import { getNonDeletedElements as getNonDeletedElements9 } from "haoxin-excalidraw-sdk-element";
|
|
9691
|
+
import { newElementWith as newElementWith6 } from "haoxin-excalidraw-sdk-element";
|
|
9692
|
+
import { isBoundToContainer as isBoundToContainer3 } from "haoxin-excalidraw-sdk-element";
|
|
9693
9693
|
import {
|
|
9694
9694
|
frameAndChildrenSelectedTogether,
|
|
9695
9695
|
getElementsInResizingFrame,
|
|
@@ -9698,8 +9698,8 @@ import {
|
|
|
9698
9698
|
groupByFrameLikes,
|
|
9699
9699
|
removeElementsFromFrame,
|
|
9700
9700
|
replaceAllElementsInFrame
|
|
9701
|
-
} from "haoxin-excalidraw-element";
|
|
9702
|
-
import { KEYS as KEYS18, randomId as randomId2, arrayToMap as arrayToMap6, getShortcutKey as getShortcutKey6 } from "haoxin-excalidraw-common";
|
|
9701
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
9702
|
+
import { KEYS as KEYS18, randomId as randomId2, arrayToMap as arrayToMap6, getShortcutKey as getShortcutKey6 } from "haoxin-excalidraw-sdk-common";
|
|
9703
9703
|
import {
|
|
9704
9704
|
getSelectedGroupIds,
|
|
9705
9705
|
selectGroup,
|
|
@@ -9708,9 +9708,9 @@ import {
|
|
|
9708
9708
|
addToGroup,
|
|
9709
9709
|
removeFromSelectedGroups,
|
|
9710
9710
|
isElementInGroup
|
|
9711
|
-
} from "haoxin-excalidraw-element";
|
|
9712
|
-
import { syncMovedIndices as syncMovedIndices2 } from "haoxin-excalidraw-element";
|
|
9713
|
-
import { CaptureUpdateAction as CaptureUpdateAction12 } from "haoxin-excalidraw-element";
|
|
9711
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
9712
|
+
import { syncMovedIndices as syncMovedIndices2 } from "haoxin-excalidraw-sdk-element";
|
|
9713
|
+
import { CaptureUpdateAction as CaptureUpdateAction12 } from "haoxin-excalidraw-sdk-element";
|
|
9714
9714
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
9715
9715
|
var allElementsInSameGroup = (elements) => {
|
|
9716
9716
|
if (elements.length >= 2) {
|
|
@@ -9936,7 +9936,7 @@ var actionUngroup = register({
|
|
|
9936
9936
|
|
|
9937
9937
|
// actions/actionNavigate.tsx
|
|
9938
9938
|
import clsx18 from "clsx";
|
|
9939
|
-
import { CaptureUpdateAction as CaptureUpdateAction13 } from "haoxin-excalidraw-element";
|
|
9939
|
+
import { CaptureUpdateAction as CaptureUpdateAction13 } from "haoxin-excalidraw-sdk-element";
|
|
9940
9940
|
|
|
9941
9941
|
// clients.ts
|
|
9942
9942
|
import {
|
|
@@ -9945,7 +9945,7 @@ import {
|
|
|
9945
9945
|
COLOR_WHITE,
|
|
9946
9946
|
THEME as THEME8,
|
|
9947
9947
|
UserIdleState
|
|
9948
|
-
} from "haoxin-excalidraw-common";
|
|
9948
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
9949
9949
|
|
|
9950
9950
|
// renderer/roundRect.ts
|
|
9951
9951
|
var roundRect = (context, x, y, width, height, radius, strokeColor) => {
|
|
@@ -10295,9 +10295,9 @@ var actionGoToCollaborator = register({
|
|
|
10295
10295
|
});
|
|
10296
10296
|
|
|
10297
10297
|
// actions/actionAddToLibrary.ts
|
|
10298
|
-
import { LIBRARY_DISABLED_TYPES, randomId as randomId3 } from "haoxin-excalidraw-common";
|
|
10299
|
-
import { deepCopyElement as deepCopyElement2 } from "haoxin-excalidraw-element";
|
|
10300
|
-
import { CaptureUpdateAction as CaptureUpdateAction14 } from "haoxin-excalidraw-element";
|
|
10298
|
+
import { LIBRARY_DISABLED_TYPES, randomId as randomId3 } from "haoxin-excalidraw-sdk-common";
|
|
10299
|
+
import { deepCopyElement as deepCopyElement2 } from "haoxin-excalidraw-sdk-element";
|
|
10300
|
+
import { CaptureUpdateAction as CaptureUpdateAction14 } from "haoxin-excalidraw-sdk-element";
|
|
10301
10301
|
var actionAddToLibrary = register({
|
|
10302
10302
|
name: "addToLibrary",
|
|
10303
10303
|
trackEvent: { category: "element" },
|
|
@@ -10350,13 +10350,13 @@ var actionAddToLibrary = register({
|
|
|
10350
10350
|
});
|
|
10351
10351
|
|
|
10352
10352
|
// actions/actionAlign.tsx
|
|
10353
|
-
import { getNonDeletedElements as getNonDeletedElements10 } from "haoxin-excalidraw-element";
|
|
10354
|
-
import { isFrameLikeElement as isFrameLikeElement5 } from "haoxin-excalidraw-element";
|
|
10355
|
-
import { updateFrameMembershipOfSelectedElements } from "haoxin-excalidraw-element";
|
|
10356
|
-
import { KEYS as KEYS19, arrayToMap as arrayToMap7, getShortcutKey as getShortcutKey7 } from "haoxin-excalidraw-common";
|
|
10357
|
-
import { alignElements } from "haoxin-excalidraw-element";
|
|
10358
|
-
import { CaptureUpdateAction as CaptureUpdateAction15 } from "haoxin-excalidraw-element";
|
|
10359
|
-
import { getSelectedElementsByGroup } from "haoxin-excalidraw-element";
|
|
10353
|
+
import { getNonDeletedElements as getNonDeletedElements10 } from "haoxin-excalidraw-sdk-element";
|
|
10354
|
+
import { isFrameLikeElement as isFrameLikeElement5 } from "haoxin-excalidraw-sdk-element";
|
|
10355
|
+
import { updateFrameMembershipOfSelectedElements } from "haoxin-excalidraw-sdk-element";
|
|
10356
|
+
import { KEYS as KEYS19, arrayToMap as arrayToMap7, getShortcutKey as getShortcutKey7 } from "haoxin-excalidraw-sdk-common";
|
|
10357
|
+
import { alignElements } from "haoxin-excalidraw-sdk-element";
|
|
10358
|
+
import { CaptureUpdateAction as CaptureUpdateAction15 } from "haoxin-excalidraw-sdk-element";
|
|
10359
|
+
import { getSelectedElementsByGroup } from "haoxin-excalidraw-sdk-element";
|
|
10360
10360
|
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
10361
10361
|
var alignActionsPredicate = (appState, app) => {
|
|
10362
10362
|
const selectedElements = app.scene.getSelectedElements(appState);
|
|
@@ -10570,13 +10570,13 @@ var actionAlignHorizontallyCentered = register({
|
|
|
10570
10570
|
});
|
|
10571
10571
|
|
|
10572
10572
|
// actions/actionDistribute.tsx
|
|
10573
|
-
import { getNonDeletedElements as getNonDeletedElements11 } from "haoxin-excalidraw-element";
|
|
10574
|
-
import { isFrameLikeElement as isFrameLikeElement6 } from "haoxin-excalidraw-element";
|
|
10575
|
-
import { CODES as CODES4, KEYS as KEYS20, arrayToMap as arrayToMap8, getShortcutKey as getShortcutKey8 } from "haoxin-excalidraw-common";
|
|
10576
|
-
import { updateFrameMembershipOfSelectedElements as updateFrameMembershipOfSelectedElements2 } from "haoxin-excalidraw-element";
|
|
10577
|
-
import { distributeElements } from "haoxin-excalidraw-element";
|
|
10578
|
-
import { CaptureUpdateAction as CaptureUpdateAction16 } from "haoxin-excalidraw-element";
|
|
10579
|
-
import { getSelectedElementsByGroup as getSelectedElementsByGroup2 } from "haoxin-excalidraw-element";
|
|
10573
|
+
import { getNonDeletedElements as getNonDeletedElements11 } from "haoxin-excalidraw-sdk-element";
|
|
10574
|
+
import { isFrameLikeElement as isFrameLikeElement6 } from "haoxin-excalidraw-sdk-element";
|
|
10575
|
+
import { CODES as CODES4, KEYS as KEYS20, arrayToMap as arrayToMap8, getShortcutKey as getShortcutKey8 } from "haoxin-excalidraw-sdk-common";
|
|
10576
|
+
import { updateFrameMembershipOfSelectedElements as updateFrameMembershipOfSelectedElements2 } from "haoxin-excalidraw-sdk-element";
|
|
10577
|
+
import { distributeElements } from "haoxin-excalidraw-sdk-element";
|
|
10578
|
+
import { CaptureUpdateAction as CaptureUpdateAction16 } from "haoxin-excalidraw-sdk-element";
|
|
10579
|
+
import { getSelectedElementsByGroup as getSelectedElementsByGroup2 } from "haoxin-excalidraw-sdk-element";
|
|
10580
10580
|
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
10581
10581
|
var enableActionGroup2 = (appState, app) => {
|
|
10582
10582
|
const selectedElements = app.scene.getSelectedElements(appState);
|
|
@@ -10662,23 +10662,23 @@ var distributeVertically = register({
|
|
|
10662
10662
|
});
|
|
10663
10663
|
|
|
10664
10664
|
// actions/actionFlip.ts
|
|
10665
|
-
import { getNonDeletedElements as getNonDeletedElements12 } from "haoxin-excalidraw-element";
|
|
10665
|
+
import { getNonDeletedElements as getNonDeletedElements12 } from "haoxin-excalidraw-sdk-element";
|
|
10666
10666
|
import {
|
|
10667
10667
|
bindOrUnbindLinearElements,
|
|
10668
10668
|
isBindingEnabled as isBindingEnabled2
|
|
10669
|
-
} from "haoxin-excalidraw-element";
|
|
10670
|
-
import { getCommonBoundingBox } from "haoxin-excalidraw-element";
|
|
10671
|
-
import { newElementWith as newElementWith7 } from "haoxin-excalidraw-element";
|
|
10672
|
-
import { deepCopyElement as deepCopyElement3 } from "haoxin-excalidraw-element";
|
|
10673
|
-
import { resizeMultipleElements } from "haoxin-excalidraw-element";
|
|
10669
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
10670
|
+
import { getCommonBoundingBox } from "haoxin-excalidraw-sdk-element";
|
|
10671
|
+
import { newElementWith as newElementWith7 } from "haoxin-excalidraw-sdk-element";
|
|
10672
|
+
import { deepCopyElement as deepCopyElement3 } from "haoxin-excalidraw-sdk-element";
|
|
10673
|
+
import { resizeMultipleElements } from "haoxin-excalidraw-sdk-element";
|
|
10674
10674
|
import {
|
|
10675
10675
|
isArrowElement as isArrowElement3,
|
|
10676
10676
|
isElbowArrow as isElbowArrow3,
|
|
10677
10677
|
isLinearElement as isLinearElement4
|
|
10678
|
-
} from "haoxin-excalidraw-element";
|
|
10679
|
-
import { updateFrameMembershipOfSelectedElements as updateFrameMembershipOfSelectedElements3 } from "haoxin-excalidraw-element";
|
|
10680
|
-
import { CODES as CODES5, KEYS as KEYS21, arrayToMap as arrayToMap9 } from "haoxin-excalidraw-common";
|
|
10681
|
-
import { CaptureUpdateAction as CaptureUpdateAction17 } from "haoxin-excalidraw-element";
|
|
10678
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
10679
|
+
import { updateFrameMembershipOfSelectedElements as updateFrameMembershipOfSelectedElements3 } from "haoxin-excalidraw-sdk-element";
|
|
10680
|
+
import { CODES as CODES5, KEYS as KEYS21, arrayToMap as arrayToMap9 } from "haoxin-excalidraw-sdk-common";
|
|
10681
|
+
import { CaptureUpdateAction as CaptureUpdateAction17 } from "haoxin-excalidraw-sdk-element";
|
|
10682
10682
|
var actionFlipHorizontal = register({
|
|
10683
10683
|
name: "flipHorizontal",
|
|
10684
10684
|
label: "labels.flipHorizontal",
|
|
@@ -10808,10 +10808,10 @@ var flipElements = (selectedElements, elementsMap, appState, flipDirection, app)
|
|
|
10808
10808
|
};
|
|
10809
10809
|
|
|
10810
10810
|
// actions/actionClipboard.tsx
|
|
10811
|
-
import { isTextElement as isTextElement4 } from "haoxin-excalidraw-element";
|
|
10812
|
-
import { getTextFromElements } from "haoxin-excalidraw-element";
|
|
10813
|
-
import { CODES as CODES6, KEYS as KEYS22, isFirefox as isFirefox2 } from "haoxin-excalidraw-common";
|
|
10814
|
-
import { CaptureUpdateAction as CaptureUpdateAction18 } from "haoxin-excalidraw-element";
|
|
10811
|
+
import { isTextElement as isTextElement4 } from "haoxin-excalidraw-sdk-element";
|
|
10812
|
+
import { getTextFromElements } from "haoxin-excalidraw-sdk-element";
|
|
10813
|
+
import { CODES as CODES6, KEYS as KEYS22, isFirefox as isFirefox2 } from "haoxin-excalidraw-sdk-common";
|
|
10814
|
+
import { CaptureUpdateAction as CaptureUpdateAction18 } from "haoxin-excalidraw-sdk-element";
|
|
10815
10815
|
var actionCopy = register({
|
|
10816
10816
|
name: "copy",
|
|
10817
10817
|
label: "labels.copy",
|
|
@@ -11044,8 +11044,8 @@ var copyText = register({
|
|
|
11044
11044
|
});
|
|
11045
11045
|
|
|
11046
11046
|
// actions/actionToggleGridMode.tsx
|
|
11047
|
-
import { CODES as CODES7, KEYS as KEYS23 } from "haoxin-excalidraw-common";
|
|
11048
|
-
import { CaptureUpdateAction as CaptureUpdateAction19 } from "haoxin-excalidraw-element";
|
|
11047
|
+
import { CODES as CODES7, KEYS as KEYS23 } from "haoxin-excalidraw-sdk-common";
|
|
11048
|
+
import { CaptureUpdateAction as CaptureUpdateAction19 } from "haoxin-excalidraw-sdk-element";
|
|
11049
11049
|
var actionToggleGridMode = register({
|
|
11050
11050
|
name: "gridMode",
|
|
11051
11051
|
icon: gridIcon,
|
|
@@ -11074,8 +11074,8 @@ var actionToggleGridMode = register({
|
|
|
11074
11074
|
});
|
|
11075
11075
|
|
|
11076
11076
|
// actions/actionToggleZenMode.tsx
|
|
11077
|
-
import { CODES as CODES8, KEYS as KEYS24 } from "haoxin-excalidraw-common";
|
|
11078
|
-
import { CaptureUpdateAction as CaptureUpdateAction20 } from "haoxin-excalidraw-element";
|
|
11077
|
+
import { CODES as CODES8, KEYS as KEYS24 } from "haoxin-excalidraw-sdk-common";
|
|
11078
|
+
import { CaptureUpdateAction as CaptureUpdateAction20 } from "haoxin-excalidraw-sdk-element";
|
|
11079
11079
|
var actionToggleZenMode = register({
|
|
11080
11080
|
name: "zenMode",
|
|
11081
11081
|
label: "buttons.zenMode",
|
|
@@ -11102,8 +11102,8 @@ var actionToggleZenMode = register({
|
|
|
11102
11102
|
});
|
|
11103
11103
|
|
|
11104
11104
|
// actions/actionToggleObjectsSnapMode.tsx
|
|
11105
|
-
import { CODES as CODES9, KEYS as KEYS25 } from "haoxin-excalidraw-common";
|
|
11106
|
-
import { CaptureUpdateAction as CaptureUpdateAction21 } from "haoxin-excalidraw-element";
|
|
11105
|
+
import { CODES as CODES9, KEYS as KEYS25 } from "haoxin-excalidraw-sdk-common";
|
|
11106
|
+
import { CaptureUpdateAction as CaptureUpdateAction21 } from "haoxin-excalidraw-sdk-element";
|
|
11107
11107
|
var actionToggleObjectsSnapMode = register({
|
|
11108
11108
|
name: "objectsSnapMode",
|
|
11109
11109
|
label: "buttons.objectsSnapMode",
|
|
@@ -11131,8 +11131,8 @@ var actionToggleObjectsSnapMode = register({
|
|
|
11131
11131
|
});
|
|
11132
11132
|
|
|
11133
11133
|
// actions/actionToggleStats.tsx
|
|
11134
|
-
import { CODES as CODES10, KEYS as KEYS26 } from "haoxin-excalidraw-common";
|
|
11135
|
-
import { CaptureUpdateAction as CaptureUpdateAction22 } from "haoxin-excalidraw-element";
|
|
11134
|
+
import { CODES as CODES10, KEYS as KEYS26 } from "haoxin-excalidraw-sdk-common";
|
|
11135
|
+
import { CaptureUpdateAction as CaptureUpdateAction22 } from "haoxin-excalidraw-sdk-element";
|
|
11136
11136
|
var actionToggleStats = register({
|
|
11137
11137
|
name: "stats",
|
|
11138
11138
|
label: "stats.fullTitle",
|
|
@@ -11161,29 +11161,29 @@ import {
|
|
|
11161
11161
|
VERTICAL_ALIGN as VERTICAL_ALIGN3,
|
|
11162
11162
|
arrayToMap as arrayToMap10,
|
|
11163
11163
|
getFontString
|
|
11164
|
-
} from "haoxin-excalidraw-common";
|
|
11164
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
11165
11165
|
import {
|
|
11166
11166
|
getOriginalContainerHeightFromCache,
|
|
11167
11167
|
resetOriginalContainerCache,
|
|
11168
11168
|
updateOriginalContainerCache
|
|
11169
|
-
} from "haoxin-excalidraw-element";
|
|
11169
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
11170
11170
|
import {
|
|
11171
11171
|
computeBoundTextPosition,
|
|
11172
11172
|
computeContainerDimensionForBoundText,
|
|
11173
11173
|
getBoundTextElement as getBoundTextElement3,
|
|
11174
11174
|
redrawTextBoundingBox as redrawTextBoundingBox3
|
|
11175
|
-
} from "haoxin-excalidraw-element";
|
|
11175
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
11176
11176
|
import {
|
|
11177
11177
|
hasBoundTextElement as hasBoundTextElement2,
|
|
11178
11178
|
isArrowElement as isArrowElement4,
|
|
11179
11179
|
isTextBindableContainer,
|
|
11180
11180
|
isTextElement as isTextElement5,
|
|
11181
11181
|
isUsingAdaptiveRadius as isUsingAdaptiveRadius2
|
|
11182
|
-
} from "haoxin-excalidraw-element";
|
|
11183
|
-
import { measureText } from "haoxin-excalidraw-element";
|
|
11184
|
-
import { syncMovedIndices as syncMovedIndices3 } from "haoxin-excalidraw-element";
|
|
11185
|
-
import { newElement as newElement2 } from "haoxin-excalidraw-element";
|
|
11186
|
-
import { CaptureUpdateAction as CaptureUpdateAction23 } from "haoxin-excalidraw-element";
|
|
11182
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
11183
|
+
import { measureText } from "haoxin-excalidraw-sdk-element";
|
|
11184
|
+
import { syncMovedIndices as syncMovedIndices3 } from "haoxin-excalidraw-sdk-element";
|
|
11185
|
+
import { newElement as newElement2 } from "haoxin-excalidraw-sdk-element";
|
|
11186
|
+
import { CaptureUpdateAction as CaptureUpdateAction23 } from "haoxin-excalidraw-sdk-element";
|
|
11187
11187
|
var actionUnbindText = register({
|
|
11188
11188
|
name: "unbindText",
|
|
11189
11189
|
label: "labels.unbindText",
|
|
@@ -11417,12 +11417,12 @@ var actionWrapTextInContainer = register({
|
|
|
11417
11417
|
});
|
|
11418
11418
|
|
|
11419
11419
|
// actions/actionLink.tsx
|
|
11420
|
-
import { isEmbeddableElement as isEmbeddableElement2 } from "haoxin-excalidraw-element";
|
|
11421
|
-
import { KEYS as KEYS28, getShortcutKey as getShortcutKey9 } from "haoxin-excalidraw-common";
|
|
11422
|
-
import { CaptureUpdateAction as CaptureUpdateAction24 } from "haoxin-excalidraw-element";
|
|
11420
|
+
import { isEmbeddableElement as isEmbeddableElement2 } from "haoxin-excalidraw-sdk-element";
|
|
11421
|
+
import { KEYS as KEYS28, getShortcutKey as getShortcutKey9 } from "haoxin-excalidraw-sdk-common";
|
|
11422
|
+
import { CaptureUpdateAction as CaptureUpdateAction24 } from "haoxin-excalidraw-sdk-element";
|
|
11423
11423
|
|
|
11424
11424
|
// components/hyperlink/Hyperlink.tsx
|
|
11425
|
-
import { pointFrom as pointFrom4 } from "haoxin-excalidraw-math";
|
|
11425
|
+
import { pointFrom as pointFrom4 } from "haoxin-excalidraw-sdk-math";
|
|
11426
11426
|
import clsx19 from "clsx";
|
|
11427
11427
|
import {
|
|
11428
11428
|
useCallback as useCallback4,
|
|
@@ -11431,19 +11431,19 @@ import {
|
|
|
11431
11431
|
useRef as useRef12,
|
|
11432
11432
|
useState as useState9
|
|
11433
11433
|
} from "react";
|
|
11434
|
-
import { EVENT as EVENT6, HYPERLINK_TOOLTIP_DELAY, KEYS as KEYS27 } from "haoxin-excalidraw-common";
|
|
11435
|
-
import { getElementAbsoluteCoords } from "haoxin-excalidraw-element";
|
|
11436
|
-
import { hitElementBoundingBox } from "haoxin-excalidraw-element";
|
|
11437
|
-
import { isElementLink } from "haoxin-excalidraw-element";
|
|
11438
|
-
import { getEmbedLink, embeddableURLValidator } from "haoxin-excalidraw-element";
|
|
11434
|
+
import { EVENT as EVENT6, HYPERLINK_TOOLTIP_DELAY, KEYS as KEYS27 } from "haoxin-excalidraw-sdk-common";
|
|
11435
|
+
import { getElementAbsoluteCoords } from "haoxin-excalidraw-sdk-element";
|
|
11436
|
+
import { hitElementBoundingBox } from "haoxin-excalidraw-sdk-element";
|
|
11437
|
+
import { isElementLink } from "haoxin-excalidraw-sdk-element";
|
|
11438
|
+
import { getEmbedLink, embeddableURLValidator } from "haoxin-excalidraw-sdk-element";
|
|
11439
11439
|
import {
|
|
11440
11440
|
sceneCoordsToViewportCoords,
|
|
11441
11441
|
viewportCoordsToSceneCoords,
|
|
11442
11442
|
wrapEvent,
|
|
11443
11443
|
isLocalLink,
|
|
11444
11444
|
normalizeLink
|
|
11445
|
-
} from "haoxin-excalidraw-common";
|
|
11446
|
-
import { isEmbeddableElement } from "haoxin-excalidraw-element";
|
|
11445
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
11446
|
+
import { isEmbeddableElement } from "haoxin-excalidraw-sdk-element";
|
|
11447
11447
|
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11448
11448
|
var POPUP_WIDTH = 380;
|
|
11449
11449
|
var POPUP_HEIGHT = 42;
|
|
@@ -11822,13 +11822,13 @@ var actionLink = register({
|
|
|
11822
11822
|
});
|
|
11823
11823
|
|
|
11824
11824
|
// actions/actionElementLock.ts
|
|
11825
|
-
import { KEYS as KEYS29, arrayToMap as arrayToMap11, randomId as randomId4 } from "haoxin-excalidraw-common";
|
|
11825
|
+
import { KEYS as KEYS29, arrayToMap as arrayToMap11, randomId as randomId4 } from "haoxin-excalidraw-sdk-common";
|
|
11826
11826
|
import {
|
|
11827
11827
|
elementsAreInSameGroup,
|
|
11828
11828
|
newElementWith as newElementWith8,
|
|
11829
11829
|
selectGroupsFromGivenElements
|
|
11830
|
-
} from "haoxin-excalidraw-element";
|
|
11831
|
-
import { CaptureUpdateAction as CaptureUpdateAction25 } from "haoxin-excalidraw-element";
|
|
11830
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
11831
|
+
import { CaptureUpdateAction as CaptureUpdateAction25 } from "haoxin-excalidraw-sdk-element";
|
|
11832
11832
|
var shouldLock = (elements) => elements.every((el) => !el.locked);
|
|
11833
11833
|
var actionToggleElementLock = register({
|
|
11834
11834
|
name: "toggleElementLock",
|
|
@@ -11974,12 +11974,12 @@ import {
|
|
|
11974
11974
|
isElbowArrow as isElbowArrow7,
|
|
11975
11975
|
isLinearElement as isLinearElement9,
|
|
11976
11976
|
isLineElement as isLineElement4
|
|
11977
|
-
} from "haoxin-excalidraw-element";
|
|
11978
|
-
import { arrayToMap as arrayToMap20, invariant as invariant8 } from "haoxin-excalidraw-common";
|
|
11977
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
11978
|
+
import { arrayToMap as arrayToMap20, invariant as invariant8 } from "haoxin-excalidraw-sdk-common";
|
|
11979
11979
|
import {
|
|
11980
11980
|
toggleLinePolygonState as toggleLinePolygonState3,
|
|
11981
11981
|
CaptureUpdateAction as CaptureUpdateAction28
|
|
11982
|
-
} from "haoxin-excalidraw-element";
|
|
11982
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
11983
11983
|
|
|
11984
11984
|
// components/CommandPalette/CommandPalette.tsx
|
|
11985
11985
|
import clsx32 from "clsx";
|
|
@@ -11992,18 +11992,18 @@ import {
|
|
|
11992
11992
|
capitalizeString as capitalizeString2,
|
|
11993
11993
|
getShortcutKey as getShortcutKey11,
|
|
11994
11994
|
isWritableElement
|
|
11995
|
-
} from "haoxin-excalidraw-common";
|
|
11995
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
11996
11996
|
|
|
11997
11997
|
// actions/actionToggleShapeSwitch.tsx
|
|
11998
|
-
import { CaptureUpdateAction as CaptureUpdateAction26 } from "haoxin-excalidraw-element";
|
|
11998
|
+
import { CaptureUpdateAction as CaptureUpdateAction26 } from "haoxin-excalidraw-sdk-element";
|
|
11999
11999
|
|
|
12000
12000
|
// components/ConvertElementTypePopup.tsx
|
|
12001
12001
|
import { useEffect as useEffect16, useMemo as useMemo5, useRef as useRef13, useState as useState10 } from "react";
|
|
12002
12002
|
import {
|
|
12003
12003
|
getLinearElementSubType,
|
|
12004
12004
|
updateElbowArrowPoints as updateElbowArrowPoints2
|
|
12005
|
-
} from "haoxin-excalidraw-element";
|
|
12006
|
-
import { pointFrom as pointFrom5, pointRotateRads } from "haoxin-excalidraw-math";
|
|
12005
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
12006
|
+
import { pointFrom as pointFrom5, pointRotateRads } from "haoxin-excalidraw-sdk-math";
|
|
12007
12007
|
import {
|
|
12008
12008
|
hasBoundTextElement as hasBoundTextElement3,
|
|
12009
12009
|
isArrowBoundToElement,
|
|
@@ -12011,18 +12011,18 @@ import {
|
|
|
12011
12011
|
isElbowArrow as isElbowArrow4,
|
|
12012
12012
|
isLinearElement as isLinearElement5,
|
|
12013
12013
|
isUsingAdaptiveRadius as isUsingAdaptiveRadius3
|
|
12014
|
-
} from "haoxin-excalidraw-element";
|
|
12014
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
12015
12015
|
import {
|
|
12016
12016
|
getCommonBoundingBox as getCommonBoundingBox2,
|
|
12017
12017
|
getElementAbsoluteCoords as getElementAbsoluteCoords2
|
|
12018
|
-
} from "haoxin-excalidraw-element";
|
|
12018
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
12019
12019
|
import {
|
|
12020
12020
|
getBoundTextElement as getBoundTextElement4,
|
|
12021
12021
|
getBoundTextMaxHeight,
|
|
12022
12022
|
getBoundTextMaxWidth,
|
|
12023
12023
|
redrawTextBoundingBox as redrawTextBoundingBox4
|
|
12024
|
-
} from "haoxin-excalidraw-element";
|
|
12025
|
-
import { wrapText } from "haoxin-excalidraw-element";
|
|
12024
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
12025
|
+
import { wrapText } from "haoxin-excalidraw-sdk-element";
|
|
12026
12026
|
import {
|
|
12027
12027
|
assertNever,
|
|
12028
12028
|
CLASSES,
|
|
@@ -12031,16 +12031,16 @@ import {
|
|
|
12031
12031
|
mapFind,
|
|
12032
12032
|
reduceToCommonValue as reduceToCommonValue2,
|
|
12033
12033
|
updateActiveTool as updateActiveTool5
|
|
12034
|
-
} from "haoxin-excalidraw-common";
|
|
12035
|
-
import { measureText as measureText2 } from "haoxin-excalidraw-element";
|
|
12036
|
-
import { LinearElementEditor as LinearElementEditor6 } from "haoxin-excalidraw-element";
|
|
12034
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
12035
|
+
import { measureText as measureText2 } from "haoxin-excalidraw-sdk-element";
|
|
12036
|
+
import { LinearElementEditor as LinearElementEditor6 } from "haoxin-excalidraw-sdk-element";
|
|
12037
12037
|
import {
|
|
12038
12038
|
newArrowElement,
|
|
12039
12039
|
newElement as newElement3,
|
|
12040
12040
|
newLinearElement as newLinearElement2
|
|
12041
|
-
} from "haoxin-excalidraw-element";
|
|
12042
|
-
import { ShapeCache } from "haoxin-excalidraw-element";
|
|
12043
|
-
import { updateBindings } from "haoxin-excalidraw-element";
|
|
12041
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
12042
|
+
import { ShapeCache } from "haoxin-excalidraw-sdk-element";
|
|
12043
|
+
import { updateBindings } from "haoxin-excalidraw-sdk-element";
|
|
12044
12044
|
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
12045
12045
|
var GAP_HORIZONTAL = 8;
|
|
12046
12046
|
var GAP_VERTICAL = 10;
|
|
@@ -12631,8 +12631,8 @@ import {
|
|
|
12631
12631
|
canCreateLinkFromElements,
|
|
12632
12632
|
defaultGetElementLinkFromSelection,
|
|
12633
12633
|
getLinkIdAndTypeFromSelection
|
|
12634
|
-
} from "haoxin-excalidraw-element";
|
|
12635
|
-
import { CaptureUpdateAction as CaptureUpdateAction27 } from "haoxin-excalidraw-element";
|
|
12634
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
12635
|
+
import { CaptureUpdateAction as CaptureUpdateAction27 } from "haoxin-excalidraw-sdk-element";
|
|
12636
12636
|
var actionCopyElementLink = register({
|
|
12637
12637
|
name: "copyElementLink",
|
|
12638
12638
|
label: "labels.copyElementLink",
|
|
@@ -12715,7 +12715,7 @@ var actionLinkToElement = register({
|
|
|
12715
12715
|
});
|
|
12716
12716
|
|
|
12717
12717
|
// actions/shortcuts.ts
|
|
12718
|
-
import { isDarwin as isDarwin2, getShortcutKey as getShortcutKey10 } from "haoxin-excalidraw-common";
|
|
12718
|
+
import { isDarwin as isDarwin2, getShortcutKey as getShortcutKey10 } from "haoxin-excalidraw-sdk-common";
|
|
12719
12719
|
var shortcutMap = {
|
|
12720
12720
|
toggleTheme: [getShortcutKey10("Shift+Alt+D")],
|
|
12721
12721
|
saveScene: [getShortcutKey10("CtrlOrCmd+S")],
|
|
@@ -12993,7 +12993,7 @@ var deburr = (str) => {
|
|
|
12993
12993
|
// components/Dialog.tsx
|
|
12994
12994
|
import clsx28 from "clsx";
|
|
12995
12995
|
import { useEffect as useEffect26, useState as useState19 } from "react";
|
|
12996
|
-
import { KEYS as KEYS32, queryFocusableElements } from "haoxin-excalidraw-common";
|
|
12996
|
+
import { KEYS as KEYS32, queryFocusableElements } from "haoxin-excalidraw-sdk-common";
|
|
12997
12997
|
|
|
12998
12998
|
// hooks/useCallbackRefState.ts
|
|
12999
12999
|
import { useCallback as useCallback5, useState as useState11 } from "react";
|
|
@@ -13016,7 +13016,7 @@ import {
|
|
|
13016
13016
|
LIBRARY_DISABLED_TYPES as LIBRARY_DISABLED_TYPES2,
|
|
13017
13017
|
randomId as randomId5,
|
|
13018
13018
|
isShallowEqual
|
|
13019
|
-
} from "haoxin-excalidraw-common";
|
|
13019
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
13020
13020
|
|
|
13021
13021
|
// data/library.ts
|
|
13022
13022
|
import { useEffect as useEffect18, useRef as useRef14 } from "react";
|
|
@@ -13035,12 +13035,12 @@ import {
|
|
|
13035
13035
|
toValidURL,
|
|
13036
13036
|
Queue,
|
|
13037
13037
|
Emitter
|
|
13038
|
-
} from "haoxin-excalidraw-common";
|
|
13039
|
-
import { hashElementsVersion, hashString } from "haoxin-excalidraw-element";
|
|
13040
|
-
import { getCommonBoundingBox as getCommonBoundingBox3 } from "haoxin-excalidraw-element";
|
|
13038
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
13039
|
+
import { hashElementsVersion, hashString } from "haoxin-excalidraw-sdk-element";
|
|
13040
|
+
import { getCommonBoundingBox as getCommonBoundingBox3 } from "haoxin-excalidraw-sdk-element";
|
|
13041
13041
|
|
|
13042
13042
|
// ../utils/src/export.ts
|
|
13043
|
-
import { MIME_TYPES as MIME_TYPES4 } from "haoxin-excalidraw-common";
|
|
13043
|
+
import { MIME_TYPES as MIME_TYPES4 } from "haoxin-excalidraw-sdk-common";
|
|
13044
13044
|
var exportToCanvas2 = ({
|
|
13045
13045
|
elements,
|
|
13046
13046
|
appState,
|
|
@@ -13177,7 +13177,7 @@ var exportToClipboard = async (opts) => {
|
|
|
13177
13177
|
|
|
13178
13178
|
// hooks/useLibraryItemSvg.ts
|
|
13179
13179
|
import { useEffect as useEffect17, useState as useState12 } from "react";
|
|
13180
|
-
import { COLOR_PALETTE as COLOR_PALETTE4 } from "haoxin-excalidraw-common";
|
|
13180
|
+
import { COLOR_PALETTE as COLOR_PALETTE4 } from "haoxin-excalidraw-sdk-common";
|
|
13181
13181
|
var libraryItemSvgsCache = atom(/* @__PURE__ */ new Map());
|
|
13182
13182
|
var exportLibraryItemToSvg = async (elements) => {
|
|
13183
13183
|
return await exportToSvg2({
|
|
@@ -13797,7 +13797,7 @@ var useHandleLibrary = (opts) => {
|
|
|
13797
13797
|
import clsx20 from "clsx";
|
|
13798
13798
|
|
|
13799
13799
|
// components/LibraryMenuBrowseButton.tsx
|
|
13800
|
-
import { VERSIONS } from "haoxin-excalidraw-common";
|
|
13800
|
+
import { VERSIONS } from "haoxin-excalidraw-sdk-common";
|
|
13801
13801
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
13802
13802
|
var LibraryMenuBrowseButton = ({
|
|
13803
13803
|
theme,
|
|
@@ -13855,8 +13855,8 @@ import {
|
|
|
13855
13855
|
useRef as useRef18,
|
|
13856
13856
|
useState as useState17
|
|
13857
13857
|
} from "react";
|
|
13858
|
-
import { MIME_TYPES as MIME_TYPES6, arrayToMap as arrayToMap13 } from "haoxin-excalidraw-common";
|
|
13859
|
-
import { duplicateElements as duplicateElements2 } from "haoxin-excalidraw-element";
|
|
13858
|
+
import { MIME_TYPES as MIME_TYPES6, arrayToMap as arrayToMap13 } from "haoxin-excalidraw-sdk-common";
|
|
13859
|
+
import { duplicateElements as duplicateElements2 } from "haoxin-excalidraw-sdk-element";
|
|
13860
13860
|
|
|
13861
13861
|
// hooks/useScrollPosition.ts
|
|
13862
13862
|
import throttle from "lodash.throttle";
|
|
@@ -13885,7 +13885,7 @@ var useScrollPosition = (elementRef) => {
|
|
|
13885
13885
|
// components/LibraryMenuHeaderContent.tsx
|
|
13886
13886
|
import clsx25 from "clsx";
|
|
13887
13887
|
import { useCallback as useCallback7, useState as useState14 } from "react";
|
|
13888
|
-
import { muteFSAbortError } from "haoxin-excalidraw-common";
|
|
13888
|
+
import { muteFSAbortError } from "haoxin-excalidraw-sdk-common";
|
|
13889
13889
|
|
|
13890
13890
|
// components/ConfirmDialog.tsx
|
|
13891
13891
|
import { flushSync } from "react-dom";
|
|
@@ -13993,7 +13993,7 @@ import {
|
|
|
13993
13993
|
VERSIONS as VERSIONS2,
|
|
13994
13994
|
chunk,
|
|
13995
13995
|
getExportSource
|
|
13996
|
-
} from "haoxin-excalidraw-common";
|
|
13996
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
13997
13997
|
|
|
13998
13998
|
// data/EditorLocalStorage.ts
|
|
13999
13999
|
var EditorLocalStorage = class {
|
|
@@ -14566,7 +14566,7 @@ var PublishLibrary_default = PublishLibrary;
|
|
|
14566
14566
|
// components/dropdownMenu/DropdownMenuContent.tsx
|
|
14567
14567
|
import clsx23 from "clsx";
|
|
14568
14568
|
import { useEffect as useEffect21, useRef as useRef16 } from "react";
|
|
14569
|
-
import { EVENT as EVENT8, KEYS as KEYS30 } from "haoxin-excalidraw-common";
|
|
14569
|
+
import { EVENT as EVENT8, KEYS as KEYS30 } from "haoxin-excalidraw-sdk-common";
|
|
14570
14570
|
|
|
14571
14571
|
// components/Stack.tsx
|
|
14572
14572
|
import { forwardRef as forwardRef2 } from "react";
|
|
@@ -15649,7 +15649,7 @@ var LibraryMenu = memo3(() => {
|
|
|
15649
15649
|
import clsx27 from "clsx";
|
|
15650
15650
|
import { useRef as useRef20 } from "react";
|
|
15651
15651
|
import { createPortal as createPortal2 } from "react-dom";
|
|
15652
|
-
import { KEYS as KEYS31 } from "haoxin-excalidraw-common";
|
|
15652
|
+
import { KEYS as KEYS31 } from "haoxin-excalidraw-sdk-common";
|
|
15653
15653
|
import { jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
15654
15654
|
var Modal = (props) => {
|
|
15655
15655
|
const { closeOnClickOutside = true } = props;
|
|
@@ -15804,7 +15804,7 @@ import {
|
|
|
15804
15804
|
|
|
15805
15805
|
// components/Button.tsx
|
|
15806
15806
|
import clsx29 from "clsx";
|
|
15807
|
-
import { composeEventHandlers as composeEventHandlers2 } from "haoxin-excalidraw-common";
|
|
15807
|
+
import { composeEventHandlers as composeEventHandlers2 } from "haoxin-excalidraw-sdk-common";
|
|
15808
15808
|
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
15809
15809
|
var Button = ({
|
|
15810
15810
|
type = "button",
|
|
@@ -15906,7 +15906,7 @@ var TextField = forwardRef3(
|
|
|
15906
15906
|
);
|
|
15907
15907
|
|
|
15908
15908
|
// components/shapes.tsx
|
|
15909
|
-
import { KEYS as KEYS33 } from "haoxin-excalidraw-common";
|
|
15909
|
+
import { KEYS as KEYS33 } from "haoxin-excalidraw-sdk-common";
|
|
15910
15910
|
var SHAPES = [
|
|
15911
15911
|
{
|
|
15912
15912
|
icon: SelectionIcon,
|
|
@@ -16071,19 +16071,19 @@ import {
|
|
|
16071
16071
|
KEYS as KEYS34,
|
|
16072
16072
|
capitalizeString,
|
|
16073
16073
|
isTransparent as isTransparent3
|
|
16074
|
-
} from "haoxin-excalidraw-common";
|
|
16074
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
16075
16075
|
import {
|
|
16076
16076
|
shouldAllowVerticalAlign,
|
|
16077
16077
|
suppportsHorizontalAlign
|
|
16078
|
-
} from "haoxin-excalidraw-element";
|
|
16078
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
16079
16079
|
import {
|
|
16080
16080
|
hasBoundTextElement as hasBoundTextElement4,
|
|
16081
16081
|
isElbowArrow as isElbowArrow5,
|
|
16082
16082
|
isImageElement,
|
|
16083
16083
|
isLinearElement as isLinearElement6,
|
|
16084
16084
|
isTextElement as isTextElement6
|
|
16085
|
-
} from "haoxin-excalidraw-element";
|
|
16086
|
-
import { hasStrokeColor as hasStrokeColor2, toolIsArrow } from "haoxin-excalidraw-element";
|
|
16085
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
16086
|
+
import { hasStrokeColor as hasStrokeColor2, toolIsArrow } from "haoxin-excalidraw-sdk-element";
|
|
16087
16087
|
|
|
16088
16088
|
// context/tunnels.ts
|
|
16089
16089
|
import { createIsolation as createIsolation2 } from "jotai-scope";
|
|
@@ -17169,14 +17169,14 @@ import {
|
|
|
17169
17169
|
getSizeFromPoints as getSizeFromPoints2,
|
|
17170
17170
|
randomInteger as randomInteger2,
|
|
17171
17171
|
getUpdatedTimestamp
|
|
17172
|
-
} from "haoxin-excalidraw-common";
|
|
17172
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17173
17173
|
|
|
17174
17174
|
// ../element/src/shape.ts
|
|
17175
17175
|
import { simplify } from "points-on-curve";
|
|
17176
17176
|
|
|
17177
17177
|
// ../utils/src/shape.ts
|
|
17178
17178
|
import { pointsOnBezierCurves } from "points-on-curve";
|
|
17179
|
-
import { invariant } from "haoxin-excalidraw-common";
|
|
17179
|
+
import { invariant } from "haoxin-excalidraw-sdk-common";
|
|
17180
17180
|
import {
|
|
17181
17181
|
curve,
|
|
17182
17182
|
lineSegment,
|
|
@@ -17193,8 +17193,8 @@ import {
|
|
|
17193
17193
|
vectorAdd,
|
|
17194
17194
|
vectorFromPoint,
|
|
17195
17195
|
vectorScale
|
|
17196
|
-
} from "haoxin-excalidraw-math";
|
|
17197
|
-
import { getElementAbsoluteCoords as getElementAbsoluteCoords3 } from "haoxin-excalidraw-element";
|
|
17196
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17197
|
+
import { getElementAbsoluteCoords as getElementAbsoluteCoords3 } from "haoxin-excalidraw-sdk-element";
|
|
17198
17198
|
var getCurvePathOps = (shape) => {
|
|
17199
17199
|
if (!shape) {
|
|
17200
17200
|
return [];
|
|
@@ -17212,20 +17212,20 @@ import {
|
|
|
17212
17212
|
pointFrom as pointFrom18,
|
|
17213
17213
|
pointDistance as pointDistance7,
|
|
17214
17214
|
pointRotateRads as pointRotateRads12
|
|
17215
|
-
} from "haoxin-excalidraw-math";
|
|
17215
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17216
17216
|
import {
|
|
17217
17217
|
ROUGHNESS,
|
|
17218
17218
|
isTransparent as isTransparent5,
|
|
17219
17219
|
assertNever as assertNever3,
|
|
17220
17220
|
COLOR_PALETTE as COLOR_PALETTE5,
|
|
17221
17221
|
LINE_POLYGON_POINT_MERGE_DISTANCE
|
|
17222
|
-
} from "haoxin-excalidraw-common";
|
|
17222
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17223
17223
|
import { RoughGenerator } from "roughjs/bin/generator";
|
|
17224
17224
|
|
|
17225
17225
|
// ../element/src/renderElement.ts
|
|
17226
17226
|
import rough2 from "roughjs/bin/rough";
|
|
17227
17227
|
import { getStroke } from "perfect-freehand";
|
|
17228
|
-
import { isRightAngleRads } from "haoxin-excalidraw-math";
|
|
17228
|
+
import { isRightAngleRads } from "haoxin-excalidraw-sdk-math";
|
|
17229
17229
|
import {
|
|
17230
17230
|
BOUND_TEXT_PADDING as BOUND_TEXT_PADDING4,
|
|
17231
17231
|
DEFAULT_REDUCED_GLOBAL_ALPHA,
|
|
@@ -17237,7 +17237,7 @@ import {
|
|
|
17237
17237
|
getFontString as getFontString5,
|
|
17238
17238
|
isRTL,
|
|
17239
17239
|
getVerticalOffset
|
|
17240
|
-
} from "haoxin-excalidraw-common";
|
|
17240
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17241
17241
|
|
|
17242
17242
|
// ../element/src/bounds.ts
|
|
17243
17243
|
import rough from "roughjs/bin/rough";
|
|
@@ -17246,7 +17246,7 @@ import {
|
|
|
17246
17246
|
invariant as invariant7,
|
|
17247
17247
|
rescalePoints,
|
|
17248
17248
|
sizeOf
|
|
17249
|
-
} from "haoxin-excalidraw-common";
|
|
17249
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17250
17250
|
import {
|
|
17251
17251
|
degreesToRadians,
|
|
17252
17252
|
lineSegment as lineSegment5,
|
|
@@ -17254,7 +17254,7 @@ import {
|
|
|
17254
17254
|
pointFrom as pointFrom14,
|
|
17255
17255
|
pointFromArray as pointFromArray3,
|
|
17256
17256
|
pointRotateRads as pointRotateRads9
|
|
17257
|
-
} from "haoxin-excalidraw-math";
|
|
17257
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17258
17258
|
import { pointsOnBezierCurves as pointsOnBezierCurves2 } from "points-on-curve";
|
|
17259
17259
|
|
|
17260
17260
|
// ../element/src/linearElementEditor.ts
|
|
@@ -17267,7 +17267,7 @@ import {
|
|
|
17267
17267
|
vectorFromPoint as vectorFromPoint6,
|
|
17268
17268
|
curveLength,
|
|
17269
17269
|
curvePointAtLength
|
|
17270
|
-
} from "haoxin-excalidraw-math";
|
|
17270
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17271
17271
|
import {
|
|
17272
17272
|
DRAGGING_THRESHOLD,
|
|
17273
17273
|
KEYS as KEYS37,
|
|
@@ -17276,11 +17276,11 @@ import {
|
|
|
17276
17276
|
invariant as invariant6,
|
|
17277
17277
|
tupleToCoors as tupleToCoors4,
|
|
17278
17278
|
viewportCoordsToSceneCoords as viewportCoordsToSceneCoords3
|
|
17279
|
-
} from "haoxin-excalidraw-common";
|
|
17279
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17280
17280
|
import {
|
|
17281
17281
|
deconstructLinearOrFreeDrawElement as deconstructLinearOrFreeDrawElement2,
|
|
17282
17282
|
isPathALoop as isPathALoop3
|
|
17283
|
-
} from "haoxin-excalidraw-element";
|
|
17283
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
17284
17284
|
|
|
17285
17285
|
// ../element/src/binding.ts
|
|
17286
17286
|
import {
|
|
@@ -17291,7 +17291,7 @@ import {
|
|
|
17291
17291
|
invariant as invariant5,
|
|
17292
17292
|
isDevEnv as isDevEnv7,
|
|
17293
17293
|
isTestEnv as isTestEnv4
|
|
17294
|
-
} from "haoxin-excalidraw-common";
|
|
17294
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17295
17295
|
import {
|
|
17296
17296
|
lineSegment as lineSegment4,
|
|
17297
17297
|
pointFrom as pointFrom12,
|
|
@@ -17307,10 +17307,10 @@ import {
|
|
|
17307
17307
|
pointsEqual as pointsEqual5,
|
|
17308
17308
|
lineSegmentIntersectionPoints as lineSegmentIntersectionPoints2,
|
|
17309
17309
|
PRECISION as PRECISION2
|
|
17310
|
-
} from "haoxin-excalidraw-math";
|
|
17310
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17311
17311
|
|
|
17312
17312
|
// ../element/src/collision.ts
|
|
17313
|
-
import { isTransparent as isTransparent4 } from "haoxin-excalidraw-common";
|
|
17313
|
+
import { isTransparent as isTransparent4 } from "haoxin-excalidraw-sdk-common";
|
|
17314
17314
|
import {
|
|
17315
17315
|
curveIntersectLineSegment,
|
|
17316
17316
|
isPointWithinBounds,
|
|
@@ -17323,11 +17323,11 @@ import {
|
|
|
17323
17323
|
vectorFromPoint as vectorFromPoint2,
|
|
17324
17324
|
vectorNormalize,
|
|
17325
17325
|
vectorScale as vectorScale2
|
|
17326
|
-
} from "haoxin-excalidraw-math";
|
|
17326
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17327
17327
|
import {
|
|
17328
17328
|
ellipse as ellipse2,
|
|
17329
17329
|
ellipseSegmentInterceptPoints
|
|
17330
|
-
} from "haoxin-excalidraw-math/ellipse";
|
|
17330
|
+
} from "haoxin-excalidraw-sdk-math/ellipse";
|
|
17331
17331
|
|
|
17332
17332
|
// ../element/src/utils.ts
|
|
17333
17333
|
import {
|
|
@@ -17335,7 +17335,7 @@ import {
|
|
|
17335
17335
|
DEFAULT_PROPORTIONAL_RADIUS,
|
|
17336
17336
|
LINE_CONFIRM_THRESHOLD,
|
|
17337
17337
|
ROUNDNESS as ROUNDNESS4
|
|
17338
|
-
} from "haoxin-excalidraw-common";
|
|
17338
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17339
17339
|
import {
|
|
17340
17340
|
curve as curve2,
|
|
17341
17341
|
curveCatmullRomCubicApproxPoints,
|
|
@@ -17345,7 +17345,7 @@ import {
|
|
|
17345
17345
|
pointFrom as pointFrom7,
|
|
17346
17346
|
pointFromArray as pointFromArray2,
|
|
17347
17347
|
rectangle
|
|
17348
|
-
} from "haoxin-excalidraw-math";
|
|
17348
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17349
17349
|
var isPathALoop2 = (points, zoomValue = 1) => {
|
|
17350
17350
|
if (points.length >= 3) {
|
|
17351
17351
|
const [first, last] = [points[0], points[points.length - 1]];
|
|
@@ -17370,8 +17370,8 @@ var getCornerRadius = (x, element) => {
|
|
|
17370
17370
|
};
|
|
17371
17371
|
|
|
17372
17372
|
// ../element/src/typeChecks.ts
|
|
17373
|
-
import { ROUNDNESS as ROUNDNESS5 } from "haoxin-excalidraw-common";
|
|
17374
|
-
import { pointsEqual } from "haoxin-excalidraw-math";
|
|
17373
|
+
import { ROUNDNESS as ROUNDNESS5 } from "haoxin-excalidraw-sdk-common";
|
|
17374
|
+
import { pointsEqual } from "haoxin-excalidraw-sdk-math";
|
|
17375
17375
|
var isEmbeddableElement3 = (element) => {
|
|
17376
17376
|
return !!element && element.type === "embeddable";
|
|
17377
17377
|
};
|
|
@@ -17414,8 +17414,8 @@ import {
|
|
|
17414
17414
|
getFontString as getFontString4,
|
|
17415
17415
|
isProdEnv as isProdEnv2,
|
|
17416
17416
|
invariant as invariant2
|
|
17417
|
-
} from "haoxin-excalidraw-common";
|
|
17418
|
-
import { pointFrom as pointFrom8, pointRotateRads as pointRotateRads3 } from "haoxin-excalidraw-math";
|
|
17417
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17418
|
+
import { pointFrom as pointFrom8, pointRotateRads as pointRotateRads3 } from "haoxin-excalidraw-sdk-math";
|
|
17419
17419
|
|
|
17420
17420
|
// ../element/src/textMeasurements.ts
|
|
17421
17421
|
import {
|
|
@@ -17425,22 +17425,22 @@ import {
|
|
|
17425
17425
|
getFontString as getFontString3,
|
|
17426
17426
|
isTestEnv,
|
|
17427
17427
|
normalizeEOL
|
|
17428
|
-
} from "haoxin-excalidraw-common";
|
|
17428
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17429
17429
|
var DUMMY_TEXT = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase();
|
|
17430
17430
|
|
|
17431
17431
|
// ../element/src/textWrapping.ts
|
|
17432
|
-
import { isDevEnv as isDevEnv4, isTestEnv as isTestEnv2 } from "haoxin-excalidraw-common";
|
|
17432
|
+
import { isDevEnv as isDevEnv4, isTestEnv as isTestEnv2 } from "haoxin-excalidraw-sdk-common";
|
|
17433
17433
|
|
|
17434
17434
|
// ../element/src/distance.ts
|
|
17435
17435
|
import {
|
|
17436
17436
|
curvePointDistance,
|
|
17437
17437
|
distanceToLineSegment,
|
|
17438
17438
|
pointRotateRads as pointRotateRads4
|
|
17439
|
-
} from "haoxin-excalidraw-math";
|
|
17440
|
-
import { ellipse, ellipseDistanceFromPoint } from "haoxin-excalidraw-math/ellipse";
|
|
17439
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17440
|
+
import { ellipse, ellipseDistanceFromPoint } from "haoxin-excalidraw-sdk-math/ellipse";
|
|
17441
17441
|
|
|
17442
17442
|
// ../element/src/heading.ts
|
|
17443
|
-
import { invariant as invariant3, isDevEnv as isDevEnv5, isTestEnv as isTestEnv3 } from "haoxin-excalidraw-common";
|
|
17443
|
+
import { invariant as invariant3, isDevEnv as isDevEnv5, isTestEnv as isTestEnv3 } from "haoxin-excalidraw-sdk-common";
|
|
17444
17444
|
import {
|
|
17445
17445
|
pointFrom as pointFrom10,
|
|
17446
17446
|
pointFromVector as pointFromVector3,
|
|
@@ -17451,7 +17451,7 @@ import {
|
|
|
17451
17451
|
vectorCross,
|
|
17452
17452
|
vectorFromPoint as vectorFromPoint3,
|
|
17453
17453
|
vectorScale as vectorScale3
|
|
17454
|
-
} from "haoxin-excalidraw-math";
|
|
17454
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17455
17455
|
var HEADING_RIGHT = [1, 0];
|
|
17456
17456
|
var HEADING_DOWN = [0, 1];
|
|
17457
17457
|
var HEADING_LEFT = [-1, 0];
|
|
@@ -17486,7 +17486,7 @@ import {
|
|
|
17486
17486
|
vectorCross as vectorCross2,
|
|
17487
17487
|
vectorFromPoint as vectorFromPoint4,
|
|
17488
17488
|
vectorScale as vectorScale4
|
|
17489
|
-
} from "haoxin-excalidraw-math";
|
|
17489
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17490
17490
|
import {
|
|
17491
17491
|
BinaryHeap,
|
|
17492
17492
|
invariant as invariant4,
|
|
@@ -17495,19 +17495,19 @@ import {
|
|
|
17495
17495
|
getSizeFromPoints,
|
|
17496
17496
|
isDevEnv as isDevEnv6,
|
|
17497
17497
|
arrayToMap as arrayToMap14
|
|
17498
|
-
} from "haoxin-excalidraw-common";
|
|
17498
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17499
17499
|
|
|
17500
17500
|
// ../element/src/sizeHelpers.ts
|
|
17501
17501
|
import {
|
|
17502
17502
|
SHIFT_LOCKING_ANGLE,
|
|
17503
17503
|
viewportCoordsToSceneCoords as viewportCoordsToSceneCoords2
|
|
17504
|
-
} from "haoxin-excalidraw-common";
|
|
17504
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
17505
17505
|
import {
|
|
17506
17506
|
normalizeRadians,
|
|
17507
17507
|
radiansBetweenAngles,
|
|
17508
17508
|
radiansDifference
|
|
17509
|
-
} from "haoxin-excalidraw-math";
|
|
17510
|
-
import { pointsEqual as pointsEqual6 } from "haoxin-excalidraw-math";
|
|
17509
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17510
|
+
import { pointsEqual as pointsEqual6 } from "haoxin-excalidraw-sdk-math";
|
|
17511
17511
|
|
|
17512
17512
|
// ../element/src/bounds.ts
|
|
17513
17513
|
var getDiamondPoints = (element) => {
|
|
@@ -17675,34 +17675,34 @@ import {
|
|
|
17675
17675
|
pointFromVector as pointFromVector5,
|
|
17676
17676
|
clamp as clamp4,
|
|
17677
17677
|
isCloseTo
|
|
17678
|
-
} from "haoxin-excalidraw-math";
|
|
17678
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17679
17679
|
|
|
17680
17680
|
// ../element/src/frame.ts
|
|
17681
|
-
import { arrayToMap as arrayToMap19 } from "haoxin-excalidraw-common";
|
|
17682
|
-
import { isPointWithinBounds as isPointWithinBounds2, pointFrom as pointFrom17 } from "haoxin-excalidraw-math";
|
|
17681
|
+
import { arrayToMap as arrayToMap19 } from "haoxin-excalidraw-sdk-common";
|
|
17682
|
+
import { isPointWithinBounds as isPointWithinBounds2, pointFrom as pointFrom17 } from "haoxin-excalidraw-sdk-math";
|
|
17683
17683
|
|
|
17684
17684
|
// ../utils/src/bbox.ts
|
|
17685
17685
|
import {
|
|
17686
17686
|
vectorCross as vectorCross4,
|
|
17687
17687
|
vectorFromPoint as vectorFromPoint8
|
|
17688
|
-
} from "haoxin-excalidraw-math";
|
|
17688
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17689
17689
|
|
|
17690
17690
|
// ../utils/src/withinBounds.ts
|
|
17691
|
-
import { arrayToMap as arrayToMap17 } from "haoxin-excalidraw-common";
|
|
17692
|
-
import { getElementBounds as getElementBounds2 } from "haoxin-excalidraw-element";
|
|
17691
|
+
import { arrayToMap as arrayToMap17 } from "haoxin-excalidraw-sdk-common";
|
|
17692
|
+
import { getElementBounds as getElementBounds2 } from "haoxin-excalidraw-sdk-element";
|
|
17693
17693
|
import {
|
|
17694
17694
|
isArrowElement as isArrowElement7,
|
|
17695
17695
|
isExcalidrawElement as isExcalidrawElement2,
|
|
17696
17696
|
isFreeDrawElement as isFreeDrawElement3,
|
|
17697
17697
|
isLinearElement as isLinearElement8,
|
|
17698
17698
|
isTextElement as isTextElement8
|
|
17699
|
-
} from "haoxin-excalidraw-element";
|
|
17699
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
17700
17700
|
import {
|
|
17701
17701
|
rangeIncludesValue,
|
|
17702
17702
|
pointFrom as pointFrom16,
|
|
17703
17703
|
pointRotateRads as pointRotateRads11,
|
|
17704
17704
|
rangeInclusive
|
|
17705
|
-
} from "haoxin-excalidraw-math";
|
|
17705
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
17706
17706
|
var getNonLinearElementRelativePoints = (element) => {
|
|
17707
17707
|
if (element.type === "diamond") {
|
|
17708
17708
|
return [
|
|
@@ -17828,7 +17828,7 @@ var elementsOverlappingBBox = ({
|
|
|
17828
17828
|
};
|
|
17829
17829
|
|
|
17830
17830
|
// ../element/src/selection.ts
|
|
17831
|
-
import { arrayToMap as arrayToMap18, isShallowEqual as isShallowEqual2 } from "haoxin-excalidraw-common";
|
|
17831
|
+
import { arrayToMap as arrayToMap18, isShallowEqual as isShallowEqual2 } from "haoxin-excalidraw-sdk-common";
|
|
17832
17832
|
|
|
17833
17833
|
// ../element/src/groups.ts
|
|
17834
17834
|
var selectGroupsForSelectedElements4 = function() {
|
|
@@ -18818,8 +18818,8 @@ import {
|
|
|
18818
18818
|
CANVAS_SEARCH_TAB,
|
|
18819
18819
|
CLASSES as CLASSES3,
|
|
18820
18820
|
DEFAULT_SIDEBAR as DEFAULT_SIDEBAR3
|
|
18821
|
-
} from "haoxin-excalidraw-common";
|
|
18822
|
-
import { CaptureUpdateAction as CaptureUpdateAction29 } from "haoxin-excalidraw-element";
|
|
18821
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
18822
|
+
import { CaptureUpdateAction as CaptureUpdateAction29 } from "haoxin-excalidraw-sdk-element";
|
|
18823
18823
|
var actionToggleSearchMenu = register({
|
|
18824
18824
|
name: "searchMenu",
|
|
18825
18825
|
icon: searchIcon,
|
|
@@ -18860,8 +18860,8 @@ var actionToggleSearchMenu = register({
|
|
|
18860
18860
|
});
|
|
18861
18861
|
|
|
18862
18862
|
// actions/actionCropEditor.tsx
|
|
18863
|
-
import { isImageElement as isImageElement3 } from "haoxin-excalidraw-element";
|
|
18864
|
-
import { CaptureUpdateAction as CaptureUpdateAction30 } from "haoxin-excalidraw-element";
|
|
18863
|
+
import { isImageElement as isImageElement3 } from "haoxin-excalidraw-sdk-element";
|
|
18864
|
+
import { CaptureUpdateAction as CaptureUpdateAction30 } from "haoxin-excalidraw-sdk-element";
|
|
18865
18865
|
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
18866
18866
|
var actionToggleCropEditor = register({
|
|
18867
18867
|
name: "cropEditor",
|
|
@@ -18907,19 +18907,19 @@ var actionToggleCropEditor = register({
|
|
|
18907
18907
|
});
|
|
18908
18908
|
|
|
18909
18909
|
// actions/actionFrame.ts
|
|
18910
|
-
import { getNonDeletedElements as getNonDeletedElements13 } from "haoxin-excalidraw-element";
|
|
18911
|
-
import { mutateElement as mutateElement4 } from "haoxin-excalidraw-element";
|
|
18912
|
-
import { newFrameElement } from "haoxin-excalidraw-element";
|
|
18913
|
-
import { isFrameLikeElement as isFrameLikeElement8 } from "haoxin-excalidraw-element";
|
|
18910
|
+
import { getNonDeletedElements as getNonDeletedElements13 } from "haoxin-excalidraw-sdk-element";
|
|
18911
|
+
import { mutateElement as mutateElement4 } from "haoxin-excalidraw-sdk-element";
|
|
18912
|
+
import { newFrameElement } from "haoxin-excalidraw-sdk-element";
|
|
18913
|
+
import { isFrameLikeElement as isFrameLikeElement8 } from "haoxin-excalidraw-sdk-element";
|
|
18914
18914
|
import {
|
|
18915
18915
|
addElementsToFrame,
|
|
18916
18916
|
removeAllElementsFromFrame
|
|
18917
|
-
} from "haoxin-excalidraw-element";
|
|
18918
|
-
import { getFrameChildren as getFrameChildren3 } from "haoxin-excalidraw-element";
|
|
18919
|
-
import { KEYS as KEYS39, updateActiveTool as updateActiveTool6 } from "haoxin-excalidraw-common";
|
|
18920
|
-
import { getElementsInGroup as getElementsInGroup4 } from "haoxin-excalidraw-element";
|
|
18921
|
-
import { getCommonBounds as getCommonBounds3 } from "haoxin-excalidraw-element";
|
|
18922
|
-
import { CaptureUpdateAction as CaptureUpdateAction31 } from "haoxin-excalidraw-element";
|
|
18917
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
18918
|
+
import { getFrameChildren as getFrameChildren3 } from "haoxin-excalidraw-sdk-element";
|
|
18919
|
+
import { KEYS as KEYS39, updateActiveTool as updateActiveTool6 } from "haoxin-excalidraw-sdk-common";
|
|
18920
|
+
import { getElementsInGroup as getElementsInGroup4 } from "haoxin-excalidraw-sdk-element";
|
|
18921
|
+
import { getCommonBounds as getCommonBounds3 } from "haoxin-excalidraw-sdk-element";
|
|
18922
|
+
import { CaptureUpdateAction as CaptureUpdateAction31 } from "haoxin-excalidraw-sdk-element";
|
|
18923
18923
|
var isSingleFrameSelected = (appState, app) => {
|
|
18924
18924
|
const selectedElements = app.scene.getSelectedElements(appState);
|
|
18925
18925
|
return selectedElements.length === 1 && isFrameLikeElement8(selectedElements[0]);
|
|
@@ -19076,17 +19076,17 @@ var actionWrapSelectionInFrame = register({
|
|
|
19076
19076
|
});
|
|
19077
19077
|
|
|
19078
19078
|
// actions/actionHistory.tsx
|
|
19079
|
-
import { isWindows, KEYS as KEYS40, matchKey, arrayToMap as arrayToMap21 } from "haoxin-excalidraw-common";
|
|
19080
|
-
import { CaptureUpdateAction as CaptureUpdateAction33 } from "haoxin-excalidraw-element";
|
|
19081
|
-
import { orderByFractionalIndex } from "haoxin-excalidraw-element";
|
|
19079
|
+
import { isWindows, KEYS as KEYS40, matchKey, arrayToMap as arrayToMap21 } from "haoxin-excalidraw-sdk-common";
|
|
19080
|
+
import { CaptureUpdateAction as CaptureUpdateAction33 } from "haoxin-excalidraw-sdk-element";
|
|
19081
|
+
import { orderByFractionalIndex } from "haoxin-excalidraw-sdk-element";
|
|
19082
19082
|
|
|
19083
19083
|
// history.ts
|
|
19084
|
-
import { Emitter as Emitter2 } from "haoxin-excalidraw-common";
|
|
19084
|
+
import { Emitter as Emitter2 } from "haoxin-excalidraw-sdk-common";
|
|
19085
19085
|
import {
|
|
19086
19086
|
CaptureUpdateAction as CaptureUpdateAction32,
|
|
19087
19087
|
StoreChange,
|
|
19088
19088
|
StoreDelta
|
|
19089
|
-
} from "haoxin-excalidraw-element";
|
|
19089
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
19090
19090
|
var HistoryDelta = class extends StoreDelta {
|
|
19091
19091
|
/**
|
|
19092
19092
|
* Apply the delta to the passed elements and appState, does not modify the snapshot.
|
|
@@ -19362,11 +19362,11 @@ var createRedoAction = (history) => ({
|
|
|
19362
19362
|
});
|
|
19363
19363
|
|
|
19364
19364
|
// actions/actionTextAutoResize.ts
|
|
19365
|
-
import { getFontString as getFontString6 } from "haoxin-excalidraw-common";
|
|
19366
|
-
import { newElementWith as newElementWith10 } from "haoxin-excalidraw-element";
|
|
19367
|
-
import { measureText as measureText4 } from "haoxin-excalidraw-element";
|
|
19368
|
-
import { isTextElement as isTextElement9 } from "haoxin-excalidraw-element";
|
|
19369
|
-
import { CaptureUpdateAction as CaptureUpdateAction34 } from "haoxin-excalidraw-element";
|
|
19365
|
+
import { getFontString as getFontString6 } from "haoxin-excalidraw-sdk-common";
|
|
19366
|
+
import { newElementWith as newElementWith10 } from "haoxin-excalidraw-sdk-element";
|
|
19367
|
+
import { measureText as measureText4 } from "haoxin-excalidraw-sdk-element";
|
|
19368
|
+
import { isTextElement as isTextElement9 } from "haoxin-excalidraw-sdk-element";
|
|
19369
|
+
import { CaptureUpdateAction as CaptureUpdateAction34 } from "haoxin-excalidraw-sdk-element";
|
|
19370
19370
|
var actionTextAutoResize = register({
|
|
19371
19371
|
name: "autoResize",
|
|
19372
19372
|
label: "labels.autoResize",
|
|
@@ -19402,8 +19402,8 @@ var actionTextAutoResize = register({
|
|
|
19402
19402
|
});
|
|
19403
19403
|
|
|
19404
19404
|
// actions/actionToggleViewMode.tsx
|
|
19405
|
-
import { CODES as CODES11, KEYS as KEYS41 } from "haoxin-excalidraw-common";
|
|
19406
|
-
import { CaptureUpdateAction as CaptureUpdateAction35 } from "haoxin-excalidraw-element";
|
|
19405
|
+
import { CODES as CODES11, KEYS as KEYS41 } from "haoxin-excalidraw-sdk-common";
|
|
19406
|
+
import { CaptureUpdateAction as CaptureUpdateAction35 } from "haoxin-excalidraw-sdk-element";
|
|
19407
19407
|
var actionToggleViewMode = register({
|
|
19408
19408
|
name: "viewMode",
|
|
19409
19409
|
label: "labels.viewMode",
|
|
@@ -19430,7 +19430,7 @@ var actionToggleViewMode = register({
|
|
|
19430
19430
|
});
|
|
19431
19431
|
|
|
19432
19432
|
// actions/manager.tsx
|
|
19433
|
-
import { isPromiseLike as isPromiseLike3 } from "haoxin-excalidraw-common";
|
|
19433
|
+
import { isPromiseLike as isPromiseLike3 } from "haoxin-excalidraw-sdk-common";
|
|
19434
19434
|
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
19435
19435
|
var trackAction = (action, source, appState, elements, app, value) => {
|
|
19436
19436
|
if (action.trackEvent) {
|
|
@@ -19631,19 +19631,19 @@ import {
|
|
|
19631
19631
|
rangeInclusive as rangeInclusive2,
|
|
19632
19632
|
rangeIntersection,
|
|
19633
19633
|
rangesOverlap
|
|
19634
|
-
} from "haoxin-excalidraw-math";
|
|
19635
|
-
import { TOOL_TYPE, KEYS as KEYS42 } from "haoxin-excalidraw-common";
|
|
19634
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
19635
|
+
import { TOOL_TYPE, KEYS as KEYS42 } from "haoxin-excalidraw-sdk-common";
|
|
19636
19636
|
import {
|
|
19637
19637
|
getCommonBounds as getCommonBounds4,
|
|
19638
19638
|
getDraggedElementsBounds,
|
|
19639
19639
|
getElementAbsoluteCoords as getElementAbsoluteCoords5
|
|
19640
|
-
} from "haoxin-excalidraw-element";
|
|
19641
|
-
import { isBoundToContainer as isBoundToContainer5 } from "haoxin-excalidraw-element";
|
|
19642
|
-
import { getMaximumGroups } from "haoxin-excalidraw-element";
|
|
19640
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
19641
|
+
import { isBoundToContainer as isBoundToContainer5 } from "haoxin-excalidraw-sdk-element";
|
|
19642
|
+
import { getMaximumGroups } from "haoxin-excalidraw-sdk-element";
|
|
19643
19643
|
import {
|
|
19644
19644
|
getSelectedElements as getSelectedElements4,
|
|
19645
19645
|
getVisibleAndNonSelectedElements
|
|
19646
|
-
} from "haoxin-excalidraw-element";
|
|
19646
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
19647
19647
|
var SNAP_DISTANCE = 8;
|
|
19648
19648
|
var VISIBLE_GAPS_LIMIT_PER_AXIS = 99999;
|
|
19649
19649
|
var getSnapDistance = (zoomValue) => {
|
|
@@ -20601,7 +20601,7 @@ var isActiveToolNonLinearSnappable = (activeToolType) => {
|
|
|
20601
20601
|
};
|
|
20602
20602
|
|
|
20603
20603
|
// data/transform.ts
|
|
20604
|
-
import { pointFrom as pointFrom20 } from "haoxin-excalidraw-math";
|
|
20604
|
+
import { pointFrom as pointFrom20 } from "haoxin-excalidraw-sdk-math";
|
|
20605
20605
|
import {
|
|
20606
20606
|
DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY5,
|
|
20607
20607
|
DEFAULT_FONT_SIZE as DEFAULT_FONT_SIZE6,
|
|
@@ -20616,8 +20616,8 @@ import {
|
|
|
20616
20616
|
isDevEnv as isDevEnv8,
|
|
20617
20617
|
toBrandedType,
|
|
20618
20618
|
getLineHeight as getLineHeight3
|
|
20619
|
-
} from "haoxin-excalidraw-common";
|
|
20620
|
-
import { bindLinearElement as bindLinearElement2 } from "haoxin-excalidraw-element";
|
|
20619
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
20620
|
+
import { bindLinearElement as bindLinearElement2 } from "haoxin-excalidraw-sdk-element";
|
|
20621
20621
|
import {
|
|
20622
20622
|
newArrowElement as newArrowElement2,
|
|
20623
20623
|
newElement as newElement4,
|
|
@@ -20626,14 +20626,14 @@ import {
|
|
|
20626
20626
|
newLinearElement as newLinearElement3,
|
|
20627
20627
|
newMagicFrameElement,
|
|
20628
20628
|
newTextElement as newTextElement2
|
|
20629
|
-
} from "haoxin-excalidraw-element";
|
|
20630
|
-
import { measureText as measureText5, normalizeText } from "haoxin-excalidraw-element";
|
|
20631
|
-
import { isArrowElement as isArrowElement8 } from "haoxin-excalidraw-element";
|
|
20632
|
-
import { syncInvalidIndices } from "haoxin-excalidraw-element";
|
|
20633
|
-
import { redrawTextBoundingBox as redrawTextBoundingBox5 } from "haoxin-excalidraw-element";
|
|
20634
|
-
import { LinearElementEditor as LinearElementEditor8 } from "haoxin-excalidraw-element";
|
|
20635
|
-
import { getCommonBounds as getCommonBounds5 } from "haoxin-excalidraw-element";
|
|
20636
|
-
import { Scene } from "haoxin-excalidraw-element";
|
|
20629
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
20630
|
+
import { measureText as measureText5, normalizeText } from "haoxin-excalidraw-sdk-element";
|
|
20631
|
+
import { isArrowElement as isArrowElement8 } from "haoxin-excalidraw-sdk-element";
|
|
20632
|
+
import { syncInvalidIndices } from "haoxin-excalidraw-sdk-element";
|
|
20633
|
+
import { redrawTextBoundingBox as redrawTextBoundingBox5 } from "haoxin-excalidraw-sdk-element";
|
|
20634
|
+
import { LinearElementEditor as LinearElementEditor8 } from "haoxin-excalidraw-sdk-element";
|
|
20635
|
+
import { getCommonBounds as getCommonBounds5 } from "haoxin-excalidraw-sdk-element";
|
|
20636
|
+
import { Scene } from "haoxin-excalidraw-sdk-element";
|
|
20637
20637
|
var DEFAULT_LINEAR_ELEMENT_PROPS = {
|
|
20638
20638
|
width: 100,
|
|
20639
20639
|
height: 0
|
|
@@ -21136,14 +21136,14 @@ var convertToExcalidrawElements = (elementsSkeleton, opts) => {
|
|
|
21136
21136
|
};
|
|
21137
21137
|
|
|
21138
21138
|
// scene/Renderer.ts
|
|
21139
|
-
import { isElementInViewport as isElementInViewport2 } from "haoxin-excalidraw-element";
|
|
21140
|
-
import { memoize, toBrandedType as toBrandedType2 } from "haoxin-excalidraw-common";
|
|
21139
|
+
import { isElementInViewport as isElementInViewport2 } from "haoxin-excalidraw-sdk-element";
|
|
21140
|
+
import { memoize, toBrandedType as toBrandedType2 } from "haoxin-excalidraw-sdk-common";
|
|
21141
21141
|
|
|
21142
21142
|
// renderer/interactiveScene.ts
|
|
21143
21143
|
import {
|
|
21144
21144
|
pointFrom as pointFrom22,
|
|
21145
21145
|
pointsEqual as pointsEqual8
|
|
21146
|
-
} from "haoxin-excalidraw-math";
|
|
21146
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
21147
21147
|
import oc2 from "open-color";
|
|
21148
21148
|
import {
|
|
21149
21149
|
arrayToMap as arrayToMap23,
|
|
@@ -21152,15 +21152,15 @@ import {
|
|
|
21152
21152
|
invariant as invariant9,
|
|
21153
21153
|
THEME as THEME11,
|
|
21154
21154
|
throttleRAF
|
|
21155
|
-
} from "haoxin-excalidraw-common";
|
|
21156
|
-
import { FIXED_BINDING_DISTANCE as FIXED_BINDING_DISTANCE2, maxBindingGap } from "haoxin-excalidraw-element";
|
|
21157
|
-
import { LinearElementEditor as LinearElementEditor9 } from "haoxin-excalidraw-element";
|
|
21155
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
21156
|
+
import { FIXED_BINDING_DISTANCE as FIXED_BINDING_DISTANCE2, maxBindingGap } from "haoxin-excalidraw-sdk-element";
|
|
21157
|
+
import { LinearElementEditor as LinearElementEditor9 } from "haoxin-excalidraw-sdk-element";
|
|
21158
21158
|
import {
|
|
21159
21159
|
getOmitSidesForDevice,
|
|
21160
21160
|
getTransformHandles,
|
|
21161
21161
|
getTransformHandlesFromCoords,
|
|
21162
21162
|
shouldShowBoundingBox
|
|
21163
|
-
} from "haoxin-excalidraw-element";
|
|
21163
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
21164
21164
|
import {
|
|
21165
21165
|
isElbowArrow as isElbowArrow8,
|
|
21166
21166
|
isFrameLikeElement as isFrameLikeElement9,
|
|
@@ -21168,19 +21168,19 @@ import {
|
|
|
21168
21168
|
isLinearElement as isLinearElement10,
|
|
21169
21169
|
isLineElement as isLineElement5,
|
|
21170
21170
|
isTextElement as isTextElement10
|
|
21171
|
-
} from "haoxin-excalidraw-element";
|
|
21172
|
-
import { renderSelectionElement } from "haoxin-excalidraw-element";
|
|
21171
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
21172
|
+
import { renderSelectionElement } from "haoxin-excalidraw-sdk-element";
|
|
21173
21173
|
import {
|
|
21174
21174
|
getElementsInGroup as getElementsInGroup5,
|
|
21175
21175
|
getSelectedGroupIds as getSelectedGroupIds2,
|
|
21176
21176
|
isSelectedViaGroup,
|
|
21177
21177
|
selectGroupsFromGivenElements as selectGroupsFromGivenElements3
|
|
21178
|
-
} from "haoxin-excalidraw-element";
|
|
21179
|
-
import { getCommonBounds as getCommonBounds7, getElementAbsoluteCoords as getElementAbsoluteCoords6 } from "haoxin-excalidraw-element";
|
|
21178
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
21179
|
+
import { getCommonBounds as getCommonBounds7, getElementAbsoluteCoords as getElementAbsoluteCoords6 } from "haoxin-excalidraw-sdk-element";
|
|
21180
21180
|
|
|
21181
21181
|
// renderer/renderSnaps.ts
|
|
21182
|
-
import { pointFrom as pointFrom21 } from "haoxin-excalidraw-math";
|
|
21183
|
-
import { THEME as THEME10 } from "haoxin-excalidraw-common";
|
|
21182
|
+
import { pointFrom as pointFrom21 } from "haoxin-excalidraw-sdk-math";
|
|
21183
|
+
import { THEME as THEME10 } from "haoxin-excalidraw-sdk-common";
|
|
21184
21184
|
var SNAP_COLOR_LIGHT = "#ff6b6b";
|
|
21185
21185
|
var SNAP_COLOR_DARK = "#ff0000";
|
|
21186
21186
|
var SNAP_WIDTH = 1;
|
|
@@ -21311,8 +21311,8 @@ var drawGapLine = (from, to, direction, appState, context) => {
|
|
|
21311
21311
|
};
|
|
21312
21312
|
|
|
21313
21313
|
// scene/scrollbars.ts
|
|
21314
|
-
import { getGlobalCSSVariable } from "haoxin-excalidraw-common";
|
|
21315
|
-
import { getCommonBounds as getCommonBounds6 } from "haoxin-excalidraw-element";
|
|
21314
|
+
import { getGlobalCSSVariable } from "haoxin-excalidraw-sdk-common";
|
|
21315
|
+
import { getCommonBounds as getCommonBounds6 } from "haoxin-excalidraw-sdk-element";
|
|
21316
21316
|
var SCROLLBAR_MARGIN = 4;
|
|
21317
21317
|
var SCROLLBAR_WIDTH = 6;
|
|
21318
21318
|
var SCROLLBAR_COLOR = "rgba(0,0,0,0.3)";
|
|
@@ -22285,8 +22285,8 @@ var Renderer = class {
|
|
|
22285
22285
|
};
|
|
22286
22286
|
|
|
22287
22287
|
// components/ElementCanvasButtons.tsx
|
|
22288
|
-
import { sceneCoordsToViewportCoords as sceneCoordsToViewportCoords3 } from "haoxin-excalidraw-common";
|
|
22289
|
-
import { getElementAbsoluteCoords as getElementAbsoluteCoords7 } from "haoxin-excalidraw-element";
|
|
22288
|
+
import { sceneCoordsToViewportCoords as sceneCoordsToViewportCoords3 } from "haoxin-excalidraw-sdk-common";
|
|
22289
|
+
import { getElementAbsoluteCoords as getElementAbsoluteCoords7 } from "haoxin-excalidraw-sdk-element";
|
|
22290
22290
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
22291
22291
|
var CONTAINER_PADDING = 5;
|
|
22292
22292
|
var getContainerCoords2 = (element, appState, elementsMap) => {
|
|
@@ -22325,7 +22325,7 @@ var ElementCanvasButtons = ({
|
|
|
22325
22325
|
};
|
|
22326
22326
|
|
|
22327
22327
|
// laser-trails.ts
|
|
22328
|
-
import { DEFAULT_LASER_COLOR, easeOut } from "haoxin-excalidraw-common";
|
|
22328
|
+
import { DEFAULT_LASER_COLOR, easeOut } from "haoxin-excalidraw-sdk-common";
|
|
22329
22329
|
|
|
22330
22330
|
// animated-trail.ts
|
|
22331
22331
|
import { LaserPointer } from "@excalidraw/laser-pointer";
|
|
@@ -22333,7 +22333,7 @@ import {
|
|
|
22333
22333
|
SVG_NS,
|
|
22334
22334
|
getSvgPathFromStroke as getSvgPathFromStroke2,
|
|
22335
22335
|
sceneCoordsToViewportCoords as sceneCoordsToViewportCoords4
|
|
22336
|
-
} from "haoxin-excalidraw-common";
|
|
22336
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
22337
22337
|
var AnimatedTrail = class {
|
|
22338
22338
|
constructor(animationFrameHandler, app, options) {
|
|
22339
22339
|
this.animationFrameHandler = animationFrameHandler;
|
|
@@ -22560,7 +22560,7 @@ var LaserTrails = class {
|
|
|
22560
22560
|
// reactUtils.ts
|
|
22561
22561
|
import { version as ReactVersion } from "react";
|
|
22562
22562
|
import { unstable_batchedUpdates } from "react-dom";
|
|
22563
|
-
import { throttleRAF as throttleRAF2 } from "haoxin-excalidraw-common";
|
|
22563
|
+
import { throttleRAF as throttleRAF2 } from "haoxin-excalidraw-sdk-common";
|
|
22564
22564
|
var withBatchedUpdates = (func) => (event) => {
|
|
22565
22565
|
unstable_batchedUpdates(func, event);
|
|
22566
22566
|
};
|
|
@@ -22606,13 +22606,13 @@ import {
|
|
|
22606
22606
|
getFontFamilyString as getFontFamilyString3,
|
|
22607
22607
|
isTestEnv as isTestEnv5,
|
|
22608
22608
|
MIME_TYPES as MIME_TYPES8
|
|
22609
|
-
} from "haoxin-excalidraw-common";
|
|
22609
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
22610
22610
|
import {
|
|
22611
22611
|
originalContainerCache,
|
|
22612
22612
|
updateOriginalContainerCache as updateOriginalContainerCache3
|
|
22613
|
-
} from "haoxin-excalidraw-element";
|
|
22614
|
-
import { LinearElementEditor as LinearElementEditor10 } from "haoxin-excalidraw-element";
|
|
22615
|
-
import { bumpVersion as bumpVersion2 } from "haoxin-excalidraw-element";
|
|
22613
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
22614
|
+
import { LinearElementEditor as LinearElementEditor10 } from "haoxin-excalidraw-sdk-element";
|
|
22615
|
+
import { bumpVersion as bumpVersion2 } from "haoxin-excalidraw-sdk-element";
|
|
22616
22616
|
import {
|
|
22617
22617
|
getBoundTextElementId,
|
|
22618
22618
|
getContainerElement as getContainerElement3,
|
|
@@ -22623,15 +22623,15 @@ import {
|
|
|
22623
22623
|
computeContainerDimensionForBoundText as computeContainerDimensionForBoundText2,
|
|
22624
22624
|
computeBoundTextPosition as computeBoundTextPosition2,
|
|
22625
22625
|
getBoundTextElement as getBoundTextElement6
|
|
22626
|
-
} from "haoxin-excalidraw-element";
|
|
22627
|
-
import { getTextWidth } from "haoxin-excalidraw-element";
|
|
22628
|
-
import { normalizeText as normalizeText2 } from "haoxin-excalidraw-element";
|
|
22629
|
-
import { wrapText as wrapText3 } from "haoxin-excalidraw-element";
|
|
22626
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
22627
|
+
import { getTextWidth } from "haoxin-excalidraw-sdk-element";
|
|
22628
|
+
import { normalizeText as normalizeText2 } from "haoxin-excalidraw-sdk-element";
|
|
22629
|
+
import { wrapText as wrapText3 } from "haoxin-excalidraw-sdk-element";
|
|
22630
22630
|
import {
|
|
22631
22631
|
isArrowElement as isArrowElement9,
|
|
22632
22632
|
isBoundToContainer as isBoundToContainer6,
|
|
22633
22633
|
isTextElement as isTextElement11
|
|
22634
|
-
} from "haoxin-excalidraw-element";
|
|
22634
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
22635
22635
|
var getTransform = (width, height, angle, appState, maxWidth, maxHeight) => {
|
|
22636
22636
|
const { zoom } = appState;
|
|
22637
22637
|
const degree = 180 * angle / Math.PI;
|
|
@@ -23171,18 +23171,18 @@ var isMaybeMermaidDefinition = (text) => {
|
|
|
23171
23171
|
// lasso/index.ts
|
|
23172
23172
|
import {
|
|
23173
23173
|
pointFrom as pointFrom23
|
|
23174
|
-
} from "haoxin-excalidraw-math";
|
|
23175
|
-
import { getElementLineSegments as getElementLineSegments2 } from "haoxin-excalidraw-element";
|
|
23176
|
-
import { LinearElementEditor as LinearElementEditor11 } from "haoxin-excalidraw-element";
|
|
23174
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
23175
|
+
import { getElementLineSegments as getElementLineSegments2 } from "haoxin-excalidraw-sdk-element";
|
|
23176
|
+
import { LinearElementEditor as LinearElementEditor11 } from "haoxin-excalidraw-sdk-element";
|
|
23177
23177
|
import {
|
|
23178
23178
|
isFrameLikeElement as isFrameLikeElement10,
|
|
23179
23179
|
isLinearElement as isLinearElement11,
|
|
23180
23180
|
isTextElement as isTextElement12
|
|
23181
|
-
} from "haoxin-excalidraw-element";
|
|
23182
|
-
import { getFrameChildren as getFrameChildren4 } from "haoxin-excalidraw-element";
|
|
23183
|
-
import { selectGroupsForSelectedElements as selectGroupsForSelectedElements5 } from "haoxin-excalidraw-element";
|
|
23184
|
-
import { getContainerElement as getContainerElement4 } from "haoxin-excalidraw-element";
|
|
23185
|
-
import { arrayToMap as arrayToMap24, easeOut as easeOut2, isShallowEqual as isShallowEqual3 } from "haoxin-excalidraw-common";
|
|
23181
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
23182
|
+
import { getFrameChildren as getFrameChildren4 } from "haoxin-excalidraw-sdk-element";
|
|
23183
|
+
import { selectGroupsForSelectedElements as selectGroupsForSelectedElements5 } from "haoxin-excalidraw-sdk-element";
|
|
23184
|
+
import { getContainerElement as getContainerElement4 } from "haoxin-excalidraw-sdk-element";
|
|
23185
|
+
import { arrayToMap as arrayToMap24, easeOut as easeOut2, isShallowEqual as isShallowEqual3 } from "haoxin-excalidraw-sdk-common";
|
|
23186
23186
|
|
|
23187
23187
|
// lasso/utils.ts
|
|
23188
23188
|
import { simplify as simplify2 } from "points-on-curve";
|
|
@@ -23190,14 +23190,14 @@ import {
|
|
|
23190
23190
|
polygonFromPoints as polygonFromPoints2,
|
|
23191
23191
|
lineSegment as lineSegment6,
|
|
23192
23192
|
polygonIncludesPointNonZero
|
|
23193
|
-
} from "haoxin-excalidraw-math";
|
|
23193
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
23194
23194
|
import {
|
|
23195
23195
|
computeBoundTextPosition as computeBoundTextPosition3,
|
|
23196
23196
|
doBoundsIntersect as doBoundsIntersect2,
|
|
23197
23197
|
getBoundTextElement as getBoundTextElement7,
|
|
23198
23198
|
getElementBounds as getElementBounds3,
|
|
23199
23199
|
intersectElementWithLineSegment as intersectElementWithLineSegment2
|
|
23200
|
-
} from "haoxin-excalidraw-element";
|
|
23200
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
23201
23201
|
var getLassoSelectedElementIds = (input) => {
|
|
23202
23202
|
const {
|
|
23203
23203
|
lassoPath,
|
|
@@ -23422,18 +23422,18 @@ var LassoTrail = class extends AnimatedTrail {
|
|
|
23422
23422
|
};
|
|
23423
23423
|
|
|
23424
23424
|
// eraser/index.ts
|
|
23425
|
-
import { arrayToMap as arrayToMap25, easeOut as easeOut3, THEME as THEME12 } from "haoxin-excalidraw-common";
|
|
23425
|
+
import { arrayToMap as arrayToMap25, easeOut as easeOut3, THEME as THEME12 } from "haoxin-excalidraw-sdk-common";
|
|
23426
23426
|
import {
|
|
23427
23427
|
computeBoundTextPosition as computeBoundTextPosition4,
|
|
23428
23428
|
getBoundTextElement as getBoundTextElement8,
|
|
23429
23429
|
intersectElementWithLineSegment as intersectElementWithLineSegment3,
|
|
23430
23430
|
isPointInElement
|
|
23431
|
-
} from "haoxin-excalidraw-element";
|
|
23432
|
-
import { lineSegment as lineSegment7, pointFrom as pointFrom24 } from "haoxin-excalidraw-math";
|
|
23433
|
-
import { getElementsInGroup as getElementsInGroup6 } from "haoxin-excalidraw-element";
|
|
23434
|
-
import { shouldTestInside as shouldTestInside2 } from "haoxin-excalidraw-element";
|
|
23435
|
-
import { hasBoundTextElement as hasBoundTextElement6, isBoundToContainer as isBoundToContainer7 } from "haoxin-excalidraw-element";
|
|
23436
|
-
import { getBoundTextElementId as getBoundTextElementId2 } from "haoxin-excalidraw-element";
|
|
23431
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
23432
|
+
import { lineSegment as lineSegment7, pointFrom as pointFrom24 } from "haoxin-excalidraw-sdk-math";
|
|
23433
|
+
import { getElementsInGroup as getElementsInGroup6 } from "haoxin-excalidraw-sdk-element";
|
|
23434
|
+
import { shouldTestInside as shouldTestInside2 } from "haoxin-excalidraw-sdk-element";
|
|
23435
|
+
import { hasBoundTextElement as hasBoundTextElement6, isBoundToContainer as isBoundToContainer7 } from "haoxin-excalidraw-sdk-element";
|
|
23436
|
+
import { getBoundTextElementId as getBoundTextElementId2 } from "haoxin-excalidraw-sdk-element";
|
|
23437
23437
|
var EraserTrail = class extends AnimatedTrail {
|
|
23438
23438
|
constructor(animationFrameHandler, app) {
|
|
23439
23439
|
super(animationFrameHandler, app, {
|
|
@@ -23613,7 +23613,7 @@ import React29 from "react";
|
|
|
23613
23613
|
// components/Popover.tsx
|
|
23614
23614
|
import { useLayoutEffect as useLayoutEffect4, useRef as useRef24, useEffect as useEffect29 } from "react";
|
|
23615
23615
|
import { unstable_batchedUpdates as unstable_batchedUpdates2 } from "react-dom";
|
|
23616
|
-
import { KEYS as KEYS44, queryFocusableElements as queryFocusableElements2 } from "haoxin-excalidraw-common";
|
|
23616
|
+
import { KEYS as KEYS44, queryFocusableElements as queryFocusableElements2 } from "haoxin-excalidraw-sdk-common";
|
|
23617
23617
|
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
23618
23618
|
var Popover6 = ({
|
|
23619
23619
|
children,
|
|
@@ -23866,12 +23866,12 @@ import {
|
|
|
23866
23866
|
arrayToMap as arrayToMap26,
|
|
23867
23867
|
capitalizeString as capitalizeString3,
|
|
23868
23868
|
isShallowEqual as isShallowEqual5
|
|
23869
|
-
} from "haoxin-excalidraw-common";
|
|
23870
|
-
import { mutateElement as mutateElement5 } from "haoxin-excalidraw-element";
|
|
23871
|
-
import { ShapeCache as ShapeCache3 } from "haoxin-excalidraw-element";
|
|
23869
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
23870
|
+
import { mutateElement as mutateElement5 } from "haoxin-excalidraw-sdk-element";
|
|
23871
|
+
import { ShapeCache as ShapeCache3 } from "haoxin-excalidraw-sdk-element";
|
|
23872
23872
|
|
|
23873
23873
|
// components/LeftMainToolbar.tsx
|
|
23874
|
-
import { TOOL_TYPE as TOOL_TYPE2 } from "haoxin-excalidraw-common";
|
|
23874
|
+
import { TOOL_TYPE as TOOL_TYPE2 } from "haoxin-excalidraw-sdk-common";
|
|
23875
23875
|
import { jsx as jsx83, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
23876
23876
|
var LeftMainToolbar = ({ appState, app }) => {
|
|
23877
23877
|
const active = appState.activeTool.type;
|
|
@@ -24021,7 +24021,7 @@ var LeftMainToolbar_default = LeftMainToolbar;
|
|
|
24021
24021
|
// components/LoadingMessage.tsx
|
|
24022
24022
|
import clsx34 from "clsx";
|
|
24023
24023
|
import { useState as useState24, useEffect as useEffect30 } from "react";
|
|
24024
|
-
import { THEME as THEME13 } from "haoxin-excalidraw-common";
|
|
24024
|
+
import { THEME as THEME13 } from "haoxin-excalidraw-sdk-common";
|
|
24025
24025
|
import { jsx as jsx84, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
24026
24026
|
var LoadingMessage = ({
|
|
24027
24027
|
delay,
|
|
@@ -24056,7 +24056,7 @@ var LoadingMessage = ({
|
|
|
24056
24056
|
|
|
24057
24057
|
// components/MobileMenu.tsx
|
|
24058
24058
|
import { useEffect as useEffect31 } from "react";
|
|
24059
|
-
import { showSelectedShapeActions as showSelectedShapeActions2 } from "haoxin-excalidraw-element";
|
|
24059
|
+
import { showSelectedShapeActions as showSelectedShapeActions2 } from "haoxin-excalidraw-sdk-element";
|
|
24060
24060
|
|
|
24061
24061
|
// components/FixedSideContainer.tsx
|
|
24062
24062
|
import clsx35 from "clsx";
|
|
@@ -24079,7 +24079,7 @@ var FixedSideContainer = ({
|
|
|
24079
24079
|
|
|
24080
24080
|
// components/HandButton.tsx
|
|
24081
24081
|
import clsx36 from "clsx";
|
|
24082
|
-
import { KEYS as KEYS45 } from "haoxin-excalidraw-common";
|
|
24082
|
+
import { KEYS as KEYS45 } from "haoxin-excalidraw-sdk-common";
|
|
24083
24083
|
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
24084
24084
|
var HandButton = (props) => {
|
|
24085
24085
|
return /* @__PURE__ */ jsx86(
|
|
@@ -24101,7 +24101,7 @@ var HandButton = (props) => {
|
|
|
24101
24101
|
};
|
|
24102
24102
|
|
|
24103
24103
|
// components/HintViewer.tsx
|
|
24104
|
-
import { CANVAS_SEARCH_TAB as CANVAS_SEARCH_TAB2, DEFAULT_SIDEBAR as DEFAULT_SIDEBAR4 } from "haoxin-excalidraw-common";
|
|
24104
|
+
import { CANVAS_SEARCH_TAB as CANVAS_SEARCH_TAB2, DEFAULT_SIDEBAR as DEFAULT_SIDEBAR4 } from "haoxin-excalidraw-sdk-common";
|
|
24105
24105
|
import {
|
|
24106
24106
|
isFlowchartNodeElement,
|
|
24107
24107
|
isImageElement as isImageElement5,
|
|
@@ -24109,9 +24109,9 @@ import {
|
|
|
24109
24109
|
isLineElement as isLineElement6,
|
|
24110
24110
|
isTextBindableContainer as isTextBindableContainer2,
|
|
24111
24111
|
isTextElement as isTextElement13
|
|
24112
|
-
} from "haoxin-excalidraw-element";
|
|
24113
|
-
import { getShortcutKey as getShortcutKey12 } from "haoxin-excalidraw-common";
|
|
24114
|
-
import { isNodeInFlowchart } from "haoxin-excalidraw-element";
|
|
24112
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
24113
|
+
import { getShortcutKey as getShortcutKey12 } from "haoxin-excalidraw-sdk-common";
|
|
24114
|
+
import { isNodeInFlowchart } from "haoxin-excalidraw-sdk-element";
|
|
24115
24115
|
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
24116
24116
|
var getHints = ({
|
|
24117
24117
|
appState,
|
|
@@ -24580,7 +24580,7 @@ var PasteChartDialog = ({
|
|
|
24580
24580
|
import * as Popover7 from "@radix-ui/react-popover";
|
|
24581
24581
|
import clsx39 from "clsx";
|
|
24582
24582
|
import React32, { useLayoutEffect as useLayoutEffect6 } from "react";
|
|
24583
|
-
import { supportsResizeObserver, isShallowEqual as isShallowEqual4 } from "haoxin-excalidraw-common";
|
|
24583
|
+
import { supportsResizeObserver, isShallowEqual as isShallowEqual4 } from "haoxin-excalidraw-sdk-common";
|
|
24584
24584
|
import { Fragment as Fragment14, jsx as jsx93, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
24585
24585
|
var DEFAULT_MAX_AVATARS = 4;
|
|
24586
24586
|
var SHOW_COLLABORATORS_FILTER_AT = 8;
|
|
@@ -24878,7 +24878,7 @@ import {
|
|
|
24878
24878
|
useImperativeHandle as useImperativeHandle3,
|
|
24879
24879
|
useCallback as useCallback11
|
|
24880
24880
|
} from "react";
|
|
24881
|
-
import { EVENT as EVENT10, isDevEnv as isDevEnv9, KEYS as KEYS46, updateObject } from "haoxin-excalidraw-common";
|
|
24881
|
+
import { EVENT as EVENT10, isDevEnv as isDevEnv9, KEYS as KEYS46, updateObject } from "haoxin-excalidraw-sdk-common";
|
|
24882
24882
|
|
|
24883
24883
|
// components/Sidebar/SidebarHeader.tsx
|
|
24884
24884
|
import clsx41 from "clsx";
|
|
@@ -25174,7 +25174,7 @@ var Sidebar = Object.assign(
|
|
|
25174
25174
|
Sidebar.displayName = "Sidebar";
|
|
25175
25175
|
|
|
25176
25176
|
// components/main-menu/MainMenu.tsx
|
|
25177
|
-
import { composeEventHandlers as composeEventHandlers3 } from "haoxin-excalidraw-common";
|
|
25177
|
+
import { composeEventHandlers as composeEventHandlers3 } from "haoxin-excalidraw-sdk-common";
|
|
25178
25178
|
|
|
25179
25179
|
// components/hoc/withInternalFallback.tsx
|
|
25180
25180
|
import { useLayoutEffect as useLayoutEffect8, useRef as useRef27 } from "react";
|
|
@@ -25246,7 +25246,7 @@ __export(DefaultItems_exports, {
|
|
|
25246
25246
|
ToggleTheme: () => ToggleTheme
|
|
25247
25247
|
});
|
|
25248
25248
|
import clsx45 from "clsx";
|
|
25249
|
-
import { THEME as THEME14 } from "haoxin-excalidraw-common";
|
|
25249
|
+
import { THEME as THEME14 } from "haoxin-excalidraw-sdk-common";
|
|
25250
25250
|
|
|
25251
25251
|
// components/OverwriteConfirm/OverwriteConfirmState.ts
|
|
25252
25252
|
var overwriteConfirmStateAtom = atom({
|
|
@@ -25702,9 +25702,9 @@ var MainMenu_default = MainMenu;
|
|
|
25702
25702
|
// components/LeftToolFlyouts.tsx
|
|
25703
25703
|
import { useEffect as useEffect33, useRef as useRef28, useState as useState27 } from "react";
|
|
25704
25704
|
import clsx46 from "clsx";
|
|
25705
|
-
import { isTextElement as isTextElement14 } from "haoxin-excalidraw-element";
|
|
25706
|
-
import { getBoundTextElement as getBoundTextElement9, getContainerElement as getContainerElement5, redrawTextBoundingBox as redrawTextBoundingBox7, newElementWith as newElementWith11 } from "haoxin-excalidraw-element";
|
|
25707
|
-
import { DEFAULT_ELEMENT_STROKE_COLOR_PALETTE as DEFAULT_ELEMENT_STROKE_COLOR_PALETTE2, STROKE_WIDTH as STROKE_WIDTH2 } from "haoxin-excalidraw-common";
|
|
25705
|
+
import { isTextElement as isTextElement14 } from "haoxin-excalidraw-sdk-element";
|
|
25706
|
+
import { getBoundTextElement as getBoundTextElement9, getContainerElement as getContainerElement5, redrawTextBoundingBox as redrawTextBoundingBox7, newElementWith as newElementWith11 } from "haoxin-excalidraw-sdk-element";
|
|
25707
|
+
import { DEFAULT_ELEMENT_STROKE_COLOR_PALETTE as DEFAULT_ELEMENT_STROKE_COLOR_PALETTE2, STROKE_WIDTH as STROKE_WIDTH2 } from "haoxin-excalidraw-sdk-common";
|
|
25708
25708
|
import { jsx as jsx108, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
25709
25709
|
var LeftToolFlyouts = ({
|
|
25710
25710
|
appState,
|
|
@@ -26452,7 +26452,7 @@ var LeftToolFlyouts_default = LeftToolFlyouts;
|
|
|
26452
26452
|
// components/FilledButton.tsx
|
|
26453
26453
|
import clsx47 from "clsx";
|
|
26454
26454
|
import { forwardRef as forwardRef5, useState as useState28 } from "react";
|
|
26455
|
-
import { isPromiseLike as isPromiseLike4 } from "haoxin-excalidraw-common";
|
|
26455
|
+
import { isPromiseLike as isPromiseLike4 } from "haoxin-excalidraw-sdk-common";
|
|
26456
26456
|
import { jsx as jsx109, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
26457
26457
|
var FilledButton = forwardRef5(
|
|
26458
26458
|
({
|
|
@@ -26643,10 +26643,10 @@ import {
|
|
|
26643
26643
|
DEFAULT_SIDEBAR as DEFAULT_SIDEBAR5,
|
|
26644
26644
|
LIBRARY_SIDEBAR_TAB as LIBRARY_SIDEBAR_TAB2,
|
|
26645
26645
|
composeEventHandlers as composeEventHandlers4
|
|
26646
|
-
} from "haoxin-excalidraw-common";
|
|
26646
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
26647
26647
|
|
|
26648
26648
|
// components/SearchMenu.tsx
|
|
26649
|
-
import { round as round2 } from "haoxin-excalidraw-math";
|
|
26649
|
+
import { round as round2 } from "haoxin-excalidraw-sdk-math";
|
|
26650
26650
|
import clsx48 from "clsx";
|
|
26651
26651
|
import debounce2 from "lodash.debounce";
|
|
26652
26652
|
import { Fragment as Fragment17, memo as memo4, useEffect as useEffect34, useMemo as useMemo8, useRef as useRef29, useState as useState29 } from "react";
|
|
@@ -26656,18 +26656,18 @@ import {
|
|
|
26656
26656
|
FONT_FAMILY as FONT_FAMILY4,
|
|
26657
26657
|
FRAME_STYLE as FRAME_STYLE3,
|
|
26658
26658
|
getLineHeight as getLineHeight4
|
|
26659
|
-
} from "haoxin-excalidraw-common";
|
|
26660
|
-
import { isElementCompletelyInViewport } from "haoxin-excalidraw-element";
|
|
26661
|
-
import { measureText as measureText6 } from "haoxin-excalidraw-element";
|
|
26659
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
26660
|
+
import { isElementCompletelyInViewport } from "haoxin-excalidraw-sdk-element";
|
|
26661
|
+
import { measureText as measureText6 } from "haoxin-excalidraw-sdk-element";
|
|
26662
26662
|
import {
|
|
26663
26663
|
KEYS as KEYS47,
|
|
26664
26664
|
randomInteger as randomInteger3,
|
|
26665
26665
|
addEventListener,
|
|
26666
26666
|
getFontString as getFontString9
|
|
26667
|
-
} from "haoxin-excalidraw-common";
|
|
26668
|
-
import { newTextElement as newTextElement3 } from "haoxin-excalidraw-element";
|
|
26669
|
-
import { isTextElement as isTextElement15, isFrameLikeElement as isFrameLikeElement11 } from "haoxin-excalidraw-element";
|
|
26670
|
-
import { getDefaultFrameName } from "haoxin-excalidraw-element/frame";
|
|
26667
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
26668
|
+
import { newTextElement as newTextElement3 } from "haoxin-excalidraw-sdk-element";
|
|
26669
|
+
import { isTextElement as isTextElement15, isFrameLikeElement as isFrameLikeElement11 } from "haoxin-excalidraw-sdk-element";
|
|
26670
|
+
import { getDefaultFrameName } from "haoxin-excalidraw-sdk-element/frame";
|
|
26671
26671
|
import { Fragment as Fragment18, jsx as jsx112, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
26672
26672
|
var searchQueryAtom = atom("");
|
|
26673
26673
|
var searchItemInFocusAtom = atom(null);
|
|
@@ -27336,15 +27336,15 @@ var DefaultSidebar = Object.assign(
|
|
|
27336
27336
|
|
|
27337
27337
|
// components/TTDDialog/TTDDialog.tsx
|
|
27338
27338
|
import { useEffect as useEffect37, useRef as useRef33, useState as useState31 } from "react";
|
|
27339
|
-
import { isFiniteNumber } from "haoxin-excalidraw-math";
|
|
27339
|
+
import { isFiniteNumber } from "haoxin-excalidraw-sdk-math";
|
|
27340
27340
|
|
|
27341
27341
|
// components/TTDDialog/MermaidToExcalidraw.tsx
|
|
27342
27342
|
import { useState as useState30, useRef as useRef31, useEffect as useEffect36, useDeferredValue } from "react";
|
|
27343
|
-
import { EDITOR_LS_KEYS as EDITOR_LS_KEYS3, debounce as debounce3, isDevEnv as isDevEnv10 } from "haoxin-excalidraw-common";
|
|
27343
|
+
import { EDITOR_LS_KEYS as EDITOR_LS_KEYS3, debounce as debounce3, isDevEnv as isDevEnv10 } from "haoxin-excalidraw-sdk-common";
|
|
27344
27344
|
|
|
27345
27345
|
// components/TTDDialog/TTDDialogInput.tsx
|
|
27346
27346
|
import { useEffect as useEffect35, useRef as useRef30 } from "react";
|
|
27347
|
-
import { EVENT as EVENT12, KEYS as KEYS48 } from "haoxin-excalidraw-common";
|
|
27347
|
+
import { EVENT as EVENT12, KEYS as KEYS48 } from "haoxin-excalidraw-sdk-common";
|
|
27348
27348
|
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
27349
27349
|
var TTDDialogInput = ({
|
|
27350
27350
|
input,
|
|
@@ -27477,7 +27477,7 @@ var TTDDialogPanels = ({ children }) => {
|
|
|
27477
27477
|
};
|
|
27478
27478
|
|
|
27479
27479
|
// components/TTDDialog/TTDDialogSubmitShortcut.tsx
|
|
27480
|
-
import { getShortcutKey as getShortcutKey13 } from "haoxin-excalidraw-common";
|
|
27480
|
+
import { getShortcutKey as getShortcutKey13 } from "haoxin-excalidraw-sdk-common";
|
|
27481
27481
|
import { jsx as jsx118, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
27482
27482
|
var TTDDialogSubmitShortcut = () => {
|
|
27483
27483
|
return /* @__PURE__ */ jsxs68("div", { className: "ttd-dialog-submit-shortcut", children: [
|
|
@@ -27487,7 +27487,7 @@ var TTDDialogSubmitShortcut = () => {
|
|
|
27487
27487
|
};
|
|
27488
27488
|
|
|
27489
27489
|
// components/TTDDialog/common.ts
|
|
27490
|
-
import { DEFAULT_EXPORT_PADDING as DEFAULT_EXPORT_PADDING3, EDITOR_LS_KEYS as EDITOR_LS_KEYS2 } from "haoxin-excalidraw-common";
|
|
27490
|
+
import { DEFAULT_EXPORT_PADDING as DEFAULT_EXPORT_PADDING3, EDITOR_LS_KEYS as EDITOR_LS_KEYS2 } from "haoxin-excalidraw-sdk-common";
|
|
27491
27491
|
var resetPreview = ({
|
|
27492
27492
|
canvasRef,
|
|
27493
27493
|
setError
|
|
@@ -27685,7 +27685,7 @@ var MermaidToExcalidraw_default = MermaidToExcalidraw;
|
|
|
27685
27685
|
// components/TTDDialog/TTDDialogTabs.tsx
|
|
27686
27686
|
import * as RadixTabs5 from "@radix-ui/react-tabs";
|
|
27687
27687
|
import { useRef as useRef32 } from "react";
|
|
27688
|
-
import { isMemberOf as isMemberOf2 } from "haoxin-excalidraw-common";
|
|
27688
|
+
import { isMemberOf as isMemberOf2 } from "haoxin-excalidraw-sdk-common";
|
|
27689
27689
|
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
27690
27690
|
var TTDDialogTabs = (props) => {
|
|
27691
27691
|
const setAppState = useExcalidrawSetAppState();
|
|
@@ -28049,41 +28049,41 @@ TTD mermaid definition render errror: ${error3.message}`,
|
|
|
28049
28049
|
);
|
|
28050
28050
|
|
|
28051
28051
|
// components/Stats/index.tsx
|
|
28052
|
-
import { round as round5 } from "haoxin-excalidraw-math";
|
|
28052
|
+
import { round as round5 } from "haoxin-excalidraw-sdk-math";
|
|
28053
28053
|
import clsx52 from "clsx";
|
|
28054
28054
|
import throttle2 from "lodash.throttle";
|
|
28055
28055
|
import { useEffect as useEffect39, useMemo as useMemo11, useState as useState33, memo as memo5 } from "react";
|
|
28056
|
-
import { STATS_PANELS } from "haoxin-excalidraw-common";
|
|
28057
|
-
import { getCommonBounds as getCommonBounds10 } from "haoxin-excalidraw-element";
|
|
28058
|
-
import { getUncroppedWidthAndHeight as getUncroppedWidthAndHeight3 } from "haoxin-excalidraw-element";
|
|
28059
|
-
import { isElbowArrow as isElbowArrow10, isImageElement as isImageElement8 } from "haoxin-excalidraw-element";
|
|
28060
|
-
import { frameAndChildrenSelectedTogether as frameAndChildrenSelectedTogether2 } from "haoxin-excalidraw-element";
|
|
28061
|
-
import { elementsAreInSameGroup as elementsAreInSameGroup2 } from "haoxin-excalidraw-element";
|
|
28056
|
+
import { STATS_PANELS } from "haoxin-excalidraw-sdk-common";
|
|
28057
|
+
import { getCommonBounds as getCommonBounds10 } from "haoxin-excalidraw-sdk-element";
|
|
28058
|
+
import { getUncroppedWidthAndHeight as getUncroppedWidthAndHeight3 } from "haoxin-excalidraw-sdk-element";
|
|
28059
|
+
import { isElbowArrow as isElbowArrow10, isImageElement as isImageElement8 } from "haoxin-excalidraw-sdk-element";
|
|
28060
|
+
import { frameAndChildrenSelectedTogether as frameAndChildrenSelectedTogether2 } from "haoxin-excalidraw-sdk-element";
|
|
28061
|
+
import { elementsAreInSameGroup as elementsAreInSameGroup2 } from "haoxin-excalidraw-sdk-element";
|
|
28062
28062
|
|
|
28063
28063
|
// components/Stats/Angle.tsx
|
|
28064
|
-
import { degreesToRadians as degreesToRadians2, radiansToDegrees } from "haoxin-excalidraw-math";
|
|
28065
|
-
import { getBoundTextElement as getBoundTextElement11 } from "haoxin-excalidraw-element";
|
|
28066
|
-
import { isArrowElement as isArrowElement10, isElbowArrow as isElbowArrow9 } from "haoxin-excalidraw-element";
|
|
28067
|
-
import { updateBindings as updateBindings3 } from "haoxin-excalidraw-element";
|
|
28064
|
+
import { degreesToRadians as degreesToRadians2, radiansToDegrees } from "haoxin-excalidraw-sdk-math";
|
|
28065
|
+
import { getBoundTextElement as getBoundTextElement11 } from "haoxin-excalidraw-sdk-element";
|
|
28066
|
+
import { isArrowElement as isArrowElement10, isElbowArrow as isElbowArrow9 } from "haoxin-excalidraw-sdk-element";
|
|
28067
|
+
import { updateBindings as updateBindings3 } from "haoxin-excalidraw-sdk-element";
|
|
28068
28068
|
|
|
28069
28069
|
// components/Stats/DragInput.tsx
|
|
28070
28070
|
import clsx51 from "clsx";
|
|
28071
28071
|
import { useEffect as useEffect38, useRef as useRef34, useState as useState32 } from "react";
|
|
28072
|
-
import { EVENT as EVENT13, KEYS as KEYS49, cloneJSON as cloneJSON4 } from "haoxin-excalidraw-common";
|
|
28073
|
-
import { deepCopyElement as deepCopyElement4 } from "haoxin-excalidraw-element";
|
|
28074
|
-
import { CaptureUpdateAction as CaptureUpdateAction36 } from "haoxin-excalidraw-element";
|
|
28072
|
+
import { EVENT as EVENT13, KEYS as KEYS49, cloneJSON as cloneJSON4 } from "haoxin-excalidraw-sdk-common";
|
|
28073
|
+
import { deepCopyElement as deepCopyElement4 } from "haoxin-excalidraw-sdk-element";
|
|
28074
|
+
import { CaptureUpdateAction as CaptureUpdateAction36 } from "haoxin-excalidraw-sdk-element";
|
|
28075
28075
|
|
|
28076
28076
|
// components/Stats/utils.ts
|
|
28077
|
-
import { pointFrom as pointFrom25, pointRotateRads as pointRotateRads14 } from "haoxin-excalidraw-math";
|
|
28078
|
-
import { getBoundTextElement as getBoundTextElement10 } from "haoxin-excalidraw-element";
|
|
28079
|
-
import { isFrameLikeElement as isFrameLikeElement12 } from "haoxin-excalidraw-element";
|
|
28077
|
+
import { pointFrom as pointFrom25, pointRotateRads as pointRotateRads14 } from "haoxin-excalidraw-sdk-math";
|
|
28078
|
+
import { getBoundTextElement as getBoundTextElement10 } from "haoxin-excalidraw-sdk-element";
|
|
28079
|
+
import { isFrameLikeElement as isFrameLikeElement12 } from "haoxin-excalidraw-sdk-element";
|
|
28080
28080
|
import {
|
|
28081
28081
|
getSelectedGroupIds as getSelectedGroupIds3,
|
|
28082
28082
|
getElementsInGroup as getElementsInGroup7,
|
|
28083
28083
|
isInGroup
|
|
28084
|
-
} from "haoxin-excalidraw-element";
|
|
28085
|
-
import { getFrameChildren as getFrameChildren5 } from "haoxin-excalidraw-element";
|
|
28086
|
-
import { updateBindings as updateBindings2 } from "haoxin-excalidraw-element";
|
|
28084
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
28085
|
+
import { getFrameChildren as getFrameChildren5 } from "haoxin-excalidraw-sdk-element";
|
|
28086
|
+
import { updateBindings as updateBindings2 } from "haoxin-excalidraw-sdk-element";
|
|
28087
28087
|
var SMALLEST_DELTA = 0.01;
|
|
28088
28088
|
var STEP_SIZE = 10;
|
|
28089
28089
|
var isPropertyEditable = (element, property) => {
|
|
@@ -28570,17 +28570,17 @@ var CanvasGrid = ({
|
|
|
28570
28570
|
var CanvasGrid_default = CanvasGrid;
|
|
28571
28571
|
|
|
28572
28572
|
// components/Stats/Dimension.tsx
|
|
28573
|
-
import { clamp as clamp5, round as round3 } from "haoxin-excalidraw-math";
|
|
28574
|
-
import { MIN_WIDTH_OR_HEIGHT } from "haoxin-excalidraw-common";
|
|
28573
|
+
import { clamp as clamp5, round as round3 } from "haoxin-excalidraw-sdk-math";
|
|
28574
|
+
import { MIN_WIDTH_OR_HEIGHT } from "haoxin-excalidraw-sdk-common";
|
|
28575
28575
|
import {
|
|
28576
28576
|
MINIMAL_CROP_SIZE,
|
|
28577
28577
|
getUncroppedWidthAndHeight
|
|
28578
|
-
} from "haoxin-excalidraw-element";
|
|
28579
|
-
import { resizeSingleElement } from "haoxin-excalidraw-element";
|
|
28580
|
-
import { isImageElement as isImageElement6 } from "haoxin-excalidraw-element";
|
|
28581
|
-
import { isFrameLikeElement as isFrameLikeElement13 } from "haoxin-excalidraw-element";
|
|
28582
|
-
import { getElementsInResizingFrame as getElementsInResizingFrame2 } from "haoxin-excalidraw-element";
|
|
28583
|
-
import { replaceAllElementsInFrame as replaceAllElementsInFrame2 } from "haoxin-excalidraw-element";
|
|
28578
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
28579
|
+
import { resizeSingleElement } from "haoxin-excalidraw-sdk-element";
|
|
28580
|
+
import { isImageElement as isImageElement6 } from "haoxin-excalidraw-sdk-element";
|
|
28581
|
+
import { isFrameLikeElement as isFrameLikeElement13 } from "haoxin-excalidraw-sdk-element";
|
|
28582
|
+
import { getElementsInResizingFrame as getElementsInResizingFrame2 } from "haoxin-excalidraw-sdk-element";
|
|
28583
|
+
import { replaceAllElementsInFrame as replaceAllElementsInFrame2 } from "haoxin-excalidraw-sdk-element";
|
|
28584
28584
|
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
28585
28585
|
var STEP_SIZE4 = 10;
|
|
28586
28586
|
var _shouldKeepAspectRatio = (element) => {
|
|
@@ -28840,8 +28840,8 @@ var Dimension_default = DimensionDragInput;
|
|
|
28840
28840
|
import {
|
|
28841
28841
|
getBoundTextElement as getBoundTextElement12,
|
|
28842
28842
|
redrawTextBoundingBox as redrawTextBoundingBox8
|
|
28843
|
-
} from "haoxin-excalidraw-element";
|
|
28844
|
-
import { hasBoundTextElement as hasBoundTextElement7, isTextElement as isTextElement16 } from "haoxin-excalidraw-element";
|
|
28843
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
28844
|
+
import { hasBoundTextElement as hasBoundTextElement7, isTextElement as isTextElement16 } from "haoxin-excalidraw-sdk-element";
|
|
28845
28845
|
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
28846
28846
|
var MIN_FONT_SIZE = 4;
|
|
28847
28847
|
var STEP_SIZE5 = 4;
|
|
@@ -28907,10 +28907,10 @@ var FontSize = ({ element, scene, appState, property }) => {
|
|
|
28907
28907
|
var FontSize_default = FontSize;
|
|
28908
28908
|
|
|
28909
28909
|
// components/Stats/MultiAngle.tsx
|
|
28910
|
-
import { degreesToRadians as degreesToRadians3, radiansToDegrees as radiansToDegrees2 } from "haoxin-excalidraw-math";
|
|
28911
|
-
import { getBoundTextElement as getBoundTextElement13 } from "haoxin-excalidraw-element";
|
|
28912
|
-
import { isArrowElement as isArrowElement11 } from "haoxin-excalidraw-element";
|
|
28913
|
-
import { isInGroup as isInGroup2 } from "haoxin-excalidraw-element";
|
|
28910
|
+
import { degreesToRadians as degreesToRadians3, radiansToDegrees as radiansToDegrees2 } from "haoxin-excalidraw-sdk-math";
|
|
28911
|
+
import { getBoundTextElement as getBoundTextElement13 } from "haoxin-excalidraw-sdk-element";
|
|
28912
|
+
import { isArrowElement as isArrowElement11 } from "haoxin-excalidraw-sdk-element";
|
|
28913
|
+
import { isInGroup as isInGroup2 } from "haoxin-excalidraw-sdk-element";
|
|
28914
28914
|
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
28915
28915
|
var STEP_SIZE6 = 15;
|
|
28916
28916
|
var handleDegreeChange2 = ({
|
|
@@ -29001,24 +29001,24 @@ var MultiAngle = ({
|
|
|
29001
29001
|
var MultiAngle_default = MultiAngle;
|
|
29002
29002
|
|
|
29003
29003
|
// components/Stats/MultiDimension.tsx
|
|
29004
|
-
import { pointFrom as pointFrom26 } from "haoxin-excalidraw-math";
|
|
29004
|
+
import { pointFrom as pointFrom26 } from "haoxin-excalidraw-sdk-math";
|
|
29005
29005
|
import { useMemo as useMemo9 } from "react";
|
|
29006
|
-
import { MIN_WIDTH_OR_HEIGHT as MIN_WIDTH_OR_HEIGHT2 } from "haoxin-excalidraw-common";
|
|
29006
|
+
import { MIN_WIDTH_OR_HEIGHT as MIN_WIDTH_OR_HEIGHT2 } from "haoxin-excalidraw-sdk-common";
|
|
29007
29007
|
import {
|
|
29008
29008
|
getElementsInResizingFrame as getElementsInResizingFrame3,
|
|
29009
29009
|
isFrameLikeElement as isFrameLikeElement14,
|
|
29010
29010
|
replaceAllElementsInFrame as replaceAllElementsInFrame3,
|
|
29011
29011
|
updateBoundElements as updateBoundElements2
|
|
29012
|
-
} from "haoxin-excalidraw-element";
|
|
29012
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
29013
29013
|
import {
|
|
29014
29014
|
rescalePointsInElement,
|
|
29015
29015
|
resizeSingleElement as resizeSingleElement2
|
|
29016
|
-
} from "haoxin-excalidraw-element";
|
|
29017
|
-
import { getBoundTextElement as getBoundTextElement14, handleBindTextResize as handleBindTextResize2 } from "haoxin-excalidraw-element";
|
|
29018
|
-
import { isTextElement as isTextElement17 } from "haoxin-excalidraw-element";
|
|
29016
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
29017
|
+
import { getBoundTextElement as getBoundTextElement14, handleBindTextResize as handleBindTextResize2 } from "haoxin-excalidraw-sdk-element";
|
|
29018
|
+
import { isTextElement as isTextElement17 } from "haoxin-excalidraw-sdk-element";
|
|
29019
29019
|
|
|
29020
29020
|
// ../utils/src/index.ts
|
|
29021
|
-
import { getCommonBounds as getCommonBounds8 } from "haoxin-excalidraw-element";
|
|
29021
|
+
import { getCommonBounds as getCommonBounds8 } from "haoxin-excalidraw-sdk-element";
|
|
29022
29022
|
|
|
29023
29023
|
// components/Stats/MultiDimension.tsx
|
|
29024
29024
|
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
@@ -29365,9 +29365,9 @@ var MultiDimension_default = MultiDimension;
|
|
|
29365
29365
|
import {
|
|
29366
29366
|
getBoundTextElement as getBoundTextElement15,
|
|
29367
29367
|
redrawTextBoundingBox as redrawTextBoundingBox9
|
|
29368
|
-
} from "haoxin-excalidraw-element";
|
|
29369
|
-
import { hasBoundTextElement as hasBoundTextElement8, isTextElement as isTextElement18 } from "haoxin-excalidraw-element";
|
|
29370
|
-
import { isInGroup as isInGroup3 } from "haoxin-excalidraw-element";
|
|
29368
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
29369
|
+
import { hasBoundTextElement as hasBoundTextElement8, isTextElement as isTextElement18 } from "haoxin-excalidraw-sdk-element";
|
|
29370
|
+
import { isInGroup as isInGroup3 } from "haoxin-excalidraw-sdk-element";
|
|
29371
29371
|
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
29372
29372
|
var MIN_FONT_SIZE2 = 4;
|
|
29373
29373
|
var STEP_SIZE8 = 4;
|
|
@@ -29476,10 +29476,10 @@ var MultiFontSize = ({
|
|
|
29476
29476
|
var MultiFontSize_default = MultiFontSize;
|
|
29477
29477
|
|
|
29478
29478
|
// components/Stats/MultiPosition.tsx
|
|
29479
|
-
import { pointFrom as pointFrom27, pointRotateRads as pointRotateRads15 } from "haoxin-excalidraw-math";
|
|
29479
|
+
import { pointFrom as pointFrom27, pointRotateRads as pointRotateRads15 } from "haoxin-excalidraw-sdk-math";
|
|
29480
29480
|
import { useMemo as useMemo10 } from "react";
|
|
29481
|
-
import { isTextElement as isTextElement19 } from "haoxin-excalidraw-element";
|
|
29482
|
-
import { getCommonBounds as getCommonBounds9 } from "haoxin-excalidraw-element";
|
|
29481
|
+
import { isTextElement as isTextElement19 } from "haoxin-excalidraw-sdk-element";
|
|
29482
|
+
import { getCommonBounds as getCommonBounds9 } from "haoxin-excalidraw-sdk-element";
|
|
29483
29483
|
import { jsx as jsx133 } from "react/jsx-runtime";
|
|
29484
29484
|
var moveElements = (property, changeInTopX, changeInTopY, originalElements, originalElementsMap, scene) => {
|
|
29485
29485
|
for (let i = 0; i < originalElements.length; i++) {
|
|
@@ -29656,12 +29656,12 @@ var MultiPosition = ({
|
|
|
29656
29656
|
var MultiPosition_default = MultiPosition;
|
|
29657
29657
|
|
|
29658
29658
|
// components/Stats/Position.tsx
|
|
29659
|
-
import { clamp as clamp6, pointFrom as pointFrom28, pointRotateRads as pointRotateRads16, round as round4 } from "haoxin-excalidraw-math";
|
|
29659
|
+
import { clamp as clamp6, pointFrom as pointFrom28, pointRotateRads as pointRotateRads16, round as round4 } from "haoxin-excalidraw-sdk-math";
|
|
29660
29660
|
import {
|
|
29661
29661
|
getFlipAdjustedCropPosition,
|
|
29662
29662
|
getUncroppedWidthAndHeight as getUncroppedWidthAndHeight2
|
|
29663
|
-
} from "haoxin-excalidraw-element";
|
|
29664
|
-
import { isImageElement as isImageElement7 } from "haoxin-excalidraw-element";
|
|
29663
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
29664
|
+
import { isImageElement as isImageElement7 } from "haoxin-excalidraw-sdk-element";
|
|
29665
29665
|
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
29666
29666
|
var handlePositionChange2 = ({
|
|
29667
29667
|
accumulatedChange,
|
|
@@ -30136,11 +30136,11 @@ var StatsInner = memo5(
|
|
|
30136
30136
|
|
|
30137
30137
|
// components/ElementLinkDialog.tsx
|
|
30138
30138
|
import { useCallback as useCallback12, useEffect as useEffect40, useState as useState34 } from "react";
|
|
30139
|
-
import { normalizeLink as normalizeLink2, KEYS as KEYS50 } from "haoxin-excalidraw-common";
|
|
30139
|
+
import { normalizeLink as normalizeLink2, KEYS as KEYS50 } from "haoxin-excalidraw-sdk-common";
|
|
30140
30140
|
import {
|
|
30141
30141
|
defaultGetElementLinkFromSelection as defaultGetElementLinkFromSelection2,
|
|
30142
30142
|
getLinkIdAndTypeFromSelection as getLinkIdAndTypeFromSelection2
|
|
30143
|
-
} from "haoxin-excalidraw-element";
|
|
30143
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
30144
30144
|
import { jsx as jsx136, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
30145
30145
|
var ElementLinkDialog = ({
|
|
30146
30146
|
sourceElementId,
|
|
@@ -30300,8 +30300,8 @@ var ErrorDialog = ({
|
|
|
30300
30300
|
|
|
30301
30301
|
// components/HelpDialog.tsx
|
|
30302
30302
|
import React39 from "react";
|
|
30303
|
-
import { isDarwin as isDarwin3, isFirefox as isFirefox3, isWindows as isWindows2 } from "haoxin-excalidraw-common";
|
|
30304
|
-
import { KEYS as KEYS51, getShortcutKey as getShortcutKey14 } from "haoxin-excalidraw-common";
|
|
30303
|
+
import { isDarwin as isDarwin3, isFirefox as isFirefox3, isWindows as isWindows2 } from "haoxin-excalidraw-sdk-common";
|
|
30304
|
+
import { KEYS as KEYS51, getShortcutKey as getShortcutKey14 } from "haoxin-excalidraw-sdk-common";
|
|
30305
30305
|
import { Fragment as Fragment22, jsx as jsx138, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
30306
30306
|
var Header = () => /* @__PURE__ */ jsxs74("div", { className: "HelpDialog__header", children: [
|
|
30307
30307
|
/* @__PURE__ */ jsxs74(
|
|
@@ -31005,7 +31005,7 @@ import {
|
|
|
31005
31005
|
isFirefox as isFirefox4,
|
|
31006
31006
|
EXPORT_SCALES as EXPORT_SCALES2,
|
|
31007
31007
|
cloneJSON as cloneJSON5
|
|
31008
|
-
} from "haoxin-excalidraw-common";
|
|
31008
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
31009
31009
|
|
|
31010
31010
|
// hooks/useCopiedIndicator.ts
|
|
31011
31011
|
import { useCallback as useCallback13, useRef as useRef35, useState as useState36 } from "react";
|
|
@@ -31394,7 +31394,7 @@ var ImageExportDialog = ({
|
|
|
31394
31394
|
|
|
31395
31395
|
// components/JSONExportDialog.tsx
|
|
31396
31396
|
import React41 from "react";
|
|
31397
|
-
import { getFrame } from "haoxin-excalidraw-common";
|
|
31397
|
+
import { getFrame } from "haoxin-excalidraw-sdk-common";
|
|
31398
31398
|
|
|
31399
31399
|
// components/Card.tsx
|
|
31400
31400
|
import OpenColor3 from "open-color";
|
|
@@ -32255,7 +32255,7 @@ import {
|
|
|
32255
32255
|
CURSOR_TYPE as CURSOR_TYPE3,
|
|
32256
32256
|
isShallowEqual as isShallowEqual6,
|
|
32257
32257
|
sceneCoordsToViewportCoords as sceneCoordsToViewportCoords5
|
|
32258
|
-
} from "haoxin-excalidraw-common";
|
|
32258
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
32259
32259
|
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
32260
32260
|
var InteractiveCanvas = (props) => {
|
|
32261
32261
|
const isComponentMounted = useRef39(false);
|
|
@@ -32400,7 +32400,7 @@ var InteractiveCanvas_default = React44.memo(InteractiveCanvas, areEqual3);
|
|
|
32400
32400
|
|
|
32401
32401
|
// components/canvases/StaticCanvas.tsx
|
|
32402
32402
|
import React45, { useEffect as useEffect45, useRef as useRef40 } from "react";
|
|
32403
|
-
import { isShallowEqual as isShallowEqual7 } from "haoxin-excalidraw-common";
|
|
32403
|
+
import { isShallowEqual as isShallowEqual7 } from "haoxin-excalidraw-sdk-common";
|
|
32404
32404
|
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
32405
32405
|
var StaticCanvas = (props) => {
|
|
32406
32406
|
const wrapperRef = useRef40(null);
|
|
@@ -32486,13 +32486,13 @@ var StaticCanvas_default = React45.memo(StaticCanvas, areEqual4);
|
|
|
32486
32486
|
import { useEffect as useEffect46, useRef as useRef41 } from "react";
|
|
32487
32487
|
|
|
32488
32488
|
// renderer/renderNewElementScene.ts
|
|
32489
|
-
import { throttleRAF as throttleRAF3 } from "haoxin-excalidraw-common";
|
|
32489
|
+
import { throttleRAF as throttleRAF3 } from "haoxin-excalidraw-sdk-common";
|
|
32490
32490
|
import {
|
|
32491
32491
|
getTargetFrame,
|
|
32492
32492
|
isInvisiblySmallElement as isInvisiblySmallElement2,
|
|
32493
32493
|
renderElement,
|
|
32494
32494
|
shouldApplyFrameClip
|
|
32495
|
-
} from "haoxin-excalidraw-element";
|
|
32495
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
32496
32496
|
var _renderNewElementScene = ({
|
|
32497
32497
|
canvas,
|
|
32498
32498
|
rc,
|
|
@@ -32652,8 +32652,8 @@ import {
|
|
|
32652
32652
|
getCommonBounds as getCommonBounds11,
|
|
32653
32653
|
getElementsInGroup as getElementsInGroup8,
|
|
32654
32654
|
selectGroupsFromGivenElements as selectGroupsFromGivenElements4
|
|
32655
|
-
} from "haoxin-excalidraw-element";
|
|
32656
|
-
import { sceneCoordsToViewportCoords as sceneCoordsToViewportCoords6 } from "haoxin-excalidraw-common";
|
|
32655
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
32656
|
+
import { sceneCoordsToViewportCoords as sceneCoordsToViewportCoords6 } from "haoxin-excalidraw-sdk-common";
|
|
32657
32657
|
import { flushSync as flushSync2 } from "react-dom";
|
|
32658
32658
|
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
32659
32659
|
var UnlockPopup = ({
|
|
@@ -41058,18 +41058,18 @@ import {
|
|
|
41058
41058
|
hashElementsVersion as hashElementsVersion2,
|
|
41059
41059
|
hashString as hashString2,
|
|
41060
41060
|
getNonDeletedElements as getNonDeletedElements14
|
|
41061
|
-
} from "haoxin-excalidraw-element";
|
|
41062
|
-
import { getTextFromElements as getTextFromElements2 } from "haoxin-excalidraw-element";
|
|
41063
|
-
import { isInvisiblySmallElement as isInvisiblySmallElement4 } from "haoxin-excalidraw-element";
|
|
41061
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
41062
|
+
import { getTextFromElements as getTextFromElements2 } from "haoxin-excalidraw-sdk-element";
|
|
41063
|
+
import { isInvisiblySmallElement as isInvisiblySmallElement4 } from "haoxin-excalidraw-sdk-element";
|
|
41064
41064
|
|
|
41065
41065
|
// data/reconcile.ts
|
|
41066
41066
|
import throttle4 from "lodash.throttle";
|
|
41067
|
-
import { arrayToMap as arrayToMap28, isDevEnv as isDevEnv12, isTestEnv as isTestEnv7 } from "haoxin-excalidraw-common";
|
|
41067
|
+
import { arrayToMap as arrayToMap28, isDevEnv as isDevEnv12, isTestEnv as isTestEnv7 } from "haoxin-excalidraw-sdk-common";
|
|
41068
41068
|
import {
|
|
41069
41069
|
orderByFractionalIndex as orderByFractionalIndex2,
|
|
41070
41070
|
syncInvalidIndices as syncInvalidIndices3,
|
|
41071
41071
|
validateFractionalIndices
|
|
41072
|
-
} from "haoxin-excalidraw-element";
|
|
41072
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
41073
41073
|
var shouldDiscardRemoteElement = (localAppState, local, remote) => {
|
|
41074
41074
|
if (local && // local element is being edited
|
|
41075
41075
|
(local.id === localAppState.editingTextElement?.id || local.id === localAppState.resizingElement?.id || local.id === localAppState.newElement?.id || // local element is newer
|
|
@@ -41134,8 +41134,8 @@ var reconcileElements = (localElements, remoteElements, localAppState) => {
|
|
|
41134
41134
|
};
|
|
41135
41135
|
|
|
41136
41136
|
// index.tsx
|
|
41137
|
-
import { getFreeDrawSvgPath as getFreeDrawSvgPath2 } from "haoxin-excalidraw-element";
|
|
41138
|
-
import { isLinearElement as isLinearElement14 } from "haoxin-excalidraw-element";
|
|
41137
|
+
import { getFreeDrawSvgPath as getFreeDrawSvgPath2 } from "haoxin-excalidraw-sdk-element";
|
|
41138
|
+
import { isLinearElement as isLinearElement14 } from "haoxin-excalidraw-sdk-element";
|
|
41139
41139
|
import {
|
|
41140
41140
|
FONT_FAMILY as FONT_FAMILY5,
|
|
41141
41141
|
THEME as THEME16,
|
|
@@ -41144,17 +41144,17 @@ import {
|
|
|
41144
41144
|
DEFAULT_LASER_COLOR as DEFAULT_LASER_COLOR2,
|
|
41145
41145
|
UserIdleState as UserIdleState2,
|
|
41146
41146
|
normalizeLink as normalizeLink4
|
|
41147
|
-
} from "haoxin-excalidraw-common";
|
|
41147
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
41148
41148
|
import {
|
|
41149
41149
|
mutateElement as mutateElement2,
|
|
41150
41150
|
newElementWith as newElementWith13,
|
|
41151
41151
|
bumpVersion
|
|
41152
|
-
} from "haoxin-excalidraw-element";
|
|
41153
|
-
import { CaptureUpdateAction as CaptureUpdateAction38 } from "haoxin-excalidraw-element";
|
|
41152
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
41153
|
+
import { CaptureUpdateAction as CaptureUpdateAction38 } from "haoxin-excalidraw-sdk-element";
|
|
41154
41154
|
import {
|
|
41155
41155
|
sceneCoordsToViewportCoords as sceneCoordsToViewportCoords2,
|
|
41156
41156
|
viewportCoordsToSceneCoords as viewportCoordsToSceneCoords5
|
|
41157
|
-
} from "haoxin-excalidraw-common";
|
|
41157
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
41158
41158
|
|
|
41159
41159
|
// components/TTDDialog/TTDDialogTrigger.tsx
|
|
41160
41160
|
import { jsx as jsx161, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
@@ -41182,7 +41182,7 @@ var TTDDialogTrigger = ({
|
|
|
41182
41182
|
TTDDialogTrigger.displayName = "TTDDialogTrigger";
|
|
41183
41183
|
|
|
41184
41184
|
// index.tsx
|
|
41185
|
-
import { getCommonBounds as getCommonBounds13, getVisibleSceneBounds as getVisibleSceneBounds2 } from "haoxin-excalidraw-element";
|
|
41185
|
+
import { getCommonBounds as getCommonBounds13, getVisibleSceneBounds as getVisibleSceneBounds2 } from "haoxin-excalidraw-sdk-element";
|
|
41186
41186
|
|
|
41187
41187
|
// components/DiagramToCodePlugin/DiagramToCodePlugin.tsx
|
|
41188
41188
|
import { useLayoutEffect as useLayoutEffect9 } from "react";
|
|
@@ -41197,8 +41197,8 @@ var DiagramToCodePlugin = (props) => {
|
|
|
41197
41197
|
};
|
|
41198
41198
|
|
|
41199
41199
|
// index.tsx
|
|
41200
|
-
import { isElementLink as isElementLink3 } from "haoxin-excalidraw-element";
|
|
41201
|
-
import { setCustomTextMetricsProvider } from "haoxin-excalidraw-element";
|
|
41200
|
+
import { isElementLink as isElementLink3 } from "haoxin-excalidraw-sdk-element";
|
|
41201
|
+
import { setCustomTextMetricsProvider } from "haoxin-excalidraw-sdk-element";
|
|
41202
41202
|
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
41203
41203
|
polyfill_default();
|
|
41204
41204
|
var ExcalidrawBase = (props) => {
|