Class: Group

lego.Group

Group 集合

new lego.Group()

Properties:
Name Type Description
points Array
views lego.View
pointSize Number 点大小 默认为0
lineWidth Number 线宽 默认为1

Extends

Methods

_draw(ctx)

_draw
Name Type Description
ctx CanvasContext2d

_render(ctx)

_render
Name Type Description
ctx CanvasContext2d

inherited _transform(ctx)

转换坐标
Name Type Description
ctx CanvasContext2d

inherited addChild(child)

添加对象
Name Type Description
child lego.View

inherited getVector()

获取坐标

init()

init

inherited removeChild(child)

移除对象
Name Type Description
child lego.View

inherited removeFromParent()

从父容器中移除

inherited render(ctx, dt)

渲染
Name Type Description
ctx CanvasContext2d
dt Number