ngx-pinch-zoom
Version:
Pinch zoom component for Angular.
27 lines • 3.27 kB
JavaScript
export const defaultProperties = {
transitionDuration: 200,
doubleTap: true,
doubleTapScale: 2,
limitZoom: "original image size",
autoZoomOut: false,
zoomControlScale: 1,
minPanScale: 1.0001,
minScale: 0,
listeners: "mouse and touch",
wheel: true,
wheelZoomFactor: 0.2,
draggableImage: false
};
export const backwardCompatibilityProperties = {
"transition-duration": "transitionDuration",
"transitionDurationBackwardCompatibility": "transitionDuration",
"double-tap": "doubleTap",
"doubleTapBackwardCompatibility": "doubleTap",
"double-tap-scale": "doubleTapScale",
"doubleTapScaleBackwardCompatibility": "doubleTapScale",
"auto-zoom-out": "autoZoomOut",
"autoZoomOutBackwardCompatibility": "autoZoomOut",
"limit-zoom": "limitZoom",
"limitZoomBackwardCompatibility": "limitZoom"
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydGllcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1waW5jaC16b29tL3NyYy9saWIvcHJvcGVydGllcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxpQkFBaUIsR0FBYztJQUN4QyxrQkFBa0IsRUFBRSxHQUFHO0lBQ3ZCLFNBQVMsRUFBRSxJQUFJO0lBQ2YsY0FBYyxFQUFFLENBQUM7SUFDakIsU0FBUyxFQUFFLHFCQUFxQjtJQUNoQyxXQUFXLEVBQUUsS0FBSztJQUNsQixnQkFBZ0IsRUFBRSxDQUFDO0lBQ25CLFdBQVcsRUFBRSxNQUFNO0lBQ25CLFFBQVEsRUFBRSxDQUFDO0lBQ1gsU0FBUyxFQUFFLGlCQUFpQjtJQUM1QixLQUFLLEVBQUUsSUFBSTtJQUNYLGVBQWUsRUFBRSxHQUFHO0lBQ3BCLGNBQWMsRUFBRSxLQUFLO0NBQ3hCL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