在线工具
网站地图    收藏    合作   
<

快捷菜单 返回顶部

fabric.js中文API

fabric.js中文在线API,fabric.js中文文档API大全

Namespace: CommonMethods

fabric.CommonMethods

Source:

Methods

(static) _setOptions(optionsopt)

Sets object's properties from options 从选项设置对象的属性
Parameters:
Name Type Attributes Description
options Object <optional>
Options object选择对象
Source:

(static) get(property) → {*}

Basic getter 基本的getter
Parameters:
Name Type Description
property String Property name属性名
Source:
Returns:
value of a property
Type
*

(static) set(key, value) → {fabric.Object}

Sets property to a given value. When changing position/dimension -related properties (left, top, scale, angle, etc.) `set` does not update position of object's borders/controls. If you need to update those, call `setCoords()`. 将属性设置为给定值。当更改与位置/尺寸相关的属性(左、顶、比例、角度等)时' set '不更新对象的边界/控件的位置。如果你需要更新那些,调用' setcoord() '。
Parameters:
Name Type Description
key String | Object Property name or object (if object, iterate over the object properties)属性名称或对象(如果是对象,则遍历对象属性)
value Object | function Property value (if function, the value is passed into it and its return value is used as a new one)属性值(if函数,将值传递给它,并将其返回值用作新值)
Source:
Returns:
thisArg
Type
fabric.Object

(static) toggle(property) → {fabric.Object}

Toggles specified property from `true` to `false` or from `false` to `true` 将指定属性从“真”切换为“假”或从“假”切换为“真”
Parameters:
Name Type Description
property String Property to toggle属性切换
Source:
Returns:
thisArg
Type
fabric.Object

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com