layers property
A list of XLayer
s and/or PLayer
s to stack in this parent XL.
P Layers
A Layer
in an XL
. These by themselves are not Widget
s.
Each Layer
serves as a blueprint for transformations to its child
within a parent XL
, containing all the animatable properties.
These Players
s react primarily to pointer data;
that is, either mouse hovers or touch inputs.
X Layers
Consider PLayer
, but these XLayer
s react primarily to sensors data.
The xOffset
, yOffset
, xRotation
, yRotation
, and zRotationByX
are reactionary to their respective axes when it comes to
AccelerometerEvent
s.
The zRotationByGyro
, however, is a secondary Z-axis
"spin" factor whose core value is derived from GyroscopeEvent
s.
- This means that samples from the gyroscope for Z-axis "spins"
with this property, according to
Normalization.samplingRate
, will spike but return to0
immediately once the device has finished "spinning".
Implementation
final List<Widget> layers;