@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.js
CHANGED
|
@@ -7996,7 +7996,11 @@ var getGradientValue = (value) => {
|
|
|
7996
7996
|
({ value: { color, offset } }) => offset ? `${color.value} ${offset.value ?? 0}%` : `${color.value}`
|
|
7997
7997
|
)?.join(",");
|
|
7998
7998
|
if (gradient.type.value === "linear") {
|
|
7999
|
-
|
|
7999
|
+
const angle = gradient.angle?.value;
|
|
8000
|
+
if (typeof angle !== "number") {
|
|
8001
|
+
return `linear-gradient(${stops})`;
|
|
8002
|
+
}
|
|
8003
|
+
return `linear-gradient(${angle}deg, ${stops})`;
|
|
8000
8004
|
}
|
|
8001
8005
|
return `radial-gradient(circle at ${gradient.positions.value}, ${stops})`;
|
|
8002
8006
|
};
|