mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
Type: the point/area type widget converts between them; area type made by dragging resizes
Discord feedback: type in a frame dragged with the Type tool could not be resized or switched between area and point type the way the reference app allows. - The Selection tool shows the type widget beside a single selected point or area type object: a small circle outside the middle of its bounding box's right side, hollow on point type and filled on area type (vectorcraft_tools::typewidget, drawn by the canvas from the same geometry). Hovering it shows the arrow with a type badge; its clicks neither drag nor deselect, and a double-click runs type.convertToAreaType / type.convertToPointType (the Type menu's commands), keeping the text and its styles in place, one undo step, reachable over MCP. - Resizing area type made by dragging already works on main (#252): the bounding box resizes the type area and the text reflows. A regression test now covers the reported flow. - docs/mcp.md and ROADMAP.md describe the widget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
852848f4ed
commit
940285dd9e
8 files changed
+281
-7
No files matched your search
+13
@@ -2077,6 +2077,19 @@ undo step. Object › Transform › Scale, the Scale tool and the Transform pane
|
||||
{"name":"run_command","arguments":{"command":"text.reshapeArea","params":{"id":42,"anchors":[[0,2]],"dx":40,"dy":60}}}
|
||||
```
|
||||
|
||||
## Converting between point type and area type
|
||||
|
||||
With the Selection tool, a single selected point or area type object shows the type widget: a small circle beside
|
||||
the middle of its bounding box's right side, hollow on point type and filled on area type. Double-clicking it runs
|
||||
`type.convertToAreaType` (point type gets a frame around its text, which keeps its place and doesn't rewrap) or
|
||||
`type.convertToPointType` (soft line wraps become line breaks), the same commands as the Type menu's Convert To Area
|
||||
Type and Convert To Point Type. Either keeps the text and its styles and is one undo step; `ids` picks the objects
|
||||
(default: the selection).
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"type.convertToAreaType","params":{"ids":[42]}}}
|
||||
```
|
||||
|
||||
## Moving and flipping type on a path
|
||||
|
||||
Type on a path flows between a start and an end bracket, stored as fractions of its path's length.
|
||||
|
||||
Reference in new issue
Block a user