konvajs / konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://konvajs.org/
Other
11.72k stars 933 forks source link

I am fabric user planning to migrate to konva #812

Closed iamappmaker closed 4 years ago

iamappmaker commented 4 years ago

I created a graphic design application using fabricjs. only thing i worried is performance. When i add HD image and do any operations, performance drops and most of the time getting hang. So i like to migrate to konva but we have many json files, is it possible to convert fabric json to konva json format so i can import my fabricjs projects.

lavrton commented 4 years ago

only thing i worried is performance

Before migration makes sure Konva can provide better performance. Personally I am not sure about it, because fabric and Kovna work very similar. I think you can try to decrease image resolution in some cases.

is it possible to convert fabric json to konva json

I don't know the fabric format and what properties they use. But you can try to do it. Just compare them manually and write your own converter.

Any way for storing objects it is better to use your own JSON format, so it independent from the framework.

https://konvajs.org/docs/data_and_serialization/Best_Practices.htm