@kayelaa/canvas API - v0.2.15
    Preparing search index...

    Class KaylaScene

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Parameters

      • name: string
      • visible: boolean

      Returns void

    • Draws all entities in z-order (higher z = drawn later).

      Parameters

      • ctx: CanvasRenderingContext2D

        The 2D rendering context

      Returns void

    • Parameters

      • ctx: CanvasRenderingContext2D

      Returns void

    • Dangerous: Call this function only ONCE.

      There is no way to unmount a spawned root.

      Mounts a root component tree into the scene.

      Triggers component execution, entity creation, and hook registration.

      Parameters

      Returns Promise<void>