Skip to main content

ElementSetPosition

Callable

  • ElementSetPosition(elementOrId: ElementOrId, xPos?: number, yPos?: number, anchorPosition?: top-left | top-right | bottom-left | bottom-right): void

  • Positions an HTML element on the canvas relative to a specified anchor.


    Parameters

    • elementOrId: ElementOrId
    • xPos: number = 0
    • yPos: number = 0
    • optionalanchorPosition: top-left | top-right | bottom-left | bottom-right = 'top-left'

    Returns void