Shape Editor
![]()
Release 2.8.0 and above.
A plugin that can insert and edit shapes (SVG).


How to Use
Loading Plugin Files
When using the shapeEditor plugin of Synap Editor, the SEShapeManager module must be included.
<!-- ShapeEditor plugin include -->
<script src="plugins/shapeEditor/shapeEditor.min.js"></script>
<link rel="stylesheet" href="plugins/shapeEditor/shapeEditor.min.css">
<!-- SEShapeManager module include -->
<script src="externals/SEShapeManager/SEShapeManager.min.js"></script>
Adding Shape Insert and Selection Mode Buttons to the Toolbar
Using the plugin name 'shapeEditor', you can add buttons to the toolbar area or the menu area. Also, you can add 'selectionMode' for multi-selection of shapes using the mouse.
Add to Toolbar
// synapeditor.config.js
//...
'editor.toolbar': [
//...,
'selectionMode', 'shapeEditor',
//...
],
// ...
Toolbar added view
![]()
Adding Frequently Used Shapes to the Toolbar
You can place frequently used shapes on the toolbar. In the toolbar part of the config file, you can add the necessary shapes in the format "shapeEditor_shapeName" as shown below.
// synapeditor.config.js
'editor.toolbar': [
'shapeEditor', 'shapeEditor_textBox','shapeEditor_rectangle','shapeEditor_roundedRectangle','shapeEditor_oval'
],
[Applied result]

Types and Names of Available Shapes
| Icon | Name | Description |
|---|---|---|
line | Line | |
arrow | Arrow | |
doubleArrow | Double-headed arrow | |
elbowConnector | Elbow connector | |
elbowArrowConnector | Elbow arrow connector | |
elbowDoubleArrowConnector | Elbow double arrow connector | |
curvedConnector | Curved connector | |
curvedArrowConnector | Curved arrow connector | |
curvedDoubleArrowConnector | Curved double arrow connector | |
textBox | Text box | |
rectangle | Rectangle | |
roundedRectangle | Rounded rectangle | |
snip1Rectangle | Rectangle with one corner snipped | |
snip2Rectangle | Rectangle with two corners snipped | |
snip2DiagRectangle | Rectangle with diagonal corners snipped | |
snipRoundRectangle | Rectangle with one corner snipped and one rounded | |
round1Rectangle | Rectangle with one rounded corner | |
round2Rectangle | Rectangle with two rounded corners | |
round2DiagRectangle | Rectangle with diagonally rounded corners | |
oval | Oval | |
triangle | Isosceles triangle | |
rightTriangle | Right triangle | |
parallelogram | Parallelogram | |
trapezoid | Trapezoid | |
diamond | Diamond | |
pentagon | Regular pentagon | |
hexagon | Hexagon | |
heptagon | Heptagon | |
octagon | Octagon | |
decagon | Decagon | |
dodecagon | Dodecagon | |
pie | Pie | |
chord | Chord | |
teardrop | Teardrop | |
frame | Frame | |
halfFrame | Half frame | |
corner | L-shape (corner) | |
diagStripe | Diagonal stripe | |
cross | Cross | |
plaque | Plaque | |
can | Cylinder | |
cube | Cube | |
bevel | Bevel | |
donut | Donut | |
noSymbol | No symbol | |
blockArc | Block arc | |
foldedCorner | Folded corner | |
smileyFace | Smiley face | |
heart | Heart | |
lightning | Lightning | |
sun | Sun | |
moon | Moon | |
cloud | Cloud | |
arc | Arc | |
bracketPair | Bracket pair | |
bracePair | Brace pair | |
leftBracket | Left bracket | |
rightBracket | Right bracket | |
leftBrace | Left brace | |
rightBrace | Right brace | |
plus | Plus | |
minus | Minus | |
multiply | Multiply | |
division | Division | |
equal | Equal | |
notEqual | Not equal | |
rightArrow | Right arrow | |
leftArrow | Left arrow | |
upArrow | Up arrow | |
downArrow | Down arrow | |
leftRightArrow | Left/right arrow | |
upDownArrow | Up/down arrow | |
quadArrow | Quad arrow | |
leftRightUpArrow | Left/right/up arrow | |
bentArrow | Bent arrow | |
uTurnArrow | U-turn arrow | |
leftUpArrow | Left/up arrow | |
bentUpArrow | Bent up arrow | |
curvedRightArrow | Curved right arrow | |
curvedLeftArrow | Curved left arrow | |
curvedUpArrow | Curved up arrow | |
curvedDownArrow | Curved down arrow | |
stripeRightArrow | Stripe right arrow | |
notchedRightArrow | Notched right arrow | |
homePlate | Home plate | |
chevron | Chevron | |
circularArrow | Circular arrow | |
rightArrowCallout | Right arrow callout | |
downArrowCallout | Down arrow callout | |
leftArrowCallout | Left arrow callout | |
upArrowCallout | Up arrow callout | |
leftRightArrowCallout | Left/right arrow callout | |
quadArrowCallout | Quad arrow callout | |
process | Process | |
alternateProcess | Alternate process | |
decision | Decision | |
data | Data | |
predefinedProcess | Predefined process | |
internalStorage | Internal storage | |
document | Document | |
multiDocument | Multi-document | |
terminator | Terminator | |
preparation | Preparation | |
manualInput | Manual input | |
manualOperation | Manual operation | |
connector | Connector | |
offPageConnector | Off-page connector | |
card | Card | |
punchedTape | Punched tape | |
summingJunction | Summing junction | |
or | Or | |
collate | Collate | |
sort | Sort | |
extract | Extract | |
merge | Merge | |
storedData | Stored data | |
delay | Delay | |
magneticTape | Magnetic tape | |
magneticDisk | Magnetic disk | |
magneticDrum | Magnetic drum | |
display | Display | |
explosion1 | Explosion 1 | |
explosion2 | Explosion 2 | |
star4 | 4-pointed star | |
star5 | 5-pointed star | |
star6 | 6-pointed star | |
star7 | 7-pointed star | |
star8 | 8-pointed star | |
star10 | 10-pointed star | |
star12 | 12-pointed star | |
star16 | 16-pointed star | |
star24 | 24-pointed star | |
star32 | 32-pointed star | |
upRibbon | Up ribbon | |
downRibbon | Down ribbon | |
verticalScroll | Vertical scroll | |
horizontalScroll | Horizontal scroll | |
wave | Wave | |
doubleWave | Double wave | |
rectangleCallout | Rectangle callout | |
roundedRectangleCallout | Rounded rectangle callout | |
ovalCallout | Oval callout | |
cloudCallout | Cloud callout | |
borderCallout1 | Border callout 1 | |
borderCallout2 | Border callout 2 | |
borderCallout3 | Border callout 3 | |
accentCallout1 | Accent callout 1 | |
accentCallout2 | Accent callout 2 | |
accentCallout3 | Accent callout 3 | |
callout1 | Callout 1 | |
callout2 | Callout 2 | |
callout3 | Callout 3 | |
accentBorderCallout1 | Accent border callout 1 | |
accentBorderCallout2 | Accent border callout 2 | |
accentBorderCallout3 | Accent border callout 3 |