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 #151

Merged
merged 1 commit into from
Dec 28, 2024
Merged

chore(deploy): Release #151

merged 1 commit into from
Dec 28, 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

  • dc0f568: Use the initial Interpol ticker instance for all raf callback of the application.

    A new second param rank: number is added to add() method. It allows to choose in each order, the callback handker need to be executed. In this exemple, this one is second position, because Interpol ranking is 0

    import { InterpolOptions } from "@wbe/interpol"
    
    const tickHandler = (t) => console.log(t)
    const rank = 1
    InterpolOptions.ticker.add(tickHandler, rank)
    // ...
    InterpolOptions.ticker.remove(tick)

    Using a new ticker instance for all the application:

    import { Ticker, InterpolOptions } from "@wbe/interpol"
    
    // disable the default Interpol ticker
    InterpolOptions.disable()
    
    // create a new ticker instance
    const ticker = new Ticker()
    
    // Add manually the raf method to the callback list of the new ticker
    const interpolTick = (t) => {
      InterpolOptions.ticker.raf(e)
    }
    ticker.add(interpolTick, 0)
    
    // Add a new callback to this same ticker instance on rank '1'
    const scrollerTick = (t) => {
      // ....
    }
    ticker.add(scrollerTick, 1)

@willybrauner
Copy link
Owner Author

size-limit report 📦

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

Copy link

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 d39a6bc:

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 f530809 into main Dec 28, 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