@rogieking/figui3 8.0.2 → 8.1.0

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/fig.js CHANGED
@@ -10064,18 +10064,9 @@ class FigInputGradient extends HTMLElement {
10064
10064
  .join(", ");
10065
10065
  const interp = gradientInterpolationClause(gradient);
10066
10066
  const interpolation = interp ? ` ${interp}` : "";
10067
- // Inline stop editor always previews L→R so handles match the track axis,
10068
- // regardless of linear angle / radial / angular type.
10069
- if (this.#editMode === "true") {
10070
- return `linear-gradient(to right${interpolation}, ${stops})`;
10071
- }
10072
- if (gradient.type === "radial") {
10073
- return `radial-gradient(circle at ${gradient.centerX}% ${gradient.centerY}%${interpolation}, ${stops})`;
10074
- }
10075
- if (gradient.type === "angular") {
10076
- return `conic-gradient(from ${gradient.angle}deg${interpolation}, ${stops})`;
10077
- }
10078
- return `linear-gradient(${gradient.angle}deg${interpolation}, ${stops})`;
10067
+ // Compact swatch always previews L→R, regardless of linear angle /
10068
+ // radial / angular type (stop handles also use this axis when editing).
10069
+ return `linear-gradient(to right${interpolation}, ${stops})`;
10079
10070
  }
10080
10071
 
10081
10072
  #stopColorCSS(stop) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "8.0.2",
3
+ "version": "8.1.0",
4
4
  "description": "A lightweight web components library for building Figma plugin and widget UIs with native look and feel",
5
5
  "author": "Rogie King",
6
6
  "license": "MIT",