mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-08 04:38:38 -05:00
feat(app): increase padding on graph lod
This commit is contained in:
@@ -18,7 +18,7 @@ interface NodeRenderParams {
|
||||
}
|
||||
|
||||
// Helper to check if node is in viewport
|
||||
const isInViewport = (node: any, ctx: CanvasRenderingContext2D, margin: number = 0): boolean => {
|
||||
const isInViewport = (node: any, ctx: CanvasRenderingContext2D, margin: number = 80): boolean => {
|
||||
const transform = ctx.getTransform()
|
||||
const canvasWidth = ctx.canvas.width
|
||||
const canvasHeight = ctx.canvas.height
|
||||
|
||||
Reference in New Issue
Block a user