Interactive interface for browsing global, full-resolution satellite imagery
Merge pull request #2896 from nasa-gibs/timeline-axis-svg-refactors-and-cleanup
Ed Platoab79c6348aac
diff --cc web/js/components/timeline/timeline-axis/timeline-axis.jsindex 684af2e14,8466dda22..64fd83cc2--- a/web/js/components/timeline/timeline-axis/timeline-axis.js+++ b/web/js/components/timeline/timeline-axis/timeline-axis.js@@@ -1461,36 -1451,8 +1451,36 @@@ class TimelineAxis extends Component</clipPath>{/* clip axis grid overflow */}<clipPath id="timelineBoundary">- <rect width={axisWidth} height={64} />+ <rect x={-position} y="0" width={axisWidthStr} height="64px" /></clipPath>+ {/* data line boundary and background patterns */}+ <clipPath id="dataLineBoundary">+ <rect x="0" y="0" width={`${axisWidth}px`} height="12" />+ </clipPath>+ <pattern+ id="data-line-pattern"+ x="0"+ y="0"+ width="30px"+ height="12px"+ patternUnits="userSpaceOnUse"+ patternTransform="rotate(45)"+ >+ <rect fill="rgb(0, 69, 123)" width="30px" height="12px" x="0" y="0" />+ <line stroke="#164e7a" strokeWidth="30px" y1="12" />+ </pattern>+ <pattern+ id="data-line-pattern-hidden"+ x="0"+ y="0"+ width="30px"+ height="12px"+ patternUnits="userSpaceOnUse"+ patternTransform="rotate(45)"+ >+ <rect fill="rgb(116, 116, 116)" width="30px" height="12px" x="0" y="0" />+ <line stroke="#797979" strokeWidth="30px" y1="12" />+ </pattern></defs>{shouldDisplayMatchingCoverageLine&& this.createMatchingCoverageLineDOMEl(lineCoverageOptions, transformX) }