Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
currentRadius += maxYOffset + 1 * totalAnnotationHeight;
});
}
var innerRadius = baseRadius - annotationHeight / 2; //tnr: -annotationHeight/2 because features are drawn from the center
if (selectionLayer.selected) {
var {
startAngle,
endAngle,
totalAngle
} = getRangeAngles(selectionLayer, sequenceLength);
var sector = Sector({
center: [0, 0], //the center is always 0,0 for our annotations :) we rotate later!
r: baseRadius - annotationHeight / 2,
R: currentRadius,
start: 0,
end: totalAngle
});
annotationsSvgs.push(
circularViewData.features.forEach(function(annotation, index) {
var {
startAngle,
endAngle,
totalAngle
} = getRangeAngles(annotation, sequenceLength);
if (annotation.yOffset > maxYOffset) {
maxYOffset = annotation.yOffset;
}
annotationsSvgs.push(
function Caret({
caretPosition,
sequenceLength,
innerRadius,
outerRadius
}) {
var caretWidth = .01;
var {
startAngle,
endAngle
} = getRangeAngles({
start: caretPosition,
end: caretPosition
}, sequenceLength);
return (