(el: Element)
| 160 | }); |
| 161 | } |
| 162 | function removeEl(el: Element) { |
| 163 | if (el.parent) { |
| 164 | // Bake parent transform to element. |
| 165 | // So it can still have proper transform to transition after it's removed. |
| 166 | const computedTransform = el.getComputedTransform(); |
| 167 | el.setLocalTransform(computedTransform); |
| 168 | el.parent.remove(el); |
| 169 | } |
| 170 | } |
| 171 | function stopAnimation(el: Element) { |
| 172 | el.stopAnimation(); |
| 173 | if (el.isGroup) { |
no test coverage detected
searching dependent graphs…