@arbisoft/react-design-tool 1.0.63 → 1.0.64
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/README.md +2 -2
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -64,13 +64,13 @@ yarn add @arbisoft/react-design-tool
|
|
|
64
64
|
#### ⚠️ Important: Installation Guide for React 18 and Below
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
npm install @arbisoft/react-design-tool@1.0.
|
|
67
|
+
npm install @arbisoft/react-design-tool@1.0.64
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
OR
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
|
-
yarn add @arbisoft/react-design-tool@1.0.
|
|
73
|
+
yarn add @arbisoft/react-design-tool@1.0.64
|
|
74
74
|
|
|
75
75
|
```
|
|
76
76
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -4493,9 +4493,13 @@ var CanvasImage = function CanvasImage(_ref) {
|
|
|
4493
4493
|
React.useEffect(function () {
|
|
4494
4494
|
if (!(imageNodeRef !== null && imageNodeRef !== void 0 && imageNodeRef.current)) return;
|
|
4495
4495
|
if (hasTint) {
|
|
4496
|
+
var _imageNodeRef$current;
|
|
4496
4497
|
imageNodeRef.current.cache();
|
|
4498
|
+
(_imageNodeRef$current = imageNodeRef.current.getLayer()) === null || _imageNodeRef$current === void 0 || _imageNodeRef$current.batchDraw();
|
|
4497
4499
|
} else {
|
|
4500
|
+
var _imageNodeRef$current2;
|
|
4498
4501
|
imageNodeRef.current.clearCache();
|
|
4502
|
+
(_imageNodeRef$current2 = imageNodeRef.current.getLayer()) === null || _imageNodeRef$current2 === void 0 || _imageNodeRef$current2.batchDraw();
|
|
4499
4503
|
}
|
|
4500
4504
|
}, [hasTint, red, green, blue]);
|
|
4501
4505
|
if (!loaded || !imgEl) return null;
|