提交 e36c57df 编写于 作者: S sushuang

rename mapToColor to lerp

上级 a7e8aea5
......@@ -142,7 +142,7 @@ define(function (require) {
// which will be much faster and useful in pixel manipulation
var returnRGBArray = !!out;
!isNormalized && (value = this._normalizeData(value));
out = zrColor.fastMapToColor(value, thisOption.parsedVisual, out);
out = zrColor.fastLerp(value, thisOption.parsedVisual, out);
return returnRGBArray ? out : zrColor.stringify(out, 'rgba');
},
this
......@@ -152,7 +152,7 @@ define(function (require) {
_doMap: {
linear: function (normalized) {
return zrColor.stringify(
zrColor.fastMapToColor(normalized, this.option.parsedVisual),
zrColor.fastLerp(normalized, this.option.parsedVisual),
'rgba'
);
},
......@@ -161,7 +161,7 @@ define(function (require) {
var result = getSpecifiedVisual.call(this, value);
if (result == null) {
result = zrColor.stringify(
zrColor.fastMapToColor(normalized, this.option.parsedVisual),
zrColor.fastLerp(normalized, this.option.parsedVisual),
'rgba'
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册