frames.mdx 474 B

12345678910111213141516171819202122
  1. # Frames
  2. ## Ordering
  3. Frames should be ordered where frame children come first, followed by the frame element itself:
  4. ```
  5. [
  6. other_element,
  7. frame1_child1,
  8. frame1_child2,
  9. frame1,
  10. other_element,
  11. frame2_child1,
  12. frame2_child2,
  13. frame2,
  14. other_element,
  15. ...
  16. ]
  17. ```
  18. If not oredered 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.