@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/README.md +151 -0
- package/dist/fig-editor.css +1 -1
- package/dist/fig-lab.css +1 -1
- package/dist/fig-lab.js +14 -14
- package/dist/fig.js +1 -1
- package/fig-editor.css +0 -1
- package/fig-lab.css +115 -17
- package/fig-lab.js +1475 -1
- package/fig.js +3 -12
- package/package.json +1 -1
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
|
-
//
|
|
10068
|
-
//
|
|
10069
|
-
|
|
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