[Editor] Correctly rotate the mask when rotation a free highlight (bug 1879102)
This commit is contained in:
parent
d7479a59b7
commit
c4ac7eef95
@ -154,6 +154,7 @@ class DrawLayer {
|
||||
use.setAttribute("stroke", "none");
|
||||
use.setAttribute("fill", "black");
|
||||
use.setAttribute("fill-rule", "nonzero");
|
||||
use.classList.add("mask");
|
||||
}
|
||||
|
||||
const use1 = DrawLayer._svgFactory.createElement("use");
|
||||
|
@ -18,19 +18,22 @@
|
||||
transform: none;
|
||||
|
||||
&[data-main-rotation="90"] {
|
||||
use:not(.clip) {
|
||||
mask,
|
||||
use:not(.clip, .mask) {
|
||||
transform: matrix(0, 1, -1, 0, 1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-main-rotation="180"] {
|
||||
use:not(.clip) {
|
||||
mask,
|
||||
use:not(.clip, .mask) {
|
||||
transform: matrix(-1, 0, 0, -1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-main-rotation="270"] {
|
||||
use:not(.clip) {
|
||||
mask,
|
||||
use:not(.clip, .mask) {
|
||||
transform: matrix(0, -1, 1, 0, 0, 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user