Methods
(static) _setOptions(optionsopt)
从选项设置对象的属性
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object |
<optional> |
选择对象 |
(static) get(property) → {*}
基本的getter
Parameters:
Name | Type | Description |
---|---|---|
property |
String | 属性名 |
Returns:
value of a property
- Type
- *
(static) set(key, value) → {fabric.Object}
将属性设置为给定值。当更改与位置/尺寸相关的属性(左、顶、比例、角度等)时' set '不更新对象的边界/控件的位置。如果你需要更新那些,调用' setcoord() '。
Parameters:
Name | Type | Description |
---|---|---|
key |
String | Object | 属性名称或对象(如果是对象,则遍历对象属性) |
value |
Object | function | 属性值(if函数,将值传递给它,并将其返回值用作新值) |
Returns:
thisArg
- Type
- fabric.Object
(static) toggle(property) → {fabric.Object}
将指定属性从“真”切换为“假”或从“假”切换为“真”
Parameters:
Name | Type | Description |
---|---|---|
property |
String | 属性切换 |
Returns:
thisArg
- Type
- fabric.Object