File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ const minimapLine = computed(() => {
212212 return {
213213 fullSet,
214214 selectionSet,
215+ sliced,
215216 firstPlot: points[props .valueStart ],
216217 lastPlot: points[props .valueEnd - 1 ]
217218 }
@@ -320,6 +321,14 @@ function trapMouse(trap) {
320321 style =" opacity : 1 "
321322 />
322323
324+ <rect
325+ :x =" selectionRectCoordinates.x"
326+ :width =" selectionRectCoordinates.width < 0 ? 0 : selectionRectCoordinates.width"
327+ :height =" svgMinimap.height"
328+ :y =" 0"
329+ :fill =" borderColor"
330+ />
331+
323332 <rect
324333 :x =" selectionRectCoordinates.x"
325334 :width =" selectionRectCoordinates.width < 0 ? 0 : selectionRectCoordinates.width"
@@ -331,6 +340,22 @@ function trapMouse(trap) {
331340 }"
332341 />
333342
343+ <path
344+ :d =" `M${minimapLine.sliced[0].x},${svgMinimap.height} ${minimapLine.selectionSet} L${minimapLine.sliced.at(-1).x},${svgMinimap.height}Z`"
345+ :fill =" `url(#${uid})`"
346+ stroke =" none"
347+ style =" opacity : 1 "
348+ />
349+
350+ <path
351+ :d =" `M ${minimapLine.selectionSet}`"
352+ :stroke =" `${minimapLineColor}`"
353+ fill =" transparent"
354+ stroke-width =" 2"
355+ stroke-linecap =" round"
356+ stroke-linejoin =" round"
357+ />
358+
334359 <circle
335360 :cx =" minimapLine.firstPlot.x"
336361 :cy =" minimapLine.firstPlot.y"
@@ -339,7 +364,7 @@ function trapMouse(trap) {
339364 r =" 3"
340365 :fill =" minimapLineColor"
341366 />
342-
367+
343368 <circle
344369 :cx =" minimapLine.lastPlot.x"
345370 :cy =" minimapLine.lastPlot.y"
You can’t perform that action at this time.
0 commit comments