Skip to content

Annotations Blazor

HyperPath.Viewer.Annotations.Blazor is a Razor Class Library that wraps the @hyperpath/annotations package for Blazor WebAssembly consumers.

Basic Usage

Register services:

builder.Services.AddAnnotationLayer();

Render the layer inside a position: relative container that overlays the image viewer.

Control the layer from C# with methods such as SetModeAsync, UndoAsync, and GetAnnotationsAsync.

Publishing

Push a tag matching annotations-blazor-v* and the GitHub Actions workflow publishes the package automatically.