mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 16:53:06 +08:00
automatically change transformer on shape changes. close #391
This commit is contained in:
@@ -315,9 +315,7 @@ suite('Manual', function() {
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
test('create image hit region with pixelRatio, look at hit, test hit with mouseover', function(
|
||||
done
|
||||
) {
|
||||
test('create image hit region with pixelRatio, look at hit, test hit with mouseover', function(done) {
|
||||
var imageObj = new Image();
|
||||
|
||||
Konva.pixelRatio = 2;
|
||||
@@ -357,9 +355,7 @@ suite('Manual', function() {
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
test('image hit region with alpha threshold, mouseover circle', function(
|
||||
done
|
||||
) {
|
||||
test('image hit region with alpha threshold, mouseover circle', function(done) {
|
||||
var stage = addStage();
|
||||
var layer = new Konva.Layer();
|
||||
stage.add(layer);
|
||||
|
||||
@@ -100,6 +100,8 @@ suite('Transformer', function() {
|
||||
assert.equal(tr.y(), rect.y());
|
||||
assert.equal(tr.width(), rect.width());
|
||||
assert.equal(tr.height(), rect.height());
|
||||
assert.equal(tr.findOne('.back').width(), rect.width());
|
||||
console.log(tr);
|
||||
});
|
||||
|
||||
test('add transformer for transformed rect', function() {
|
||||
|
||||
Reference in New Issue
Block a user