cytoscape.js-node-editing icon indicating copy to clipboard operation
cytoscape.js-node-editing copied to clipboard

React, node module, drawImage error

Open micholenko opened this issue 3 years ago • 2 comments

Hi, I'm having some issues using your extention with npm and React.

I have created this example: https://codesandbox.io/s/yngv6q Note that the same issue is present on my machine.

Everytime try to resize an element, this error appears

image

I've tried many different library version combinations, nothing works.

Thanks in advance.

micholenko avatar Feb 22 '22 10:02 micholenko

It seems like this totally related to Konva. Maybe upgrading it could help. To upgrade Konva current implementation should be changed

canbax avatar Feb 24 '22 12:02 canbax

Anyone struggling with that - the error is caused if you rely on resizeToContentCueImage default value. You can assign your own image or set it to empty string, ie "" which is valid src for the image.

SiimTa avatar Nov 15 '23 10:11 SiimTa