[DE] Fix 3d settings for charts
This commit is contained in:
parent
066aca3d07
commit
36873dc3bc
|
@ -364,7 +364,7 @@ define([
|
||||||
this.spnX.setValue(this.spnX.getNumberValue() - 10);
|
this.spnX.setValue(this.spnX.getNumberValue() - 10);
|
||||||
}, this));
|
}, this));
|
||||||
|
|
||||||
this.btnRight= new Common.UI.Button({
|
this.btnRight = new Common.UI.Button({
|
||||||
parentEl: $('#chart-btn-x-right', me.$el),
|
parentEl: $('#chart-btn-x-right', me.$el),
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-rotate-90',
|
iconCls: 'toolbar__icon btn-rotate-90',
|
||||||
|
@ -783,92 +783,92 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onXRotation: function(field, newValue, oldValue, eOpts){
|
onXRotation: function(field, newValue, oldValue, eOpts){
|
||||||
if (this.api){
|
if (this._noApply) return;
|
||||||
var props = this.api.asc_getChartObject();
|
|
||||||
if (props) {
|
if (this.chartProps) {
|
||||||
var oView3D = props.getView3d();
|
var props = new Asc.asc_CImgProperty();
|
||||||
if (oView3D) {
|
var oView3D = this.chartProps.getView3d();
|
||||||
oView3D.asc_setRotX(field.getNumberValue());
|
if (oView3D) {
|
||||||
props.startEdit();
|
oView3D.asc_setRotX(field.getNumberValue());
|
||||||
props.setView3d(oView3D);
|
this.chartProps.putView3d(oView3D);
|
||||||
props.endEdit();
|
props.put_ChartProperties(this.chartProps);
|
||||||
}
|
this.api.ImgApply(props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onYRotation: function(field, newValue, oldValue, eOpts){
|
onYRotation: function(field, newValue, oldValue, eOpts){
|
||||||
if (this.api){
|
if (this._noApply) return;
|
||||||
var props = this.api.asc_getChartObject();
|
|
||||||
if (props) {
|
if (this.chartProps) {
|
||||||
var oView3D = props.getView3d();
|
var props = new Asc.asc_CImgProperty();
|
||||||
if (oView3D) {
|
var oView3D = this.chartProps.getView3d();
|
||||||
oView3D.asc_setRotY(field.getNumberValue());
|
if (oView3D) {
|
||||||
props.startEdit();
|
oView3D.asc_setRotY(field.getNumberValue());
|
||||||
props.setView3d(oView3D);
|
this.chartProps.putView3d(oView3D);
|
||||||
props.endEdit();
|
props.put_ChartProperties(this.chartProps);
|
||||||
}
|
this.api.ImgApply(props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onPerspective: function(field, newValue, oldValue, eOpts){
|
onPerspective: function(field, newValue, oldValue, eOpts){
|
||||||
if (this.api){
|
if (this._noApply) return;
|
||||||
var props = this.api.asc_getChartObject();
|
|
||||||
if (props) {
|
if (this.chartProps) {
|
||||||
var oView3D = props.getView3d();
|
var props = new Asc.asc_CImgProperty();
|
||||||
if (oView3D) {
|
var oView3D = this.chartProps.getView3d();
|
||||||
oView3D.asc_setPerspective(field.getNumberValue());
|
if (oView3D) {
|
||||||
props.startEdit();
|
oView3D.asc_setPerspective(field.getNumberValue());
|
||||||
props.setView3d(oView3D);
|
this.chartProps.putView3d(oView3D);
|
||||||
props.endEdit();
|
props.put_ChartProperties(this.chartProps);
|
||||||
}
|
this.api.ImgApply(props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
on3DDepth: function(field, newValue, oldValue, eOpts){
|
on3DDepth: function(field, newValue, oldValue, eOpts){
|
||||||
if (this.api){
|
if (this._noApply) return;
|
||||||
var props = this.api.asc_getChartObject();
|
|
||||||
if (props) {
|
if (this.chartProps) {
|
||||||
var oView3D = props.getView3d();
|
var props = new Asc.asc_CImgProperty();
|
||||||
if (oView3D) {
|
var oView3D = this.chartProps.getView3d();
|
||||||
oView3D.asc_setDepth(field.getNumberValue());
|
if (oView3D) {
|
||||||
props.startEdit();
|
oView3D.asc_setDepth(field.getNumberValue());
|
||||||
props.setView3d(oView3D);
|
this.chartProps.putView3d(oView3D);
|
||||||
props.endEdit();
|
props.put_ChartProperties(this.chartProps);
|
||||||
}
|
this.api.ImgApply(props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
on3DHeight: function(field, newValue, oldValue, eOpts){
|
on3DHeight: function(field, newValue, oldValue, eOpts){
|
||||||
if (this.api){
|
if (this._noApply) return;
|
||||||
var props = this.api.asc_getChartObject();
|
|
||||||
if (props) {
|
if (this.chartProps) {
|
||||||
var oView3D = props.getView3d();
|
var props = new Asc.asc_CImgProperty();
|
||||||
if (oView3D) {
|
var oView3D = this.chartProps.getView3d();
|
||||||
oView3D.asc_setHeight(field.getNumberValue());
|
if (oView3D) {
|
||||||
props.startEdit();
|
oView3D.asc_setHeight(field.getNumberValue());
|
||||||
props.setView3d(oView3D);
|
this.chartProps.putView3d(oView3D);
|
||||||
props.endEdit();
|
props.put_ChartProperties(this.chartProps);
|
||||||
}
|
this.api.ImgApply(props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onDefRotation: function() {
|
onDefRotation: function() {
|
||||||
if (this.api){
|
if (this._noApply) return;
|
||||||
var props = this.api.asc_getChartObject();
|
|
||||||
if (props) {
|
if (this.chartProps) {
|
||||||
var oView3D = props.getView3d();
|
var props = new Asc.asc_CImgProperty();
|
||||||
if (oView3D) {
|
var oView3D = this.chartProps.getView3d();
|
||||||
oView3D.asc_setRotX(20);
|
if (oView3D) {
|
||||||
oView3D.asc_setRotY(15);
|
oView3D.asc_setRotX(20);
|
||||||
props.startEdit();
|
oView3D.asc_setRotY(15);
|
||||||
props.setView3d(oView3D);
|
this.chartProps.putView3d(oView3D);
|
||||||
props.endEdit();
|
props.put_ChartProperties(this.chartProps);
|
||||||
}
|
this.api.ImgApply(props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue