figmatk 0.2.1 → 0.2.3
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/package.json
CHANGED
|
@@ -6,7 +6,7 @@ description: >
|
|
|
6
6
|
clone or remove slides, or produce a .deck file for Figma Slides.
|
|
7
7
|
Powered by FigmaTK under the hood.
|
|
8
8
|
metadata:
|
|
9
|
-
version: "0.2.
|
|
9
|
+
version: "0.2.3"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Figma Slides Creator
|
|
@@ -176,7 +176,7 @@ slide.addTriangle(x, y, width, height, opts)
|
|
|
176
176
|
slide.addStar(x, y, width, height, opts)
|
|
177
177
|
slide.addLine(x1, y1, x2, y2, opts) // opts: color, weight
|
|
178
178
|
await slide.addImage(pathOrBuf, opts) // ⚠️ ASYNC — must use await; opts: x, y, width, height (default: full slide 1920×1080), cornerRadius, opacity
|
|
179
|
-
slide.addTable(data, opts)
|
|
179
|
+
slide.addTable(x, y, data, opts) // 2D string array; opts: width, colWidths, rowHeight
|
|
180
180
|
slide.addSVG(x, y, width, svgPathOrBuf, opts)
|
|
181
181
|
```
|
|
182
182
|
|