diff --git a/src/settings/constants/Point.js b/src/settings/constants/Point.js index d592f35..55b7c97 100644 --- a/src/settings/constants/Point.js +++ b/src/settings/constants/Point.js @@ -21,3 +21,12 @@ export const POINT_PROPERTIES_FONT_SIZE = 16 * @default 2 */ export const POINT_COLLISION_RADIUS = 12 + +/** + * Retrograde symbol + * @constant + * @type {String} + * @property choices M for Px symbol or N for R symbol + * @default "M" + */ +export const POINT_RETROGRADE_SYMBOL_CODE = "M" diff --git a/src/utils/SVGUtils.js b/src/utils/SVGUtils.js index 05e9b2e..5e35b62 100644 --- a/src/utils/SVGUtils.js +++ b/src/utils/SVGUtils.js @@ -1,3 +1,5 @@ +import { POINT_RETROGRADE_SYMBOL_CODE } from '../settings/constants/Point.js'; + /** * @class * @classdesc SVG utility class @@ -90,7 +92,7 @@ class SVGUtils { static SYMBOL_MC_CODE = "d"; static SYMBOL_IC_CODE = "e"; - static SYMBOL_RETROGRADE_CODE = "M" + static SYMBOL_RETROGRADE_CODE = POINT_RETROGRADE_SYMBOL_CODE; static SYMBOL_CONJUNCTION_CODE = "!"; static SYMBOL_OPPOSITION_CODE = '"'; @@ -679,5 +681,5 @@ class SVGUtils { export { SVGUtils as - default + default }