-
Notifications
You must be signed in to change notification settings - Fork 757
[cssom-view-1] Added definition of getBoxQuads() #10538
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
e91afa6
57dc349
db85f76
1adcbdd
064b981
75d652d
00fe074
6d537f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1863,13 +1863,13 @@ typedef (Text or Element or CSSPseudoElement or Document) GeometryNode; | |
|
|
||
| The helper method getCompleteTransform(anchestor) must run the following steps: | ||
| <ol> | ||
| 1. let currentElement be the element getCompleteTransform() called on. | ||
| 1. let currentElement be the anchestor parameter. | ||
| 2. let transformationMatrix be the current transformation matrix of currentElement (https://www.w3.org/TR/css-transforms-2/#ctm) | ||
| 3. while currentElement is not null do | ||
| <ol> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you really need the |
||
| 1. create a translation matrix from the currentElement offsetLeft and offsetTop | ||
| 2. multiply the matrix from 4. with the transformationMatrix and store the result in transformationMatrix | ||
| 3. assign currentElement offsetParent to currentElement | ||
| 3. assign the offsetParent of the currentElement to currentElement | ||
| 4. let parentTransformationMatrix be the current transformation matrix of currentElement (https://www.w3.org/TR/css-transforms-2/#ctm) | ||
| 5. multiply the parentTransformationMatrix with the transformationMatrix and store in transformationMatrix | ||
| 6. if currentElement is the anchestor or the anchestor is null return the transformationMatrix | ||
|
|
@@ -1914,7 +1914,7 @@ The <dfn method for=GeometryUtils lt="convertPointFromNode(point, from, options) | |
| method must run the following steps: | ||
|
|
||
| <ol> | ||
| 1. get the resulting matrix between the element and the document.defaultView via the algorithm defined in getCompleteTransform | ||
| 1. get the resulting matrix between the node and the document.defaultView via the algorithm defined in getCompleteTransform | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Give these meaningful names like: Then reference those. |
||
| 2. get the resulting matrix between the from and the document.defaultView via the algorithm defined in getCompleteTransform | ||
| 3. inverse the matrix in 2. | ||
| 4. Depending on the value of options.fromBox modify the point with the calculated style values of the element. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should use |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to get the element as a parameter, and use
<div algorithm>for this for example:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added node to helper function