Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
AnimatedValuesComponent.h File Reference
#include <memory>
#include <string>
#include <unordered_map>
#include "donner/svg/components/animation/ContextualLengthRecipe.h"
Include dependency graph for AnimatedValuesComponent.h:

Classes

struct  donner::svg::components::AnimationStyleContext
 Enables animated presentation values during the final style cascade pass. More...
struct  donner::svg::components::AnimatedValuesComponent
 Component on target entities that holds animated attribute overrides. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
namespace  donner::svg::components
 Contains the implementation of the Donner ECS,.

Class Documentation

◆ donner::svg::components::AnimationStyleContext

struct donner::svg::components::AnimationStyleContext

Enables animated presentation values during the final style cascade pass.

Class Members
bool enabled = false Base-value sampling runs with this disabled.

◆ donner::svg::components::AnimatedValuesComponent

struct donner::svg::components::AnimatedValuesComponent

Component on target entities that holds animated attribute overrides.

When an animation is active, its computed value is stored here. The style system checks this map before falling back to base attribute values.

Sampled values are stored as raw strings consumed by the style and presentation passes. They remain separate from the authored XML attributes.

Class Members
unordered_map< string, shared_ptr< const ContextualLengthRecipe > > contextualLengths Immutable recipes for fields whose units depend on the final referencing instance.
unordered_map< string, string > overrides Map from attribute name to its animated value (as a raw string).