mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-25 02:47:02 -06:00
* M6: REST import of prototypes and variables; export panel polish REST API file JSON import now brings prototyping and variables along: - interactions: on click/hover/press/drag, after delay, mouse enter/leave/down/up and key triggers; navigate, open/swap/close overlay, back, scroll to, change to, open link and set variable actions (lone unconditional blocks inlined); dissolve, smart animate, move, push and slide transitions with easing incl. custom bezier and spring; the legacy transitionNodeID - flow starting points (and the deprecated start node), overflowDirection, scrollBehavior, prototypeDevice and prototype background - the local variables response (collections, modes with the default first, values, aliases, scopes), passed as `variables` to file.open / file.import (object, JSON text or path), found next to the file (<name>.variables.json / variables.json) or embedded; boundVariables, paint and text style bindings and explicitVariableModes map onto the fields variable.bind uses - file.import appends variables, flows and prototype settings with the pages - unsupported parts (video, gamepad, conditionals, variable modes, library variables) warn Export panel: rows with a typed or preset size (2x, 512w, 512h), suffix and all five formats through the new export.update command; export.add steps up (1x, 2x @2x, ...); a preview; "Export N layers" through the new file.exportLayers (one file per setting, unique safe names) in the panel and the Export dialog; file.export takes `size`. MCP open_file/export pass the new params. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * M6: Inspect tab: properties with styles and variables, redlines on hover (#41) The Inspect tab lists the selected layer's properties for handoff: layout (size, position from the parent, rotation, opacity, radius), auto layout (direction, gap, padding, alignment), typography, fills, strokes and effects, each with the style or variable it comes from. Clicking a value copies it. With the Inspect tab open, hovering measures distances from the selection without holding Alt. New command inspect.properties returns the same groups for agents. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>