-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
editor: support vector n-slicing in runtime
This PR can be reviewed commit-by-commit. Mostly translated directly from the editor side. ### Demo 1. NSlicedNode renders Here I'm rendering the same file in the editor and in the runtime app. The animating object goes through changes in its width/height and translation, including negative and 0 scaling. I'm showing that nothing weird happens and they look the same.  2. Works in a Layout for both custom and parametric paths:  Just for funsies, here's one with vector + image n-slicing in a layout, showing images, parametric path n-slicing and custom path n-slicing  Diffs= c7cd1c8c74 editor: support vector n-slicing in runtime (#8395)
- Loading branch information
susan101566
committed
Oct 23, 2024
1 parent
0bb258f
commit d4512ec
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
b3534f1f8f7b6ff1f6a8d8675957cfa5f8cd30cb | ||
c7cd1c8c741fcab1f237c2f65c7fe148f2925ff9 |
Submodule rive-runtime
updated
22 files
+1 −1 | .rive_head | |
+48 −0 | dev/defs/layout/n_sliced_node.json | |
+35 −0 | include/rive/generated/core_registry.hpp | |
+129 −0 | include/rive/generated/layout/n_sliced_node_base.hpp | |
+35 −0 | include/rive/layout/n_sliced_node.hpp | |
+3 −19 | include/rive/layout/n_slicer.hpp | |
+43 −0 | include/rive/layout/n_slicer_details.hpp | |
+43 −0 | include/rive/math/n_slicer_helpers.hpp | |
+18 −0 | include/rive/shapes/shape.hpp | |
+11 −0 | src/generated/layout/n_sliced_node_base.cpp | |
+4 −3 | src/layout/axis.cpp | |
+3 −3 | src/layout/axis_x.cpp | |
+4 −2 | src/layout/axis_y.cpp | |
+83 −0 | src/layout/n_sliced_node.cpp | |
+0 −14 | src/layout/n_slicer.cpp | |
+33 −0 | src/layout/n_slicer_details.cpp | |
+6 −4 | src/layout/n_slicer_tile_mode.cpp | |
+3 −0 | src/layout_component.cpp | |
+221 −0 | src/math/n_slicer_helpers.cpp | |
+13 −0 | src/shapes/path_composer.cpp | |
+35 −0 | src/shapes/shape.cpp | |
+26 −57 | src/shapes/slice_mesh.cpp |