Skip to content

Commit

Permalink
Add Isosceles Trapezoid Shape (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon authored Nov 24, 2024
1 parent dbec45a commit 0c92078
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/src/components/GraphTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export function GraphTip() {
<div
className={`
absolute top-4 left-4
max-w-[200px]
text-xs text-gray-500/60 dark:text-gray-400/60
transition-opacity duration-1000
${isFading ? "opacity-0" : "opacity-100"}
Expand Down
8 changes: 8 additions & 0 deletions app/src/lib/graphUtilityClasses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ export const childlessShapeClasses: StylesheetCSS[] = shapes.map((shape) => ({
},
}));

childlessShapeClasses.push({
selector: ":childless.shape_iso-trapezoid",
css: {
shape: "polygon",
"shape-polygon-points": "-1 1 1 1 0.5 -1 -0.5 -1",
},
});

const arrowSuffixes = [
"triangle",
"triangle-tee",
Expand Down

0 comments on commit 0c92078

Please sign in to comment.