Commit Graph
2 Commits
Author SHA1 Message Date
bflatastic 47d37167d8 M7: Dev Mode: import lines for connected instances in generated layer trees
The code of a layer tree (a frame, a component, an instance of a component
that isn't connected) leads with the import lines of every connected
instance written into it: one line per import path, in path order, each
name once, per language. Collected as the snippets are written, so only
instances the code reaches bring one; a connected layer's own code is its
import and snippet as before.
2026-10-13 13:38:01 +07:00
BFlat 13ab3f150f M6: code connect: link components to real code (#122)
Components (or sets) can be linked per language to a real code component (import path, name, and a template whose {prop} and {prop ? "a" : "b"} placeholders take the instance's property values, escaped per language). Dev Mode's Inspect panel shows the connected snippet with its import for instances, a Connect to code editor with live preview, and read-only plugins. Links export to and import from figcraft.connect.json.
2026-10-11 14:02:37 +07:00