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

clone(){ColorStop}

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

克隆对象

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

toJSON(){Object}

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

导出为 JSON 对象

Returns:
Type Description
Object JSON 对象

ColorStop.fromJSON(json){ColorStop}

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

通过 JSON 对象构造 ColorStop 对象

Name Type Description
json Object

JSON 对象

Returns:
Type Description
ColorStop ColorStop 对象