Jump to content

db213

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi there, I'm working on a simple web app for virtual drawing and flow-chart construction. The way drawing works, I sample control points for the curve as the mouse moves and then use Catmull-Rom splining, using the function `bezierCurveTo` for the calculated points. Visually, this works well, however the problem occurs when I then call `getBounds` or `containsPoint` on the graphics obejct that drew the curves. `containsPoint` always returns false it seems, and the rectangle returned by `getBound` is wildly off in both position and width and height. g.clear(); g.lineStyle({ width: p
×
×
  • Create New...