Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Small Nodes and Text on High Resolution Screen (Read 970 times)
alukes
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Jul 1st, 2011
Small Nodes and Text on High Resolution Screen
Mar 29th, 2019 at 10:45pm
Print Post  
Is it possible to determine the screen resolution and adjust the size of nodes and text to compensate for different screen resolutions?

Thanks
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Small Nodes and Text on High Resolution Screen
Reply #1 - Apr 1st, 2019 at 6:55am
Print Post  
Hi,

The screen resolution is available natively in JavaScript via the window.screen object. The width/height values represent the absolute scree size, while availWidth/availHeight give you the available space (excluding toolbars' sizes, etc.). To account for mobile devices' screen sizes, you may need to multiply by window.devicePixelRatio.

To change the apparent sizes of nodes, you can adjust the diagram's zoom level by setting diagram.setZoomFactor.

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