Skip to content

Commit

Permalink
Nnnn range data converter
Browse files Browse the repository at this point in the history
added a new data converter by request from Duo.
It defines an input range and maps it to an output range.
It includes some extra features like clamping the value, applying a modulo in order to make it loop, and reversing it.
And it also takes an interpolator such that the mapping doesn't need to be lineal.
@

https://github.com/user-attachments/assets/d18b1269-8b5e-4aad-9504-9f5f3dcdaad9

Diffs=
88543fa792 Nnnn range data converter (#8585)
  • Loading branch information
bodymovin committed Nov 18, 2024
1 parent c00cf20 commit 5cc73bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a2b0cb230ae3f3834d13096d7dc7688ef908c1d3
88543fa79295566065b700bfcf66130f327ff562
2 changes: 1 addition & 1 deletion submodules/rive-runtime
Submodule rive-runtime updated 23 files
+1 −1 .rive_head
+39 −0 dev/defs/data_bind/converters/data_converter_range_mapper.json
+46 −0 dev/defs/data_bind/converters/data_converter_range_mapper_values.json
+1 −0 include/rive/animation/cubic_interpolator.hpp
+27 −0 include/rive/animation/data_converter_range_mapper_flags.hpp
+1 −0 include/rive/animation/elastic_interpolator.hpp
+2 −0 include/rive/animation/keyframe_interpolator.hpp
+1 −1 include/rive/data_bind/converters/data_converter_group_item.hpp
+31 −0 include/rive/data_bind/converters/data_converter_range_mapper.hpp
+15 −0 include/rive/data_bind/converters/data_converter_range_mapper_values.hpp
+72 −0 include/rive/generated/core_registry.hpp
+106 −0 include/rive/generated/data_bind/converters/data_converter_range_mapper_base.hpp
+126 −0 include/rive/generated/data_bind/converters/data_converter_range_mapper_values_base.hpp
+3 −0 include/rive/importers/backboard_importer.hpp
+3 −1 src/animation/cubic_interpolator.cpp
+6 −1 src/animation/elastic_interpolator.cpp
+17 −3 src/animation/keyframe_interpolator.cpp
+97 −0 src/data_bind/converters/data_converter_range_mapper.cpp
+26 −0 src/data_bind/converters/data_converter_range_mapper_values.cpp
+4 −4 src/data_bind/converters/data_converter_system_degs_to_rads.cpp
+4 −4 src/data_bind/converters/data_converter_system_normalizer.cpp
+11 −0 src/generated/data_bind/converters/data_converter_range_mapper_values_base.cpp
+22 −0 src/importers/backboard_importer.cpp

0 comments on commit 5cc73bc

Please sign in to comment.