@onemedia/svg-viewport
v0.4.0
Published
SVG Pan/Zoom/Rotate Library.
Downloads
13
Readme
@onemedia/svg-viewport
SVG Pan/Zoom/Rotate Library.
Options
type SvgViewportOptions = {
panEnabled: boolean;
zoomEnabled: boolean;
doubleClickEnabled: boolean;
zoomScaleSensitivity: number;
zoomMinimum: number;
zoomMaximum: number;
rotation: number;
panThreshold: Threshold;
gutter: Gutter;
onLoad?: () => void;
}
export type Threshold = {
value: number;
unit: 'px' | 'percent'
}
export type Gutter = {
x: number;
y: number;
}