Namespace: Tools

Tools

Contains tools for pan scrolling, text selection, annotation editing and annotation creation. You can access it as follows:

Example

WebViewer(...)
  .then(function(instance) {
    var Tools = instance.Tools;
    // Tools.SomeClass
  });

Classes

AnnotationEditTool
AnnotationSelectTool
AreaMeasurementCreateTool
ArrowCreateTool
CalloutCreateTool
CountMeasurementCreateTool
CropCreateTool
DistanceMeasurementCreateTool
EllipseCreateTool
EllipseMeasurementCreateTool
EraserTool
FileAttachmentCreateTool
FreeHandCreateTool
FreeTextCreateTool
GenericAnnotationCreateTool
LineCreateTool
MarqueeZoomTool
PageCoordinate
PanTool
PerimeterMeasurementCreateTool
PolygonCloudCreateTool
PolygonCreateTool
PolylineCreateTool
RectangleCreateTool
RectangularAreaMeasurementTool
RedactionCreateTool
RubberStampCreateTool
SignatureCreateTool
StampCreateTool
StickyCreateTool
TextAnnotationCreateTool
TextHighlightCreateTool
TextSelectTool
TextSquigglyCreateTool
TextStrikeoutCreateTool
TextTool
TextUnderlineCreateTool
Tool

Members


<static> ToolNames

Represents the names for the built-in tools
Properties:
Name Type Description
ARROW string name of the arrow line tool
CALLOUT string name of the callout tool
ELLIPSE string name of the ellipse tool
FREEHAND string name of the freehand tool
FREEHAND2 string name of the second freehand tool
FREEHAND3 string name of the third freehand tool
FREEHAND4 string name of the fourth freehand tool
FREETEXT string name of the freetext tool
LINE string name of the line tool
POLYGON string name of the polygon tool
POLYGON_CLOUD string name of the polygon cloud tool
POLYLINE string name of the polyline tool
RECTANGLE string name of the rectangle tool
DISTANCE_MEASUREMENT string name of the distance measurement tool
PERIMETER_MEASUREMENT string name of the perimeter measurement tool
AREA_MEASUREMENT string name of the area measurement tool
COUNT_MEASUREMENT string name of the count measurement tool
SIGNATURE string name of the signature tool
STAMP string name of the stamp tool
FILEATTACHMENT string name of the file attachment tool
STICKY string name of the sticky note tool
HIGHLIGHT string name of the text highlight tool
HIGHLIGHT2 string name of the second text highlight tool
HIGHLIGHT3 string name of the third text highlight tool
HIGHLIGHT4 string name of the fourth text highlight tool
SQUIGGLY string name of the text squiggly tool
STRIKEOUT string name of the text strikeout tool
UNDERLINE string name of the text underline tool
REDACTION string name of the text redaction tool
TEXT_SELECT string name of the text select tool
EDIT string name of the edit(select) tool
PAN string name of the pan tool
CROP string name of the page crop tool
MARQUEE string name of the marquee zoom tool
ERASER string name of the eraser tool