src/components/marker/marker.helper.js
function _computeMarkerId(highlight, transform, { maxZoom }) {
    const mMax = maxZoom / 4;
    const lMax = maxZoom / 2;
    const size = _getMarkerSize(transform, mMax, lMax);
    const highlighted = highlight ? HIGHLIGHTED : "";
    const markerKey = _markerKeyBuilder(size, highlighted);

    return MARKERS[markerKey];
}
function _computeMarkerId(highlight, transform, { maxZoom }) {
    const mMax = maxZoom / 4;
    const lMax = maxZoom / 2;
    const size = _getMarkerSize(transform, mMax, lMax);
    const highlighted = highlight ? HIGHLIGHTED : "";
    const markerKey = _markerKeyBuilder(size, highlighted);

    return MARKERS[markerKey];
}
function _computeMarkerId ( highlight , transform , { maxZoom } ) { const mMax = maxZoom / 4 ; const lMax = maxZoom / 2 ; const size = _getMarkerSize ( transform , mMax , lMax ) ; const highlighted = highlight ? HIGHLIGHTED : "" ; const markerKey = _markerKeyBuilder ( size , highlighted ) ; return MARKERS [ markerKey ] ; }
This function holds logic to retrieve the appropriate marker id that reflects the input
parameters, markers can vary with highlight and transform value.
@param {boolean} highlight - tells us whether or not some element (link or node) is highlighted.
@param {number} transform - the delta zoom value to calculate resize transformations.
@param {Object} config - the graph config object.
@returns {string} the id of the result marker.
@memberof Marker/helper
This function holds logic to retrieve the appropriate marker id that reflects the input parameters markers can vary with highlight and transform value .