interface AnchorEvents {
    change: (e: { old: Point; value: Point }) => void;
}

Properties

Properties

change: (e: { old: Point; value: Point }) => void

Fires whenever the anchor position changes. Both of these objects have a row and column property corresponding to the position. Events that can trigger this function include [[Anchor.setPosition setPosition()]].

Type declaration

    • (e: { old: Point; value: Point }): void
    • Parameters

      • e: { old: Point; value: Point }

        An object containing information about the anchor position. It has two properties:

        • old: An object describing the old Anchor position
        • value: An object describing the new Anchor position

      Returns void