@rogieking/figui3 8.9.45 → 8.9.47
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/.cursor/skills/figui3/components.md +1 -1
- package/README.md +1 -0
- package/components.css +4 -3
- package/dist/components.css +1 -1
- package/dist/fig-editor.js +2 -2
- package/dist/fig.css +1 -1
- package/dist/fig.js +5 -5
- package/fig-editor.js +21 -2
- package/fig.js +85 -13
- package/package.json +1 -1
|
@@ -590,7 +590,7 @@ toastRef.current?.showToast();
|
|
|
590
590
|
</div>
|
|
591
591
|
```
|
|
592
592
|
|
|
593
|
-
- Attrs: `type` (`default` | `minimal` | `color` | `canvas`), `tip`, `size`, `color`, `selected`, `disabled`, `drag`, `drag-axes`, `drag-snapping`
|
|
593
|
+
- Attrs: `type` (`default` | `minimal` | `color` | `canvas`), `tip`, `size`, `color`, `selected`, `disabled`, `drag`, `drag-axes`, `drag-snapping`, `precision` (percentage/pixel decimal places; default `2`, use `0` for whole numbers)
|
|
594
594
|
|
|
595
595
|
### `fig-spinner`
|
|
596
596
|
|
package/README.md
CHANGED
|
@@ -1333,6 +1333,7 @@ A draggable handle element. Positioned on a `drag-surface` container with axis c
|
|
|
1333
1333
|
| `drag-surface` | string | — | CSS selector for drag container (defaults to parent) |
|
|
1334
1334
|
| `drag-axes` | string | `"xy"` | Constrain axes: `"x"`, `"y"`, `"xy"` |
|
|
1335
1335
|
| `drag-snapping` | string | — | Snapping behavior |
|
|
1336
|
+
| `precision` | number | `2` | Decimal places for percentage values and pixel coordinates; use `0` for whole numbers |
|
|
1336
1337
|
| `type` | string | — | `"color"` for a color handle with direct picker activation |
|
|
1337
1338
|
| `tip` | string | — | `"color"`, `"add"`, or `"remove"` to show a persistent `fig-color-tip` |
|
|
1338
1339
|
| `hit-area` | string | — | Expanded interaction zone (unitless px). `"8"`, `"8 12"` (v h), or `"8 circle"` |
|
package/components.css
CHANGED
|
@@ -3509,9 +3509,10 @@ fig-header {
|
|
|
3509
3509
|
width: 100%;
|
|
3510
3510
|
}
|
|
3511
3511
|
|
|
3512
|
-
& > h1
|
|
3513
|
-
|
|
3514
|
-
|
|
3512
|
+
& > *:is(h1, h2, h3) {
|
|
3513
|
+
&:first-child {
|
|
3514
|
+
padding-left: var(--spacer-2);
|
|
3515
|
+
}
|
|
3515
3516
|
flex: 1 1 auto;
|
|
3516
3517
|
min-width: 0;
|
|
3517
3518
|
display: block;
|