From fb978331d99930e67ea5846216ca9fb4277d8787 Mon Sep 17 00:00:00 2001 From: Fabian Jeglinski Date: Fri, 10 May 2019 18:03:10 +0200 Subject: [PATCH] add todos --- src/app/enums/CustomProperties.ts | 3 +++ .../custom-color-entry/custom-color-entry.component.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/app/enums/CustomProperties.ts b/src/app/enums/CustomProperties.ts index 12cb17a..843f60c 100644 --- a/src/app/enums/CustomProperties.ts +++ b/src/app/enums/CustomProperties.ts @@ -1,5 +1,8 @@ /** * An enum that presents all custom property keys + * + * TODO + * - add descriptions */ export enum CustomProperties { DEFAULT_COLOR_STROKE = 'default-style-stroke', diff --git a/src/app/feature-management/custom-color-entry/custom-color-entry.component.ts b/src/app/feature-management/custom-color-entry/custom-color-entry.component.ts index 9296e12..0b474f4 100644 --- a/src/app/feature-management/custom-color-entry/custom-color-entry.component.ts +++ b/src/app/feature-management/custom-color-entry/custom-color-entry.component.ts @@ -27,6 +27,7 @@ export class CustomColorEntryComponent implements OnInit{ return this._selectedColor; } + // TODO diese funktionen in definePreviewStyles direkt aufrufen // - default color properties get defaultStrokeColorAsRgba(): string { const color = this.colors[CustomProperties.DEFAULT_COLOR_STROKE]; @@ -96,6 +97,9 @@ export class CustomColorEntryComponent implements OnInit{ this.definePreviewStyle(); } + /** + * TODO add description + */ resetColor(){ this.colors[CustomProperties.COLOR_STROKE] = null; this.colors[CustomProperties.COLOR_FILL] = null;