Type Alias PanHandlerConfig

PanHandlerConfig: {
    limitEntireViewPort: boolean;
    restrictRelativeXTranslation: boolean;
    restrictRelativeYTranslation: boolean;
    restrictXTranslation: boolean;
    restrictYTranslation: boolean;
}

Configuration for the pan handler functions.

Type declaration

  • limitEntireViewPort: boolean

    Whether to limit the pan to the entire view port.

  • restrictRelativeXTranslation: boolean

    Whether to restrict the relative x translation. (because the camera can be rotated, the relative x translation is the horizontal direction of what the user sees on the screen)

  • restrictRelativeYTranslation: boolean

    Whether to restrict the relative y translation. (because the camera can be rotated, the relative y translation is the vertical direction of what the user sees on the screen)

  • restrictXTranslation: boolean

    Whether to restrict the x translation.

  • restrictYTranslation: boolean

    Whether to restrict the y translation.