Partial polyfill of SVGTransformList
- Copyright:
- 2010 Alexis Deveria, 2010 Jeff Schiller
- License:
- MIT
- Source:
Classes
Interfaces
Members
(inner) listMap_
Map of SVGTransformList objects.
- Source:
Methods
(static) changeRemoveElementFromListMap(cb) → {void}
Replace removeElementFromListMap for unit-testing.
Parameters:
| Name | Type | Description |
|---|---|---|
cb |
module:SVGTransformList.removeElementFromListMap | Passed a single argument |
- Source:
Returns:
- Type
- void
(static) getTransformList(elem) → {SVGAnimatedTransformList|SVGTransformList}
Returns an object that behaves like a SVGTransformList for the given DOM element.
Parameters:
| Name | Type | Description |
|---|---|---|
elem |
Element | DOM element to get a transformlist from |
- Source:
- To Do:
-
- The polyfill should have `SVGAnimatedTransformList` and this should use it
Returns:
- Type
- SVGAnimatedTransformList | SVGTransformList
(static) removeElementFromListMap(elem) → {void}
Removes transforms of the given element from the map.
Parameters:
| Name | Type | Description |
|---|---|---|
elem |
Element | a DOM Element |
- Source:
Returns:
- Type
- void
(static) resetListMap() → {void}
- Source:
Returns:
- Type
- void
(inner) transformToString(xform) → {string}
Helper function to convert SVGTransform to a string.
Parameters:
| Name | Type | Description |
|---|---|---|
xform |
SVGTransform |
- Source:
Returns:
- Type
- string
Type Definitions
removeElementFromListMap(elem)
Parameters:
| Name | Type | Description |
|---|---|---|
elem |
Element |
- Source: