add colors property in GradientColor

This commit is contained in:
王劲鹏
2020-05-09 10:50:07 +08:00
committed by osborn
parent 1c314bdb21
commit bcc66b51b9
4 changed files with 182 additions and 6 deletions

5
doric-js/index.d.ts vendored
View File

@@ -956,8 +956,9 @@ declare module 'doric/lib/src/util/color' {
TL_BR = 7
}
export interface GradientColor {
start: Color;
end: Color;
start?: Color;
end?: Color;
colors?: Array<Color>;
orientation: GradientOrientation;
}
}

View File

@@ -41,7 +41,8 @@ export declare enum GradientOrientation {
TL_BR = 7
}
export interface GradientColor {
start: Color;
end: Color;
start?: Color;
end?: Color;
colors?: Array<Color>;
orientation: GradientOrientation;
}

View File

@@ -91,8 +91,9 @@ export enum GradientOrientation {
}
export interface GradientColor {
start: Color
end: Color
start?: Color
end?: Color
colors?: Array<Color>
orientation: GradientOrientation
}