The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 1ArchiveFrom the old forum

issues with 1.9.7rc1

3 replies Last reply

  1. 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.

    Copy link
  2. NodeBox team

    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

    Copy link
  3. 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"
    tender2+d2ce0801f7bc17cc86479f9ace7cb499ddb072634@tenderapp.com wrote:

    Copy link
  4. NodeBox team

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

    Seems like the perfect workaround :-)

    Best,

    F

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply