Skip to content

Commit 496f0b7

Browse files
author
Vladimir Enchev
committed
transparent known color added and parsing fixed
1 parent eba90e3 commit 496f0b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

color/color-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class Color implements definition.Color {
115115
}
116116

117117
private _parseComponents() {
118-
if (!this._argb) {
118+
if (types.isUndefined(this._argb)) {
119119
throw new Error("Missing the ARGB numeric value");
120120
}
121121

color/known-colors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export var AliceBlue = "#F0F8FF";
1+
export var Transparent = "#00000000";
2+
export var AliceBlue = "#F0F8FF";
23
export var AntiqueWhite = "#FAEBD7";
34
export var Aqua = "#00FFFF";
45
export var Aquamarine = "#7FFFD4";

0 commit comments

Comments
 (0)