BrowserDrawer

kreuzberg.engine.common.BrowserDrawer
class BrowserDrawer(rootElement: ScalaJsElement)

Responsible for drawing component trees.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def appendNode(id: Identifier, html: String): Unit

Append some node without destroying listeners.

Append some node without destroying listeners.

Attributes

def drawChange(change: Change): Unit

Draw a single change.

Draw a single change.

Attributes

def drawRoot(node: TreeNode): Unit

Redraw root node

Redraw root node

Attributes

def drawUpdatePath(updatePath: UpdatePath): Unit

Draw an update path.

Draw an update path.

Attributes

def findElement(id: Identifier): ScalaJsElement

Find an element for a given Component ID.

Find an element for a given Component ID.

Attributes

def prependNode(id: Identifier, html: String): Unit

Prepend some node without destroying listeners

Prepend some node without destroying listeners

Attributes

def updateNode(node: TreeNode): Unit

Redraw one node.

Redraw one node.

Attributes