disable layer hit caching

This commit is contained in:
Лаврёнов Антон 2014-05-22 23:04:57 +08:00
parent 68f8ea335e
commit 9fba09008f
4 changed files with 6 additions and 6 deletions

View File

@ -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

File diff suppressed because one or more lines are too long

View File

@ -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;

View File

@ -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;