Css gradients (#5534)

* feat(ios): Added support for css gradients.

* feat(android): Added support for css gradients.

* fix: Fixed gradient borders on ios

* fix(gradient): added backgroundGradient to View and Style.

* fix(ios-gradients): fixed ios gradients covering view content.

* test(gradient): Added ui app tests for background gradients.

* test(gradient): Added a test ensuring background gradient property is applied to style.

* style(gradient): Fixed tslint errors.

* fix(gradient): Removed the background-gradient property and added the gradient to background-image.

* style: fixed a consecutive blank line tslint error.

* fix(tests): fixed the bug that was causing tests to fail.

* chore(linear-gradient): fix equality comparer

* test(gradient): add linear gradients test app

* chore(tslint): update with latest tslint rules
This commit is contained in:
vultix
2018-05-03 04:24:41 -06:00
committed by Svetoslav
parent 72fa5c9bc1
commit 5a83a1c858
19 changed files with 397 additions and 24 deletions

View File

@ -73,6 +73,7 @@
backgroundColor: number,
backgroundImage: string,
backgroundBitmap: android.graphics.Bitmap,
backgroundGradient: LinearGradientDefinition,
context: android.content.Context,
backgroundRepeat: string,
backgroundPosition: string,
@ -117,6 +118,18 @@
public toDebugString(): string;
}
export class LinearGradientDefinition {
constructor(startX: number, endX: number, startY: number,
endY: number, colors: number[], stops?: number[]);
public getStartX(): number;
public getStartY(): number;
public getEndX(): number;
public getEndY(): number;
public getColors(): number[];
public getStops(): number[];
}
export class CSSValue {
constructor(type: string, str: string, unit: string, value: number);
public getType(): string;