[SSE mobile] Refactoring

This commit is contained in:
JuliaSvinareva 2021-02-04 15:30:17 +03:00
parent 366f1db1de
commit 32444103d8
2 changed files with 0 additions and 5 deletions

View file

@ -136,11 +136,9 @@ export class storeFocusObjects {
@computed get shapeObject() { @computed get shapeObject() {
const shapes = []; const shapes = [];
console.log(this._focusObjects);
for (let object of this._focusObjects) { for (let object of this._focusObjects) {
if (object.get_ObjectType() === Asc.c_oAscTypeSelectElement.Image) { if (object.get_ObjectType() === Asc.c_oAscTypeSelectElement.Image) {
if (object.get_ObjectValue() && object.get_ObjectValue().get_ShapeProperties()) { if (object.get_ObjectValue() && object.get_ObjectValue().get_ShapeProperties()) {
console.log(object);
shapes.push(object); shapes.push(object);
} }
} }
@ -155,10 +153,8 @@ export class storeFocusObjects {
@computed get imageObject() { @computed get imageObject() {
const images = []; const images = [];
console.log(this._focusObjects);
for (let object of this._focusObjects) { for (let object of this._focusObjects) {
if (object.get_ObjectType() === Asc.c_oAscTypeSelectElement.Image) { if (object.get_ObjectType() === Asc.c_oAscTypeSelectElement.Image) {
console.log(object);
images.push(object); images.push(object);
} }
} }

View file

@ -12,7 +12,6 @@ const EditShape = props => {
// const selections = storeFocusObjects.selections; // const selections = storeFocusObjects.selections;
// console.log(selections); // console.log(selections);
const shapeObject = storeFocusObjects.shapeObject; const shapeObject = storeFocusObjects.shapeObject;
console.log(shapeObject);
const canFill = shapeObject.get_ShapeProperties().asc_getCanFill(); const canFill = shapeObject.get_ShapeProperties().asc_getCanFill();
return ( return (