canvas - FabricJS - Setting object position with pivot being top-left corner -
i started using quite awesome fabricjs framework, , noticed object positioning works bit different css conventions. css places positioning pivot on top-left corner, fabricjs has placed @ center of object:
css
@------------ | | | | | | | | | | ------------- fabricjs
------------- | | | | | @ | | | | | ------------- is there way control setting? thanks.
edit:
this exiting item on roadmap project. it'll happen in future, not supported.
you can specify "origin" of positioning of object when create it.
originx defaults "center", can change "left" or "right"
originy defaults "center" can change "bottom" or "top"
Comments
Post a Comment