Loading CHANGELOG.md +6 −0 Original line number Diff line number Diff line # Changelog of coloration-lib ## V0.0.4 (2019-01-23) ### Feature - add `reset()` method ## V0.0.3 (2019-01-22) ### Features Loading README.md +0 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,6 @@ # Coloration This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.4. ## Installation ``` Loading projects/coloration/package.json +1 −1 Original line number Diff line number Diff line { "name": "coloration-lib", "version": "0.0.3", "version": "0.0.4", "license": "MIT", "repository": { "type": "git", Loading projects/coloration/src/lib/coloration.ts +8 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,14 @@ export class Coloration { private hsv: HSV = { h: 0, s: 0, v: 0 }; constructor(public color: string) { this.intColor = this.parseColor(color); this.reset(); } /** * reinit to base color */ reset() { this.intColor = this.parseColor(this.color); this.updateColor(); } Loading Loading
CHANGELOG.md +6 −0 Original line number Diff line number Diff line # Changelog of coloration-lib ## V0.0.4 (2019-01-23) ### Feature - add `reset()` method ## V0.0.3 (2019-01-22) ### Features Loading
README.md +0 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,6 @@ # Coloration This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.4. ## Installation ``` Loading
projects/coloration/package.json +1 −1 Original line number Diff line number Diff line { "name": "coloration-lib", "version": "0.0.3", "version": "0.0.4", "license": "MIT", "repository": { "type": "git", Loading
projects/coloration/src/lib/coloration.ts +8 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,14 @@ export class Coloration { private hsv: HSV = { h: 0, s: 0, v: 0 }; constructor(public color: string) { this.intColor = this.parseColor(color); this.reset(); } /** * reinit to base color */ reset() { this.intColor = this.parseColor(this.color); this.updateColor(); } Loading