Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Bezier Function #1308

Closed
JustinSteinberg opened this issue Aug 13, 2023 · 2 comments
Closed

Custom Bezier Function #1308

JustinSteinberg opened this issue Aug 13, 2023 · 2 comments

Comments

@JustinSteinberg
Copy link

Bug report

For support questions, please use stackoverflow with the tag svg.js or head to our chat over at gitter.

Fiddle

Modify this fiddle to demonstrate the problem clearly, just fork it and paste the resulting fiddle in your issue. Please make sure this is a minimal example, containing only the minimum necessary code to help us troubleshoot your problem.

Explanation

When trying to use the custom bezier timing funciton for the animation, runner.ease(SVG.easing.beziere(x1,y1,x2,y2))... the console states that the easing function is not defined.

  • What is the behaviour you expect?
    Implementing custom timing funciton
  • What is happening instead?
  • What error message are you getting?

(As seen below, svgText.js is my own file)

svgText.js:38 Uncaught TypeError: SVG.easing.beziere is not a function
at SVGGElement. (svgText.js:38:127)
at SVGGElement.handle (jquery-3.7.0.min.js:2:44360)
at SVGGElement.dispatch (jquery-3.7.0.min.js:2:39997)
at v.handle (jquery-3.7.0.min.js:2:37968)

@Fuzzyma
Copy link
Member

Fuzzyma commented Aug 13, 2023

What bundle are you using? If you use npm you probably want to import easing instead of using SVG.easing

@Fuzzyma
Copy link
Member

Fuzzyma commented Sep 2, 2023

cant reproduce and will therefore close.

@Fuzzyma Fuzzyma closed this as completed Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants