Skip to content

Incorrect reference to corresponding method in MorphSVGPlugin.rawPathToString() docs #622

@LBaquedanoCordova

Description

@LBaquedanoCordova

Hi GreenSock team 👋

I was reviewing the documentation for MorphSVGPlugin.rawPathToString() here:
https://gsap.com/docs/v3/Plugins/MorphSVGPlugin/static.rawPathToString/

At the end of that section, the docs mention:

"There is also a corresponding MorphSVGPlugin.rawPathToString() method so that you can convert back and forth."

I believe this may be a copy-paste error. Since we are already in the documentation of rawPathToString(), the correct corresponding method should be MorphSVGPlugin.stringToRawPath().

That way, the two functions can be seen as converting:

  • RawPath → string: with rawPathToString()
  • string → RawPath: with stringToRawPath()

In contrast, the documentation for stringToRawPath() does correctly mention rawPathToString() as its counterpart:
https://gsap.com/docs/v3/Plugins/MorphSVGPlugin/static.stringToRawPath/

Just wanted to help improve the clarity of the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions