Files
image-studio/editor/AGENTS.md
2026-07-03 09:34:21 +02:00

531 B

Editor State Rules

  • editor/ owns transient app/editor state types and the app store.
  • Transient state includes viewport/camera, selection, tools, active entities, and drag/session state.
  • Do not put persisted document fields here; use core/ for saved image document state.
  • Do not import React, renderer/WebGL, storage, network, or filesystem APIs.
  • The store must expose read/subscribe and command dispatch only; no public direct setters.
  • State changes must flow through commands, including viewport/camera changes.