• Topic
  • Discussion
  • OATWikiWeb.OATDOCsvg(Last) -- Owiki? , 2016-08-19 14:58:52 Edit owiki 2016-08-19 14:58:52

    svg.js

    SVG helper provides simplified creation of SVG elements.

    Functions

    OAT.SVG.canvas(w,h)

    Returns canvas element.

    • w - width (default 300)
    • h - height (default 200)

    OAT.SVG.element(w,h)

    OAT.SVG.element(name,{attributes}); Returns SVG element with desired name and attributes.

    ToBeDone -- is OAT.SVG.element(name,{attributes}) distinct from OAT.SVG.element(w,h)? if so, give it its own section ... if not, how does oat know which call is being made? also, document valid attributes and how to declare...