contiune text editing

This commit is contained in:
Artur AGH
2023-10-20 18:43:45 +02:00
parent 13e4e0a1a7
commit 2abea89a2e
25 changed files with 41560 additions and 499 deletions

View File

@@ -26,7 +26,6 @@ export const TransformableImage = ({
const trRef = useRef<ElementRef<typeof Transformer>>(null);
const [image] = useImage(imageProps.imageUrl);
console.log(imageProps, isSelected, onSelect, onChange, " IMAGE ");
useEffect(() => {
if (!imageRef.current) return;
@@ -56,7 +55,7 @@ export const TransformableImage = ({
y: e.target.y(),
});
}}
/* onTransformEnd={(e) => {
onTransformEnd={(e) => {
const node = imageRef.current;
if (!node) return;
@@ -75,7 +74,7 @@ export const TransformableImage = ({
width: Math.max(5, node.width() * scaleX),
height: Math.max(node.height() * scaleY),
});
}}*/
}}
/>
{isSelected && (
<Transformer