pixi-viewport
    Preparing search index...

    Interface ISnapZoomOptions

    Options for SnapZoom.

    interface ISnapZoomOptions {
        center?: Point | null;
        ease?: any;
        forceStart?: boolean;
        height?: number;
        interrupt?: boolean;
        noMove?: boolean;
        removeOnComplete?: boolean;
        removeOnInterrupt?: boolean;
        time?: number;
        width?: number;
    }
    Index
    center?: Point | null

    Place this point at center during zoom instead of center of the viewport

    ease?: any

    ease function or name (see http://easings.net/ for supported names)

    forceStart?: boolean

    Starts the snap immediately regardless of whether the viewport is at the desired zoom

    false
    
    height?: number

    the desired height to snap (to maintain aspect ratio, choose only width or height)

    interrupt?: boolean

    Pause snapping with any user input on the viewport

    true
    
    noMove?: boolean

    Zoom but do not move

    false
    
    removeOnComplete?: boolean

    Removes this plugin after snapping is complete

    false
    
    removeOnInterrupt?: boolean

    Removes this plugin if interrupted by any user input

    false
    
    time?: number

    time for snapping in ms

    1000
    
    width?: number

    the desired width to snap (to maintain aspect ratio, choose only width or height)