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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VC7V2GEZ.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import tEXt from "png-chunk-text";
|
|
10
10
|
import encodePng from "png-chunks-encode";
|
|
11
11
|
import decodePng from "png-chunks-extract";
|
|
12
|
-
import { EXPORT_DATA_TYPES as EXPORT_DATA_TYPES3, MIME_TYPES as MIME_TYPES7 } from "haoxin-excalidraw-common";
|
|
12
|
+
import { EXPORT_DATA_TYPES as EXPORT_DATA_TYPES3, MIME_TYPES as MIME_TYPES7 } from "haoxin-excalidraw-sdk-common";
|
|
13
13
|
|
|
14
14
|
// data/blob.ts
|
|
15
15
|
import { nanoid } from "nanoid";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
MIME_TYPES as MIME_TYPES6,
|
|
19
19
|
bytesToHexString,
|
|
20
20
|
isPromiseLike
|
|
21
|
-
} from "haoxin-excalidraw-common";
|
|
22
|
-
import { clearElementsForExport as clearElementsForExport2 } from "haoxin-excalidraw-element";
|
|
21
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
22
|
+
import { clearElementsForExport as clearElementsForExport2 } from "haoxin-excalidraw-sdk-element";
|
|
23
23
|
|
|
24
24
|
// appState.ts
|
|
25
25
|
import {
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
STATS_PANELS,
|
|
35
35
|
THEME,
|
|
36
36
|
DEFAULT_GRID_STEP
|
|
37
|
-
} from "haoxin-excalidraw-common";
|
|
37
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
38
38
|
var defaultExportScale = EXPORT_SCALES.includes(devicePixelRatio) ? devicePixelRatio : 1;
|
|
39
39
|
var getDefaultAppState = () => {
|
|
40
40
|
return {
|
|
@@ -331,16 +331,16 @@ import {
|
|
|
331
331
|
getElementsWithinSelection,
|
|
332
332
|
getSelectedElements,
|
|
333
333
|
getTargetElements
|
|
334
|
-
} from "haoxin-excalidraw-element";
|
|
334
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
335
335
|
|
|
336
336
|
// scene/scroll.ts
|
|
337
|
-
import { getVisibleElements } from "haoxin-excalidraw-element";
|
|
337
|
+
import { getVisibleElements } from "haoxin-excalidraw-sdk-element";
|
|
338
338
|
import {
|
|
339
339
|
sceneCoordsToViewportCoords,
|
|
340
340
|
viewportCoordsToSceneCoords
|
|
341
|
-
} from "haoxin-excalidraw-common";
|
|
342
|
-
import { getClosestElementBounds } from "haoxin-excalidraw-element";
|
|
343
|
-
import { getCommonBounds } from "haoxin-excalidraw-element";
|
|
341
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
342
|
+
import { getClosestElementBounds } from "haoxin-excalidraw-sdk-element";
|
|
343
|
+
import { getCommonBounds } from "haoxin-excalidraw-sdk-element";
|
|
344
344
|
var isOutsideViewPort = (appState, cords) => {
|
|
345
345
|
const [x1, y1, x2, y2] = cords;
|
|
346
346
|
const { x: viewportX1, y: viewportY1 } = sceneCoordsToViewportCoords(
|
|
@@ -402,11 +402,11 @@ import {
|
|
|
402
402
|
hasStrokeStyle,
|
|
403
403
|
canHaveArrowheads,
|
|
404
404
|
canChangeRoundness
|
|
405
|
-
} from "haoxin-excalidraw-element";
|
|
405
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
406
406
|
|
|
407
407
|
// scene/normalize.ts
|
|
408
|
-
import { MAX_ZOOM, MIN_ZOOM } from "haoxin-excalidraw-common";
|
|
409
|
-
import { clamp, round } from "haoxin-excalidraw-math";
|
|
408
|
+
import { MAX_ZOOM, MIN_ZOOM } from "haoxin-excalidraw-sdk-common";
|
|
409
|
+
import { clamp, round } from "haoxin-excalidraw-sdk-math";
|
|
410
410
|
var getNormalizedZoom = (zoom) => {
|
|
411
411
|
return clamp(round(zoom, 6), MIN_ZOOM, MAX_ZOOM);
|
|
412
412
|
};
|
|
@@ -432,28 +432,28 @@ import {
|
|
|
432
432
|
distance,
|
|
433
433
|
getFontString as getFontString2,
|
|
434
434
|
toBrandedType
|
|
435
|
-
} from "haoxin-excalidraw-common";
|
|
436
|
-
import { getCommonBounds as getCommonBounds2, getElementAbsoluteCoords as getElementAbsoluteCoords4 } from "haoxin-excalidraw-element";
|
|
435
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
436
|
+
import { getCommonBounds as getCommonBounds2, getElementAbsoluteCoords as getElementAbsoluteCoords4 } from "haoxin-excalidraw-sdk-element";
|
|
437
437
|
import {
|
|
438
438
|
getInitializedImageElements,
|
|
439
439
|
updateImageCache
|
|
440
|
-
} from "haoxin-excalidraw-element";
|
|
441
|
-
import { newElementWith } from "haoxin-excalidraw-element";
|
|
442
|
-
import { isFrameLikeElement } from "haoxin-excalidraw-element";
|
|
440
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
441
|
+
import { newElementWith } from "haoxin-excalidraw-sdk-element";
|
|
442
|
+
import { isFrameLikeElement } from "haoxin-excalidraw-sdk-element";
|
|
443
443
|
import {
|
|
444
444
|
getElementsOverlappingFrame,
|
|
445
445
|
getFrameLikeElements,
|
|
446
446
|
getFrameLikeTitle,
|
|
447
447
|
getRootElements
|
|
448
|
-
} from "haoxin-excalidraw-element";
|
|
449
|
-
import { syncInvalidIndices } from "haoxin-excalidraw-element";
|
|
450
|
-
import { newTextElement } from "haoxin-excalidraw-element";
|
|
448
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
449
|
+
import { syncInvalidIndices } from "haoxin-excalidraw-sdk-element";
|
|
450
|
+
import { newTextElement } from "haoxin-excalidraw-sdk-element";
|
|
451
451
|
|
|
452
452
|
// data/encode.ts
|
|
453
453
|
import { deflate, inflate } from "pako";
|
|
454
454
|
|
|
455
455
|
// data/encryption.ts
|
|
456
|
-
import { ENCRYPTION_KEY_BITS } from "haoxin-excalidraw-common";
|
|
456
|
+
import { ENCRYPTION_KEY_BITS } from "haoxin-excalidraw-sdk-common";
|
|
457
457
|
|
|
458
458
|
// data/encode.ts
|
|
459
459
|
var toByteString = (data) => {
|
|
@@ -524,11 +524,11 @@ import {
|
|
|
524
524
|
getExportSource,
|
|
525
525
|
MIME_TYPES as MIME_TYPES2,
|
|
526
526
|
VERSIONS
|
|
527
|
-
} from "haoxin-excalidraw-common";
|
|
527
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
528
528
|
import {
|
|
529
529
|
clearElementsForDatabase,
|
|
530
530
|
clearElementsForExport
|
|
531
|
-
} from "haoxin-excalidraw-element";
|
|
531
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
532
532
|
|
|
533
533
|
// data/filesystem.ts
|
|
534
534
|
import {
|
|
@@ -536,7 +536,7 @@ import {
|
|
|
536
536
|
fileSave as _fileSave,
|
|
537
537
|
supported as nativeFileSystemSupported
|
|
538
538
|
} from "browser-fs-access";
|
|
539
|
-
import { EVENT, MIME_TYPES, debounce } from "haoxin-excalidraw-common";
|
|
539
|
+
import { EVENT, MIME_TYPES, debounce } from "haoxin-excalidraw-sdk-common";
|
|
540
540
|
var INPUT_CHANGE_INTERVAL_MS = 500;
|
|
541
541
|
var fileOpen = (opts) => {
|
|
542
542
|
const mimeTypes = opts.extensions?.reduce((mimeTypes2, type) => {
|
|
@@ -688,18 +688,18 @@ import {
|
|
|
688
688
|
CJK_HAND_DRAWN_FALLBACK_FONT,
|
|
689
689
|
WINDOWS_EMOJI_FALLBACK_FONT,
|
|
690
690
|
getFontFamilyFallbacks
|
|
691
|
-
} from "haoxin-excalidraw-common";
|
|
692
|
-
import { getContainerElement } from "haoxin-excalidraw-element";
|
|
693
|
-
import { charWidth } from "haoxin-excalidraw-element";
|
|
694
|
-
import { containsCJK } from "haoxin-excalidraw-element";
|
|
691
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
692
|
+
import { getContainerElement } from "haoxin-excalidraw-sdk-element";
|
|
693
|
+
import { charWidth } from "haoxin-excalidraw-sdk-element";
|
|
694
|
+
import { containsCJK } from "haoxin-excalidraw-sdk-element";
|
|
695
695
|
import {
|
|
696
696
|
FONT_METADATA,
|
|
697
697
|
getFontString,
|
|
698
698
|
PromisePool,
|
|
699
699
|
promiseTry as promiseTry3
|
|
700
|
-
} from "haoxin-excalidraw-common";
|
|
701
|
-
import { ShapeCache } from "haoxin-excalidraw-element";
|
|
702
|
-
import { isTextElement } from "haoxin-excalidraw-element";
|
|
700
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
701
|
+
import { ShapeCache } from "haoxin-excalidraw-sdk-element";
|
|
702
|
+
import { isTextElement } from "haoxin-excalidraw-sdk-element";
|
|
703
703
|
|
|
704
704
|
// fonts/Cascadia/CascadiaCode-Regular.woff2
|
|
705
705
|
var CascadiaCode_Regular_default = "./fonts/Cascadia/CascadiaCode-Regular.woff2";
|
|
@@ -750,7 +750,7 @@ var ComicShannsFontFaces = [
|
|
|
750
750
|
];
|
|
751
751
|
|
|
752
752
|
// fonts/Emoji/index.ts
|
|
753
|
-
import { LOCAL_FONT_PROTOCOL } from "haoxin-excalidraw-common";
|
|
753
|
+
import { LOCAL_FONT_PROTOCOL } from "haoxin-excalidraw-sdk-common";
|
|
754
754
|
var EmojiFontFaces = [
|
|
755
755
|
{
|
|
756
756
|
uri: LOCAL_FONT_PROTOCOL
|
|
@@ -758,13 +758,13 @@ var EmojiFontFaces = [
|
|
|
758
758
|
];
|
|
759
759
|
|
|
760
760
|
// fonts/ExcalidrawFontFace.ts
|
|
761
|
-
import { promiseTry as promiseTry2, LOCAL_FONT_PROTOCOL as LOCAL_FONT_PROTOCOL2 } from "haoxin-excalidraw-common";
|
|
761
|
+
import { promiseTry as promiseTry2, LOCAL_FONT_PROTOCOL as LOCAL_FONT_PROTOCOL2 } from "haoxin-excalidraw-sdk-common";
|
|
762
762
|
|
|
763
763
|
// subset/subset-main.ts
|
|
764
|
-
import { isServerEnv, promiseTry } from "haoxin-excalidraw-common";
|
|
764
|
+
import { isServerEnv, promiseTry } from "haoxin-excalidraw-sdk-common";
|
|
765
765
|
|
|
766
766
|
// workers.ts
|
|
767
|
-
import { debounce as debounce2 } from "haoxin-excalidraw-common";
|
|
767
|
+
import { debounce as debounce2 } from "haoxin-excalidraw-sdk-common";
|
|
768
768
|
var IdleWorker = class {
|
|
769
769
|
constructor(workerUrl) {
|
|
770
770
|
__publicField(this, "instance");
|
|
@@ -1132,7 +1132,7 @@ var ExcalifontFontFaces = [
|
|
|
1132
1132
|
];
|
|
1133
1133
|
|
|
1134
1134
|
// fonts/Helvetica/index.ts
|
|
1135
|
-
import { LOCAL_FONT_PROTOCOL as LOCAL_FONT_PROTOCOL3 } from "haoxin-excalidraw-common";
|
|
1135
|
+
import { LOCAL_FONT_PROTOCOL as LOCAL_FONT_PROTOCOL3 } from "haoxin-excalidraw-sdk-common";
|
|
1136
1136
|
var HelveticaFontFaces = [
|
|
1137
1137
|
{
|
|
1138
1138
|
uri: LOCAL_FONT_PROTOCOL3
|
|
@@ -1150,7 +1150,7 @@ var LiberationFontFaces = [
|
|
|
1150
1150
|
];
|
|
1151
1151
|
|
|
1152
1152
|
// fonts/Lilita/index.ts
|
|
1153
|
-
import { GOOGLE_FONTS_RANGES } from "haoxin-excalidraw-common";
|
|
1153
|
+
import { GOOGLE_FONTS_RANGES } from "haoxin-excalidraw-sdk-common";
|
|
1154
1154
|
|
|
1155
1155
|
// fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2
|
|
1156
1156
|
var Lilita_Regular_i7dPIFZ9Zz_WBtRtedDbYE98RXi4EwSsbg_default = "./fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2";
|
|
@@ -1171,7 +1171,7 @@ var LilitaFontFaces = [
|
|
|
1171
1171
|
];
|
|
1172
1172
|
|
|
1173
1173
|
// fonts/Nunito/index.ts
|
|
1174
|
-
import { GOOGLE_FONTS_RANGES as GOOGLE_FONTS_RANGES2 } from "haoxin-excalidraw-common";
|
|
1174
|
+
import { GOOGLE_FONTS_RANGES as GOOGLE_FONTS_RANGES2 } from "haoxin-excalidraw-sdk-common";
|
|
1175
1175
|
|
|
1176
1176
|
// fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2
|
|
1177
1177
|
var Nunito_Regular_XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5_default = "./fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2";
|
|
@@ -3073,28 +3073,28 @@ __publicField(_Fonts, "loadElementsFonts", async (elements) => {
|
|
|
3073
3073
|
var Fonts = _Fonts;
|
|
3074
3074
|
|
|
3075
3075
|
// renderer/staticScene.ts
|
|
3076
|
-
import { FRAME_STYLE, throttleRAF } from "haoxin-excalidraw-common";
|
|
3077
|
-
import { isElementLink } from "haoxin-excalidraw-element";
|
|
3078
|
-
import { createPlaceholderEmbeddableLabel } from "haoxin-excalidraw-element";
|
|
3079
|
-
import { getBoundTextElement } from "haoxin-excalidraw-element";
|
|
3076
|
+
import { FRAME_STYLE, throttleRAF } from "haoxin-excalidraw-sdk-common";
|
|
3077
|
+
import { isElementLink } from "haoxin-excalidraw-sdk-element";
|
|
3078
|
+
import { createPlaceholderEmbeddableLabel } from "haoxin-excalidraw-sdk-element";
|
|
3079
|
+
import { getBoundTextElement } from "haoxin-excalidraw-sdk-element";
|
|
3080
3080
|
import {
|
|
3081
3081
|
isEmbeddableElement,
|
|
3082
3082
|
isIframeLikeElement,
|
|
3083
3083
|
isTextElement as isTextElement2
|
|
3084
|
-
} from "haoxin-excalidraw-element";
|
|
3084
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3085
3085
|
import {
|
|
3086
3086
|
elementOverlapsWithFrame,
|
|
3087
3087
|
getTargetFrame,
|
|
3088
3088
|
shouldApplyFrameClip
|
|
3089
|
-
} from "haoxin-excalidraw-element";
|
|
3090
|
-
import { renderElement } from "haoxin-excalidraw-element";
|
|
3091
|
-
import { getElementAbsoluteCoords as getElementAbsoluteCoords2 } from "haoxin-excalidraw-element";
|
|
3089
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3090
|
+
import { renderElement } from "haoxin-excalidraw-sdk-element";
|
|
3091
|
+
import { getElementAbsoluteCoords as getElementAbsoluteCoords2 } from "haoxin-excalidraw-sdk-element";
|
|
3092
3092
|
|
|
3093
3093
|
// components/hyperlink/helpers.ts
|
|
3094
|
-
import { pointFrom, pointRotateRads } from "haoxin-excalidraw-math";
|
|
3095
|
-
import { MIME_TYPES as MIME_TYPES3 } from "haoxin-excalidraw-common";
|
|
3096
|
-
import { getElementAbsoluteCoords } from "haoxin-excalidraw-element";
|
|
3097
|
-
import { hitElementBoundingBox } from "haoxin-excalidraw-element";
|
|
3094
|
+
import { pointFrom, pointRotateRads } from "haoxin-excalidraw-sdk-math";
|
|
3095
|
+
import { MIME_TYPES as MIME_TYPES3 } from "haoxin-excalidraw-sdk-common";
|
|
3096
|
+
import { getElementAbsoluteCoords } from "haoxin-excalidraw-sdk-element";
|
|
3097
|
+
import { hitElementBoundingBox } from "haoxin-excalidraw-sdk-element";
|
|
3098
3098
|
var DEFAULT_LINK_SIZE = 12;
|
|
3099
3099
|
var EXTERNAL_LINK_IMG = document.createElement("img");
|
|
3100
3100
|
EXTERNAL_LINK_IMG.src = `data:${MIME_TYPES3.svg}, ${encodeURIComponent(
|
|
@@ -3155,10 +3155,10 @@ var isPointHittingLink = (element, elementsMap, appState, [x, y], isMobile) => {
|
|
|
3155
3155
|
};
|
|
3156
3156
|
|
|
3157
3157
|
// renderer/helpers.ts
|
|
3158
|
-
import { THEME as THEME2, THEME_FILTER } from "haoxin-excalidraw-common";
|
|
3159
|
-
import { FIXED_BINDING_DISTANCE } from "haoxin-excalidraw-element";
|
|
3160
|
-
import { getDiamondPoints } from "haoxin-excalidraw-element";
|
|
3161
|
-
import { elementCenterPoint, getCornerRadius } from "haoxin-excalidraw-element";
|
|
3158
|
+
import { THEME as THEME2, THEME_FILTER } from "haoxin-excalidraw-sdk-common";
|
|
3159
|
+
import { FIXED_BINDING_DISTANCE } from "haoxin-excalidraw-sdk-element";
|
|
3160
|
+
import { getDiamondPoints } from "haoxin-excalidraw-sdk-element";
|
|
3161
|
+
import { elementCenterPoint, getCornerRadius } from "haoxin-excalidraw-sdk-element";
|
|
3162
3162
|
import {
|
|
3163
3163
|
curve,
|
|
3164
3164
|
curveCatmullRomCubicApproxPoints,
|
|
@@ -3167,7 +3167,7 @@ import {
|
|
|
3167
3167
|
offsetPointsForQuadraticBezier,
|
|
3168
3168
|
pointFrom as pointFrom2,
|
|
3169
3169
|
pointRotateRads as pointRotateRads2
|
|
3170
|
-
} from "haoxin-excalidraw-math";
|
|
3170
|
+
} from "haoxin-excalidraw-sdk-math";
|
|
3171
3171
|
var fillCircle = (context, cx, cy, radius, stroke, fill = true) => {
|
|
3172
3172
|
context.beginPath();
|
|
3173
3173
|
context.arc(cx, cy, radius, 0, Math.PI * 2);
|
|
@@ -3794,28 +3794,28 @@ import {
|
|
|
3794
3794
|
isRTL,
|
|
3795
3795
|
isTestEnv as isTestEnv2,
|
|
3796
3796
|
getVerticalOffset
|
|
3797
|
-
} from "haoxin-excalidraw-common";
|
|
3798
|
-
import { normalizeLink, toValidURL } from "haoxin-excalidraw-common";
|
|
3799
|
-
import { hashString } from "haoxin-excalidraw-element";
|
|
3800
|
-
import { getUncroppedWidthAndHeight } from "haoxin-excalidraw-element";
|
|
3797
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
3798
|
+
import { normalizeLink, toValidURL } from "haoxin-excalidraw-sdk-common";
|
|
3799
|
+
import { hashString } from "haoxin-excalidraw-sdk-element";
|
|
3800
|
+
import { getUncroppedWidthAndHeight } from "haoxin-excalidraw-sdk-element";
|
|
3801
3801
|
import {
|
|
3802
3802
|
createPlaceholderEmbeddableLabel as createPlaceholderEmbeddableLabel2,
|
|
3803
3803
|
getEmbedLink
|
|
3804
|
-
} from "haoxin-excalidraw-element";
|
|
3805
|
-
import { LinearElementEditor } from "haoxin-excalidraw-element";
|
|
3806
|
-
import { getBoundTextElement as getBoundTextElement2, getContainerElement as getContainerElement2 } from "haoxin-excalidraw-element";
|
|
3807
|
-
import { getLineHeightInPx } from "haoxin-excalidraw-element";
|
|
3804
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3805
|
+
import { LinearElementEditor } from "haoxin-excalidraw-sdk-element";
|
|
3806
|
+
import { getBoundTextElement as getBoundTextElement2, getContainerElement as getContainerElement2 } from "haoxin-excalidraw-sdk-element";
|
|
3807
|
+
import { getLineHeightInPx } from "haoxin-excalidraw-sdk-element";
|
|
3808
3808
|
import {
|
|
3809
3809
|
isArrowElement,
|
|
3810
3810
|
isIframeLikeElement as isIframeLikeElement2,
|
|
3811
3811
|
isInitializedImageElement,
|
|
3812
3812
|
isTextElement as isTextElement3
|
|
3813
|
-
} from "haoxin-excalidraw-element";
|
|
3814
|
-
import { getContainingFrame } from "haoxin-excalidraw-element";
|
|
3815
|
-
import { getCornerRadius as getCornerRadius2, isPathALoop } from "haoxin-excalidraw-element";
|
|
3816
|
-
import { ShapeCache as ShapeCache2 } from "haoxin-excalidraw-element";
|
|
3817
|
-
import { getFreeDrawSvgPath, IMAGE_INVERT_FILTER } from "haoxin-excalidraw-element";
|
|
3818
|
-
import { getElementAbsoluteCoords as getElementAbsoluteCoords3 } from "haoxin-excalidraw-element";
|
|
3813
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
3814
|
+
import { getContainingFrame } from "haoxin-excalidraw-sdk-element";
|
|
3815
|
+
import { getCornerRadius as getCornerRadius2, isPathALoop } from "haoxin-excalidraw-sdk-element";
|
|
3816
|
+
import { ShapeCache as ShapeCache2 } from "haoxin-excalidraw-sdk-element";
|
|
3817
|
+
import { getFreeDrawSvgPath, IMAGE_INVERT_FILTER } from "haoxin-excalidraw-sdk-element";
|
|
3818
|
+
import { getElementAbsoluteCoords as getElementAbsoluteCoords3 } from "haoxin-excalidraw-sdk-element";
|
|
3819
3819
|
var roughSVGDrawWithPrecision = (rsvg, drawable, precision) => {
|
|
3820
3820
|
if (typeof precision === "undefined") {
|
|
3821
3821
|
return rsvg.draw(drawable);
|
|
@@ -4749,7 +4749,7 @@ var getExportSize = (elements, exportPadding, scale) => {
|
|
|
4749
4749
|
};
|
|
4750
4750
|
|
|
4751
4751
|
// data/restore.ts
|
|
4752
|
-
import { isFiniteNumber, pointFrom as pointFrom3 } from "haoxin-excalidraw-math";
|
|
4752
|
+
import { isFiniteNumber, pointFrom as pointFrom3 } from "haoxin-excalidraw-sdk-math";
|
|
4753
4753
|
import {
|
|
4754
4754
|
DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY2,
|
|
4755
4755
|
DEFAULT_TEXT_ALIGN as DEFAULT_TEXT_ALIGN2,
|
|
@@ -4767,17 +4767,17 @@ import {
|
|
|
4767
4767
|
getSizeFromPoints,
|
|
4768
4768
|
normalizeLink as normalizeLink2,
|
|
4769
4769
|
getLineHeight
|
|
4770
|
-
} from "haoxin-excalidraw-common";
|
|
4771
|
-
import { getNonDeletedElements, isValidPolygon } from "haoxin-excalidraw-element";
|
|
4772
|
-
import { normalizeFixedPoint } from "haoxin-excalidraw-element";
|
|
4770
|
+
} from "haoxin-excalidraw-sdk-common";
|
|
4771
|
+
import { getNonDeletedElements, isValidPolygon } from "haoxin-excalidraw-sdk-element";
|
|
4772
|
+
import { normalizeFixedPoint } from "haoxin-excalidraw-sdk-element";
|
|
4773
4773
|
import {
|
|
4774
4774
|
updateElbowArrowPoints,
|
|
4775
4775
|
validateElbowPoints
|
|
4776
|
-
} from "haoxin-excalidraw-element";
|
|
4777
|
-
import { LinearElementEditor as LinearElementEditor2 } from "haoxin-excalidraw-element";
|
|
4778
|
-
import { bumpVersion } from "haoxin-excalidraw-element";
|
|
4779
|
-
import { getContainerElement as getContainerElement3 } from "haoxin-excalidraw-element";
|
|
4780
|
-
import { detectLineHeight } from "haoxin-excalidraw-element";
|
|
4776
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
4777
|
+
import { LinearElementEditor as LinearElementEditor2 } from "haoxin-excalidraw-sdk-element";
|
|
4778
|
+
import { bumpVersion } from "haoxin-excalidraw-sdk-element";
|
|
4779
|
+
import { getContainerElement as getContainerElement3 } from "haoxin-excalidraw-sdk-element";
|
|
4780
|
+
import { detectLineHeight } from "haoxin-excalidraw-sdk-element";
|
|
4781
4781
|
import {
|
|
4782
4782
|
isArrowBoundToElement,
|
|
4783
4783
|
isArrowElement as isArrowElement2,
|
|
@@ -4787,11 +4787,11 @@ import {
|
|
|
4787
4787
|
isLineElement,
|
|
4788
4788
|
isTextElement as isTextElement4,
|
|
4789
4789
|
isUsingAdaptiveRadius
|
|
4790
|
-
} from "haoxin-excalidraw-element";
|
|
4791
|
-
import { syncInvalidIndices as syncInvalidIndices2 } from "haoxin-excalidraw-element";
|
|
4792
|
-
import { refreshTextDimensions } from "haoxin-excalidraw-element";
|
|
4793
|
-
import { getNormalizedDimensions } from "haoxin-excalidraw-element";
|
|
4794
|
-
import { isInvisiblySmallElement } from "haoxin-excalidraw-element";
|
|
4790
|
+
} from "haoxin-excalidraw-sdk-element";
|
|
4791
|
+
import { syncInvalidIndices as syncInvalidIndices2 } from "haoxin-excalidraw-sdk-element";
|
|
4792
|
+
import { refreshTextDimensions } from "haoxin-excalidraw-sdk-element";
|
|
4793
|
+
import { getNormalizedDimensions } from "haoxin-excalidraw-sdk-element";
|
|
4794
|
+
import { isInvisiblySmallElement } from "haoxin-excalidraw-sdk-element";
|
|
4795
4795
|
var AllowedExcalidrawActiveTools = {
|
|
4796
4796
|
selection: true,
|
|
4797
4797
|
lasso: true,
|
|
@@ -5296,7 +5296,7 @@ var parseFileContents = async (blob) => {
|
|
|
5296
5296
|
let contents;
|
|
5297
5297
|
if (blob.type === MIME_TYPES6.png) {
|
|
5298
5298
|
try {
|
|
5299
|
-
return await (await import("./data/image-
|
|
5299
|
+
return await (await import("./data/image-CVHJEERS.js")).decodePngMetadata(blob);
|
|
5300
5300
|
} catch (error) {
|
|
5301
5301
|
if (error.message === "INVALID") {
|
|
5302
5302
|
throw new ImageSceneDataError(
|
|
@@ -5746,4 +5746,4 @@ export {
|
|
|
5746
5746
|
createFile,
|
|
5747
5747
|
normalizeFile
|
|
5748
5748
|
};
|
|
5749
|
-
//# sourceMappingURL=chunk-
|
|
5749
|
+
//# sourceMappingURL=chunk-PTYT4VPM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// <define:import.meta.env>
|
|
2
|
-
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3015", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3000", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "haoxin-excalidraw", PKG_VERSION: "0.
|
|
2
|
+
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3015", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3000", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "haoxin-excalidraw-sdk", PKG_VERSION: "0.19.1", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-VC7V2GEZ.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["<define:import.meta.env>"],
|
|
4
4
|
"sourcesContent": [""],
|
|
5
|
-
"mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,
|
|
5
|
+
"mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,yBAAwB,aAAc,UAAS,KAAM,KAAI;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-PTYT4VPM.js";
|
|
6
|
+
import "../chunk-VC7V2GEZ.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-CVHJEERS.js.map
|