Class Layer
Information about a compositing layer.
public sealed class Layer
- Inheritance
-
Layer
- Inherited Members
Properties
AnchorX
Transform anchor point X, absent if no transform specified
[JsonPropertyName("anchorX")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? AnchorX { get; set; }
Property Value
AnchorY
Transform anchor point Y, absent if no transform specified
[JsonPropertyName("anchorY")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? AnchorY { get; set; }
Property Value
AnchorZ
Transform anchor point Z, absent if no transform specified
[JsonPropertyName("anchorZ")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? AnchorZ { get; set; }
Property Value
BackendNodeId
The backend id for the node associated with this layer.
[JsonPropertyName("backendNodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? BackendNodeId { get; set; }
Property Value
- long?
DrawsContent
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
[JsonPropertyName("drawsContent")]
public bool DrawsContent { get; set; }
Property Value
Height
Layer height.
[JsonPropertyName("height")]
public double Height { get; set; }
Property Value
Invisible
Set if layer is not visible.
[JsonPropertyName("invisible")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Invisible { get; set; }
Property Value
- bool?
LayerId
The unique id for this layer.
[JsonPropertyName("layerId")]
public string LayerId { get; set; }
Property Value
OffsetX
Offset from parent layer, X coordinate.
[JsonPropertyName("offsetX")]
public double OffsetX { get; set; }
Property Value
OffsetY
Offset from parent layer, Y coordinate.
[JsonPropertyName("offsetY")]
public double OffsetY { get; set; }
Property Value
PaintCount
Indicates how many time this layer has painted.
[JsonPropertyName("paintCount")]
public long PaintCount { get; set; }
Property Value
ParentLayerId
The id of parent (not present for root).
[JsonPropertyName("parentLayerId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ParentLayerId { get; set; }
Property Value
ScrollRects
Rectangles scrolling on main thread only.
[JsonPropertyName("scrollRects")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ScrollRect[]? ScrollRects { get; set; }
Property Value
StickyPositionConstraint
Sticky position constraint information
[JsonPropertyName("stickyPositionConstraint")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public StickyPositionConstraint? StickyPositionConstraint { get; set; }
Property Value
Transform
Transformation matrix for layer, default is identity matrix
[JsonPropertyName("transform")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double[]? Transform { get; set; }
Property Value
- double[]
Width
Layer width.
[JsonPropertyName("width")]
public double Width { get; set; }