Capítulo 815 de 988

Chapter 815: parsePath()

Core Idea

_Part of the @remotion/paths package. Available from v3.

Key Concepts

  • Return type type
  • See also

Code Examples

const newPath = parsePath("M 10 10 L 20 20");

/*
  [
    { type: "M", x: 10, y: 10 },
    { type: "L", x: 20, y: 20 },
  ]
*/
  • What it demonstrates: Usage pattern for parsePath() from the official docs.

Key Takeaways

  1. Understand return type type when working with parsePath().
  2. Understand see also when working with parsePath().

Connects To

  • Center Path: related page in the Paths (@remotion/paths) section.
  • cut Path: related page in the Paths (@remotion/paths) section.
  • Evolve Path: related page in the Paths (@remotion/paths) section.