Shape Editor

Shape editor button icon

Release 2.8.0 and above.

A plugin that can insert and edit shapes (SVG).

Shape editor — example 1

Shape editor — example 2

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

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]

Applied result

Types and Names of Available Shapes

IconNameDescription
lineLine
arrowArrow
doubleArrowDouble-headed arrow
elbowConnectorElbow connector
elbowArrowConnectorElbow arrow connector
elbowDoubleArrowConnectorElbow double arrow connector
curvedConnectorCurved connector
curvedArrowConnectorCurved arrow connector
curvedDoubleArrowConnectorCurved double arrow connector
textBoxText box
rectangleRectangle
roundedRectangleRounded rectangle
snip1RectangleRectangle with one corner snipped
snip2RectangleRectangle with two corners snipped
snip2DiagRectangleRectangle with diagonal corners snipped
snipRoundRectangleRectangle with one corner snipped and one rounded
round1RectangleRectangle with one rounded corner
round2RectangleRectangle with two rounded corners
round2DiagRectangleRectangle with diagonally rounded corners
ovalOval
triangleIsosceles triangle
rightTriangleRight triangle
parallelogramParallelogram
trapezoidTrapezoid
diamondDiamond
pentagonRegular pentagon
hexagonHexagon
heptagonHeptagon
octagonOctagon
decagonDecagon
dodecagonDodecagon
piePie
chordChord
teardropTeardrop
frameFrame
halfFrameHalf frame
cornerL-shape (corner)
diagStripeDiagonal stripe
crossCross
plaquePlaque
canCylinder
cubeCube
bevelBevel
donutDonut
noSymbolNo symbol
blockArcBlock arc
foldedCornerFolded corner
smileyFaceSmiley face
heartHeart
lightningLightning
sunSun
moonMoon
cloudCloud
arcArc
bracketPairBracket pair
bracePairBrace pair
leftBracketLeft bracket
rightBracketRight bracket
leftBraceLeft brace
rightBraceRight brace
plusPlus
minusMinus
multiplyMultiply
divisionDivision
equalEqual
notEqualNot equal
rightArrowRight arrow
leftArrowLeft arrow
upArrowUp arrow
downArrowDown arrow
leftRightArrowLeft/right arrow
upDownArrowUp/down arrow
quadArrowQuad arrow
leftRightUpArrowLeft/right/up arrow
bentArrowBent arrow
uTurnArrowU-turn arrow
leftUpArrowLeft/up arrow
bentUpArrowBent up arrow
curvedRightArrowCurved right arrow
curvedLeftArrowCurved left arrow
curvedUpArrowCurved up arrow
curvedDownArrowCurved down arrow
stripeRightArrowStripe right arrow
notchedRightArrowNotched right arrow
homePlateHome plate
chevronChevron
circularArrowCircular arrow
rightArrowCalloutRight arrow callout
downArrowCalloutDown arrow callout
leftArrowCalloutLeft arrow callout
upArrowCalloutUp arrow callout
leftRightArrowCalloutLeft/right arrow callout
quadArrowCalloutQuad arrow callout
processProcess
alternateProcessAlternate process
decisionDecision
dataData
predefinedProcessPredefined process
internalStorageInternal storage
documentDocument
multiDocumentMulti-document
terminatorTerminator
preparationPreparation
manualInputManual input
manualOperationManual operation
connectorConnector
offPageConnectorOff-page connector
cardCard
punchedTapePunched tape
summingJunctionSumming junction
orOr
collateCollate
sortSort
extractExtract
mergeMerge
storedDataStored data
delayDelay
magneticTapeMagnetic tape
magneticDiskMagnetic disk
magneticDrumMagnetic drum
displayDisplay
explosion1Explosion 1
explosion2Explosion 2
star44-pointed star
star55-pointed star
star66-pointed star
star77-pointed star
star88-pointed star
star1010-pointed star
star1212-pointed star
star1616-pointed star
star2424-pointed star
star3232-pointed star
upRibbonUp ribbon
downRibbonDown ribbon
verticalScrollVertical scroll
horizontalScrollHorizontal scroll
waveWave
doubleWaveDouble wave
rectangleCalloutRectangle callout
roundedRectangleCalloutRounded rectangle callout
ovalCalloutOval callout
cloudCalloutCloud callout
borderCallout1Border callout 1
borderCallout2Border callout 2
borderCallout3Border callout 3
accentCallout1Accent callout 1
accentCallout2Accent callout 2
accentCallout3Accent callout 3
callout1Callout 1
callout2Callout 2
callout3Callout 3
accentBorderCallout1Accent border callout 1
accentBorderCallout2Accent border callout 2
accentBorderCallout3Accent border callout 3