方法名 | 参数 | 返回类型 | 说明
- | - | - | - getActiveObject() | - | fabric.Object | 返回当前活动对象(即被选中的对象) getActiveObjects() | - | fabric.Object | 返回当前活动对象数组 setSelectionStyles() | - | - | 设置当前选择的样式
属性名 | 类型 | 说明
- | - | - centeredScaling | Boolean | 如果为true,则此对象将在通过控件缩放时使用中心点作为转换的原点 centeredRotation | Boolean | 如果为true,则此对象将使用中心点作为通过控件旋转时的转换原点
- canvas自适应屏幕大小:https://www.cnblogs.com/mihoutaoguniang/p/5998511.html