Comparing version 1.7.0 to 1.8.0
@@ -95,3 +95,3 @@ /* istanbul ignore else */ | ||
version: "1.7.0", | ||
version: "1.8.0", | ||
@@ -98,0 +98,0 @@ getAllowedValues: function() { |
{ | ||
"name": "mscgenjs", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Implementation of MscGen in JavaScript", | ||
@@ -13,9 +13,9 @@ "main": "index.js", | ||
"chai-xml": "0.3.1", | ||
"eslint": "3.13.1", | ||
"eslint": "3.15.0", | ||
"istanbul": "0.4.5", | ||
"js-makedepend": "2.2.0", | ||
"jsdom": "9.9.1", | ||
"js-makedepend": "2.2.1", | ||
"jsdom": "9.10.0", | ||
"lodash-cli": "4.17.4", | ||
"mocha": "3.2.0", | ||
"npm-check-updates": "2.8.9", | ||
"npm-check-updates": "2.10.2", | ||
"nsp": "2.6.2", | ||
@@ -22,0 +22,0 @@ "pegjs": "0.10.0", |
@@ -422,4 +422,5 @@ /* istanbul ignore else */ | ||
pRowMemory.push({ | ||
id : pCurrentId + "_lbl", | ||
layer : gChart.layer.sequence | ||
id : pCurrentId + "_lbl", | ||
tooltip : pArc.from + ' ' + pArc.kind + ' ' + pArc.to, | ||
layer : gChart.layer.sequence | ||
}); | ||
@@ -435,4 +436,5 @@ } else { // it's a regular arc | ||
pRowMemory.push({ | ||
id : pCurrentId, | ||
layer : gChart.layer.sequence | ||
id : pCurrentId, | ||
tooltip : pArc.from + ' ' + pArc.kind + ' ' + pArc.to, | ||
layer : gChart.layer.sequence | ||
}); | ||
@@ -514,11 +516,16 @@ } // / lTo or pArc.from === "*" | ||
lRowMemory.forEach(function(pRowMemoryLine){ | ||
pRowMemoryLine.layer.appendChild( | ||
fact.createUse( | ||
{ | ||
x:0, | ||
y:rowmemory.get(pRowNumber).y | ||
}, | ||
pRowMemoryLine.id | ||
) | ||
var lUse = fact.createUse( | ||
{ | ||
x:0, | ||
y:rowmemory.get(pRowNumber).y | ||
}, | ||
pRowMemoryLine.id | ||
); | ||
if (pRowMemoryLine.tooltip) { | ||
var lTitle = llfact.createElement('title'); | ||
var lText = llfact.createTextNode(pRowMemoryLine.tooltip); | ||
lTitle.appendChild(lText); | ||
lUse.appendChild(lTitle); | ||
} | ||
pRowMemoryLine.layer.appendChild(lUse); | ||
}); | ||
@@ -525,0 +532,0 @@ } |
@@ -34,2 +34,6 @@ /* istanbul ignore else */ | ||
function _createTextNode(pText) { | ||
return gDocument.createTextNode(pText); | ||
} | ||
return { | ||
@@ -75,4 +79,12 @@ /** | ||
*/ | ||
createElement: _createElement | ||
createElement: _createElement, | ||
/** | ||
* creates a textNode, initialized with the pText passed | ||
* | ||
* @param {string} pText | ||
* @return {textNode} | ||
*/ | ||
createTextNode: _createTextNode | ||
}; | ||
@@ -79,0 +91,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
866859
18648