Class

BoxEntity

BoxEntity(position, length, width, height)

Constructor

# new BoxEntity(position, length, width, height)

盒子

Parameters:
Name Type Description
position Position

任意类型的坐标

length number

长度

width number

宽度

height number

高度

Author:
  • xyj

Extends

Members

# height

number

# readonly height

获取高度

# length

number

# readonly length

获取长度

# position

Position

# readonly position

获取坐标

string

# readonly type

类型

# width

number

# readonly width

获取宽度

Methods

# addTo(layer) → {Graphic}

将实体加入图层

Parameters:
Name Type Description
layer Layer

图层

Overrides:
See:

this - 当前实体对象

Graphic

# setStyle(style) → {BoxEntity}

设置样式

Parameters:
Name Type Description
style Object

任意类型的css样式

返回自身,链式调用

BoxEntity