← Về thư mục
frontend/src/islands/annot.ts
- Annotation · type · L17-L27 — type Annotation = { id?: string; annotation_id?: string; artifact_id?: string; artifact_name?: string; number?: number | string; body?: string; status?: string; x?: number; y?: number; };
- AnnotStage · type · L29-L29 — type AnnotStage = HTMLElement & { _artId?: string; _panned?: boolean };
- AnnotDraft · type · L31-L38 — type AnnotDraft = { stage: AnnotStage; art: ArtifactRow; x: number; y: number; pin: HTMLElement; pop: HTMLElement; };
- asAnnotations · function · L40-L42 — function asAnnotations(value: unknown): Annotation[]
- annotationsFor · function · L45-L47 — function annotationsFor(artifactId: string): Annotation[]
- openAnnotations · function · L50-L52 — function openAnnotations(): Annotation[]
- annotationId · function · L55-L58 — function annotationId(an: Annotation | null | undefined): string | undefined
- annotationStatus · function · L65-L71 — function annotationStatus(an: Annotation | null | undefined): string
- annotationIsHeld · function · L73-L76 — function annotationIsHeld(an: Annotation | null | undefined): boolean
- renderPins · function · L78-L101 — function renderPins(stage: AnnotStage, a: ArtifactRow): void
- closeAnnotDraft · function · L103-L113 — function closeAnnotDraft(): void
- closeAnnotPop · function · L115-L118 — function closeAnnotPop(): void
- positionPop · function · L120-L139 — function positionPop(pop: HTMLElement, layer: Element, x: number, y: number): void
- openAnnotDraft · function · L141-L204 — function openAnnotDraft(stage: AnnotStage, a: ArtifactRow, x: number, y: number): void
- saveAnnotation · function · L206-L227 — async function saveAnnotation(a: ArtifactRow, x: number, y: number, text: string): Promise
- refreshAllStages · function · L230-L243 — function refreshAllStages(): void
- openPinPop · function · L245-L301 — function openPinPop(stage: AnnotStage, a: ArtifactRow, an: Annotation): void
- updateAnnotBadge · function · L304-L347 — function updateAnnotBadge(): void
- toggleAnnotList · function · L349-L401 — function toggleAnnotList(anchor: HTMLElement): void
- deleteAnnotations · function · L403-L422 — async function deleteAnnotations(ids: Array): Promise
- loadAnnotations · function · L424-L435 — async function loadAnnotations(fid: string): Promise
- renderAnnotatableImage · function · L442-L593 — function renderAnnotatableImage(body: HTMLElement, a: ArtifactRow, url: string): void
- applyZoom · function · L466-L480 — applyZoom = (z: number): void
- zoomAt · function · L484-L498 — zoomAt = (cx: number, cy: number, nz: number): void
- zoomCenter · function · L499-L502 — zoomCenter = (nz: number): void
- ready · function · L527-L527 — ready = (): void
- mv · function · L556-L568 — mv = (ev: PointerEvent): void
- up · function · L569-L575 — up = (): void