{#if $active_tool === "crop" && measured} handle_crop("start", detail)} on:crop_continue={({ detail }) => handle_crop("continue", detail)} on:crop_end={({ detail }) => handle_crop("stop", detail)} /> {/if}