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: 🤖 update versions #279

Merged
merged 1 commit into from
Jul 4, 2024
Merged

chore: 🤖 update versions #279

merged 1 commit into from
Jul 4, 2024

Conversation

lottiefiles-bot
Copy link
Contributor

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

@lottiefiles/[email protected]

Minor Changes

  • 1d26a93: feat(web): 🎸 DotLottieWorker

    Introducing DotLottieWorker, a new class for offloading animation rendering to a Web Worker, enhancing application
    performance by freeing the main thread from expensive animations rendering. The API remains similar to DotLottie,
    with most methods being asynchronous.

    Basic Usage

    import { DotLottieWorker } from '@lottiefiles/dotlottie-web';
    
    new DotLottieWorker({
      canvas: document.getElementById('canvas'),
      src: 'url/to/animation.json',
      autoplay: true,
      loop: true,
    });

    Worker Grouping

    By default, all animations using DotLottieWorker are rendered in the same worker. To group animations into different
    workers, use the workerId property in the configuration object, as shown below:

    new DotLottieWorker({
      canvas: document.getElementById('canvas'),
      src: 'url/to/animation.json',
      autoplay: true,
      loop: true,
      workerId: 'worker-1',
    });
    
    new DotLottieWorker({
      canvas: document.getElementById('canvas-2'),
      src: 'url/to/animation2.json',
      autoplay: true,
      loop: true,
      workerId: 'worker-2',
    });

    This feature is particularly useful when rendering a large number of animations simultaneously, as it allows you to
    distribute the rendering animations workload across multiple workers, improving performance.

@lottiefiles/[email protected]

Patch Changes

@lottiefiles/[email protected]

Patch Changes

@lottiefiles/[email protected]

Patch Changes

@lottiefiles/[email protected]

Patch Changes

@lottiefiles/[email protected]

Patch Changes

@theashraf theashraf merged commit e61d099 into main Jul 4, 2024
1 check failed
@theashraf theashraf deleted the changeset-release/main branch July 4, 2024 08:11
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.

None yet

2 participants