MCPcopy
hub / github.com/midrender/revideo / document

Method document

packages/2d/src/lib/components/SVG.ts:363–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Callers 6

getChildrenByIdMethod · 0.95
desiredSizeMethod · 0.95
tweenSvgMethod · 0.95
wrapperScaleMethod · 0.95
documentNodesMethod · 0.95
Latex.tsFile · 0.80

Calls 1

parseSVGMethod · 0.95

Tested by

no test coverage detected