@props(['axis' => 'x']) @php // Everything is expressed in millimetres and multiplied by the canvas scale, // exactly as the canvas itself is, so ticks stay aligned at any zoom. $horizontal = $axis === 'x'; $lengthExpr = $horizontal ? 'canvasW' : 'canvasH'; $selStart = $horizontal ? 'activeSelection.x' : 'activeSelection.y'; $selSize = $horizontal ? 'activeSelection.w' : 'activeSelection.h'; @endphp
{{-- Highlight the span the selection occupies, so its extent is readable straight off the ruler. --}}