()
| 361 | */ |
| 362 | @computed() |
| 363 | private document(): SVGDocument { |
| 364 | try { |
| 365 | const src = this.svg(); |
| 366 | if (this.lastTweenTargetDocument && src === this.lastTweenTargetSrc) { |
| 367 | return this.lastTweenTargetDocument; |
| 368 | } |
| 369 | return this.parseSVG(src); |
| 370 | } finally { |
| 371 | this.lastTweenTargetSrc = null; |
| 372 | this.lastTweenTargetDocument = null; |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * Get current document nodes. |
no test coverage detected