Skip to content

Commit

Permalink
refactor(runtime): adapt polyline and cubic edges (#5458)
Browse files Browse the repository at this point in the history
* refactor(registry): register built-in edges

* fix(utils): fix getEllipseIntersectPoint get NaN result

* refactor(runtime): adapt more edges

* fix: fix cr issues
  • Loading branch information
Aarebecca authored Feb 22, 2024
1 parent b364dba commit 50bb0cc
Show file tree
Hide file tree
Showing 32 changed files with 755 additions and 720 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const controllerLayoutDagre: StaticTestCase = async ({ canvas, animation
edge: {
style: {
type: 'polyline',
// TODO polyline
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ export const controllerLayoutDendrogram: StaticTestCase = async ({ canvas, anima
animation,
},
node: {
style: { width: 20, height: 20, labelText: (data) => data.id, labelPosition: 'right', labelMaxWidth: 200 },
style: {
width: 20,
height: 20,
labelText: (data) => data.id,
labelPosition: 'right',
labelMaxWidth: 200,
},
},
edge: {
style: {
type: 'polyline',
type: 'cubic-horizontal',
},
},
zoom: 0.5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const controllerLayoutIndented: StaticTestCase = async ({ canvas, animati
edge: {
style: {
type: 'polyline',
// TODO polyline
},
},
zoom: 0.5,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 50bb0cc

Please sign in to comment.