mirror of
https://github.com/konvajs/konva.git
synced 2025-09-23 04:36:47 +08:00
disable layer hit caching
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* http://www.kineticjs.com/
|
||||
* Copyright 2013, Eric Rowell
|
||||
* Licensed under the MIT or GPL Version 2 licenses.
|
||||
* Date: 2014-05-20
|
||||
* Date: 2014-05-22
|
||||
*
|
||||
* Copyright (C) 2011 - 2013 by Eric Rowell
|
||||
*
|
||||
@@ -10239,7 +10239,7 @@ var Kinetic = {};
|
||||
];
|
||||
},
|
||||
_getIntersection: function(pos) {
|
||||
var p = this._getImageData(pos.x, pos.y),
|
||||
var p = this.hitCanvas.context.getImageData(pos.x, pos.y, 1, 1).data,
|
||||
p3 = p[3],
|
||||
colorKey, shape;
|
||||
|
||||
|
4
kinetic.min.js
vendored
4
kinetic.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -109,7 +109,7 @@
|
||||
];
|
||||
},
|
||||
_getIntersection: function(pos) {
|
||||
var p = this._getImageData(pos.x, pos.y),
|
||||
var p = this.hitCanvas.context.getImageData(pos.x, pos.y, 1, 1).data,
|
||||
p3 = p[3],
|
||||
colorKey, shape;
|
||||
|
||||
|
@@ -294,7 +294,7 @@ suite('Layer', function() {
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
test('hit graph caching', function() {
|
||||
test.skip('hit graph caching', function() {
|
||||
var stage = addStage();
|
||||
var layer = new Kinetic.Layer();
|
||||
var originGetImageData = layer.getHitCanvas().getContext().getImageData;
|
||||
|
Reference in New Issue
Block a user