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

Nested implicit objects in function arguments #1623

Closed
edemaine opened this issue Nov 25, 2024 · 0 comments · Fixed by #1629
Closed

Nested implicit objects in function arguments #1623

edemaine opened this issue Nov 25, 2024 · 0 comments · Fixed by #1629
Assignees
Labels
bug Something isn't working

Comments

@edemaine
Copy link
Collaborator

edemaine commented Nov 25, 2024

Input

angle := createTween
  => -props.selected * 90 / props.tiles#
  duration: 1000
  ease: (t) => 0.5 - Math.cos(Math.PI * t) / 2

Current Output

const angle = createTween(
  () => -props.selected * 90 / props.tiles.length,
  {duration: 1000},
  {ease: (t) => 0.5 - Math.cos(Math.PI * t) / 2})

Expected Output

const angle = createTween(
  () => -props.selected * 90 / props.tiles.length,
  {duration: 1000,
  ease: (t) => 0.5 - Math.cos(Math.PI * t) / 2})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant