Skip to content

Allow stageHeight and stageWidth to be in any kind of CSS units#34

Open
gbagan wants to merge 3 commits intoPuruVJ:mainfrom
gbagan:main
Open

Allow stageHeight and stageWidth to be in any kind of CSS units#34
gbagan wants to merge 3 commits intoPuruVJ:mainfrom
gbagan:main

Conversation

@gbagan
Copy link

@gbagan gbagan commented Oct 5, 2025

Hi,

thanks for this great library.

I propose this PR to fix the issue #1
It allows stageHeight and stateWidth to be in any kind of CSS units.
The type changes from number to string | number.
calc() is allowed. For exemple {stageWidth: "calc(100vh - 200px)" }.

Unless I'm wrong, this doesn't introduce breaking changes.

@changeset-bot
Copy link

changeset-bot bot commented Oct 5, 2025

🦋 Changeset detected

Latest commit: ae1defa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@neoconfetti/core Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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