@nnao45/figma-use 0.1.0 → 0.1.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/CHANGELOG.md +10 -0
- 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,6 +5,16 @@ 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.2] - 2026-02-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Line stroke caps for `create line` (`--start-cap`, `--end-cap`) and JSX `<Line>` (`startCap`, `endCap`)
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Line cap rendering now preserves node attachment and style when converting lines to vectors
|
|
17
|
+
|
|
8
18
|
## [0.11.1] - 2026-01-29
|
|
9
19
|
|
|
10
20
|
### Fixed
|
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:
|