diff --git a/projects/editor/src/app/app.module.ts b/projects/editor/src/app/app.module.ts index 3163f7763835de037b328ab8bdb58a2bf07b7c50..c1582a23fa30f5fdc4ac0c70b7cf3fe011cc7424 100644 --- a/projects/editor/src/app/app.module.ts +++ b/projects/editor/src/app/app.module.ts @@ -16,7 +16,7 @@ import { ToolbarComponent } from './components/toolbar/toolbar.component'; import { UiElementToolboxComponent } from './components/unit-view/page-view/ui-element-toolbox/ui-element-toolbox.component'; import { UnitViewComponent } from './components/unit-view/unit-view.component'; import { PageViewComponent } from './components/unit-view/page-view/page-view.component'; -import { PageCanvasComponent } from './components/unit-view/page-view/canvas/page-canvas.component'; +import { CanvasComponent } from './components/unit-view/page-view/canvas/canvas.component'; import { StaticCanvasOverlayComponent } from './components/unit-view/page-view/canvas/static-canvas-overlay.component'; import { DynamicCanvasOverlayComponent } from './components/unit-view/page-view/canvas/dynamic-canvas-overlay.component'; import { SharedModule } from '../../../common/app.module'; @@ -39,7 +39,7 @@ import { ElementSizingPropertiesComponent } from './components/unit-view/page-vi UiElementToolboxComponent, UnitViewComponent, PageViewComponent, - PageCanvasComponent, + CanvasComponent, StaticCanvasOverlayComponent, DynamicCanvasOverlayComponent, ConfirmationDialog, diff --git a/projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.html b/projects/editor/src/app/components/unit-view/page-view/canvas/canvas.component.html similarity index 100% rename from projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.html rename to projects/editor/src/app/components/unit-view/page-view/canvas/canvas.component.html diff --git a/projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.ts b/projects/editor/src/app/components/unit-view/page-view/canvas/canvas.component.ts similarity index 97% rename from projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.ts rename to projects/editor/src/app/components/unit-view/page-view/canvas/canvas.component.ts index 3aec4b106ab51d15b7df80db34ad525add259879..d5f7b2bf997b04e284b92287cf991b5977f3d607 100644 --- a/projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.ts +++ b/projects/editor/src/app/components/unit-view/page-view/canvas/canvas.component.ts @@ -12,7 +12,7 @@ import { Section } from '../../../../../../../common/classes/section'; @Component({ selector: 'app-page-canvas', - templateUrl: './page-canvas.component.html', + templateUrl: './canvas.component.html', styles: [ '.canvasBackground {background-color: lightgrey; padding: 20px 50px; height: 100%; overflow: auto;}', '.add-section-button {width: 100%; height: 25px; background-color: #BABABA; margin: 15px 0; border-radius: 10%}', @@ -22,7 +22,7 @@ import { Section } from '../../../../../../../common/classes/section'; '.section-menu.open {opacity:1; transition-delay:0s;}' ] }) -export class PageCanvasComponent implements OnInit, OnDestroy { +export class CanvasComponent implements OnInit, OnDestroy { @Input() page!: Page; dropListList: string[] = []; hoveredSection: number = -1; diff --git a/projects/editor/src/app/components/unit-view/page-view/canvas/section-dynamic.component.ts b/projects/editor/src/app/components/unit-view/page-view/canvas/section-dynamic.component.ts index 4b289e1d63160a860f81bce3b0efdbb8c33d8c9f..e939d1fd54c4beba91cf4bee1368271207d0d101 100644 --- a/projects/editor/src/app/components/unit-view/page-view/canvas/section-dynamic.component.ts +++ b/projects/editor/src/app/components/unit-view/page-view/canvas/section-dynamic.component.ts @@ -2,7 +2,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; import { CdkDragDrop } from '@angular/cdk/drag-drop/drag-events'; -import { DragItemData, DropListData } from './page-canvas.component'; +import { DragItemData, DropListData } from './canvas.component'; import { UnitService } from '../../../../unit.service'; import { Section } from '../../../../../../../common/classes/section';