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

快捷菜单 返回顶部

fabric.js中文API

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

Class: CircleBrush

fabric.CircleBrush

new CircleBrush()

CircleBrush class CircleBrush类
Source:

Members

width :Number

Width of a brush 画笔宽度
Type:
  • Number
Default Value:
  • 10
Source:

Methods

addPoint(pointer) → {fabric.Point}

Parameters:
Name Type Description
pointer Object
Source:
Returns:
Just added pointer point
Type
fabric.Point

drawDot(pointer)

Invoked inside on mouse down and mouse move 在鼠标下移和鼠标移动时调用
Parameters:
Name Type Description
pointer Object
Source:

initialize(canvas) → {fabric.CircleBrush}

Constructor 构造函数
Parameters:
Name Type Description
canvas fabric.Canvas
Source:
Returns:
Instance of a circle brush
Type
fabric.CircleBrush

onMouseDown()

Invoked on mouse down 按下鼠标调用
Source:

onMouseMove(pointer)

Invoked on mouse move 鼠标移动时调用
Parameters:
Name Type Description
pointer Object
Source:

onMouseUp()

Invoked on mouse up 鼠标向上调用
Source:

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

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

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