- Description:
SVGProvider is used as container for aplication. Purpose of this container is to load SVG-s from server.
- Source:
SVGProvider is used as container for aplication. Purpose of this container is to load SVG-s from server.
Members
loadedSVGs :Array
- Description:
Loaded SVG paths
- Source:
Loaded SVG paths
Type:
- Array
wrapper :object
- Description:
Reference on wrapper element
- Source:
Reference on wrapper element
Type:
- object
Methods
checkSvg(src) → {boolean}
- Description:
Check if SVG already loaded from server
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
src |
string |
Returns:
- Type
- boolean
getChildContext() → {object}
- Description:
Create context for child components
- Source:
Returns:
SVG object with all functions from container
- Type
- object
getIdFromSrc(src) → {string}
- Description:
Get SVG id
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
src |
string |
Returns:
- Type
- string
getNameFromSrc(src) → {string}
- Description:
Get SVG name
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
src |
string |
Returns:
- Type
- string
getRouteFromSrc(src) → {string}
- Description:
Get SVG route
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
src |
string |
Returns:
- Type
- string
loadSvg(src) → {void}
- Description:
Load SVG from server
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
src |
string |
Returns:
- Type
- void
render() → {view}
- Description:
Render
- Source:
- See:
Returns:
- Type
- view
Type Definitions
props
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
cnt |
string | |
wrapperClass |
string | |
children |
object |
Type:
- object