Commit 9138225
susan101566
editor and runtime: allow vertices in a vector nslicer to be out of bounds
Followup on #8459, where I returned a vertex untransformed if it's out of bounds of a vector n-slicer. I realized that instead of not transforming, they should be still be transformed, just not scaled. This PR translates the value by offset, and updates both the editor and the runtime. I also added a golden test for vector n-slicing.
All of these clipping changes was to support this leaf animating. Note that a vertex temporarily goes out of bounds:

About the golden test:

Top to bottom,
1. base case, the two 100x100 rectangles should be spaced out
2. same as 1, except the right rectangle should have a radial gradient with a yellow 'halo' in the center
3. the two shapes should look like complete stars. Before this PR btw, the stars would either be cut off or one of the vertices would 'fold back':

4. the 'dog' should be facing right, and the tail should have 4 dashes on it. The dog is actually 'flipped' with a negative width. It also contains a group of vectors. So this test case is making sure that a recursive structure works, as well as negative width.
Diffs=
33dc66a73e editor and runtime: allow vertices in a vector nslicer to be out of bounds (#8495)1 parent 4fc1131 commit 9138225
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments