RIPPING out arbor.js code

This commit is contained in:
Peter Cottle 2012-09-16 10:23:03 -07:00
parent f5fcd32815
commit 51ab487003
20 changed files with 1 additions and 3355 deletions

View file

@ -3,9 +3,6 @@
*/
var events = _.clone(Backbone.Events);
var sys = null;
var graphicsEffects = {};
var gitEngine = null;
var gitVisuals = null;
@ -44,46 +41,3 @@ $(document).ready(function(){
$('#commandTextField').focus();
});
/**
* Extend the Arbiter classes below with my own custom functionality.
*/
Node.prototype.draw = function(ctx, pt) {
this.drawCircleNode(ctx, pt);
};
Node.prototype.drawCircleNode = function(ctx, pt) {
ctx.strokeStyle = graphics.nodeEdge;
ctx.lineWidth = graphics.nodeStrokeWidth;
ctx.fillStyle = graphics.nodeFill;
var radius = graphics.nodeRadius;
ctx.beginPath();
ctx.arc(pt.x, pt.y, radius, 0, Math.PI*2, true);
ctx.closePath();
ctx.stroke();
ctx.fill();
};
/**
* Edge
*/
Edge.prototype.draw = function(ctx, pt1, pt2) {
this.drawLine(ctx, pt1, pt2);
};
Edge.prototype.drawLine = function(ctx, pt1, pt2, opacityPercent) {
var color = new Color(graphics.edgeStroke);
color.a = color.a * (opacityPercent === undefined ? 1 : opacityPercent);
ctx.lineWidth = graphics.edgeWidth + 1;
ctx.strokeStyle = color.toRGBA();
ctx.fillStyle = null;
ctx.beginPath();
ctx.moveTo(pt1.x, pt1.y);
ctx.lineTo(pt2.x, pt2.y);
ctx.stroke();
};