在1.3.9中默认未将originX和originY设置为居中 [英] originX and originY are not set to center by default in 1.3.9

查看:408
本文介绍了在1.3.9中默认未将originX和originY设置为居中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想通知您,您忘记将originX和originY设置为居中.我复制了最新版本,并注意到所有对象都已移动.我将原点设置为居中,然后一切看起来都像以前一样.在文档中,默认值也居中.

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.

推荐答案

这是最新的更改:

请检查以下内容: > https://github.com/kangax/fabric.js/commit/330784ac2c7297cd34c2c7f85 #commitcomment-4529854

您只需做类似

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

这篇关于在1.3.9中默认未将originX和originY设置为居中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆