Prep link connector (#725)

Prepration for LinkConnector replacement

- Simplifies code
- Minor perf improvement
- nits and clean up
This commit is contained in:
filtered
2025-03-09 07:43:27 +11:00
committed by GitHub
parent 5ab9d9d25c
commit 8e59fbfaa2
2 changed files with 18 additions and 31 deletions

View File

@@ -127,8 +127,8 @@ export abstract class NodeSlot implements INodeSlot {
lowQuality = false,
renderText = true,
highlight = false,
doStroke: _doStroke = false,
} = options
let { doStroke = false } = options
// Save the current fillStyle and strokeStyle
const originalFillStyle = ctx.fillStyle
@@ -141,7 +141,6 @@ export abstract class NodeSlot implements INodeSlot {
) as SlotShape
ctx.beginPath()
let doStroke = _doStroke
let doFill = true
ctx.fillStyle = this.renderingColor(colorContext)