Zannick/logic-graph

Add an SVG parser for the regions

Open

#150 opened on Mar 9, 2024

 (0 comments) (0 reactions) (0 assignees)Rust (0 forks)auto 404
good first issuehelp wanted

Repository metrics

Stars
 (4 stars)
PR merge metrics
 (PR metrics pending)

Description

The idea would be to use something like drawio as a graphical interface instead of YAML. Everything in all the region files would have to be represented there somehow, e.g.

  • Each region is a box, each area in a box in that box, each point must be in an area's box and that's the main way we determine what spots are in what areas/regions.
  • There has to be some field for properties or freeform text. Every shape has to be named.
  • Spots are dots. Locations are different dots? Or canon locations are one dot, and all Locations are arrows pointing to the canon dot.
  • Checks are all arrows
  • Local movements are certain kinds of arrows.

If we can turn this data into the form used by the yaml, then it's a simple drop-in. But it may be better to integrate more cleanly with Compiler.py which transforms the yaml data further, and instead perform the appropriate transforms on the svg data.

Contributor guide