originX and originY are not set to center by default in 1.3.9 [closed]

你。 提交于 2019-12-08 08:57:30

问题


I only would like to inform you that you forgot to set originX and originY to center. I copied the latest version and noticed that all my objects are moved. I set the origin to center and then everything looks like before. In the doc default value is also center.


回答1:


This was a latest change :

Please check this: https://github.com/kangax/fabric.js/commit/330784ac2c7297cd34c2c7fbe6ea69c8079b9e85#commitcomment-4529854

You can still keep things the same in your app by simply doing something like

fabric.Object.prototype.originX = fabric.Object.prototype.originY = 'center'


来源:https://stackoverflow.com/questions/19823024/originx-and-originy-are-not-set-to-center-by-default-in-1-3-9

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!