@elementor/editor-controls 4.4.0-1143 → 4.4.0-1144
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/dist/index.mjs
CHANGED
|
@@ -7983,7 +7983,11 @@ var getGradientValue = (value) => {
|
|
|
7983
7983
|
({ value: { color, offset } }) => offset ? `${color.value} ${offset.value ?? 0}%` : `${color.value}`
|
|
7984
7984
|
)?.join(",");
|
|
7985
7985
|
if (gradient.type.value === "linear") {
|
|
7986
|
-
|
|
7986
|
+
const angle = gradient.angle?.value;
|
|
7987
|
+
if (typeof angle !== "number") {
|
|
7988
|
+
return `linear-gradient(${stops})`;
|
|
7989
|
+
}
|
|
7990
|
+
return `linear-gradient(${angle}deg, ${stops})`;
|
|
7987
7991
|
}
|
|
7988
7992
|
return `radial-gradient(circle at ${gradient.positions.value}, ${stops})`;
|
|
7989
7993
|
};
|