Function init

  • Initializing a render2d instance

    Parameters

    • Optional dom: HTMLElement

      Not necessary if using SSR painter like svg-ssr

    • Optional opts: Render2DInitOpt

    Returns Render2D