From c9d83bc73c3107c1a38a0e34d6c95fcda67bb0f0 Mon Sep 17 00:00:00 2001 From: OVSharova Date: Mon, 5 Dec 2022 17:13:39 +0300 Subject: [PATCH] bug 58294 --- .../resources/img/right-panels/arrows.svg | 17 +-- .../main/resources/img/toolbar/arrows.svg | 129 ------------------ .../main/app/view/ImageSettingsAdvanced.js | 14 +- apps/documenteditor/main/index.html.deploy | 1 + apps/documenteditor/main/index_loader.html | 1 + .../main/index_loader.html.deploy | 1 + .../main/app/view/ShapeSettingsAdvanced.js | 51 ++++--- apps/presentationeditor/main/index.html | 1 + .../presentationeditor/main/index.html.deploy | 1 + .../presentationeditor/main/index_loader.html | 1 + .../main/index_loader.html.deploy | 1 + .../main/app/view/ShapeSettingsAdvanced.js | 51 ++++--- apps/spreadsheeteditor/main/index.html | 1 + apps/spreadsheeteditor/main/index.html.deploy | 1 + apps/spreadsheeteditor/main/index_loader.html | 1 + .../main/index_loader.html.deploy | 1 + 16 files changed, 80 insertions(+), 193 deletions(-) delete mode 100644 apps/common/main/resources/img/toolbar/arrows.svg diff --git a/apps/common/main/resources/img/right-panels/arrows.svg b/apps/common/main/resources/img/right-panels/arrows.svg index 597d116d5..416e24250 100644 --- a/apps/common/main/resources/img/right-panels/arrows.svg +++ b/apps/common/main/resources/img/right-panels/arrows.svg @@ -1,22 +1,7 @@ ') }); this.mnuBeginStylePicker.on('item:click', _.bind(this.onSelectBeginStyle, this)); this._selectStyleItem(this.btnBeginStyle, null); @@ -1049,7 +1048,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat template: _.template([ '') }); this.mnuEndStylePicker.on('item:click', _.bind(this.onSelectEndStyle, this)); this._selectStyleItem(this.btnEndStyle, null); @@ -2091,12 +2090,11 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat _selectStyleItem: function(combo, record) { var formcontrol = $(combo.el).find('.form-control > .img-arrows use'); - if(formcontrol.length) { var str = ''; if(record){ var styleId = record.get('idsvg'); - str = (styleId !== undefined) ? styleId + 'arrow' : record.get('typearrow') + 'arrow-' + (record.get('value')+1); + str = (styleId !== undefined) ? styleId + 'arrow-5' : record.get('typearrow') + 'arrow-' + (record.get('value')+1); } formcontrol[0].setAttribute('xlink:href', '#' + str); } diff --git a/apps/documenteditor/main/index.html.deploy b/apps/documenteditor/main/index.html.deploy index 422e95115..a3393f560 100644 --- a/apps/documenteditor/main/index.html.deploy +++ b/apps/documenteditor/main/index.html.deploy @@ -322,6 +322,7 @@ + diff --git a/apps/documenteditor/main/index_loader.html b/apps/documenteditor/main/index_loader.html index 80c10c94a..1e5070650 100644 --- a/apps/documenteditor/main/index_loader.html +++ b/apps/documenteditor/main/index_loader.html @@ -272,6 +272,7 @@ + diff --git a/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js index cad1f7e97..148355ab1 100644 --- a/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js @@ -378,18 +378,18 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem var _arrStyles = [], _arrSize = []; - for ( var i=0; i<6; i++ ) - _arrStyles.push({value: i, offsetx: 80*i+10, offsety: 0}); + _arrStyles.push({type: Asc.c_oAscLineBeginType.None, idsvg: 'no-'}); + _arrStyles.push({type: Asc.c_oAscLineBeginType.Triangle, idsvg: ''}); + _arrStyles.push({type: Asc.c_oAscLineBeginType.Arrow, idsvg: 'open-'}); + _arrStyles.push({type: Asc.c_oAscLineBeginType.Stealth, idsvg: 'stealth-'}); + _arrStyles.push({type: Asc.c_oAscLineBeginType.Diamond, idsvg: 'dimond-'}); + _arrStyles.push({type: Asc.c_oAscLineBeginType.Oval, idsvg: 'oval-'}); - _arrStyles[0].type = Asc.c_oAscLineBeginType.None; - _arrStyles[1].type = Asc.c_oAscLineBeginType.Triangle; - _arrStyles[2].type = Asc.c_oAscLineBeginType.Arrow; - _arrStyles[3].type = Asc.c_oAscLineBeginType.Stealth; - _arrStyles[4].type = Asc.c_oAscLineBeginType.Diamond; - _arrStyles[5].type = Asc.c_oAscLineBeginType.Oval; + for ( var i=0; i<6; i++ ) + _arrStyles[i].value = i; for ( i=0; i<9; i++ ) - _arrSize.push({value: i, offsetx: 80+10, offsety: 20*(i+1)}); + _arrSize.push({value: i, typearrow:''}); _arrSize[0].type = Asc.c_oAscLineBeginSize.small_small; _arrSize[1].type = Asc.c_oAscLineBeginSize.small_mid; @@ -407,7 +407,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem template: _.template([ '