[SSE] Refactoring text orientation in shape
This commit is contained in:
parent
7afb5e9a59
commit
c0813053cc
|
@ -785,17 +785,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onTextOrientationMenu: function(menu, item) {
|
onTextOrientationMenu: function(menu, item) {
|
||||||
if (this.api.asc_getCellInfo().asc_getSelectionType() == Asc.c_oAscSelectionType.RangeShapeText) {
|
|
||||||
var angle = Asc.c_oAscVertDrawingText.normal;
|
|
||||||
switch (item.value) {
|
|
||||||
case 'rotateup': angle = Asc.c_oAscVertDrawingText.vert270; break;
|
|
||||||
case 'rotatedown': angle = Asc.c_oAscVertDrawingText.vert; break;
|
|
||||||
}
|
|
||||||
|
|
||||||
var properties = new Asc.asc_CImgProperty();
|
|
||||||
properties.asc_putVert(angle);
|
|
||||||
this.api.asc_setGraphicObjectProps(properties);
|
|
||||||
} else {
|
|
||||||
var angle = 0;
|
var angle = 0;
|
||||||
|
|
||||||
switch (item.value) {
|
switch (item.value) {
|
||||||
|
@ -809,7 +798,6 @@ define([
|
||||||
this._state.angle = undefined;
|
this._state.angle = undefined;
|
||||||
if (this.api)
|
if (this.api)
|
||||||
this.api.asc_setCellAngle(angle);
|
this.api.asc_setCellAngle(angle);
|
||||||
}
|
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||||
Common.component.Analytics.trackEvent('ToolBar', 'Text orientation');
|
Common.component.Analytics.trackEvent('ToolBar', 'Text orientation');
|
||||||
|
|
Loading…
Reference in a new issue