diff --git a/frontend/src/lib/components/AnnotationLayer.svelte b/frontend/src/lib/components/AnnotationLayer.svelte index ec1c29c0..65e87b42 100644 --- a/frontend/src/lib/components/AnnotationLayer.svelte +++ b/frontend/src/lib/components/AnnotationLayer.svelte @@ -1,5 +1,6 @@ + +
{ + if (e.key === 'Enter' || e.key === ' ') onclick(); + }} + onpointerenter={onpointerenter} + onpointerleave={onpointerleave} + style={shapeStyle} +> + {#if !dimmed && blockNumber} +
+ {blockNumber} +
+ {/if} +
+ + diff --git a/frontend/src/lib/types.ts b/frontend/src/lib/types.ts index 7ddfd95c..adb2aec3 100644 --- a/frontend/src/lib/types.ts +++ b/frontend/src/lib/types.ts @@ -49,4 +49,5 @@ export type Annotation = { color: string; createdAt: string; fileHash?: string | null; + polygon?: [number, number][] | null; };