js: add locations in gradient color

This commit is contained in:
王劲鹏
2020-05-09 17:44:04 +08:00
committed by osborn
parent c2264e621c
commit e26a2f3256
4 changed files with 30 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ export interface GradientColor {
start?: Color
end?: Color
colors?: Array<Color>
locations?: Array<Number>
orientation: GradientOrientation
}