mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
22 lines
518 B
TypeScript
22 lines
518 B
TypeScript
/**
|
|
* @module "ui/styling/gradient"
|
|
*/ /** */
|
|
|
|
import { LengthPercentUnit } from "./style-properties";
|
|
import { Color } from "../../color";
|
|
import * as parser from "../../css/parser";
|
|
|
|
export class LinearGradient {
|
|
public angle: number;
|
|
public colorStops: ColorStop[];
|
|
|
|
public static parse(value: parser.LinearGradient): LinearGradient;
|
|
|
|
public static equals(first: LinearGradient, second: LinearGradient): boolean;
|
|
}
|
|
|
|
export interface ColorStop {
|
|
color: Color;
|
|
offset?: LengthPercentUnit;
|
|
}
|