Skip to main content
Constants (type values):
ConstantValueDescription
Geometry.TYPE_STRAIGHT_LINEstraightLineStraight line
Geometry.TYPE_CIRCLEGEO_circleCircle
Geometry.TYPE_ELLIPSEGEO_ellipseEllipse
Geometry.TYPE_POLYGONGEO_polygonPolygon
Fields:
FieldTypeDescription
penColornumberPen color: 0x00 (black), 0x9D (dark gray), 0xC9 (light gray), 0xFE (white)
penTypenumberPen type: 10 technical pen, 1 pressure pen, 11 marker pen, 14 calligraphy
penWidthnumberPen width (minimum 100)
typestringGeometry type. See the table above
pointsPoint[]Polygon points (pixel coordinates)
ellipseCenterPointPoint | nullEllipse center point (pixel coordinates)
ellipseMajorAxisRadiusnumberEllipse major axis radius (pixels)
ellipseMinorAxisRadiusnumberEllipse minor axis radius (pixels)
ellipseAnglenumberEllipse rotation angle (radians)