Jump to content
GreenSock

jesper.landberg

DrawSVGPlugin disable warnings?

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi,

 

Is it possible to disable warnings for the DrawSVGPlugin? Keep getting this:

 

"Warning: <path> length cannot be measured accurately when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."

 

And since its a stroke animated on scroll i get hundreds of these in my console.

Link to comment
Share on other sites

Is that the latest version? (0.2.0 / 2018-08-27)

 

I ask because @GreenSock made some updates to that plugin based on info in this thread about non-scaling-stroke.

If you're using that latest version and still getting that error, this is above my pay-grade. We'll have to kick it to upper management. 

 

Happy tweening.

:)

 

  • Like 3
Link to comment
Share on other sites

Good point, @PointC :)

 

@jesper.landberg, if you are truly using DrawSVGPlugin to animate a <path> that has non-scaling-stroke and isn't proportionally scaled, that's a problem and the console.log() calls are valid. It won't break anything outright, of course - it's just a warning. The measurements won't be correct due to browser issues that we can't fix. And there's no way to disable it (other than to fix the problem with your non-proportionally-scaled element).

 

If you're still having trouble, please provide a reduced test case in codepen and we'd be happy to take a peek. 

 

Thanks for being a member!

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×