Function initBoard

  • A convenience function for initializing a new GraphicsBoard using SVG.

    Parameters

    • elementOrId: string | HTMLElement

      HTML identifier (id) of element in which the board is rendered.

    • Optionaloptions: BoardOptions

      An object that sets some of the board properties.

    Returns Board