Open johannes-wolf opened 6 days ago
@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 https://github.com/cetz-package/cetz/discussions/699