mirror of
https://github.com/konvajs/konva.git
synced 2025-09-22 20:14:01 +08:00
disable layer hit caching
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
* http://www.kineticjs.com/
|
* http://www.kineticjs.com/
|
||||||
* Copyright 2013, Eric Rowell
|
* Copyright 2013, Eric Rowell
|
||||||
* Licensed under the MIT or GPL Version 2 licenses.
|
* Licensed under the MIT or GPL Version 2 licenses.
|
||||||
* Date: 2014-05-20
|
* Date: 2014-05-22
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 - 2013 by Eric Rowell
|
* Copyright (C) 2011 - 2013 by Eric Rowell
|
||||||
*
|
*
|
||||||
@@ -10239,7 +10239,7 @@ var Kinetic = {};
|
|||||||
];
|
];
|
||||||
},
|
},
|
||||||
_getIntersection: function(pos) {
|
_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],
|
p3 = p[3],
|
||||||
colorKey, shape;
|
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) {
|
_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],
|
p3 = p[3],
|
||||||
colorKey, shape;
|
colorKey, shape;
|
||||||
|
|
||||||
|
@@ -294,7 +294,7 @@ suite('Layer', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// ======================================================
|
// ======================================================
|
||||||
test('hit graph caching', function() {
|
test.skip('hit graph caching', function() {
|
||||||
var stage = addStage();
|
var stage = addStage();
|
||||||
var layer = new Kinetic.Layer();
|
var layer = new Kinetic.Layer();
|
||||||
var originGetImageData = layer.getHitCanvas().getContext().getImageData;
|
var originGetImageData = layer.getHitCanvas().getContext().getImageData;
|
||||||
|
Reference in New Issue
Block a user