@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/dist/esm/index.js
CHANGED
|
@@ -4491,9 +4491,13 @@ var CanvasImage = function CanvasImage(_ref) {
|
|
|
4491
4491
|
useEffect(function () {
|
|
4492
4492
|
if (!(imageNodeRef !== null && imageNodeRef !== void 0 && imageNodeRef.current)) return;
|
|
4493
4493
|
if (hasTint) {
|
|
4494
|
+
var _imageNodeRef$current;
|
|
4494
4495
|
imageNodeRef.current.cache();
|
|
4496
|
+
(_imageNodeRef$current = imageNodeRef.current.getLayer()) === null || _imageNodeRef$current === void 0 || _imageNodeRef$current.batchDraw();
|
|
4495
4497
|
} else {
|
|
4498
|
+
var _imageNodeRef$current2;
|
|
4496
4499
|
imageNodeRef.current.clearCache();
|
|
4500
|
+
(_imageNodeRef$current2 = imageNodeRef.current.getLayer()) === null || _imageNodeRef$current2 === void 0 || _imageNodeRef$current2.batchDraw();
|
|
4497
4501
|
}
|
|
4498
4502
|
}, [hasTint, red, green, blue]);
|
|
4499
4503
|
if (!loaded || !imgEl) return null;
|