@@ -8951,7 +8951,7 @@ var BImage = function (_Init) {
89518951 this._option.widthImg = box.width * this.group.scale[0];
89528952 this._option.heightImg = box.height * this.group.scale[0];
89538953
8954- this._option.origin = [this._option.widthImg / 2, this._option.heightImg / 2];
8954+ this._option.origin = [this.ctx.canvasWidth / 2, this.ctx.canvasHeight / 2];
89558955 }
89568956 return this._option.origin;
89578957 }
@@ -8998,6 +8998,15 @@ var BImage = function (_Init) {
89988998 position: this._reSetPosition(),
89998999 origin: this.getOrigin()
90009000 });
9001+
9002+ if (this._option.rotateMouse) {
9003+ this._option.rotateMouse.attr({
9004+ rotation: zero,
9005+ position: this._reSetPosition(),
9006+ origin: this.getOrigin()
9007+ });
9008+ }
9009+
90019010 this._option.rotate = {
90029011 radians: 0,
90039012 degrees: 0
@@ -9054,8 +9063,8 @@ var BImage = function (_Init) {
90549063 });
90559064
90569065 this._option.rotate = {
9057- radians: this.group.rotation,
9058- degrees: this.group.rotation / Math.PI * 180
9066+ radians: this.group.rotation === zero ? 0 : this.group.rotation ,
9067+ degrees: ( this.group.rotation === zero ? 0 : this.group.rotation) / Math.PI * 180
90599068 };
90609069
90619070 this._onRotate && this._onRotate(this.getRotate());
@@ -18885,7 +18894,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
1888518894
1888618895function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1888718896
18888- var version = "1.0.46 ";
18897+ var version = "1.0.47 ";
1888918898console.log('inMark v' + version);
1889018899var inMark = {
1889118900 version: version,
0 commit comments