Index | OAT homepage | OpenLink Software

# OATDOCsvg

- OATDOCsvg
- _ _ svg.js
- _ _ _ _ Functions
- _ _ _ _ _ _ OAT.SVG.canvas(w,h)
- _ _ _ _ _ _ OAT.SVG.element(w,h)

## 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...

Copyright (C) 2005-2008 OpenLink Software