提交 b314be0d 编写于 作者: K kener

大规模散点图像素计算便宜bug fixed

thx @congchujun
上级 f163aef4
......@@ -166,11 +166,17 @@ define(
var ratio = window.devicePixelRatio || 1;
// console.log(rect)
// var ti = new Date();
// bbox取整
rect = {
x : Math.floor(rect.x),
y : Math.floor(rect.y),
width : Math.floor(rect.width),
height : Math.floor(rect.height)
};
var pixels = ctx.getImageData(
rect.x * ratio, rect.y * ratio,
rect.width * ratio, rect.height * ratio
);
var data = pixels.data;
var idx;
var zrColor = require('zrender/tool/color');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册