add todos

This commit is contained in:
Fabian Jeglinski
2019-05-10 18:03:10 +02:00
parent 5c54e0568f
commit fb978331d9
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -1,5 +1,8 @@
/**
* An enum that presents all custom property keys
*
* TODO
* - add descriptions
*/
export enum CustomProperties {
DEFAULT_COLOR_STROKE = 'default-style-stroke',
@@ -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;