From 59e51391e727a3da75f87cd83c7be34894ba52eb Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Wed, 13 Oct 2021 14:41:10 +0200 Subject: [PATCH] [editor] Rename PageCanvasComponent to CanvasComponent --- projects/editor/src/app/app.module.ts | 4 ++-- .../{page-canvas.component.html => canvas.component.html} | 0 .../canvas/{page-canvas.component.ts => canvas.component.ts} | 4 ++-- .../unit-view/page-view/canvas/section-dynamic.component.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename projects/editor/src/app/components/unit-view/page-view/canvas/{page-canvas.component.html => canvas.component.html} (100%) rename projects/editor/src/app/components/unit-view/page-view/canvas/{page-canvas.component.ts => canvas.component.ts} (97%) diff --git a/projects/editor/src/app/app.module.ts b/projects/editor/src/app/app.module.ts index 3163f7763..c1582a23f 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 3aec4b106..d5f7b2bf9 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 4b289e1d6..e939d1fd5 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'; -- GitLab