mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-26 04:25:06 +08:00
[PE] Template and inputs correction for shape shadow menu
This commit is contained in:
@ -206,7 +206,7 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="change-type">
|
||||
<td class="padding-small" colspan=2>
|
||||
<div class="separator horizontal"></div>
|
||||
</td>
|
||||
|
||||
@ -1214,9 +1214,6 @@ define([
|
||||
this._state.GradColor = color;
|
||||
}
|
||||
|
||||
//TODO: Измненить на новую кнопку
|
||||
//this.chShadow.setDisabled(!!props.get_FromChart() || this._locked);
|
||||
|
||||
|
||||
var shadow = props.asc_getShadow(),
|
||||
shadowPresetRecord = null;
|
||||
@ -1736,7 +1733,7 @@ define([
|
||||
parentEl: $('#shape-button-shadow-shape'),
|
||||
cls: 'btn-toolbar align-left',
|
||||
caption: this.textShadow,
|
||||
iconCls: 'toolbar__icon btn-menu-shape',
|
||||
iconCls: 'toolbar__icon btn-shadow',
|
||||
style: "width:100%;",
|
||||
menu: true,
|
||||
dataHint: '1',
|
||||
@ -2010,6 +2007,7 @@ define([
|
||||
shadowProps.putColor(Common.Utils.ThemeColor.getRgbColor(color));
|
||||
shapeProps.asc_putShadow(shadowProps);
|
||||
this.api.ShapeApply(shapeProps);
|
||||
this.fireEvent('editcomplete', this);
|
||||
},
|
||||
|
||||
onApiAutoShapes: function(btnChangeShape) {
|
||||
|
||||
@ -138,7 +138,8 @@ define([
|
||||
el: $('#shape-shadow-transparency-spin'),
|
||||
step: 1,
|
||||
width: 62,
|
||||
value: this.oldTransparency + ' %',
|
||||
allowDecimal: false,
|
||||
value: '0 %',
|
||||
defaultUnit : "%",
|
||||
maxValue: 100,
|
||||
minValue: 0,
|
||||
@ -146,6 +147,7 @@ define([
|
||||
dataHintDirection: 'bottom',
|
||||
dataHintOffset: 'big'
|
||||
});
|
||||
this.spinTransparency.setValue(this.oldTransparency, true);
|
||||
this.spinTransparency.on('change', _.bind(this.onSpinnerTransparencyChange, this));
|
||||
|
||||
|
||||
@ -162,7 +164,8 @@ define([
|
||||
el: $('#shape-shadow-size-spin'),
|
||||
step: 1,
|
||||
width: 62,
|
||||
value: this.oldSize + ' %',
|
||||
allowDecimal: false,
|
||||
value: '0 %',
|
||||
defaultUnit : "%",
|
||||
maxValue: 200,
|
||||
minValue: 1,
|
||||
@ -170,6 +173,7 @@ define([
|
||||
dataHintDirection: 'bottom',
|
||||
dataHintOffset: 'big'
|
||||
});
|
||||
this.spinSize.setValue(this.oldSize, true);
|
||||
this.spinSize.on('change', _.bind(this.onSpinnerSizeChange, this));
|
||||
|
||||
|
||||
@ -187,7 +191,8 @@ define([
|
||||
el: $('#shape-shadow-angle-spin'),
|
||||
step: 1,
|
||||
width: 62,
|
||||
value: this.oldAngle + ' °',
|
||||
allowDecimal: false,
|
||||
value: '0 °',
|
||||
defaultUnit : "°",
|
||||
maxValue: 359,
|
||||
minValue: 0,
|
||||
@ -195,6 +200,7 @@ define([
|
||||
dataHintDirection: 'bottom',
|
||||
dataHintOffset: 'big'
|
||||
});
|
||||
this.spinAngle.setValue(this.oldAngle, true);
|
||||
this.spinAngle.on('change', _.bind(this.onSpinnerAngleChange, this));
|
||||
|
||||
|
||||
@ -222,6 +228,7 @@ define([
|
||||
dataHintDirection: 'bottom',
|
||||
dataHintOffset: 'big'
|
||||
});
|
||||
this.spinDistance.setValue(this.oldDistance, true);
|
||||
this.spinDistance.on('change', _.bind(this.onSpinnerDistanceChange, this));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user