You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node-Canvas version 1.6.10 on Ubuntu 16.04
Node Fabric version: 2.2.2
NodeJS version: 8.10.0
I need to scale the objects in the canvas (Textbox and Image fabric derived custom classes) to follow the new canvas width and height assigned in the node app. After this in the nodejs app I create a PNG file with the scaled objects.
The problem is that the generated PNG image (with scaled objects) seems to have all the objects badly scaled and positioned and I don't understand why.
Removing the scaling, I can see the objects are misplaced (wrong top/left)
In the browser version, using fabric 1.7.20 (so no nodeJS nor node-canvas, just javascript and HTML canvas), the PNG image is created with all the objects correctly scaled and positioned.
Maybe I'm assuming/doing something wrong. Maybe node-canvas does something differently or needs something. I don't know.
Any idea? Could you helpme?
Thanks
Rob
The text was updated successfully, but these errors were encountered:
Node-Canvas version 1.6.10 on Ubuntu 16.04
Node Fabric version: 2.2.2
NodeJS version: 8.10.0
I need to scale the objects in the canvas (Textbox and Image fabric derived custom classes) to follow the new canvas width and height assigned in the node app. After this in the nodejs app I create a PNG file with the scaled objects.
Test Code on Github
The problem is that the generated PNG image (with scaled objects) seems to have all the objects badly scaled and positioned and I don't understand why.
Removing the scaling, I can see the objects are misplaced (wrong top/left)
In the browser version, using fabric 1.7.20 (so no nodeJS nor node-canvas, just javascript and HTML canvas), the PNG image is created with all the objects correctly scaled and positioned.
Maybe I'm assuming/doing something wrong. Maybe node-canvas does something differently or needs something. I don't know.
Any idea? Could you helpme?
Thanks
Rob
The text was updated successfully, but these errors were encountered: