Skip to content

Commit 57280ad

Browse files
committed
fix(zoomimage): support minZoom and maxZoom as string
1 parent 0191483 commit 57280ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/zoomimage/index-common.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ export const zoomScaleProperty = new Property<ZoomImageBase, number>({
1616

1717
export const minZoomScaleProperty = new Property<ZoomImageBase, number>({
1818
name: 'minZoom',
19-
defaultValue: 1
19+
defaultValue: 1,
20+
valueConverter: parseFloat
2021
});
2122

2223
export const maxZoomScaleProperty = new Property<ZoomImageBase, number>({
2324
name: 'maxZoom',
24-
defaultValue: 4
25+
defaultValue: 4,
26+
valueConverter: parseFloat
2527
});
2628

2729
zoomScaleProperty.register(ZoomImageBase);

0 commit comments

Comments
 (0)