@nous-excalidraw/excalidraw 0.1.0 → 0.18.0-beta
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-LYGRRKQ2.js → chunk-A4DEDEZ5.js} +5 -13
- package/dist/dev/{chunk-LYGRRKQ2.js.map → chunk-A4DEDEZ5.js.map} +2 -2
- package/dist/dev/{chunk-PXMIYP6J.js → chunk-JHTRI4CR.js} +2 -2
- package/dist/dev/{chunk-PXMIYP6J.js.map → chunk-JHTRI4CR.js.map} +1 -1
- package/dist/dev/components/TTDDialog/{CodeMirrorEditor-NJE5CNXO.js → CodeMirrorEditor-EJU7XIUQ.js} +2 -2
- package/dist/dev/data/{image-TKRID5WK.js → image-E7XPI3XF.js} +3 -3
- package/dist/dev/index.css.map +1 -1
- package/dist/dev/index.js +24 -31
- package/dist/dev/index.js.map +3 -3
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-YUES77EG.js → chunk-GMQ57W2Q.js} +1 -1
- package/dist/prod/chunk-YJMZYCCL.js +4 -0
- package/dist/prod/components/TTDDialog/{CodeMirrorEditor-UWXH7GQ5.js → CodeMirrorEditor-45P4PEY3.js} +1 -1
- package/dist/prod/data/image-VH43CV2D.js +1 -0
- package/dist/prod/index.js +19 -19
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +0 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +1 -1
- package/package.json +4 -4
- package/dist/prod/chunk-G3VN6VFC.js +0 -4
- package/dist/prod/data/image-TLCM4L7H.js +0 -1
- /package/dist/dev/components/TTDDialog/{CodeMirrorEditor-NJE5CNXO.js.map → CodeMirrorEditor-EJU7XIUQ.js.map} +0 -0
- /package/dist/dev/data/{image-TKRID5WK.js.map → image-E7XPI3XF.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JHTRI4CR.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -3533,7 +3533,6 @@ var renderStaticScene = (renderConfig, throttle) => {
|
|
|
3533
3533
|
// renderer/staticSvgScene.ts
|
|
3534
3534
|
import {
|
|
3535
3535
|
FRAME_STYLE as FRAME_STYLE2,
|
|
3536
|
-
getFrameEffectiveBackgroundColor,
|
|
3537
3536
|
MAX_DECIMALS_FOR_SVG_EXPORT,
|
|
3538
3537
|
SVG_NS,
|
|
3539
3538
|
THEME as THEME4,
|
|
@@ -3543,8 +3542,7 @@ import {
|
|
|
3543
3542
|
isTestEnv as isTestEnv2,
|
|
3544
3543
|
getVerticalOffset,
|
|
3545
3544
|
applyDarkModeFilter as applyDarkModeFilter3,
|
|
3546
|
-
MIME_TYPES as MIME_TYPES4
|
|
3547
|
-
isTransparent
|
|
3545
|
+
MIME_TYPES as MIME_TYPES4
|
|
3548
3546
|
} from "@nous-excalidraw/common";
|
|
3549
3547
|
import { normalizeLink, toValidURL } from "@nous-excalidraw/common";
|
|
3550
3548
|
import { hashString } from "@nous-excalidraw/element";
|
|
@@ -4000,13 +3998,7 @@ var renderElementToSvg = (element, elementsMap, rsvg, svgRoot, files, offsetX, o
|
|
|
4000
3998
|
rect.setAttribute("height", `${element.height}px`);
|
|
4001
3999
|
rect.setAttribute("rx", FRAME_STYLE2.radius.toString());
|
|
4002
4000
|
rect.setAttribute("ry", FRAME_STYLE2.radius.toString());
|
|
4003
|
-
|
|
4004
|
-
element.backgroundColor
|
|
4005
|
-
);
|
|
4006
|
-
rect.setAttribute(
|
|
4007
|
-
"fill",
|
|
4008
|
-
isTransparent(frameFillColor) ? "none" : renderConfig.theme === THEME4.DARK ? applyDarkModeFilter3(frameFillColor) : frameFillColor
|
|
4009
|
-
);
|
|
4001
|
+
rect.setAttribute("fill", FRAME_STYLE2.backgroundColor);
|
|
4010
4002
|
rect.setAttribute(
|
|
4011
4003
|
"stroke",
|
|
4012
4004
|
renderConfig.theme === THEME4.DARK ? applyDarkModeFilter3(FRAME_STYLE2.strokeColor) : FRAME_STYLE2.strokeColor
|
|
@@ -5097,7 +5089,7 @@ var parseFileContents = async (blob) => {
|
|
|
5097
5089
|
let contents;
|
|
5098
5090
|
if (blob.type === MIME_TYPES6.png) {
|
|
5099
5091
|
try {
|
|
5100
|
-
return await (await import("./data/image-
|
|
5092
|
+
return await (await import("./data/image-E7XPI3XF.js")).decodePngMetadata(blob);
|
|
5101
5093
|
} catch (error) {
|
|
5102
5094
|
if (error.message === "INVALID") {
|
|
5103
5095
|
throw new ImageSceneDataError(
|
|
@@ -5531,4 +5523,4 @@ export {
|
|
|
5531
5523
|
createFile,
|
|
5532
5524
|
normalizeFile
|
|
5533
5525
|
};
|
|
5534
|
-
//# sourceMappingURL=chunk-
|
|
5526
|
+
//# sourceMappingURL=chunk-A4DEDEZ5.js.map
|