Skip to content

[BrushGraph 6/7] Add Graph Canvas and core UI#65

Open
maxmmitchell wants to merge 2 commits intobrush-graph/5-complex-fieldsfrom
brush-graph/6-canvas
Open

[BrushGraph 6/7] Add Graph Canvas and core UI#65
maxmmitchell wants to merge 2 commits intobrush-graph/5-complex-fieldsfrom
brush-graph/6-canvas

Conversation

@maxmmitchell
Copy link
Copy Markdown

@maxmmitchell maxmmitchell commented Apr 27, 2026

Description

This is the sixth PR in the Brush Graph stack. It introduces the actual canvas where nodes are drawn, connected, and panned/zoomed.

Details

  • Custom pan and zoom calculations in GraphCameraController.
  • Algorithms to draw smooth Bezier curves between node ports on the canvas.
  • Inspector pane UI for edges and nodes.
  • Test canvas UI to allow for drawing in a pane while adjusting nodes.

Dependencies

  • Target: brush-graph/5-complex-fields

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a node-based graph editor for brush configuration, including a zoomable canvas, automatic layout logic, and inspectors for nodes and edges. It also provides preview components and a test drawing surface. The review feedback recommends replacing magic strings and numbers with constants, removing an unused import, and addressing potential stack overflow risks in recursive layout functions.

Comment thread app/src/main/java/com/example/cahier/developer/brushgraph/ui/GraphCanvas.kt Outdated
Comment thread app/src/main/java/com/example/cahier/developer/brushgraph/ui/GraphLayout.kt Outdated
@maxmmitchell maxmmitchell force-pushed the brush-graph/6-canvas branch from bcf7952 to 53d3ee1 Compare April 27, 2026 13:22
@maxmmitchell maxmmitchell force-pushed the brush-graph/5-complex-fields branch 2 times, most recently from d78bbc2 to 7d9bfce Compare April 28, 2026 06:59
@maxmmitchell maxmmitchell force-pushed the brush-graph/6-canvas branch from 53d3ee1 to 5bc8df0 Compare April 28, 2026 07:26
@maxmmitchell maxmmitchell force-pushed the brush-graph/6-canvas branch from 5bc8df0 to 261113b Compare April 28, 2026 07:37
@maxmmitchell maxmmitchell marked this pull request as ready for review April 28, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant