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

chore(deploy): Release #140

Merged
merged 1 commit into from
May 8, 2024
Merged

chore(deploy): Release #140

merged 1 commit into from
May 8, 2024

Conversation

willybrauner
Copy link
Owner

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@wbe/[email protected]

Minor Changes

  • c275500: Refresh computed values before timeline add() starts.

    Goal of this PR is to update an external variable on the first add() onUpdate and reused it as "from" of the second add(). It will work if "from" of the second add() is a computed value. Behind the scene, we re-execute refreshComputedValues() juste before the add() starts.

    let EXTERNAL_X = 0;
    
    tl.add({
      ease: "power3.in",
      props: {
        x: [0, 100],
      },
      onUpdate: ({ x }) => {
        // Mute the external value
        EXTERNAL_X = x;
      },
    });
    tl.add({
      props: {
        // Use the updated external value as computed value
        x: [() => EXTERNAL_X, 50],
      },
      onUpdate: ({ x }) => {
        // x will be interpolated from 100 to 50
      },
    });

    In order to test this new functionality, the full Interpol Instance is now exposed from each Interpol Callbacks. It allows you to access additional properties like props computeds etc.

    tl.add({
      props: {
        x: [0, 100],
      },
      onUpdate: ({ x }, time, progress, instance) => {
        // instance is available
      },
    });

@willybrauner
Copy link
Owner Author

size-limit report 📦

Path Size
@wbe/interpol 2.77 KB (0%)

Copy link

codesandbox-ci bot commented May 8, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 96521ae:

Sandbox Source
interpol-basic Configuration
interpol-colors Configuration
interpol-dom-ondrag Configuration
interpol-ease Configuration
interpol-graphic Configuration
interpol-menu Configuration
interpol-object-el Configuration
interpol-particles Configuration
interpol-timeline Configuration
interpol-offsets Configuration

@willybrauner willybrauner merged commit 551c692 into main May 8, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant