Annotation types overview for Apryse WebViewer

There are a number of WebViewer annotation types, including cloud, polygon, free hand, and stamp, among others.

To determine annotation types, programmatically, you may need to review a mix of annotation properties. Most can be distinguished using instanceof to check its object type, but, for those that share the same type, like cloud and polygon which both use the type polygon, you'll need to go one step further and review an additional property.

For those that share the same type, additional properties are used, as follows:

TypeProperties
Arc measurementannotation instanceof window.Core.Annotations.ArcAnnotation && annotation.IT === 'ArcDimension'
Free handannotation instanceof window.Core.Annotations.FreeHandAnnotation && annotation.ToolName === "AnnotationCreateFreeHand"
Free hand highlightannotation instanceof window.Core.Annotations.FreeHandAnnotation && annotation.ToolName === "AnnotationCreateFreeHandHighlight"
Ellipse areaannotation instanceof window.Core.Annotations.EllipseAnnotation && annotation.IT === 'EllipseDimension'
Cloudannotation instanceof window.Core.Annotations.PolygonAnnotation && annotation.Style === 'cloudy'
Areaannotation instanceof window.Core.Annotations.PolygonAnnotation && annotation.IT === "PolygonDimension"
Tickannotation instanceof window.Core.Annotations.StampAnnotation && annotation.stampText === "Accepted"
Cross annotation instanceof window.Core.Annotations.StampAnnotation && annotation.stampText === "Rejected"
Dotannotation instanceof window.Core.Annotations.StampAnnotation && annotation.stampText === "Dot"

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales