new SVGController(SVGPanelName) → {PJP.SVGController}
SVG diagram viewer. It will also add callbacks to the svg elements and other controls
such as zooming and translation on mouse interactions.
Parameters:
Name | Type | Description |
---|---|---|
SVGPanelName |
String | Id of the target element for this PJP.SVGController to control. |
- Source:
Returns:
- Type
- PJP.SVGController
Methods
loadSVG(svgName)
Display svg diagram with the matching svgName name.
Parameters:
Name | Type | Description |
---|---|---|
svgName |
String | name of the svg. |
- Source:
zoomIn()
Increase zooming of the svg diagram by the given ratio.
- Source:
zoomOut()
Decrease zooming of the svg diagram by the given ratio.
- Source:
zoomReset()
Reset the zoom to 100%;
- Source:
(async, inner) svgLoaded()
SVG diagram has been loaded, add svg callbacks and actions.
- Source: