this.minx = minx; this.miny = miny; this.maxx = maxx; this.maxy = maxy; this._xscale = this.width / (this.maxx - this.minx); this._xoffset = - this.minx * this._xscale; this._yscale = this.height / (this.maxy - this.miny); this._yoffset = - this.miny * this._yscale; //flip y this._yoffset = this.height - this._yoffset; this._yscale = -this._yscale; return x * this._xscale + this._xoffset; return y * this._yscale + this._yoffset; return (x - this._xoffset) / this._xscale; return (y - this._yoffset) / this._yscale; //Debug.write("moveTo(" + x + ", " + y + ")"); //Debug.write("moveTo2(" + x * this._xscale + this._xoffset+ ", " + y * this._yscale + this._yoffset + ")"); super.moveTo(x * this._xscale + this._xoffset, y * this._yscale + this._yoffset); //Debug.write("lineTo(" + x + ", " + y + ")"); //Debug.write("lineto2(" + x * this._xscale + this._xoffset+ ", " + y * this._yscale + this._yoffset + ")"); super.lineTo(x * this._xscale + this._xoffset, y * this._yscale + this._yoffset); super.quadraticCurveTo(cx * _xscale + _xoffset, cy * _yscale + _yoffset, x * _xscale + _xoffset, y * _yscale + _yoffset); this.beginPath(); this.moveTo(startx, starty); this.lineTo(endx, starty); this.lineTo(endx, endy); this.lineTo(startx, endy); this.lineTo(startx, starty); this.closePath(); this.beginPath(); this.moveTo(this.minx, y); this.lineTo(this.maxx, y); this.endPath(); this.strokeStyle = 0xff0000; this.lineWidth = 1; this.stroke(); 0 ) { for( i = 0; i < pHArray.length; i++ ) { if( pHArray[i] >= pHMin && pHArray[i] <= pHMax ) { lHArray.push(pHArray[i]); lVArray.push(pVArray[i]); lTArray.push(pTArray[i]); lLArray.push(pLArray[i]); } } } } else { for( i = 0; i < pVArray.length; i++ ) { if( pVArray[i] >= pVMin && pVArray[i] <= pVMax ) { lVArray.push(pVArray[i]); lHArray.push(pHArray[i]); lTArray.push(pTArray[i]); lLArray.push(pLArray[i]); } } } var lReturnArray = new Array( lHArray, lVArray, lTArray, lLArray ); return lReturnArray; ]]> super.clear(); _viewspool.reclaimAll();