Skip to content

Commit f940292

Browse files
Dji75Yakoust
authored andcommitted
feat(stroke): add ColorLike typing to color input
1 parent c97026e commit f940292

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

projects/ngx-openlayers/src/lib/styles/stroke.component.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { StyleComponent } from './style.component';
44
import { StyleCircleComponent } from './circle.component';
55
import { StyleTextComponent } from './text.component';
66
import { Color } from 'ol/color';
7+
import { ColorLike } from 'ol/colorLike';
78

89
@Component({
910
selector: 'aol-style-stroke',
@@ -15,17 +16,17 @@ export class StyleStrokeComponent implements OnInit, OnChanges {
1516
private host: /*StyleComponent|StyleCircleComponent|StyleTextComponent*/ any;
1617

1718
@Input()
18-
color: Color | undefined;
19+
color: Color | ColorLike;
1920
@Input()
20-
lineCap: string | undefined;
21+
lineCap: string;
2122
@Input()
22-
lineDash: number[] | undefined;
23+
lineDash: number[];
2324
@Input()
24-
lineJoin: string | undefined;
25+
lineJoin: string;
2526
@Input()
26-
miterLimit: number | undefined;
27+
miterLimit: number;
2728
@Input()
28-
width: number | undefined;
29+
width: number;
2930

3031
constructor(
3132
@Optional() styleHost: StyleComponent,

0 commit comments

Comments
 (0)