Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diffusion/behavior-commit-graph.js
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | for (var ii = 0; ii < nodes.length; ii++) { | ||||
| var data = JX.Stratcom.getData(nodes[ii]); | var data = JX.Stratcom.getData(nodes[ii]); | ||||
| var cell = default_width; | var cell = default_width; | ||||
| var xpos = function(col) { | var xpos = function(col) { | ||||
| return (col * cell) + (cell / 2); | return (col * cell) + (cell / 2); | ||||
| }; | }; | ||||
| var h; | var h; | ||||
| if (config.autoheight) { | if (config.height) { | ||||
| h = JX.Vector.getDim(nodes[ii].parentNode).y; | h = config.height; | ||||
| } else { | } else { | ||||
| h = 34; | h = JX.Vector.getDim(nodes[ii].parentNode).y; | ||||
| } | } | ||||
| var w = cell * config.count; | var w = cell * config.count; | ||||
| var canvas = JX.$N('canvas', {width: w, height: h}); | var canvas = JX.$N('canvas', {width: w, height: h}); | ||||
| cxt = canvas.getContext('2d'); | cxt = canvas.getContext('2d'); | ||||
| cxt.lineWidth = 3; | cxt.lineWidth = 3; | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||