issues with 1.9.7rc1

Gustavo Ferreira's Avatar

Gustavo Ferreira

03 Jun, 2013 11:14 AM

hello NodeBox world,

I've recently upgraded to Mac OSX 10.8 and installed the experimental build (1.9.7rc1).

Everything works as expected, with two small exceptions:

  1. the canvas cannot be scrolled unless I have a mouse (without one, the scrollbars disappear)
  2. the linecap and linejoin hacks (using the native nsBezierPath) don’t work anymore:

    path._nsBezierPath.setLineCapStyle_(style)
    path._nsBezierPath.setLineCapStyle_(style)

Any idea about how to fix these issues?

Thanks in advance, Gustavo.

  1. Support Staff 1 Posted by Frederik De Ble... on 04 Jun, 2013 03:07 PM

    Frederik De Bleser's Avatar

    Hey Gustavo,

    About the canvas scrolling: that's correct (and annoying!). I've added a GitHub issue that tracks this, and I'll fix it for an upcoming release.

    About the linecap / linejoin hack: you no longer need the hack. capstyle and joinstyle are now context attributes, just like fill or stroke. Here's an example:

    nofill()
    stroke(0)
    strokewidth(5)
    
    autoclosepath(False)
    capstyle(SQUARE) # BUTT, ROUND or SQUARE
    joinstyle(ROUND) # MITER, ROUND or BEVEL
    
    beginpath()
    moveto(50, 100)
    lineto(100, 150)
    lineto(50, 230)
    endpath()
    

    Best,

    F

  2. Frederik De Bleser closed this discussion on 04 Jun, 2013 03:07 PM.

  3. Gustavo Ferreira / Hipertipo re-opened this discussion on 07 Jun, 2013 08:16 AM

  4. 2 Posted by Gustavo Ferreir... on 07 Jun, 2013 08:16 AM

    Gustavo Ferreira / Hipertipo's Avatar

    thanks, it works great.

     I'm calling these commands from an external file, so I'm using integers
     instead of keywords -- for ex `ctx.capstyle(2)` to get
     `capstyle(SQUARE)`.

     also, I've discovered that if you resize the NodeBox windows (for
     example make the code pane narrower), the scroll bars will briefly
     reappear. and if you're fast enough, it is possible to grab them and
     scroll the canvas. :)

     thanks for all your work on NodeBox. cheers, Gustavo.

     On Tue, 04 Jun 2013 11:07:52 -0400, "Frederik De Bleser"
     <[email blocked]> wrote:

  5. Support Staff 3 Posted by Frederik De Ble... on 07 Jun, 2013 10:04 AM

    Frederik De Bleser's Avatar

    and if you're fast enough, it is possible to grab them and scroll the canvas. :)

    Seems like the perfect workaround :-)

    Best,

    F

  6. Frederik De Bleser closed this discussion on 07 Jun, 2013 10:04 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

24 Mar, 2019 08:45 PM
24 Mar, 2019 12:07 AM
23 Mar, 2019 09:00 PM
22 Mar, 2019 06:37 AM
17 Mar, 2019 10:13 PM