Skip to content

group isolate not implemented #42

@TeamDman

Description

@TeamDman

I am trying to use this SVG

https://github.com/maskati/azure-icons/blob/a7933b00474aa25ab45bc096ef1bb5366de7bde3/svg/Microsoft_Azure_Billing/Subscription.svg

image

which is hitting

panicked at .cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy_svg-0.14.0\src\svg.rs:146:25:
not yet implemented: group isolate not implemented

bevy_svg/src/svg.rs

Lines 135 to 148 in 7d908ef

let transform = transform.pre_concat(group.transform());
trace!("group: {:?}", group.id());
if !group.should_isolate() {
for node in group.children() {
node_stack.push_front(NodeContext {
node,
transform,
is_text: false,
});
}
} else {
todo!("group isolate not implemented")
}
}

Looking inside the SVG there are two path elements, the second one responsible for creating multiple isolated visual elements of the image

image

By commenting out the second path element, I can get the SVG to partially work in bevy

image

There's a few css rules being skipped, but at least the outline of the shape works which is better than nothing lol

 WARN simplecss: The @-moz-document rule is not supported. Skipped.
 WARN simplecss: The @keyframes rule is not supported. Skipped.
 WARN simplecss::selector: ':nth-child' is not supported. Selector skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions