Apply shadow

This commit is contained in:
Julia Radzhabova 2019-08-05 18:15:29 +03:00
parent d20bd24010
commit cb8e61e0d2
3 changed files with 8 additions and 8 deletions

View file

@ -1156,7 +1156,7 @@ define([
this._state.GradColor = color; this._state.GradColor = color;
} }
// this.chShadow.setValue(!!shapeprops.get_shadow()); this.chShadow.setValue(!!shapeprops.asc_getShadow(), true);
this._noApply = false; this._noApply = false;
} }
@ -1603,7 +1603,7 @@ define([
onCheckShadow: function(field, newValue, oldValue, eOpts) { onCheckShadow: function(field, newValue, oldValue, eOpts) {
if (this.api) { if (this.api) {
var props = new Asc.asc_CShapeProperty(); var props = new Asc.asc_CShapeProperty();
props.put_shadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); props.asc_putShadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null);
this.imgprops.put_ShapeProperties(props); this.imgprops.put_ShapeProperties(props);
this.api.ImgApply(this.imgprops); this.api.ImgApply(this.imgprops);
} }

View file

@ -1069,7 +1069,7 @@ define([
this._state.GradColor = color; this._state.GradColor = color;
} }
// this.chShadow.setValue(!!props.get_shadow()); this.chShadow.setValue(!!props.asc_getShadow(), true);
this._noApply = false; this._noApply = false;
} }
@ -1459,7 +1459,7 @@ define([
onCheckShadow: function(field, newValue, oldValue, eOpts) { onCheckShadow: function(field, newValue, oldValue, eOpts) {
if (this.api) { if (this.api) {
var props = new Asc.asc_CShapeProperty(); var props = new Asc.asc_CShapeProperty();
props.put_shadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); props.asc_putShadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null);
this.api.ShapeApply(props); this.api.ShapeApply(props);
} }
this.fireEvent('editcomplete', this); this.fireEvent('editcomplete', this);

View file

@ -1093,7 +1093,7 @@ define([
this._state.GradColor = color; this._state.GradColor = color;
} }
// this.chShadow.setValue(!!shapeprops.get_shadow()); this.chShadow.setValue(!!shapeprops.asc_getShadow(), true);
this._noApply = false; this._noApply = false;
} }
@ -1545,9 +1545,9 @@ define([
onCheckShadow: function(field, newValue, oldValue, eOpts) { onCheckShadow: function(field, newValue, oldValue, eOpts) {
if (this.api) { if (this.api) {
var props = new Asc.asc_CShapeProperty(); var props = new Asc.asc_CShapeProperty();
props.put_shadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); props.asc_putShadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null);
this.asc_setGraphicObjectProps.put_ShapeProperties(props); this.imgprops.asc_putShapeProperties(props);
this.api.ImgApply(this.imgprops); this.api.asc_setGraphicObjectProps(this.imgprops);
} }
Common.NotificationCenter.trigger('edit:complete', this); Common.NotificationCenter.trigger('edit:complete', this);
}, },