Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic :hover and :focus states (Read 186 times)
Ryan G.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 19th, 2026
:hover and :focus states
May 19th, 2026 at 10:22am
Print Post  
Hi,

We are looking into moving from JS property styling to the CSS-based styling added in the latest version of MindFusion. Am I correct that there is no support for :hover and :focus states (latter for selected nodes)?

Cheers,
Ryan
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3492
Joined: Oct 19th, 2005
Re: :hover and :focus states
Reply #1 - May 19th, 2026 at 1:04pm
Print Post  
Right, the CSS variables are 1:1 mapping to what you'd be able to set via node.style properties. The only selection-related options are --selected-stroke and --selected-brush, whose values are returned by selectedStroke and selectedBrush properties of the Style class. We'll have in mind separate Style objects for hover and selected stated for next release.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ryan G.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 19th, 2026
Re: :hover and :focus states
Reply #2 - May 21st, 2026 at 9:44am
Print Post  
Hi Slavcho,

FYI, we've just found version 4.9 no longer works with Node.js. It throws an error when dereferencing 'document' in the Style.fromCss method. Locking the package version to 4.8 works, but we cannot send cssClass values from server.

Cheers,
Ryan
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3492
Joined: Oct 19th, 2005
Re: :hover and :focus states
Reply #3 - May 22nd, 2026 at 6:01am
Print Post  
Thanks for letting us know, this build should fix it -

https://www.npmjs.com/package/@mindfusion/diagramming/v/4.9.1

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ryan G.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 19th, 2026
Re: :hover and :focus states
Reply #4 - May 25th, 2026 at 9:34am
Print Post  
That's working now, thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint