DrawUtil

DrawUtil()

矢量标绘(Draw)类注册与获取 相关静态方法

属性值

static constant mars2d.DrawUtil.DrawMsg : Object

标绘中tooltip提示文字对象

方法

static mars2d.DrawUtil.getClass(type) → BaseDraw|null

根据 矢量标绘类型 获取 矢量标绘类

参数名称 类型 描述信息
type String

矢量标绘类型

返回值:

矢量标绘类;未注册该类型时返回 null

static mars2d.DrawUtil.hasType(type) → Boolean

是否有指定类型矢量对象

参数名称 类型 描述信息
type String

矢量标绘类型

返回值:

是否有指定类型

static mars2d.DrawUtil.register(type, drawClass) → void

注册矢量标绘类

参数名称 类型 描述信息
type String

矢量标绘类型

drawClass BaseDraw

矢量标绘类

返回值:

无