figmatk 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# FigmaTK — Figma Toolkit
|
|
1
|
+
# FigmaTK — Figma Toolkit
|
|
2
2
|
|
|
3
3
|
Swiss-army knife CLI for Figma Slides `.deck` files. Parse, inspect, modify, and rebuild presentations programmatically — no Figma API required.
|
|
4
4
|
|
|
@@ -67,7 +67,7 @@ Or add manually in Claude Desktop → Settings → Developer → Edit Config:
|
|
|
67
67
|
}
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
Available MCP tools: `figmatk_inspect`, `figmatk_list_text`, `figmatk_list_overrides`, `figmatk_update_text`, `figmatk_insert_image`, `figmatk_clone_slide`, `figmatk_remove_slide`, `figmatk_roundtrip`.
|
|
70
|
+
Available MCP tools: `figmatk_create_deck`, `figmatk_inspect`, `figmatk_list_text`, `figmatk_list_overrides`, `figmatk_update_text`, `figmatk_insert_image`, `figmatk_clone_slide`, `figmatk_remove_slide`, `figmatk_roundtrip`.
|
|
71
71
|
|
|
72
72
|
## Programmatic API
|
|
73
73
|
|
package/lib/api.mjs
CHANGED
|
@@ -821,7 +821,8 @@ export class Slide {
|
|
|
821
821
|
name: opts.name ?? 'Text',
|
|
822
822
|
visible: true,
|
|
823
823
|
opacity: 1,
|
|
824
|
-
size: { x: opts.width ?? 1200, y: 50 },
|
|
824
|
+
size: { x: opts.width ?? 1200, y: opts.height ?? 50 },
|
|
825
|
+
textAutoResize: opts.height ? 'NONE' : 'HEIGHT',
|
|
825
826
|
transform: {
|
|
826
827
|
m00: 1, m01: 0, m02: opts.x ?? 128,
|
|
827
828
|
m10: 0, m11: 1, m12: opts.y ?? 128,
|
package/package.json
CHANGED