new PolygonAnnot()
A polygon annotation
Methods
-
<static> create(doc, pos)
-
Creates a new Polygon annotation in the specified document.
Parameters:
Name Type Description doc
SDFDoc A document to which the Polygon annotation is added.
pos
rect A rectangle specifying the Polygon annotation's bounds in default user space units.
Returns:
A promise that resolves to a newly created blank Polygon annotation.
- Type
- PolygonAnnot
-
<static> createFromAnnot(ann)
-
creates a Polygon annotation and initializes it using given annotation object.
Parameters:
Name Type Description ann
Annot Annot object used to initialize the Polygon annotation.
Returns:
A promise that resolves to an object of type: "PolygonAnnot"
- Type
- PolygonAnnot
-
<static> createFromObj(d)
-
creates a Polygon annotation and initializes it using given Cos/SDF object.
Parameters:
Name Type Description d
Obj The Cos/SDF object to initialze the annotation with.
Returns:
A promise that resolves to an object of type: "PolygonAnnot"
- Type
- PolygonAnnot