mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:24:42 +08:00
remove warning
This commit is contained in:
parent
a106b3e34c
commit
289a16d298
@ -138,8 +138,6 @@
|
||||
'bottom-right'
|
||||
];
|
||||
|
||||
var warningShowed = false;
|
||||
|
||||
Konva.Transformer.prototype = {
|
||||
_centroid: false,
|
||||
____init: function(config) {
|
||||
@ -156,13 +154,6 @@
|
||||
// update transformer data for certain attr changes
|
||||
this.on(ATTR_CHANGE_LIST, this.update);
|
||||
|
||||
if (!warningShowed) {
|
||||
Konva.Util.warn(
|
||||
'Konva.Transformer is currently experimental and may have bugs. Please report any issues to GitHub repo.'
|
||||
);
|
||||
warningShowed = true;
|
||||
}
|
||||
|
||||
if (this.getNode()) {
|
||||
this.update();
|
||||
}
|
||||
@ -344,7 +335,7 @@
|
||||
// var angle = -Math.atan2(-dy, dx) - Math.PI / 2;
|
||||
var scale = tr.getNode().getAbsoluteScale();
|
||||
// If scale.y < 0 xor scale.x < 0 we need to flip (not rotate).
|
||||
var isMirrored = (scale.y * scale.x) < 0;
|
||||
var isMirrored = scale.y * scale.x < 0;
|
||||
var cursor = getCursor(name, rad, isMirrored);
|
||||
anchor.getStage().content.style.cursor = cursor;
|
||||
layer.batchDraw();
|
||||
|
Loading…
Reference in New Issue
Block a user