From 5c1bbfbbdc22021bb69cc37d39760560c825a87b Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Tue, 17 Sep 2019 17:02:34 -0400 Subject: [PATCH] Add support for reversing secondary intercardinal directions on points --- modules/actions/reverse.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/actions/reverse.js b/modules/actions/reverse.js index f7e4fe9ad..39e9427f1 100644 --- a/modules/actions/reverse.js +++ b/modules/actions/reverse.js @@ -55,13 +55,21 @@ export function actionReverse(entityID, options) { var compassReplacements = { N: 'S', + NNE: 'SSW', NE: 'SW', + ENE: 'WSW', E: 'W', + ESE: 'WNW', SE: 'NW', + SSW: 'NNW', S: 'N', + SSW: 'NNE', SW: 'NE', + WSW: 'ENE', W: 'E', - NW: 'SE' + WNW: 'ESE', + NW: 'SE', + NNW: 'SSE' };