[DE] refactoring
This commit is contained in:
parent
77b5e90c4b
commit
38ac875426
|
@ -18,8 +18,10 @@ export class storeFocusObjects {
|
||||||
_settings.push('table');
|
_settings.push('table');
|
||||||
} else if (Asc.c_oAscTypeSelectElement.Image === type) {
|
} else if (Asc.c_oAscTypeSelectElement.Image === type) {
|
||||||
if (object.get_ObjectValue().get_ChartProperties()) {
|
if (object.get_ObjectValue().get_ChartProperties()) {
|
||||||
_settings.push('chart');
|
// Exclude shapes if chart exist
|
||||||
} else if (object.get_ObjectValue().get_ShapeProperties()) {
|
let si = _settings.indexOf('shape');
|
||||||
|
si < 0 ? _settings.push('chart') : _settings.splice(si,1,'chart');
|
||||||
|
} else if (object.get_ObjectValue().get_ShapeProperties() && !_settings.includes('chart')) {
|
||||||
_settings.push('shape');
|
_settings.push('shape');
|
||||||
} else {
|
} else {
|
||||||
_settings.push('image');
|
_settings.push('image');
|
||||||
|
@ -30,10 +32,6 @@ export class storeFocusObjects {
|
||||||
_settings.push('header');
|
_settings.push('header');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Exclude shapes if chart exist
|
|
||||||
if (_settings.indexOf('chart') > -1) {
|
|
||||||
_settings = _settings.filter((value) => value !== 'shape');
|
|
||||||
}
|
|
||||||
return _settings.filter((value, index, self) => self.indexOf(value) === index);
|
return _settings.filter((value, index, self) => self.indexOf(value) === index);
|
||||||
}
|
}
|
||||||
@computed get headerType() {
|
@computed get headerType() {
|
||||||
|
|
Loading…
Reference in a new issue