DiagramCanvasDrawable
Renders a diagram on a MAUI GraphicsView using Microsoft.Maui.Graphics.
Implementiert: IDrawable
Eigenschaften
EditorState : DiagramEditorState
Editor state for drawing link creation feedback.
Model : ICompositionModel
The diagram model to render.
RubberBandRect : RectF?
Current rubber band selection rectangle (screen coordinates), or null when not selecting.
SelectedElement : DiagramElement
Get the DiagramElement for the selected node.
SelectedNodeKey : string
Key of currently selected node, or null.
TouchHitPadding : float
Extra touch padding for node hit-testing on touch devices.
Methoden
ClearCompatibleSockets()
Clear compatible sockets highlighting.
DiagramToScreen(float, float) : PointF
Transform a diagram point to screen coordinates.
DrawRubberBandSelection(ICanvas, RectF)
Draws a rubber band selection rectangle in screen coordinates.
GetContentBounds() : RectF?
Gets the bounding rectangle of all nodes in diagram coordinates.
HitTestNode(float, float) : string
Hit-test a screen point against nodes in the diagram.
HitTestNodesInRect(RectF) : List<string>
Finds all node keys within a screen-space rectangle.
HitTestSocket(float, float) : SocketKey
Hit-test a screen point against sockets in the diagram.
ScreenToDiagram(float, float) : PointF
Transform a screen point to diagram coordinates.
SetCompatibleSockets(IEnumerable<SocketKey>)
Set the compatible sockets for highlighting during link creation.