@elementor/editor-editing-panel 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
|
@@ -8408,6 +8408,9 @@ var ItemLabelGradient = ({ value }) => {
|
|
|
8408
8408
|
var getGradientValue = (gradient) => {
|
|
8409
8409
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
8410
8410
|
if (gradient.type === "linear") {
|
|
8411
|
+
if (gradient.angle === null || gradient.angle === void 0) {
|
|
8412
|
+
return `linear-gradient(${stops})`;
|
|
8413
|
+
}
|
|
8411
8414
|
return `linear-gradient(${gradient.angle}deg, ${stops})`;
|
|
8412
8415
|
}
|
|
8413
8416
|
return `radial-gradient(circle at ${gradient.positions}, ${stops})`;
|