51 Commits

Author SHA1 Message Date
fe30e35068 Run generate
just trying to flush through some of the bits coming out of running generate core runtime & generate core runtime without making a mess in other pr's .
this is split into four commits which might be helpful when looking at the changes here.

Diffs=
ad72cfce5 Run generate (#5490)
7ee5f7d5a Increases the margin for the approx call to some of the wangs formula… (#5506)
2f224da7f Runtime ellipsis (#5482)

Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
2023-06-29 08:29:17 +00:00
4893a3e79e Add transition interpolation to the runtime
Just ran `generate_core_runtime.sh` which added quite a lot of stuff. The change is quite minimal, I'll highlight it with a few comments in the PR.
I'll also adding a test for these new cubic exports just in case!

Fixes the Flutter bit for #5404

Diffs=
59858e333 Add transition interpolation to the runtime (#5429)

Co-authored-by: Umberto Sonnino <umberto@rive.app>
2023-06-19 18:53:56 +00:00
6395bceaf7 Joystick ordering
Fixes issue with dependencies discussed here:
https://github.com/rive-app/rive/pull/5275

Joysticks now build their own DAG and export in the correct order for runtime.

Diffs=
f2ecb824b Joystick ordering (#5277)
2023-05-23 05:23:17 +00:00
a0e536a331 Joystick updates
- Adds invert x/y to joystick (Thanks @alxgibsn)
- Adds the invert to Flutter and C++ runtimes.
- Updates Cpp core generator to latest Flutter+NNBD.
- Fixes warnings and errors from latest Flutter (Dart SDK really).

Diffs=
a4fb3dc7d Joystick updates (#5261)
8f8e06b9e Attempt fixing the builds with new Docker images (#5253)
7768798a7 Update to Flutter 3.10.0 (#5247)
2023-05-20 18:07:35 +00:00
0d010f0191 Joysticks & Slider!
Diffs=
7acff50d4 Joysticks & Slider! (#5249)
e65175b88 Fix flickering caught in high level runtimes. (#5243)
2023-05-16 04:44:51 +00:00
a7ba0546b9 add directBlendState by mix value, bypassing setting inputs
fixes https://github.com/rive-app/rive/issues/5039

lets you set integer values as input

https://user-images.githubusercontent.com/1216025/228241518-2d08812d-c283-4a15-a94d-9bb72544ecc3.mp4

todo (leaving because i want feedback first):
- [x] add tests
- [x] update cpp runtime
- [x] run `generate_core_runtime.sh`
- [x] run `generate_core.sh` for cpp

Diffs=
6df791fe4 add directBlendState by mix value, bypassing setting inputs (#5053)
2023-03-30 14:25:22 +00:00
428b1a6dad Solos
So far:
- [x] Editor
- [x] Dart Tests
- [x] Flutter Runtime
- [x] C++ Runtime
- [x] C++ Tests

Hierarchy interaction:
<img width="280" alt="CleanShot 2023-03-24 at 21 44 53@2x" src="https://user-images.githubusercontent.com/454182/227696646-09f9cbe5-c482-4bab-aae9-b0b36c16047e.png">

Nesting:
<img width="394" alt="CleanShot 2023-03-24 at 21 45 23@2x" src="https://user-images.githubusercontent.com/454182/227696653-b1132ba1-5471-4c6d-9b59-20387389ae12.png">

Inspector active solo selection:
<img width="253" alt="CleanShot 2023-03-24 at 21 45 33@2x" src="https://user-images.githubusercontent.com/454182/227696660-6676acfa-15ab-4ae2-a866-4b7898bc1f52.png">

Animatable with timeline hierarchy value too:
<img width="510" alt="CleanShot 2023-03-24 at 21 46 07@2x" src="https://user-images.githubusercontent.com/454182/227696686-255064c9-43fd-4213-9e3f-9cd46cca9de3.png">

Diffs=
daaf140ba Solos (#5047)
44ef23f7e Text fix variable and opacity (#5017)
3c396d3b8 Text style variation at runtime. (#5014)
2023-03-28 23:39:09 +00:00
fe57e817f3 Fix negative speeds in state machines
look commit by commit potentially, last couple of commits are running core generator

& its quite a small change code wise, so it'd be good to get feedback on the actual change sooner rather than later

there are at least a couple of changes in there that should make you question if this is a good idea so i expect some feedback.

add to cpp: (i just got it working in the viewer, probably broke some things)
- [x] negative time fix
- [x] combine state speed to determine time for state
- [x] no longer carry spilled time into new advances

add test
- [x] negative time fix to state machines
- [x] negative combined time state fix to state machines
- [ ] no longer carry spilled time into new advances @luigi-rosso i tried adding tests for this, but i was not really able to construct a state machine instance (with an animations, an animation state and the right transition) in tests I had to add a bunch of public methods all over the place, can you show me the way? probably not a blocker for merging this)

apply changes to rive_flutter
- [x] run script (ran both core generator and core generator runtime, the runtime one wanted to remove a load of comments so i didnt let those bits be committed. but still.. annoying)

Diffs=
bc6c6f467 Fix negative speeds in state machines (#4887)
040a27c1c Generate Android builds directly from premake (#4871)
12285f625 Put SIMD perf warnings behind a flag (#4861)
157a399d2 update id in code (#4855)
2023-02-28 11:53:47 +00:00
27be816a46 Update flutter runtime
- ran ```dev/generate_core_runtime.sh build```
- cleaned up a lot of accumulated changes from the last few months that needed to be stripped/modified for the rutnime
- removed no longer supported lining options from analysis files
- fixed up defs for some editor only features so they don't transpile
- added some more details to changelog
- bumped pubspec version

Diffs=
aa8c750bd Update flutter runtime (#4835)
2023-02-15 23:47:35 +00:00
cac78883af Value Graph Export + Runtime Support!!
- Renamed CubicInterpolator to CubicEaseInterpolator so that CubicInterpolator can now be the base class for both CubicEaseInterpolator and CubicValueInterpolator.
- Added CubicValueInterpolator to cpp and Flutter runtimes.
- Test in cpp runtime for the new cubic value interpolation.

Diffs=
1e80ad08f Value Graph Export + Runtime Support!! (#4524)
c532f8658 Shorten harfbuzz/SheenBidi directory paths
312a6c778 Drop the runtime to C++11
de4fe4d71 export MAKE_SKIA_FILE from all top-level scripts that build Skia
75a6b74b8 Beef up testing in tools/*
79f98695a Don't show interactive download progress when premaking on bots
b7fd1d825 Move golden testing into tools/
2022-12-14 22:15:43 +00:00
8f62c6b629 Updating for latest rive editor changes (events & nested animation sync). 2022-08-15 14:51:06 -07:00
7289978fa9 Adding support for align listener action. 2022-06-18 16:11:30 -07:00
6e97a2c076 Support for nested inputs. 2022-06-16 15:51:45 -07:00
4a5a49bae3 Rename events to listeners. 2022-05-30 17:10:04 -07:00
483f5b15f1 Changes for nested state machines. 2022-05-26 13:13:28 -07:00
92c7af2343 Syncing to latest rive features including click events from rive. 2022-05-11 15:24:45 -07:00
9e741d417f Fixes from updated core generator in rive editor. 2022-03-15 11:53:47 -07:00
d415b6a958 Mesh deform for flutter runtime. 2022-03-15 11:53:47 -07:00
a2af8190e7 Prepping for assets release. 2021-12-22 10:37:32 -08:00
22b2d4c8e0 Adding asset resolver for loading out of band assets 2021-11-30 14:06:04 -08:00
f9f431c90c Support for raster assets. 2021-11-30 14:06:04 -08:00
52d08cb421 Cleanup and running core_generator. 2021-10-08 19:24:41 -07:00
3a84f6ae89 Getting nested animations working. 2021-10-08 19:24:41 -07:00
9bc89d1031 Support for nested artboards. 2021-10-08 19:24:41 -07:00
d280a50d11 Optionally disable clipping on the artboard. 2021-08-11 15:08:28 -07:00
af5d88e90d Adding support for translation, rotation, and scale constraints. 2021-08-05 17:34:42 -07:00
8214b5cee8 Adding support for TransformConstraints. 2021-07-28 18:19:47 -07:00
53ea9b5839 Adding distance constraint. 2021-07-26 14:00:53 -07:00
efdd943f39 Ran generator for constraints. 2021-07-13 17:41:43 -07:00
37adf790ee Blend states! 2021-05-07 19:41:50 -07:00
e7eefe4a4c Ensuring StateMachine animations are immediately applied when the StateMachine starts or transitions without mix time. 2021-05-04 13:54:06 -07:00
ff57f57781 Adding support for corner radius. 2021-04-19 16:54:27 -07:00
2851203e67 Improving state machine api and including more examples. 2021-04-12 16:57:40 -07:00
1c7bccc36c Adding exit time to state machine. 2021-03-31 16:16:15 -07:00
2ac6bccb9e Updating with latest generated code. 2021-03-26 14:51:28 -07:00
33ad1c9ac8 Working on nnbd. 2021-03-22 14:49:42 -07:00
65465f56ed Adding machine importer. 2021-03-02 20:44:21 -08:00
5db0e3a766 Major version 7 2021-03-01 20:32:05 -08:00
79b2aed22f Adding visibility toggles and prepping for 0.6.5. 2020-12-22 16:59:35 -08:00
46cfa4384a Adding support for stars, shapes, and trim path fixes. 2020-12-11 15:48:34 -08:00
8e1718c7bd Adding support for parametric path origin. 2020-11-17 16:02:16 -08:00
317f9ca68d Adding new clipping. 2020-09-22 15:54:53 -07:00
a7bf38b387 Fixing draw order in Flutter runtime. 2020-09-14 15:46:10 -07:00
c15236d7fc Adding trim path support. 2020-08-28 18:27:54 -07:00
a02607dd89 Adding support for bones! 2020-08-26 18:11:23 -07:00
e4add0ce91 Getting clipping working with the Flutter runtimes. 2020-08-14 18:51:47 -07:00
37f0ac9ada Bumping to version 4 with first cut of bones. 2020-08-12 18:07:02 -07:00
a401bd8abf Removing signed integer from the core system. 2020-08-07 20:24:19 -07:00
ad784625e3 Updating to latest version of Rive runtime format and prepping for pub.dev release. 2020-07-28 18:48:25 -07:00
c9f0a9afdd Fix Pub analysis 2020-07-09 09:09:31 +00:00