Mixin: moveTo

domjscomp.Renderable. moveTo

Move element to position

Methods


getChildByID(id, direct)

Get child element by id
Parameters:
Name Type Description
id string child id
direct boolean | undefined only direct children
Returns:
child
Type
HTMLElement | null

moveTo(x, y)

Move element to position
Parameters:
Name Type Description
x number x value
y number y value
Returns:
returns self for chaining
Type
object