Change image/shape rotation and flip from the right panel
This commit is contained in:
parent
d06e19d543
commit
a57e0f2afb
|
@ -426,7 +426,7 @@ define([
|
||||||
|
|
||||||
onBtnRotateClick: function(btn) {
|
onBtnRotateClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
properties.asc_putRot((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
properties.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
||||||
this.api.ImgApply(properties);
|
this.api.ImgApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
@ -434,9 +434,9 @@ define([
|
||||||
onBtnFlipClick: function(btn) {
|
onBtnFlipClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
if (btn.options.value==1)
|
if (btn.options.value==1)
|
||||||
properties.asc_putFlipH(true);
|
properties.asc_putFlipHInvert(true);
|
||||||
else
|
else
|
||||||
properties.asc_putFlipV(true);
|
properties.asc_putFlipVInvert(true);
|
||||||
this.api.ImgApply(properties);
|
this.api.ImgApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1569,7 +1569,7 @@ define([
|
||||||
|
|
||||||
onBtnRotateClick: function(btn) {
|
onBtnRotateClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
properties.asc_putRot((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
properties.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
||||||
this.api.ImgApply(properties);
|
this.api.ImgApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
@ -1577,9 +1577,9 @@ define([
|
||||||
onBtnFlipClick: function(btn) {
|
onBtnFlipClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
if (btn.options.value==1)
|
if (btn.options.value==1)
|
||||||
properties.asc_putFlipH(true);
|
properties.asc_putFlipHInvert(true);
|
||||||
else
|
else
|
||||||
properties.asc_putFlipV(true);
|
properties.asc_putFlipVInvert(true);
|
||||||
this.api.ImgApply(properties);
|
this.api.ImgApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
|
|
@ -310,7 +310,7 @@ define([
|
||||||
|
|
||||||
onBtnRotateClick: function(btn) {
|
onBtnRotateClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
properties.asc_putRot((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
properties.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
||||||
this.api.ImgApply(properties);
|
this.api.ImgApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
@ -318,9 +318,9 @@ define([
|
||||||
onBtnFlipClick: function(btn) {
|
onBtnFlipClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
if (btn.options.value==1)
|
if (btn.options.value==1)
|
||||||
properties.asc_putFlipH(true);
|
properties.asc_putFlipHInvert(true);
|
||||||
else
|
else
|
||||||
properties.asc_putFlipV(true);
|
properties.asc_putFlipVInvert(true);
|
||||||
this.api.ImgApply(properties);
|
this.api.ImgApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1590,7 +1590,7 @@ define([
|
||||||
|
|
||||||
onBtnRotateClick: function(btn) {
|
onBtnRotateClick: function(btn) {
|
||||||
var properties = new Asc.asc_CShapeProperty();
|
var properties = new Asc.asc_CShapeProperty();
|
||||||
properties.asc_putRot((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
properties.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
||||||
this.api.ShapeApply(properties);
|
this.api.ShapeApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
@ -1598,9 +1598,9 @@ define([
|
||||||
onBtnFlipClick: function(btn) {
|
onBtnFlipClick: function(btn) {
|
||||||
var properties = new Asc.asc_CShapeProperty();
|
var properties = new Asc.asc_CShapeProperty();
|
||||||
if (btn.options.value==1)
|
if (btn.options.value==1)
|
||||||
properties.asc_putFlipH(true);
|
properties.asc_putFlipHInvert(true);
|
||||||
else
|
else
|
||||||
properties.asc_putFlipV(true);
|
properties.asc_putFlipVInvert(true);
|
||||||
this.api.ShapeApply(properties);
|
this.api.ShapeApply(properties);
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
|
|
@ -408,7 +408,7 @@ define([
|
||||||
|
|
||||||
onBtnRotateClick: function(btn) {
|
onBtnRotateClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
properties.asc_putRot((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
properties.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
||||||
this.api.asc_setGraphicObjectProps(properties);
|
this.api.asc_setGraphicObjectProps(properties);
|
||||||
Common.NotificationCenter.trigger('edit:complete', this);
|
Common.NotificationCenter.trigger('edit:complete', this);
|
||||||
},
|
},
|
||||||
|
@ -416,9 +416,9 @@ define([
|
||||||
onBtnFlipClick: function(btn) {
|
onBtnFlipClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
if (btn.options.value==1)
|
if (btn.options.value==1)
|
||||||
properties.asc_putFlipH(true);
|
properties.asc_putFlipHInvert(true);
|
||||||
else
|
else
|
||||||
properties.asc_putFlipV(true);
|
properties.asc_putFlipVInvert(true);
|
||||||
this.api.asc_setGraphicObjectProps(properties);
|
this.api.asc_setGraphicObjectProps(properties);
|
||||||
Common.NotificationCenter.trigger('edit:complete', this);
|
Common.NotificationCenter.trigger('edit:complete', this);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1509,7 +1509,7 @@ define([
|
||||||
|
|
||||||
onBtnRotateClick: function(btn) {
|
onBtnRotateClick: function(btn) {
|
||||||
var props = new Asc.asc_CShapeProperty();
|
var props = new Asc.asc_CShapeProperty();
|
||||||
props.asc_putRot((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
props.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
||||||
this.imgprops.asc_putShapeProperties(props);
|
this.imgprops.asc_putShapeProperties(props);
|
||||||
this.api.asc_setGraphicObjectProps(this.imgprops);
|
this.api.asc_setGraphicObjectProps(this.imgprops);
|
||||||
Common.NotificationCenter.trigger('edit:complete', this);
|
Common.NotificationCenter.trigger('edit:complete', this);
|
||||||
|
@ -1518,9 +1518,9 @@ define([
|
||||||
onBtnFlipClick: function(btn) {
|
onBtnFlipClick: function(btn) {
|
||||||
var props = new Asc.asc_CShapeProperty();
|
var props = new Asc.asc_CShapeProperty();
|
||||||
if (btn.options.value==1)
|
if (btn.options.value==1)
|
||||||
props.asc_putFlipH(true);
|
props.asc_putFlipHInvert(true);
|
||||||
else
|
else
|
||||||
props.asc_putFlipV(true);
|
props.asc_putFlipVInvert(true);
|
||||||
this.imgprops.asc_putShapeProperties(props);
|
this.imgprops.asc_putShapeProperties(props);
|
||||||
this.api.asc_setGraphicObjectProps(this.imgprops);
|
this.api.asc_setGraphicObjectProps(this.imgprops);
|
||||||
Common.NotificationCenter.trigger('edit:complete', this);
|
Common.NotificationCenter.trigger('edit:complete', this);
|
||||||
|
|
Loading…
Reference in a new issue