typograph-editor-documentation
    Preparing search index...

    Function snap_resize_offset

    • The drag offset, corrected so the dragged edges land on what they come near. Draws the alignment lines as a side effect (page.guides, like the move), and marks a ruler guide that is snapped to.

      Parameters

      • element: PageElement
      • sc: scale_control
      • offset_x: number
      • offset_y: number
      • e: MouseEvent

      Returns { x: number; y: number }