LitDev Extension API
LDFigures
![](images/IntellisenseObject.png)
Some additional shapes like callouts, arcs and arrows.
AddArc
![]() |
AddBlockArrow
![]() |
AddCallout
![]() |
AddLineArrow
![]() |
AddRegularPolygon
![]() |
AddArc(width,height,startAngle,endAngle,thickness)
![](images/IntellisenseMethod.png)
Add an arc shape.
width The width of the shape.
height The height of the shape.
startAngle The starting angle in degrees.
endAngle The ending angle in degrees.
thickness The thickness of the arc in pixels.
returns The shape name.
AddBlockArrow(width,height,thickness,arrowAngle,direction)
![](images/IntellisenseMethod.png)
Add an block arrow shape.
width The width of the shape.
height The height of the shape.
thickness The relative thickness of the arrow shaft, e.g. 0.25.
arrowAngle The arrow head angle in degrees.
direction The direction of the arrow: "Up", "Down", "Left" or "Right".
returns The shape name.
AddCallout(width,height,text,style,anchor)
![](images/IntellisenseMethod.png)
Add a callout shape.
width The width of the shape.
height The height of the shape.
text The callout text.
style The callout style: "Cloud", "Oval", "Rectangle" or "RoundedRectangle".
anchor Position of callout anchor relative to the callout size (e.g. "X=0;Y=1.25;")
returns The shape name.
AddLineArrow(width,height,size,bend,startArrow,endArrow,startCorner)
![](images/IntellisenseMethod.png)
Add a line arrow shape.
width The width of the shape.
height The height of the shape.
size The size of the arrow head in pixels.
bend The arrow bend amount (e.g. 0 is straight, 0.5 is smoothly bending).
startArrow The start arrow type: "None", "Arrow", "Open", "Oval" or "Stealth".
endArrow The end arrow type: "None", "Arrow", "Open", "Oval" or "Stealth".
startCorner The start corner position: "BottomLeft", "BottomRight", "TopLeft" or "TopRight". The arrow will terminate in the opposite corner.
returns The shape name.
AddRegularPolygon(width,height,corners,radius)
![](images/IntellisenseMethod.png)
Add a regular polygon shape.
width The width of the shape.
height The height of the shape.
corners The number of corners.
radius A relative radius for star shapes (e.g. 1 for pentagon, 0.5 for 5 pointed star).
returns The shape name.