You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by KiyanYang September 24, 2024
I created a custom element, invoke set-transform in the element,and set Anchor. Externally, call this element's Anchor position error. Is there something wrong with the code?
In the picture below, red line should link point A to point D1, but D1 position wrong.
@KiyanYang The problem seems to be the z component.
It works if you remove it from your transformation matrix:
transform: (
(-calc.sqrt(2)/4, 1, 0, 0),
( calc.sqrt(2)/4, 0,-1, 0),
( 0, 0, 0, 0), // Set z to 0
( 0, 0, 0, 1))
Because the default transformation matrix sets z * (1/2, 1/2, 0), you have to either change the root transformation or remove the z component from the resulting vectors of your transformation.
It is not good that anchors behave like this, though. I will have a look at it.
Discussed in #699
Originally posted by KiyanYang September 24, 2024
I created a custom element, invoke
set-transform
in the element,and setAnchor
. Externally, call this element's Anchor position error. Is there something wrong with the code?In the picture below, red line should link point A to point D1, but D1 position wrong.
The text was updated successfully, but these errors were encountered: