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

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

@@ -959,6 +959,7 @@ declare module 'doric/lib/src/util/color' {
start?: Color;
end?: Color;
colors?: Array<Color>;
locations?: Array<Number>;
orientation: GradientOrientation;
}
}

View File

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

View File

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