drawing
Index
Functions
draw
Parameters
element: HTMLDivElement
fn: (svgDrawingElement: any) => any
Returns void
drawArrow
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
arrowUID: string
start: Point2
end: Point2
options: {} = {}
Returns void
drawCircle
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
circleUID: string
center: Point2
radius: number
options: {} = {}
dataId: string = ''
Returns void
drawEllipse
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
ellipseUID: string
corner1: Point2
corner2: Point2
options: {} = {}
dataId: string = ''
Returns void
drawHandles
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
handleGroupUID: string
handlePoints: Point2[]
options: {} = {}
Returns void
drawLine
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
lineUID: string
start: Point2
end: Point2
options: {} = {}
dataId: string = ''
Returns void
drawLinkedTextBox
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
textBoxUID: string
textLines: string[]
textBoxPosition: Point2
annotationAnchorPoints: Point2[]
textBox: unknown
options: {} = {}
Returns SVGRect
drawPolyline
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
polylineUID: string
points: Point2[]
options: { color?: string; connectLastToFirst?: boolean; lineDash?: string; lineWidth?: number; width?: number }
Returns void
drawRect
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
rectangleUID: string
start: Point2
end: Point2
options: {} = {}
dataId: string = ''
Returns void
drawTextBox
Draws a textBox.
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
textUID: string
textLines: string[]
The text to display.
position: Point2
The x/y position of the textbox
options: {} = {}
Options for the textBox.
Returns SVGRect
Bounding box; can be used for isPointNearTool
Draws an SVG polyline with the given points.
The
connectLastToFirst
option, if true, draws a closed polyline, with the last point connected to the first.