@dwelle/excalidraw 0.5.0-925ac83 → 0.5.0-feee056
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/browser/dev/excalidraw-assets-dev/{chunk-ZM3UXTOQ.js → chunk-2ZYYNTY6.js} +9 -5
- package/dist/browser/dev/excalidraw-assets-dev/chunk-2ZYYNTY6.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{image-5TU56TXC.js → image-54CXO76I.js} +2 -2
- package/dist/browser/dev/index.js +1 -1
- package/dist/browser/prod/excalidraw-assets/{chunk-MO7ZQ3R5.js → chunk-RQYKW4T5.js} +31 -31
- package/dist/browser/prod/excalidraw-assets/{image-FZHXAKF6.js → image-I2FYPWR4.js} +1 -1
- package/dist/browser/prod/index.js +1 -1
- package/dist/dev/index.js +4 -0
- package/dist/dev/index.js.map +2 -2
- package/dist/excalidraw/constants.js +2 -0
- package/dist/excalidraw/renderer/renderScene.js +2 -0
- package/dist/prod/index.js +25 -25
- package/package.json +1 -1
- package/dist/browser/dev/excalidraw-assets-dev/chunk-ZM3UXTOQ.js.map +0 -7
- /package/dist/browser/dev/excalidraw-assets-dev/{image-5TU56TXC.js.map → image-54CXO76I.js.map} +0 -0
|
@@ -6363,6 +6363,8 @@ var ZOOM_STEP = 0.1;
|
|
|
6363
6363
|
var MIN_ZOOM = 0.1;
|
|
6364
6364
|
var HYPERLINK_TOOLTIP_DELAY = 300;
|
|
6365
6365
|
var THEME_FILTER = variables_module_default.themeFilter;
|
|
6366
|
+
console.log({ cssVariables: variables_module_default });
|
|
6367
|
+
console.log({ THEME_FILTER });
|
|
6366
6368
|
var URL_QUERY_KEYS = {
|
|
6367
6369
|
addLibrary: "addLibrary"
|
|
6368
6370
|
};
|
|
@@ -23156,7 +23158,7 @@ var exportToSvg = async (elements, appState, files, opts) => {
|
|
|
23156
23158
|
let metadata = "";
|
|
23157
23159
|
if (exportEmbedScene) {
|
|
23158
23160
|
try {
|
|
23159
|
-
metadata = await (await import("./image-
|
|
23161
|
+
metadata = await (await import("./image-54CXO76I.js")).encodeSvgMetadata({
|
|
23160
23162
|
// when embedding scene, we want to embed the origionally supplied
|
|
23161
23163
|
// elements which don't contain the temp frame labels.
|
|
23162
23164
|
// But it also requires that the exportToSvg is being supplied with
|
|
@@ -23979,7 +23981,7 @@ var exportAsImage = async (type, elements, appState, files, {
|
|
|
23979
23981
|
if (type === "png") {
|
|
23980
23982
|
let blob = await canvasToBlob(tempCanvas);
|
|
23981
23983
|
if (appState.exportEmbedScene) {
|
|
23982
|
-
blob = await (await import("./image-
|
|
23984
|
+
blob = await (await import("./image-54CXO76I.js")).encodePngMetadata({
|
|
23983
23985
|
blob,
|
|
23984
23986
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
23985
23987
|
});
|
|
@@ -46424,7 +46426,9 @@ var bootstrapCanvas = ({
|
|
|
46424
46426
|
const context = canvas2.getContext("2d");
|
|
46425
46427
|
context.setTransform(1, 0, 0, 1, 0, 0);
|
|
46426
46428
|
context.scale(scale, scale);
|
|
46429
|
+
console.log({ isExporting, theme });
|
|
46427
46430
|
if (isExporting && theme === "dark") {
|
|
46431
|
+
console.log("HERE", { THEME_FILTER });
|
|
46428
46432
|
context.filter = THEME_FILTER;
|
|
46429
46433
|
}
|
|
46430
46434
|
if (typeof canvasBackgroundColor === "string") {
|
|
@@ -53388,7 +53392,7 @@ var parseFileContents = async (blob) => {
|
|
|
53388
53392
|
let contents;
|
|
53389
53393
|
if (blob.type === MIME_TYPES.png) {
|
|
53390
53394
|
try {
|
|
53391
|
-
return await (await import("./image-
|
|
53395
|
+
return await (await import("./image-54CXO76I.js")).decodePngMetadata(blob);
|
|
53392
53396
|
} catch (error) {
|
|
53393
53397
|
if (error.message === "INVALID") {
|
|
53394
53398
|
throw new ImageSceneDataError(
|
|
@@ -53415,7 +53419,7 @@ var parseFileContents = async (blob) => {
|
|
|
53415
53419
|
}
|
|
53416
53420
|
if (blob.type === MIME_TYPES.svg) {
|
|
53417
53421
|
try {
|
|
53418
|
-
return await (await import("./image-
|
|
53422
|
+
return await (await import("./image-54CXO76I.js")).decodeSvgMetadata({
|
|
53419
53423
|
svg: contents
|
|
53420
53424
|
});
|
|
53421
53425
|
} catch (error) {
|
|
@@ -53979,4 +53983,4 @@ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.developme
|
|
|
53979
53983
|
* LICENSE file in the root directory of this source tree.
|
|
53980
53984
|
*)
|
|
53981
53985
|
*/
|
|
53982
|
-
//# sourceMappingURL=chunk-
|
|
53986
|
+
//# sourceMappingURL=chunk-2ZYYNTY6.js.map
|