Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change Brush of Anchor Point (Read 438 times)
SAN
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Feb 29th, 2024
Change Brush of Anchor Point
Aug 27th, 2024 at 11:04am
Print Post  
Hey, I wanted to know if it's possible to change the Fill of Anchors? . Changing the brush style doesn't work
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Change Brush of Anchor Point
Reply #1 - Aug 27th, 2024 at 12:49pm
Print Post  
Hi,

At this time that can be done only by setting MarkStyle.Custom and handling drawAnchorPoint event:

Code
Select All
diagram.addEventListener(
    Events.drawAnchorPoint,
    (s, args) =>
    {
        args.context.fillStyle = "red";
        var p = args.location;
        args.context.fillRect(
            p.x - 1, p.y - 1, 2, 2);
    }); 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint