Commit 455b262
susan101566
editor+runtime: support text follow path with position
This PR can be reviewed by commits. It supports two main features:
1. I added a new boolean field, called 'radial', the difference is obvious when there are many lines in the text. False on the left, and True on the right:

2. I also special cased 'position' when a text is following a path. Note this is a 'breaking' change, but from what I heard, folks unanimously like this new behavior. Before and after, for a x position modifier:

The editor UI for 'radial' is very simple for now. We should probably polish this up later once we've added all the features we want.

I supported these features in both Dart and C++. I have a golden test on deck to commit, which looks like:

But I wanted to make sure stuff like the naming and approach are ok before I commit it, since there could be some churn.
Diffs=
39b813b46c editor+runtime: support text follow path with position (#9131)1 parent 9334ab2 commit 455b262
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Submodule rive-runtime updated 11 files
- .rive_head+1-1
- dev/defs/text/text_follow_path_modifier.json+13-1
- include/rive/generated/core_registry.hpp+8
- include/rive/generated/text/text_follow_path_modifier_base.hpp+35
- include/rive/math/raw_path.hpp+1
- include/rive/text/text_follow_path_modifier.hpp+3
- include/rive/text/text_modifier_group.hpp+5-2
- src/math/raw_path.cpp+9
- src/text/text.cpp+7-8
- src/text/text_follow_path_modifier.cpp+44-19
- src/text/text_modifier_group.cpp+14-10
0 commit comments