Search
DiagramBase.drawAnchorPoint Event
See Also
 





Raised when an anchor point must be custom-drawn.

Namespace: MindFusion.Diagramming
File: DiagramBase.js

 Syntax

JavaScript  Copy Code
diagram.drawAnchorPoint.addEventListener(onDrawAnchorPoint);

 Event Data

Event handlers receive a DrawAnchorPointEventArgs instance that contains data about this event.

 Remarks

Set the markStyle property of AnchorPoint to Custom to get this event raised.

 Example

JavaScript  Copy Code
function onDrawAnchorPoint(sender, e)
{
    var p = e.location;
    var ctx = e.context;
    ctx.fillStyle = "red";
    ctx.fillRect(p.x - 1, p.y - 1, 2, 2);
}

 See Also