Skip to content

Commit

Permalink
-Direction of movement branches off of the HQ staff when present
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Spinelli committed Apr 8, 2019
1 parent f151f93 commit 1b45ce7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
15 changes: 13 additions & 2 deletions web/js/src/armyc2/c2sd/renderer/SinglePointRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3869,9 +3869,20 @@ return{
pt2 = null,
pt3 = null;

var affiliation = symbolID.charAt(1);
var length = 40;
if(SymbolUtilities.isNBC(symbolID))
length = Math.round(bounds.getHeight() / 2);
else if((SymbolUtilities.isHQ(symbolID)) &&
(affiliation===("F") ||
affiliation===("A") ||
affiliation===("D") ||
affiliation===("M") ||
affiliation===("J") ||
affiliation===("K") ||
affiliation===("N") ||
affiliation===("L"))===false)
length = Math.round(bounds.getHeight() * 0.7);
else
length = bounds.getHeight();

Expand All @@ -3885,9 +3896,9 @@ return{

pt1 = new SO.Point(x1,y1);
var scheme = symbolID.charAt(0);
if(SymbolUtilities.isNBC(symbolID) ||
if(SymbolUtilities.isHQ(symbolID)==false && (SymbolUtilities.isNBC(symbolID) ||
(scheme === 'S' && symbolID.charAt(2)===("G")) ||
scheme === 'O' || scheme === 'E')
scheme === 'O' || scheme === 'E'))
{
y1 = bounds.getY() + bounds.getHeight();
pt1 = new SO.Point(x1,y1);
Expand Down
15 changes: 13 additions & 2 deletions web/js/src/armyc2/c2sd/renderer/SinglePointSVGRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3520,9 +3520,20 @@ return{
pt2 = null,
pt3 = null;

var affiliation = symbolID.charAt(1);
var length = 40;
if(SymbolUtilities.isNBC(symbolID))
length = Math.round(bounds.getHeight() / 2);
else if((SymbolUtilities.isHQ(symbolID)) &&
(affiliation===("F") ||
affiliation===("A") ||
affiliation===("D") ||
affiliation===("M") ||
affiliation===("J") ||
affiliation===("K") ||
affiliation===("N") ||
affiliation===("L"))===false)
length = Math.round(bounds.getHeight() * 0.7);
else
length = bounds.getHeight();

Expand All @@ -3536,9 +3547,9 @@ return{

pt1 = new SO.Point(x1,y1);
var scheme = symbolID.charAt(0);
if(SymbolUtilities.isNBC(symbolID) ||
if(SymbolUtilities.isHQ(symbolID)==false && (SymbolUtilities.isNBC(symbolID) ||
(scheme === 'S' && symbolID.charAt(2)===("G")) ||
scheme === 'O' || scheme === 'E')
scheme === 'O' || scheme === 'E'))
{
y1 = bounds.getY() + bounds.getHeight();
pt1 = new SO.Point(x1,y1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ armyc2.c2sd.renderer.utilities = armyc2.c2sd.renderer.utilities || {};
/** @class */
armyc2.c2sd.renderer.utilities.RendererSettings = (function () {

var _Version = "0.3.36";
var _Version = "0.3.37";
//outline approach. none, filled rectangle, outline (default),
//outline quick (outline will not exceed 1 pixels).
var _SymbologyStandard = 0,
Expand Down

0 comments on commit 1b45ce7

Please sign in to comment.