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

Add custom baked presets #2

Closed
StevenJPx2 opened this issue Jan 19, 2024 · 1 comment
Closed

Add custom baked presets #2

StevenJPx2 opened this issue Jan 19, 2024 · 1 comment
Assignees
Labels
🚀 enhancement New feature or request

Comments

@StevenJPx2
Copy link
Owner

Currently baked presets are built in, (see link).

But because of its very scalable nature and how every animate composable has a baked version, there should be a module option for adding custom presets. They'll then be able to be used in a lot of contexts without an issue.

This could be added to ModuleOptions:

{
  baked?: {
    extra?: Record<
      string,
      Omit<
        {
          [x: string]: { from: StrongTweenVars; to: StrongTweenVars } | string;
        },
        "DEFAULT"
      > & { DEFAULT: string }
    >;
  };
}

Use type templates to add to the type declaration for AnimationOptions to include the new presets.

@StevenJPx2 StevenJPx2 added the 🚀 enhancement New feature or request label Jan 19, 2024
@StevenJPx2 StevenJPx2 self-assigned this Jan 19, 2024
@StevenJPx2
Copy link
Owner Author

Closed with v1.0.0-beta.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant