feat: add generic handle that inherits colors for multiple types (#5414)

* Fixed HandleTooltipComponent to use the type instead of passed color

* Fixed handle colors to use the connected edge color

* Changed color of generic handle

* Fixed edge color when clicking for generic handles

* Updated sidebar filter to contain more than one type

* fixed gradient generalBugs
This commit is contained in:
Lucas Oliveira 2024-12-23 19:18:11 -03:00 • committed by GitHub
commit ca8f3cad62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 75 additions and 81 deletions

View file

@ -113,19 +113,13 @@ test(
const hasGradientUnlocked = await unlockedHandle?.evaluate((el) => {
const style = window.getComputedStyle(el);
return (
style.backgroundImage.includes("conic-gradient") &&
style.backgroundImage.includes("rgb(79, 70, 229)")
);
return style.backgroundColor === "rgb(79, 70, 229)";
});
const secondHasGradientUnlocked = await secondUnlockedHandle?.evaluate(
(el) => {
const style = window.getComputedStyle(el);
return (
style.backgroundImage.includes("conic-gradient") &&
style.backgroundImage.includes("rgb(79, 70, 229)")
);
return style.backgroundColor === "rgb(79, 70, 229)";
},
);
@ -137,10 +131,7 @@ test(
const fourthHasGradientUnlocked = await fourthUnlockedHandle?.evaluate(
(el) => {
const style = window.getComputedStyle(el);
return (
style.backgroundImage.includes("conic-gradient") &&
style.backgroundImage.includes("rgb(79, 70, 229)")
);
return style.backgroundColor === "rgb(79, 70, 229)";
},
);