Search
Events.drawAnchorPoint Property
See Also
 





Raised when an anchor point must be custom-drawn.

Namespace: MindFusion.Diagramming
File: Events.js

 Syntax

JavaScript  Copy Code

get drawAnchorPoint() {}
set drawAnchorPoint(value) {}

 Property Value

String

A string containing the event name.

 Remarks

Set the markStyle property of AnchorPoint to Custom to get this event raised. Handlers receive a DrawAnchorPointEventArgs instance as argument.

 Example

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

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