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;