Namespace initMainSvg
Defined in: naview.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Function to generate the SVG Dom element.
|
Namespace Detail
initMainSvg
Function to generate the SVG Dom element.
1. Detects if current svg container exists, and should be created if not
2. Detects if current svg exists and creates it if not
3. Sets svg width and height
1. Detects if current svg container exists, and should be created if not
2. Detects if current svg exists and creates it if not
3. Sets svg width and height
- Parameters:
- {string} svg_id
- id of svg to edit/create
- {string} container_id
- id of svg to select/create
- {number} svg_width
- width to set svg
- {number} svg_height
- height to set svg