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

Improve links to 2D vs 3D transforms math descriptions. #583

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trusktr
Copy link

@trusktr trusktr commented Dec 27, 2024

The motivation here is that, while I'm implementing a TypeScript polyfill for geometry-interfaces, it could be more clear exactly what math needs to be implemented. For example, some methods that do 3D transforms were linking only to the 2D descriptions in css-transforms-1, so I also added links to 3D math descriptions in css-transforms-2 for clarity as well as for ease of exploration and navigation.

Is this the right way to do it?

A question I have is, why are 2D descriptions separated from 3D descriptions across css-transforms-1 and css-transforms-2? Why doesn't the latest spec (css-transforms-2?) contain all the information so that linking we only need to link to css-transforms-2 and not css-transforms-1?

For now, this is the simplest change to geometry-1, but I feel like it would be better if the latest css-transforms spec had all relevant details, and geometry-* would only link to the latest css-transforms-* spec.

Related issue:

This PR helps ensure links to all math descriptions are present.

3. If <var>parsedValue</var> is ''transform/none'', set <var>parsedValue</var> to a
<<transform-list>> containing a single identity matrix.
4. Let <var>2dTransform</var> track the 2D/3D dimension status of <var>parsedValue</var>.
4. Let <var>2dTransform</var> track whether <var>parsedValue</var> is a 2D or 3D transform.
Copy link
Author

@trusktr trusktr Dec 27, 2024

Choose a reason for hiding this comment

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

There is one unrelated change here: the phrase "the 2D/3D dimension status" didn't make much sense to me, so I suggested changing it to a simpler phrase. Is this phrase necessary (i.e. used in other places)? If so, I can undo this specific change and save it for a separate change that makes the wording simpler in all locations.

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