Skip to content

Commit 209d27a

Browse files
committed
Add ascii diagram comment to LayersGraph
1 parent 064ff99 commit 209d27a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/LottieData/Optimization/LayersGraph.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ namespace CommunityToolkit.WinUI.Lottie.LottieData.Optimization
1111
/// <summary>
1212
/// Represents directed acyclic graph of layer groups.
1313
/// Node1 is child of Node2 iff they have time ranges that intersect and Node1 goes after Node2 in z-order.
14+
///
15+
/// +Z
16+
/// |---------------------------------------------------|
17+
/// |--Node1--|
18+
/// |---Node2---| Time -->
19+
/// |----Node3----|
20+
/// |---------------------------------------------------|
21+
/// -Z
22+
///
23+
/// In this example Node1 is a child of Node2, but not of Node3.
24+
/// Nodes can have multiple parents. Optimizations can be made to graphs that don't overlap in
25+
/// time, which is often the case when a single Lottie file contains multiple animations.
1426
/// </summary>
1527
#if PUBLIC_LottieData
1628
public

0 commit comments

Comments
 (0)