Type Alias PanHandlerRestrictionConfig

PanHandlerRestrictionConfig: {
    restrictRelativeXTranslation: boolean;
    restrictRelativeYTranslation: boolean;
    restrictXTranslation: boolean;
    restrictYTranslation: boolean;
}

Type declaration

  • 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.