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
drawEllipseByCoordinates
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
ellipseUID: string
canvasCoordinates: [Point2, Point2, Point2, Point2]
options: {} = {}
dataId: string = ''
Returns void
drawHandle
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
handleGroupUID: string
handle: Point2
options: {} = {}
uniqueIndex: any
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
drawPath
Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
pathUID: string
points: Point2[] | Point2[][]
options: { closePath?: boolean; color?: string; fillColor?: string; fillOpacity?: number; lineDash?: string; lineWidth?: number; width?: number }
Returns void
drawPolyline
Draws an SVG polyline with the given points.
The
closePath
option, if true, draws a closed polyline, with the last point connected to the first.Parameters
svgDrawingHelper: SVGDrawingHelper
annotationUID: string
polylineUID: string
points: Point2[]
options: { closePath?: boolean; color?: string; fillColor?: string; fillOpacity?: number; 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
drawRedactionRect
Parameters
svgDrawingHelper: any
annotationUID: string
rectangleUID: string
start: any
end: any
options: {} = {}
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
setAttributesIfNecessary
Parameters
attributes: any
svgNode: any
Returns void
setNewAttributesIfValid
Parameters
attributes: any
svgNode: any
Returns void
Draws an SVG path with the given points.
The
closePath
option, if true, draws a closed path (last point connected to the first).