aboutsummaryrefslogtreecommitdiffstats
path: root/dev-docs/docs/codebase/frames.mdx
diff options
context:
space:
mode:
Diffstat (limited to 'dev-docs/docs/codebase/frames.mdx')
-rw-r--r--dev-docs/docs/codebase/frames.mdx22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-docs/docs/codebase/frames.mdx b/dev-docs/docs/codebase/frames.mdx
new file mode 100644
index 0000000..67c84b7
--- /dev/null
+++ b/dev-docs/docs/codebase/frames.mdx
@@ -0,0 +1,22 @@
+# Frames
+
+## Ordering
+
+Frames should be ordered where frame children come first, followed by the frame element itself:
+
+```
+[
+ other_element,
+ frame1_child1,
+ frame1_child2,
+ frame1,
+ other_element,
+ frame2_child1,
+ frame2_child2,
+ frame2,
+ other_element,
+ ...
+]
+```
+
+If not ordered correctly, the editor will still function, but the elements may not be rendered and clipped correctly. Further, the renderer relies on this ordering for performance optimizations.