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

快捷菜单 返回顶部

fabric.js中文API

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

Class: Shadow

fabric.Shadow

new Shadow()

Shadow class 影子类
Source:
See:

Members

(static) reOffsetsAndBlur

Regex matching shadow offsetX, offsetY and blur (ex: "2px 2px 10px rgba(0,0,0,0.2)", "rgb(0,255,0) 2px 2px") 正则表达式匹配阴影offsetX,偏移和模糊(例如:“2px 2px 10px rgba(0,0,0,0.2)”,“rgb(0,255,0) 2px 2px”)
Source:

affectStroke :Boolean

Whether the shadow should affect stroke operations 阴影是否会影响行程操作
Type:
  • Boolean
Source:

blur :Number

Shadow blur 阴影模糊
Type:
  • Number
Source:

color :String

Shadow color 阴影颜色
Type:
  • String
Default Value:
  • rgb(0,0,0)
Source:

includeDefaultValues :Boolean

Indicates whether toObject should include default values 指示toObject是否应该包含默认值
Type:
  • Boolean
Default Value:
  • true
Source:

nonScaling :Boolean

When `false`, the shadow will scale with the object. When `true`, the shadow's offsetX, offsetY, and blur will not be affected by the object's scale. default to false 当为false时,阴影将随对象缩放。 当' true '时,阴影的偏移x,偏移量和模糊将不受对象的比例影响。 缺省为false
Type:
  • Boolean
Source:

offsetX :Number

Shadow horizontal offset 影子水平偏移量
Type:
  • Number
Source:

offsetY :Number

Shadow vertical offset 影子垂直偏移量
Type:
  • Number
Source:

Methods

initialize(optionsopt) → {fabric.Shadow}

Constructor 构造函数
Parameters:
Name Type Attributes Description
options Object | String <optional>
Options object with any of color, blur, offsetX, offsetY properties or string (e.g. "rgba(0,0,0,0.2) 2px 2px 10px")选项对象的任何颜色,模糊,offsetX,偏移属性或字符串(例如。"rgba(0,0,0,0.2) 2px 2px 10px")
Source:
Returns:
thisArg
Type
fabric.Shadow

toObject() → {Object}

Returns object representation of a shadow 返回阴影的对象表示形式
Source:
Returns:
Object representation of a shadow instance
Type
Object

toString() → {String}

Returns a string representation of an instance 返回实例的字符串表示形式
Source:
See:
Returns:
Returns CSS3 text-shadow declaration
Type
String

toSVG(object) → {String}

Returns SVG representation of a shadow 返回阴影的SVG表示
Parameters:
Name Type Description
object fabric.Object 组织类
Source:
Returns:
SVG representation of a shadow
Type
String

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

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

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