Nutrient Web SDK

v0.0.0-dev

ReferenceNutrientViewerOptionsSELECTION_OUTLINE_PADDING

Function SELECTION_OUTLINE_PADDING

Receives a NutrientViewer.Geometry.Size object with the current viewport dimensions (width and height) and returns the padding that will be added between an annotation and the selection outline in px.

The default implementation will increase the outline padding on small devices.

Function
Type Signature
SELECTION_OUTLINE_PADDING(viewportSize: NutrientViewer.Geometry.Size): number