2692 Commits

Author SHA1 Message Date
03751a2f54 docs: SpriteAnimation benchmark example (#2131) 2022-10-29 13:49:03 -04:00
9cc8ff59b3 docs: Fix examples folder README (#2133) 2022-10-29 16:51:25 +00:00
bcecd3c1bd feat: Added glow effect using maskFilter (#2129) 2022-10-29 17:44:15 +01:00
2fbf11d441 docs: flame_rive docs added (#2116) 2022-10-29 10:03:04 +00:00
d183332902 fix: Export rive from flame_rive (#2130) 2022-10-29 09:53:44 +00:00
fe3a0129e3 docs: Interactive docs for the ColorEffect (#2125) 2022-10-29 09:24:02 +00:00
6d9bb7c354 docs: Added new directive {package} (#2128)
* Add {package} directive

* move css into a separate file

* Use {package} in Other Modules
2022-10-28 23:26:15 +01:00
d0a865f835 docs: Formatting clean up in the flame_tiled docs (#2127) 2022-10-28 11:18:25 +01:00
4885e0fac5 docs: RemoveEffect interactive example (#2123) 2022-10-26 14:48:03 +02:00
27a6eed74b ci: Custom dictionary in cspell to manage more words easily (#2122) 2022-10-25 16:34:54 +02:00
d1cd8517e4 fix: Focus handling with a scope on the GameWidget (#1725)
This ignores keyboard events if the game widget doesn't have the primary focus. This allows focus nodes on overlay widgets to take precedence on keyboard resolving.

Also, add focus scope in the game widget for when the overlay is removed, the focus goes back to the game.

Also, add tests for GameWidget for all these cases and some more.
2022-10-25 09:02:03 +00:00
9e6bf4fbcc feat: Add paint layers to HasPaint and associated component renders (#2073) 2022-10-24 22:37:24 +00:00
03e1f33d3d fix: RemoveEffect should work within SequenceEffect (#2110)
Since the RemoveEffect was removing its parent and not its target it couldn't work within a SequenceEffect since it was just removing that effect instead.
2022-10-24 22:26:10 +00:00
f7c2f54f4d docs: Interactive docs for Ray casting and Ray tracing (#2114)
Added Interactive docs for Ray casting and Ray tracing
2022-10-24 22:18:45 +00:00
dc79d846ce ci: Only run spell checker on PRs (#2118) 2022-10-24 21:18:46 +00:00
bc43838c92 docs: Add performance test game to examples (#2117) 2022-10-24 22:57:46 +02:00
b8f290dcd5 ci: Trigger docs build on merge (#2112) 2022-10-24 16:39:58 -03:00
0c451577e9 docs: Docs reorganization (#2063) 2022-10-23 23:02:49 +02:00
8e8bb5943f test: Convert tests to use testWithGame / testWithFlameGame (#2106) 2022-10-23 16:57:22 +02:00
49ef7c4ef7 docs: Fireslime -> Blue Fire (#2107) 2022-10-22 17:59:41 +00:00
6fe517a0c2 ci: Added Spell checker in CI (#2006)
Added spell check in Github CI
2022-10-22 16:51:00 +02:00
0255cc32f0 feat!: Add OpacityProvider (#2062)
This PR adds a new OpacityProvider interface which should be implemented by components that want to use OpacityEffect. This makes OpacityEffect decoupled from HasPaint.
2022-10-21 17:28:44 +00:00
3649b9b9ef ci: Swap back to Spec for tests (#2090)
I temporarily turned off spec when it was having problems, this PR turns it on again since the problems are fixed.
2022-10-21 13:41:49 +00:00
bedacd0c8c feat: Expose paint from svgComponent to set opacity and have opacity effects (#2092) 2022-10-21 12:28:40 +00:00
8395126678 docs: Bridge package docs: flame_fire_atlas (#2077) 2022-10-21 12:20:49 +00:00
8f9ec730a8 docs: Added the flame_svg section (#2059)
Added the flame_svg documentation
2022-10-21 12:07:41 +02:00
bb71064647 feat: Add SizeProvider to clip_component and custom_paint_component. (#2100)
* Adjusting clip & custom_paint to implement sizeProvider.

Signed-off-by: Joakim Sjöstedt <joakim.sjostedt@skandia.se>

* Change import

Signed-off-by: Joakim Sjöstedt <joakim.sjostedt@skandia.se>

Signed-off-by: Joakim Sjöstedt <joakim.sjostedt@skandia.se>
Co-authored-by: Joakim Sjöstedt <joakim.sjostedt@skandia.se>
2022-10-21 08:34:30 +02:00
45635ced46 docs: flame_bloc bridging docs added (#2094) 2022-10-20 16:38:42 +00:00
59bd7ebb9d fix: #1966 unit test for Particles (#2097)
fix: 🐛 Unit tests for particles #1966: Unit test for Particles
2022-10-20 06:23:22 +00:00
8a136c9985 fix: flame-bloc : Remove final keyword from subscription in FlameBlocListenable (#2098)
# Description

Correct a late initialization error that occurs when re-visiting a route previous visited that is using the FlameBlocListenable mixin.  The `final` keyword is remove from _subscription field declaration so that the error does not occur on subsequent mounts of the component.


## Checklist


- [X] The title of my PR starts with a [Conventional Commit] prefix (`fix:`, `feat:`, `docs:` etc).
- [X] I have followed the [Contributor Guide] when preparing my PR.
- [-] I have updated/added tests for ALL new/updated/fixed functionality.
- [-] I have updated/added relevant documentation in `docs` and added dartdoc comments with `///`.
- [-] I have updated/added relevant examples in `examples` or `docs`.


## Breaking Change?

- [ ] Yes, this PR is a breaking change.
- [X] No, this PR is not a breaking change.
2022-10-19 21:09:37 +00:00
47970224f8 fix: antialiasing should change the artboard(#2076)
fixed antialiasing props does not change Artboard's antialiasing and added necessary test.
2022-10-18 21:21:31 +00:00
991adbaa8e feat: Lexer for the flame_yarn project (#2081)
This PR adds the new flame_yarn repository (see #2066), and implements the tokenizer (lexer) for the .yarn file format.

By itself, the tokenizer is an internal function. However, it is a well-defined component that can be developed and tested standalone. Therefore, I am creating a separate PR for it -- otherwise tokenizer+lexer would have been unmanageably large.
2022-10-18 18:30:47 +00:00
3af416dc2e feat: Add children to World constructor (#2093)
With this World can make use of the children argument to Component.
2022-10-18 09:20:25 +02:00
9f32278573 feat: removed future + isRemoved field for Component (#2080)
This corresponds to mounted/isMounted lifecycle event but for the removed state.
2022-10-17 07:34:41 +00:00
8aacb5557a fix: Add missing hitbox parameters (#2070)
This PR adds the position parameter to PolygonHitbox and isSolid parameters to all hitbox classes' .relative named constructors.

Also returns PolygonComponent's internal topLeft parameter to private _topLeft as no longer required outside of the class file.
2022-10-16 18:04:46 +00:00
f5970f367d docs: Fix broken links to style guide and test writing guide (#2089) 2022-10-16 19:09:29 +02:00
a287904eb5 fix: Exception when having multiple calls to dispose() function of a Svg instance (#2085) 2022-10-16 18:41:51 +02:00
0911d10b91 fix: SvgComponent getting blurred and pixelized (#2084)
Since the PictureRecorder turns the output into pixels it will be blurry if the size isn't scaled with the devicePixelRatio.
This PR applies the same technique implemented in #878 and described in flutter/flutter#17782 (comment)
2022-10-16 14:34:00 +00:00
af61d5057d docs: Interactive SizeEffect examples in doc. (#2086) 2022-10-16 16:26:09 +02:00
4ed776862e docs!: replace doc-build-live with doc-serve (#2078)
This commit replaces the melos doc-build-live with melos doc-serve.

This also changes documentation for this while removing the mention of make commands in the documentation.
2022-10-15 13:36:57 +00:00
0a1ec182b6 fix: Fixed doc autobuild on windows (#2083) 2022-10-15 13:59:04 +02:00
7e378f4135 docs: Fix documentation auto build (#2082) 2022-10-14 23:51:00 +00:00
a34f1df790 feat: Added toString method to all the drags events message handlers (#2014)
Added toString method to all Drag Event message Handlers in flame/lib/src/events/messages/ which were returning pure data objects and were not much meaningful
2022-10-14 10:49:25 +00:00
a1f4af9c3c test: unit test for HasHoverables (#2074)
- 🚨 unit test for `HasHoverables`

Co-authored-by: Shweta_C <shweta.c@simformsolutions.com>
Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
2022-10-14 08:17:49 +00:00
3549891d9d test: Unit tests for gesture detectors (#2071)
Unit tests for gesture detectors #2019
2022-10-14 08:10:36 +00:00
a3a65f30ab fix: Fixed null exception when no artboard with specified name is exists (#2069)
Fixed null exception when no artboard with specified name is exists and added necessary test.
2022-10-13 15:39:29 +02:00
d659b85d09 fix: 🐛 unit test for Forge2dGame (#2068)
- Working on unit test

Co-authored-by: Shweta_C <shweta.c@simformsolutions.com>
2022-10-13 14:37:31 +02:00
62c5c2e144 fix: solid circles and polygons intersection (#2067)
This PR fixes polygons inside a solid circle and circles inside a solid polygon not being correctly detected.
(This relates to Flame's collision detection, not Forge2D)
2022-10-12 09:48:16 +02:00
202d809b7f test: Added test for rive_component (#2065)
Added some basic test for rive_component.

More test will be added in the follow up PR that fix rive_component's issue.
2022-10-11 18:49:32 +00:00
b3b673011c refactor: OpacityEffect now uses opacity instead of alpha internally (#2064)
Using opacity instead of integer alpha simplifies the code (and also reduces round-off errors which may accumulate for longer-running effects).
2022-10-11 16:15:34 +00:00