AnnotationManager
Annotation Types
Customize
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:
Type | Properties |
---|---|
Arc measurement | annotation instanceof window.Core.Annotations.ArcAnnotation && annotation.IT === 'ArcDimension' |
Free hand | annotation instanceof window.Core.Annotations.FreeHandAnnotation && annotation.ToolName === "AnnotationCreateFreeHand" |
Free hand highlight | annotation instanceof window.Core.Annotations.FreeHandAnnotation && annotation.ToolName === "AnnotationCreateFreeHandHighlight" |
Ellipse area | annotation instanceof window.Core.Annotations.EllipseAnnotation && annotation.IT === 'EllipseDimension' |
Cloud | annotation instanceof window.Core.Annotations.PolygonAnnotation && annotation.Style === 'cloudy' |
Area | annotation instanceof window.Core.Annotations.PolygonAnnotation && annotation.IT === "PolygonDimension" |
Tick | annotation instanceof window.Core.Annotations.StampAnnotation && annotation.stampText === "Accepted" |
Cross | annotation instanceof window.Core.Annotations.StampAnnotation && annotation.stampText === "Rejected" |
Dot | annotation instanceof window.Core.Annotations.StampAnnotation && annotation.stampText === "Dot" |
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales