GSAP icon indicating copy to clipboard operation
GSAP copied to clipboard

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

Open LBaquedanoCordova opened this issue 5 months ago • 1 comments

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.

LBaquedanoCordova avatar Jul 24 '25 18:07 LBaquedanoCordova

Hey, I’d like to work on this issue and help get it fixed. I’ve gone through the problem and I think I can contribute a solid solution. Please assign this to me if it’s available.

sahilsharda avatar Nov 05 '25 09:11 sahilsharda

Fixed. Thanks for reporting that!

jackdoyle avatar Dec 08 '25 19:12 jackdoyle