Menu

Is there a way to set default node width units

Bal Simon
2017-09-23
2017-09-23
  • Bal Simon

    Bal Simon - 2017-09-23

    I'd like the node width to be set in pixels. This will let me match a node's to an image's width, which I also measure in pixels.

    Currently, Freeplane seems to prefer to show units as points, although I can manually display the pixel width through the Properties dialog.

    Is there a way to change the default units? If not, could that be something for a future release?

    Thanks.

    Bal

     
  • Dimitry Polivaev

    You can edit your template maps

     
    • Bal Simon

      Bal Simon - 2017-09-23

      I guess I'm going to need some help with this. When I go to Preferences/Environment and then look at the Standard Template File entry, it says Standard-1.6.mm. I then went to the Freeplane program folder and also to the AppData/Roaming/Freeplane/Templates folder.

      I see no template files at all. Are these for me to create? When I create a template file, how do I set the preferred units?

      Thanks, Dimitry.

      -- Bal

       
  • Luigi Kang

    Luigi Kang - 2017-09-27

    Or you can use a script that sets the node width in pixel without using the properties panel.

    String customWidth = ui.showInputDialog(node.delegate, 'Set node width (pixel)', '')
    if (customWidth?.isInteger()) {
    node.style.minNodeWidth = customWidth as int
    node.style.maxNodeWidth = customWidth as int
    }
    else
    c.statusInfo = 'Please provide an integer.'