mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 05:14:58 +08:00
rendering shadows and strokes test improve
This commit is contained in:
@@ -110,8 +110,8 @@ function get (element, content) {
|
||||
return element;
|
||||
}
|
||||
|
||||
function compareLayerAndCanvas(layer, canvas) {
|
||||
var equal = imagediff.equal(layer.getCanvas()._canvas, canvas);
|
||||
function compareLayerAndCanvas(layer, canvas, tol) {
|
||||
var equal = imagediff.equal(layer.getCanvas()._canvas, canvas, tol);
|
||||
if (!equal) {
|
||||
var
|
||||
div = get('div'),
|
||||
|
||||
Reference in New Issue
Block a user