-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: 5237 Cleanup #5606
chore: 5237 Cleanup #5606
Conversation
The latest updates on your projects. Learn more about Argos notifications ↗︎ Waiting for the first build to start… |
@@ -54,7 +40,7 @@ export const draw = async function (text: string, id: string, _version: string, | |||
|
|||
data4Layout.type = diag.type; | |||
data4Layout.layoutAlgorithm = layout; | |||
data4Layout.direction = DIR; | |||
data4Layout.direction = getDirection(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though this makes it good for clean code, sometimes it makes it hard to debug without the variable.
* @param el | ||
* @param data | ||
*/ | ||
export function insertElementsForSize(el, data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe leave this one until the big PR for v11 is ready for merge.
@@ -538,16 +520,7 @@ export const insertEdge = function (elem, edge, clusterDb, diagramType, startNod | |||
lineData.splice(-1, 0, midPoint); | |||
} | |||
// This is the accessor function we talked about above | |||
let curve; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave these settings as is for future use and reference
@@ -556,7 +529,6 @@ export const insertEdge = function (elem, edge, clusterDb, diagramType, startNod | |||
} | |||
|
|||
const { x, y } = getLineFunctionsWithOffset(edge); | |||
// const lineFunction = edge.curve ? line().x(x).y(y).curve(curve) : roundedCornersLine; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave the lineFunction for now, we can remove it in the big PR.
Still working out some issue around it.
@@ -592,11 +564,6 @@ export const insertEdge = function (elem, edge, clusterDb, diagramType, startNod | |||
if (edge.look === 'handdrawn') { | |||
const rc = rough.svg(elem); | |||
Object.assign([], lineData); | |||
// const svgPathNode = rc.path(lineFunction(ld.splice(0, ld.length-1)), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave the lineFunction for now, we can remove it in the big PR.
Still working out some issue around it.
@@ -606,7 +573,6 @@ export const insertEdge = function (elem, edge, clusterDb, diagramType, startNod | |||
|
|||
svgPath = select(svgPathNode) | |||
.select('path') | |||
// .attr('d', lineFunction(lineData)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave the lineFunction for now, we can remove it in the big PR.
Still working out some issue around it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good to go, expect for a few place we identified that should be retained as commented out code as we are still fixing some issues around it.
…anup * 5237-unified-layout-common-renderer: (36 commits) 5237 New default width for flowchart edges #5237 Fix for rough styling of regular states and dividers in state diagrams chore: Remove "sideEffects: false" Added test for divider alignment Remove logs chore: Fix eslint errors chore: eslint autofix chore: Cleanup tsconfig chore: Fix lint Apply suggestions from code review chore: Remove extra words from cspell chore: Log granular rebuild times fix: Message wrap fix: Message wrap chore: Use `??` instead of `||` chore: Organise imports chore: Remove unused variables chore: Remove cross-env from eslint chore: Cleanup rules chore: Fix eslint issues ...
…anup * 5237-unified-layout-common-renderer: #5237 Fix fir subgraphs with elk #5237 Fix for diamond intersections with ELK, tweak #5237 Fix for diamond intersections with ELK fix for note with a composite state #5237 Handling of subgraphs using elk #5237 Handling of subgraphs using elk Fix fro direction in layout data
e63b5a7
into
5237-unified-layout-common-renderer
No description provided.