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

Layout projection: Relative box resolution & Webpack updates #1060

Merged
merged 5 commits into from Mar 31, 2021

Conversation

mattgperry
Copy link
Collaborator

@mattgperry mattgperry commented Mar 24, 2021

This PR introduces a two-pass layout projection calculation, one to resolve relative projection boxes into viewport boxes, and then a second to calculate projection transforms as normal.

This PR also updates Webpack and related libraries to the latest versions.

Note: We're only adding the mechanism to resolve relative bounding boxes. The next step is to go through and choose in which situations we use relative vs viewport

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 24, 2021

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 0cbe531:

Sandbox Source
Framer Motion: Simple animation Configuration
App Store UI using React and Framer Motion Configuration
Framer Motion: Reorder animation Configuration
Framer Motion: growing item positionTransition issue Configuration
Framer Motion: Image lightbox Configuration

Comment on lines +891 to +892
} else {
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this else be removed?

* This is currently all relative to the top/left of the parent box,
* but could be expanded in the future.
*/
relativeTarget?: AxisBox2D
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having a hard time seeing where this gets set?

@mattgperry mattgperry merged commit 1a3caa4 into main Mar 31, 2021
@mattgperry mattgperry deleted the feature/relative-viewport-boxes branch March 31, 2021 09:09
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