transparent known color added and parsing fixed

This commit is contained in:
Vladimir Enchev
2015-03-17 15:28:06 +02:00
parent eba90e3434
commit 496f0b7f07
2 changed files with 3 additions and 2 deletions

View File

@ -115,7 +115,7 @@ export class Color implements definition.Color {
} }
private _parseComponents() { private _parseComponents() {
if (!this._argb) { if (types.isUndefined(this._argb)) {
throw new Error("Missing the ARGB numeric value"); throw new Error("Missing the ARGB numeric value");
} }

View File

@ -1,4 +1,5 @@
export var AliceBlue = "#F0F8FF"; export var Transparent = "#00000000";
export var AliceBlue = "#F0F8FF";
export var AntiqueWhite = "#FAEBD7"; export var AntiqueWhite = "#FAEBD7";
export var Aqua = "#00FFFF"; export var Aqua = "#00FFFF";
export var Aquamarine = "#7FFFD4"; export var Aquamarine = "#7FFFD4";