diff --git a/lib/src/interfaces/objects.ts b/lib/src/interfaces/objects.ts index 8f20737..2381f3b 100644 --- a/lib/src/interfaces/objects.ts +++ b/lib/src/interfaces/objects.ts @@ -47,7 +47,7 @@ export interface IEllipseDrawObject extends IBaseDrawObject { export interface IImageDrawObject extends IBaseDrawObject { readonly type: "image"; - source: HTMLImageElement; + source: HTMLImageElement | ImageBitmap; stroke: IStroke; rectangle: IRectangle; fill: Fill; diff --git a/lib/src/package.json b/lib/src/package.json index bd91eee..0d2ea12 100644 --- a/lib/src/package.json +++ b/lib/src/package.json @@ -1,6 +1,6 @@ { "name": "@gxc-solutions/renderer-base", - "version": "0.0.9", + "version": "0.0.10", "main": "index.js", "author": "GXC Solutions", "publishConfig": { @@ -8,6 +8,6 @@ "registry": "https://npm.gxc-solutions.ru" }, "peerDependencies": { - "@gxc-solutions/math": "^0.0.1" + "@gxc-solutions/math": "^0.0.2" } } diff --git a/package-lock.json b/package-lock.json index 3c6e5d6..be5726a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0", "license": "ISC", "dependencies": { - "@gxc-solutions/math": "^0.0.1" + "@gxc-solutions/math": "^0.0.2" }, "devDependencies": { "@eslint/eslintrc": "^3.3.4", @@ -208,9 +208,9 @@ } }, "node_modules/@gxc-solutions/math": { - "version": "0.0.1", - "resolved": "https://npm.gxc-solutions.ru/@gxc-solutions/math/-/math-0.0.1.tgz", - "integrity": "sha512-m6lxTkjXkyaUoI3+cJKpgt/AQlyApLSJ2p9D2EJ9+XzHCSjOWs29GzczPLgopYdLEWYN/YPr77V4CScGpR7qxw==" + "version": "0.0.2", + "resolved": "https://npm.gxc-solutions.ru/@gxc-solutions/math/-/math-0.0.2.tgz", + "integrity": "sha512-R6zYvbspis+XoHZ7lwyVLAUGZkJwivbeo94VtN7cSZzOA86AgVev+UQeHt9S1Ua4d1FwgxYVasck1/l5WXR7CQ==" }, "node_modules/@humanfs/core": { "version": "0.19.1", diff --git a/package.json b/package.json index 0e32a6f..52f299e 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "license": "ISC", "description": "", "dependencies": { - "@gxc-solutions/math": "^0.0.1" + "@gxc-solutions/math": "^0.0.2" }, "devDependencies": { "@eslint/eslintrc": "^3.3.4",