@8btc/xcanvas 0.0.14-beta.11 → 0.0.14-beta.12
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/index.js +6 -2
- package/dist/index.umd.cjs +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { atom, useAtom, useAtomValue, useSetAtom } from "jotai";
|
|
3
3
|
import { Excalidraw, convertToExcalidrawElements, exportToCanvas } from "@8btc/excalidraw";
|
|
4
4
|
import { useEffect } from "react";
|
|
5
|
-
const version = "0.0.14-beta.
|
|
5
|
+
const version = "0.0.14-beta.12";
|
|
6
6
|
const packageJson = {
|
|
7
7
|
version
|
|
8
8
|
};
|
|
@@ -144,7 +144,11 @@ function ApiFactory() {
|
|
|
144
144
|
height: it.height,
|
|
145
145
|
x: places[index].x,
|
|
146
146
|
y: places[index].y,
|
|
147
|
-
fileId: it.url
|
|
147
|
+
fileId: it.url,
|
|
148
|
+
customData: {
|
|
149
|
+
naturalWidth: it.width,
|
|
150
|
+
naturalHeight: it.height
|
|
151
|
+
}
|
|
148
152
|
};
|
|
149
153
|
})
|
|
150
154
|
);
|
package/dist/index.umd.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("jotai"), require("@8btc/excalidraw"), require("react")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "jotai", "@8btc/excalidraw", "react"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.XCanvas = {}, global.jsxRuntime, global.Jotai, global.Excalidraw, global.React));
|
|
3
3
|
})(this, (function(exports2, jsxRuntime, jotai, excalidraw, react) {
|
|
4
4
|
"use strict";
|
|
5
|
-
const version = "0.0.14-beta.
|
|
5
|
+
const version = "0.0.14-beta.12";
|
|
6
6
|
const packageJson = {
|
|
7
7
|
version
|
|
8
8
|
};
|
|
@@ -144,7 +144,11 @@
|
|
|
144
144
|
height: it.height,
|
|
145
145
|
x: places[index].x,
|
|
146
146
|
y: places[index].y,
|
|
147
|
-
fileId: it.url
|
|
147
|
+
fileId: it.url,
|
|
148
|
+
customData: {
|
|
149
|
+
naturalWidth: it.width,
|
|
150
|
+
naturalHeight: it.height
|
|
151
|
+
}
|
|
148
152
|
};
|
|
149
153
|
})
|
|
150
154
|
);
|