类名 ColorStop

# new ColorStop(options)

颜色分段

参数:

名称 类型 描述
options Object

初始化参数

color Color | Object | String

颜色

value Number

数值

label String

视觉变量分段描述

查看源代码 common/document/renderer/visualVariable/support/ColorStop.js, line 4

方法

# static fromJSON()

通过json构造ColorStop对象

查看源代码 common/document/renderer/visualVariable/support/ColorStop.js, line 37

json对象

ColorStop

# clone()

克隆对象

查看源代码 common/document/renderer/visualVariable/support/ColorStop.js, line 57

克隆后的ColorStop对象

ColorStop

# toJSON()

导出为json对象

查看源代码 common/document/renderer/visualVariable/support/ColorStop.js, line 45

json对象

Object
构造函数
成员变量
方法
事件