Comparing version 1.12.3 to 1.12.4
@@ -11,4 +11,4 @@ define(function (require) { | ||
elementId: "output", | ||
additionalTemplate: "basic", | ||
mirrorEntitiesOnBottom: true, | ||
additionalTemplate: "lazy", | ||
mirrorEntitiesOnBottom: false, | ||
includeSource: false | ||
@@ -15,0 +15,0 @@ }, |
@@ -95,3 +95,3 @@ /* istanbul ignore else */ | ||
version: "1.12.3", | ||
version: "1.12.4", | ||
@@ -98,0 +98,0 @@ getAllowedValues: function() { |
{ | ||
"name": "mscgenjs", | ||
"version": "1.12.3", | ||
"version": "1.12.4", | ||
"description": "Implementation of MscGen in JavaScript", | ||
@@ -11,13 +11,13 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chai": "4.1.1", | ||
"chai": "4.1.2", | ||
"chai-xml": "0.3.1", | ||
"dependency-cruiser": "2.3.2", | ||
"eslint": "4.5.0", | ||
"dependency-cruiser": "2.7.2", | ||
"eslint": "4.11.0", | ||
"istanbul": "0.4.5", | ||
"js-makedepend": "2.2.6", | ||
"jsdom": "11.2.0", | ||
"js-makedepend": "2.4.0", | ||
"jsdom": "11.3.0", | ||
"lodash-cli": "4.17.4", | ||
"mocha": "3.5.0", | ||
"npm-check-updates": "2.12.1", | ||
"nsp": "2.7.0", | ||
"mocha": "4.0.1", | ||
"npm-check-updates": "2.13.0", | ||
"nsp": "3.1.0", | ||
"pegjs": "0.10.0", | ||
@@ -32,4 +32,2 @@ "plato": "1.7.0" | ||
"npm-check-updates": "ncu --upgrade", | ||
"postversion": "git push && git push --tags && npm publish", | ||
"preversion": "test `git branch | grep \"^* [a-zA-Z]\" | cut -c 3-` = 'master'", | ||
"nsp": "nsp check", | ||
@@ -36,0 +34,0 @@ "plato": "plato -r -d platoreports -x \"parser|test|lib|platoreports|node_modules|coverage|indexAMD|csstemplates\" ./", |
@@ -816,4 +816,11 @@ /* istanbul ignore else */ | ||
function determineArcYTo(pArc){ | ||
return pArc.arcskip ? pArc.arcskip * gChart.arcRowHeight : 0; | ||
function determineArcYTo(pArcSkip, pArcRowHeight, pArcGradient){ | ||
var lRetval = pArcGradient; | ||
if (pArcSkip) { | ||
lRetval = | ||
(pArcSkip * pArcRowHeight) + | ||
(Math.sign(pArcSkip) * constants.LINE_WIDTH * 2); | ||
} | ||
return lRetval; | ||
} | ||
@@ -836,4 +843,3 @@ | ||
var lDoubleLine = [":>", "::", "<:>"].indexOf(pArc.kind) > -1; | ||
var lYTo = determineArcYTo(pArc, pY); | ||
var lArcGradient = (lYTo === 0) ? gChart.arcGradient : lYTo; | ||
var lYTo = determineArcYTo(pArc.arcskip, gChart.arcRowHeight, gChart.arcGradient); | ||
@@ -844,3 +850,3 @@ pTo = renderutensils.determineArcXTo(pArc.kind, pFrom, pTo); | ||
lGroup.appendChild( | ||
createSelfRefArc(pArc.kind, pFrom, lYTo, lDoubleLine, pArc.linecolor, pY) | ||
createSelfRefArc(pArc.kind, pFrom, lYTo - gChart.arcGradient, lDoubleLine, pArc.linecolor, pY) | ||
); | ||
@@ -870,3 +876,3 @@ | ||
var lLine = svgelementfactory.createLine( | ||
{xFrom: pFrom, yFrom: pY, xTo: pTo, yTo: pY + lArcGradient}, | ||
{xFrom: pFrom, yFrom: pY, xTo: pTo, yTo: pY + lYTo}, | ||
{ | ||
@@ -888,3 +894,3 @@ class: lClass, | ||
pArc, | ||
{x: pFrom, y: pY, width: pTo - pFrom}, | ||
{x: pFrom, y: pY + (lYTo / 2), width: pTo - pFrom}, | ||
_.defaults( | ||
@@ -891,0 +897,0 @@ _.cloneDeep(pOptions), |
@@ -31,2 +31,3 @@ /* istanbul ignore else */ | ||
} | ||
/* istanbul ignore if */ | ||
if ("wobbly" === pRenderMagic){ | ||
@@ -33,0 +34,0 @@ return wobbly; |
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
19504
926389
108
1