• A hook event that fires when the Canvas is panned. canvasPan

    Parameters

    • canvas: Canvas

      The Canvas instance

    • position: {
          x: number;
          y: number;
          scale: number;
      }

      The applied camera position

      • x: number

        The constrained x-coordinate of the pan

      • y: number

        The constrained y-coordinate of the pan

      • scale: number

        The constrained zoom level of the pan

    Returns void