Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::AnimateTransformComponent Struct Reference

Component storing <animateTransform>-specific data. More...

#include "donner/svg/components/animation/AnimateTransformComponent.h"

Inheritance diagram for donner::svg::components::AnimateTransformComponent:
[legend]

Public Attributes

std::string attributeName
 Required transform attribute on the target element.
TransformAnimationType type = TransformAnimationType::Translate
 The transform type (translate, scale, rotate, skewX, skewY).
std::optional< std::string > href
 Optional href pointing to the target element.
std::optional< std::string > from
 The from value (space-separated numbers).
std::optional< std::string > to
 The to value (space-separated numbers).
std::optional< std::string > by
 The by value (space-separated numbers).
std::vector< std::string > values
 The values list (semicolon-separated keyframes).
Public Attributes inherited from donner::svg::components::AnimationInterpolation
CalcMode calcMode = CalcMode::Linear
 Interpolation mode.
std::vector< double > keyTimes
 Normalized keyframe times.
std::vector< double > keySplines
 Four control coordinates per interval.
bool additive = false
 Add to the underlying value.
bool accumulate = false
 Add completed iterations' final values.
bool valid = true
 False after a malformed interpolation attribute.

Detailed Description

Component storing <animateTransform>-specific data.

Values are stored as strings containing space-separated numbers. The number of values per entry depends on the transform type.


The documentation for this struct was generated from the following file: