Class: ColorStop

ColorStop

new ColorStop(options)

document/renderer/visualVariable/support/ColorStop.js, line 4

颜色分段

Name Type Description
options Object

初始化参数

Name Type Description
color Color | Object | String 可选

颜色

value Number 可选

数值

label String 可选

视觉变量分段描述

Members

colorColor Object String

颜色

labelString

视觉变量分段描述

valueNumber

数值

Methods

ColorStop.fromJSON(){ColorStop}

document/renderer/visualVariable/support/ColorStop.js, line 37

通过json构造ColorStop对象

Returns:
Type Description
ColorStop json对象

clone(){ColorStop}

document/renderer/visualVariable/support/ColorStop.js, line 57

克隆对象

Returns:
Type Description
ColorStop 克隆后的ColorStop对象

toJSON(){Object}

document/renderer/visualVariable/support/ColorStop.js, line 45

导出为json对象

Returns:
Type Description
Object json对象