提交 e36c57df 编写于 作者: S sushuang

rename mapToColor to lerp

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