@nativescript-community/ui-zoomimage
Version:
Zoomable image view based on @nativescript-community/ui-image
23 lines • 707 B
JavaScript
import { Img, initialize } from '@nativescript-community/ui-image';
import { Property } from '@nativescript/core';
export { initialize };
export class ZoomImageBase extends Img {
}
export const zoomScaleProperty = new Property({
name: 'zoomScale',
defaultValue: 1
});
export const minZoomScaleProperty = new Property({
name: 'minZoom',
defaultValue: 1,
valueConverter: parseFloat
});
export const maxZoomScaleProperty = new Property({
name: 'maxZoom',
defaultValue: 4,
valueConverter: parseFloat
});
zoomScaleProperty.register(ZoomImageBase);
minZoomScaleProperty.register(ZoomImageBase);
maxZoomScaleProperty.register(ZoomImageBase);
//# sourceMappingURL=index-common.js.map