@nnao45/figma-use 0.1.1 → 0.1.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/CHANGELOG.md +11 -8
- package/LICENSE +0 -1
- package/SKILL.md +14 -0
- package/dist/cli/index.js +252 -250
- package/package.json +6 -1
- package/packages/cli/src/render/icon.ts +66 -7
- package/packages/cli/src/render/tree.ts +20 -0
- package/packages/plugin/src/main.ts +79 -9
- package/packages/plugin/src/rpc.ts +213 -13
package/CHANGELOG.md
CHANGED
|
@@ -5,20 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [0.1.
|
|
8
|
+
## [0.1.4] - 2026-02-03
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Icon create/import no longer depends on HTMLRewriter (works in Bun/Node)
|
|
13
|
+
|
|
14
|
+
## [0.1.2] - 2026-02-03
|
|
9
15
|
|
|
10
16
|
### Added
|
|
11
17
|
|
|
12
|
-
-
|
|
13
|
-
- **Image create E2E** — local file image creation test using `assets/anya.jpg`.
|
|
14
|
-
- **Font list limit** — `font list` now supports `--limit` for safer JSON output.
|
|
18
|
+
- Line stroke caps for `create line` (`--start-cap`, `--end-cap`) and JSX `<Line>` (`startCap`, `endCap`)
|
|
15
19
|
|
|
16
20
|
### Fixed
|
|
17
21
|
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
- **E2E isolation** — each suite now uses an isolated test page to prevent cross-suite interference.
|
|
22
|
+
- Line cap rendering now preserves node attachment and style when converting lines to vectors
|
|
23
|
+
|
|
24
|
+
## [0.11.1] - 2026-01-29
|
|
22
25
|
|
|
23
26
|
### Fixed
|
|
24
27
|
|
package/LICENSE
CHANGED
package/SKILL.md
CHANGED
|
@@ -92,6 +92,20 @@ Use `<Instance>` to create component instances:
|
|
|
92
92
|
|
|
93
93
|
⚠️ **Always use `--x` and `--y`** to position renders. Don't stack everything at (0, 0).
|
|
94
94
|
|
|
95
|
+
## Line Caps
|
|
96
|
+
|
|
97
|
+
Line caps are supported in both command and JSX render modes.
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
bun run dist/cli/index.js create line --length 120 --stroke "#111" --start-cap arrow --end-cap circle
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```tsx
|
|
104
|
+
<Line x={0} y={0} w={120} stroke="#111" strokeWidth={2} startCap="arrow" endCap="circle" />
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Allowed values: `none`, `round`, `square`, `arrow`, `arrow-lines`, `arrow-equilateral`, `triangle`, `diamond`, `circle`.
|
|
108
|
+
|
|
95
109
|
## Icons
|
|
96
110
|
|
|
97
111
|
150k+ icons from Iconify by name:
|