iVis-at-Bilkent / cytoscape.js-node-editing

A Cytoscape.js extension to provide grapples to resize nodes
MIT License
25 stars 14 forks source link

React, node module, drawImage error #43

Open micholenko opened 2 years ago

micholenko commented 2 years ago

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.

canbax commented 2 years ago

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

SiimTa commented 10 months ago

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.