Refactor unit factory
No longer is async. For elements which need upfront source info (media), the media prompf is done in the unit service. Here we can keep it simple. Also remove coordinates from factory as this is information that does not need to be known here. This is also handled in the unit service where applicable.
Showing
- projects/common/models/section.ts 6 additions, 8 deletionsprojects/common/models/section.ts
- projects/common/models/uI-element.ts 0 additions, 9 deletionsprojects/common/models/uI-element.ts
- projects/common/util/element.factory.ts 12 additions, 21 deletionsprojects/common/util/element.factory.ts
- projects/editor/src/app/unit.service.ts 40 additions, 8 deletionsprojects/editor/src/app/unit.service.ts
Loading
Please register or sign in to comment