| 1216 | // tx - The translation's x value |
| 1217 | // ty - The translation's y value |
| 1218 | var updateClipPath = function(attr, tx, ty) { |
| 1219 | var path = getRefElem(attr).firstChild; |
| 1220 | |
| 1221 | var cp_xform = getTransformList(path); |
| 1222 | |
| 1223 | var newxlate = svgroot.createSVGTransform(); |
| 1224 | newxlate.setTranslate(tx, ty); |
| 1225 | |
| 1226 | cp_xform.appendItem(newxlate); |
| 1227 | |
| 1228 | // Update clipPath's dimensions |
| 1229 | recalculateDimensions(path); |
| 1230 | } |
| 1231 | |
| 1232 | // Function: recalculateDimensions |
| 1233 | // Decides the course of action based on the element's transform list |