Capítulo 265 de 411

Chapter 265: MorphSVGPlugin.defaultRender

Core Idea

Sets a default function called on every morphSVG tween update — useful for rendering the morphing path to a <canvas> instead of (or in addition to) the DOM path.

Code Examples

MorphSVGPlugin.defaultRender = function (rawPath, target) {
  // custom canvas drawing logic here
};

Connects To

  • MorphSVGPlugin.defaultUpdateTarget: often set to false alongside a custom render function to skip redundant DOM updates.