Skip to content

Commit

Permalink
refactor: merge the dotLottie feature set into lottie
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Feb 6, 2025
1 parent 08ca628 commit a835ed1
Show file tree
Hide file tree
Showing 20 changed files with 295 additions and 496 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ This release supports Bevy version 0.14 and has an [MSRV][] of 1.80.
- `Handle<VelloAsset>` has been separated into `VelloSvgHandle` and `VelloLottieHandle`
- `VelloAssetAnchor` has been separated into `VelloSvgAnchor` and `VelloLottieAnchor`
- The license on bevy_vello no longer includes OFL 1.1
- The `experimental-dotLottie` feature was removed and merged into the `lottie` feature.
- `DotLottiePlayer` was renamed to `LottiePlayer`.

### Fixed

Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ wasm-bindgen-test = "0.3.50"
default = ["default_font"]
svg = []
lottie = []
experimental-dotLottie = ["lottie"]
default_font = ["bevy/default_font"]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

</div>

`bevy_vello` is a cross-platform, 2D compute-centric vector graphics rendering library for Bevy. There is default support for rendering text and scenes, with additional opt-in features for SVG and Lottie. Experimental support for dotLottie is coming.
`bevy_vello` is a cross-platform, 2D compute-centric vector graphics rendering library for Bevy. There is default support for rendering text and scenes, with additional opt-in features for SVG and Lottie.

Quickstart to run the demo:

Expand Down Expand Up @@ -44,7 +44,6 @@ cargo run -p demo
|`default_font`|Include a default font, containing only ASCII characters, at the cost of a 20kB binary size increase|Yes|
|`svg`|Render `.svg` files with [`vello_svg`](https://github.com/linebender/vello_svg)|No|
|`lottie`|Render `.json` Lottie files with [`velato`](https://github.com/linebender/velato)|No|
|`experimental-dotLottie`|Render `.lottie` Lottie files. **Work in Progress**|No|

## Examples

Expand Down
2 changes: 1 addition & 1 deletion examples/demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy_vello = { path = "../../", features = ["experimental-dotLottie"] }
bevy_vello = { path = "../../", features = ["lottie"] }
bevy = { workspace = true }
bevy_pancam = { version = "0.16.0", features = ["bevy_egui"] }
bevy_egui = "0.31.0"
2 changes: 1 addition & 1 deletion examples/demo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn setup_vector_graphics(mut commands: Commands, asset_server: ResMut<AssetServe
..default()
})
.insert(
DotLottiePlayer::new("stopped")
LottiePlayer::new("stopped")
.with_state({
PlayerState::new("stopped")
.playback_options(PlaybackOptions {
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::time::Duration;
pub fn controls_ui(
mut contexts: EguiContexts,
mut player: Query<(
&mut DotLottiePlayer,
&mut LottiePlayer,
&mut Playhead,
&mut PlaybackOptions,
&mut Theme,
Expand Down
13 changes: 0 additions & 13 deletions src/integrations/dot_lottie/mod.rs

This file was deleted.

17 changes: 0 additions & 17 deletions src/integrations/dot_lottie/plugin.rs

This file was deleted.

Loading

0 comments on commit a835ed1

Please sign in to comment.