Capítulo 285 de 411

Chapter 285: MotionPathHelper.editPath()

Core Idea

A dev-tool utility that makes an SVG <path> interactively editable directly in the browser (drag handles to reshape it), with a button to copy the resulting path data.

Reference Tables

ParameterTypeDescription
pathElement | Stringthe path to edit
configObject (optional)onPress, onRelease, handleSize, selected, draggable, etc.

Returns: a PathEditor instance.

Key Takeaways

  1. A development/authoring aid, not something typically shipped to production — pairs naturally with MotionPathPlugin while designing a motion path visually.

Connects To

  • MotionPathHelper.kill(): removes the editing UI when done.
  • MotionPathPlugin: the plugin whose paths this tool is meant to help author.