Skip to content

Instantly share code, notes, and snippets.

@peteroupc
peteroupc / kineticjsbbox.js
Created November 15, 2012 00:59
Calculates the bounding box of a KineticJS path
/* This file is in the public domain. Peter O., 2012. http://upokecenter.dreamhosters.com
Public domain dedication: http://creativecommons.org/publicdomain/zero/1.0/legalcode */
/* NOTE: Currently supports lines only */
function RectAccum(){
this.left=0;
this.top=0;
this.right=0;
this.bottom=0;