Pular para o conteúdo
Kitbay
SkillOficial

stateflow-apply-layout

NOASSERTIONAtualizado em 19 de nov. de 20261.366Estrelas no GitHub

A MathWorks skill from the Simulink Agentic Toolkit that tidies Stateflow diagrams.

O que a skill ensina

A MathWorks skill from the Simulink Agentic Toolkit that tidies Stateflow diagrams. It is meant for charts left with overlapping states, transitions or junctions after edits through the Stateflow API, or when a user asks to clean up a chart, subchart, box or function. The agent finds the right subviewers, skips table-type charts and locked ones, and calls MathWorks' autolayout function either for a full rearrangement or incrementally, placing only new objects and keeping deliberate positions. Layout style and direction can be set. It then compares positions to make sure the call ran and tells the user the model has unsaved changes. Simulink block layout is left to the toolkit's model editing tool.

O que faz

  • Rearrange a Stateflow chart automatically
  • Place only newly added states and transitions
  • Choose layout style and direction