drawsvg iconDRAWSVG user's guide
PreviousNextContentsPDFdrawsvg home

4.12. Editors

Editors available for the current selection are displayed in the floating menu.

All changes can be canceled and replayed with undo and redo action.

Each editor is characterized by:

This list is not exhaustive, see also showcase tool for interactive demonstrations.

Table 4.2. Editors

EditorSelectionCardinalityDescription

Edit size

Image rect40.png
Image, rectangle, svgone

Edit position and size of the element by two control points.

See also draw rectangle showcase for an interactive demonstration of how to draw a rectangle.

Edit circle

Image circle40.png
CircleoneEdit center and radius of the circle by two control points.

Edit ellipse

Image ellipse40.png
EllipseoneEdit center and radius of the ellipse by two control points.

Edit map

Image map40.png
Google map imageone

Edit the map location. Display the Google map dialog panel for searching a place and browsing the map.

See also draw map showcase for an interactive demonstration of how to insert and edit a Google Map in your SVG drawing..

Edit line

Image taskEditLine.png
Lineone

Move each point of the line.

See also draw line showcase for an interactive demonstration of how to draw a line.

Insert points

Image taskInsertPoint.png
Polyline, polygonone

Insert point.

A blue dot is drawn in the middle of each segment. Move the points to be inserted.

Delete points

Image taskInsertPoint.png
Polyline, polygonone

Delete point.

A red dot is drawn on each point. Click the points to be deleted.

Move points

Image taskMovePoints.png
Polyline, polygonone

Move each point of the selected element.

Edit circle arc

Image taskEditCircleArc.png
Circle arcone

Edit the geometry of a circle arc by three control points.

A circle arc is a path with an elliptical arc curve commands

Edit path

Image taskEditPath.png
Pathone

Move each point and tangent point of the path.

Filter path

Image taskPathFilter.png
Pathone

Simplifies a straight line by applying a geometric filter. Smooth the geometry by turning it into bicubic.

Display the svg filter path panel near the curve.

Close path

Image close.png
Pathone

Close a path. Add a closepath command to the path.

Edit text

Image text.gif
Textone

Edit text.

Image text-editor.png

This function interacts directly with the drawn text. Click on the text to insert characters by typing on the keyboard. Use the icons to move cursor or delete characters.

See also draw simple text , multiline text , text editor showcases for an interactive demonstration of how to draw and edit a text.

Edit textPath offset

Image taskTextPathOffset.png
TextPathone

Edit the offset attribute of a textPath .

Display the svg textPath offset panel near the text.

See also drawing text on a path showcase for an interactive demonstration.

Translate xy

Image move.gif
Circle, ellipse, polyline, polygon, rectangle, path, image, svg, text, tspan, usemany

Translate xy coordinates of elements.

This editor does not set the transform attribute.

Transform

Image transform.gif
all except tspan and textPathmany

Apply a transform matrix to elements.

Image transform.png

The transformation matrix is defined using eight control points and four half moons rotation.

Copy

Image copy.gif
Circle, ellipse, polyline, polygon, rectangle, path, image, svg, text, tspan, usemany

Duplicate elements.

Load image file

Image loadImage64Editor.png
Imageone

Load an image file, then encode it's content as a dataURI to set the href attribute of the image with the image file load dialog panel.

Load image URL

Image imageEncodeEditor.png
Imageone

Load the HTTP URL referenced by the image, then encode it's content as a dataURI to set the href attribute of the image with the image url load dialog panel.

Load svg

Image iconuploads.jpg
svgone

Set the content of the included svg by loading a svg document from a file, a HTTP URL or from the FreeSVG gallery.

The editor uses the same dialog than open document .

Add textPath

Image taskTextPathAdd.png
Pathone

Add a textPath on the selected path.

See also drawing text on a path showcase for an interactive demonstration.

Edit properties

Image properties.gif
allone Edit properties of the selected element with the properties dialog panel.

Select group

Image arrow-up-left3.png
allmanySelect parent group.

Group elements

Image group-elements.png
allmany

Create a group and move selected items inside the group.

You can assign style properties to the group. Rendering a member of the group is made with the values of style properties set on the element or its group. To force the rendering with the group's style, we must unset the properties on group elements.

Ungroup elements

Image ungroup-elements.png
gone

Delete the selected group and move all its children to the group's parent item.

Transform gradient

Image taskGradientTransform.svg
allone

Customize the gradient of the selected shape by copying or extension and transformation of it.

Image transform-gradient.png

see transform gradient svg panel

See also creating , using gradients showcases for interactive demonstrations.

Transform pattern

Image taskPatternTransform.svg
allone

Customize the pattern of the selected shape by copying or extension and transformation of it.

Image transform-pattern.png

see transform pattern svg panel

See also creating , using patterns showcases for interactive demonstrations.

Delete

Image delete.gif
allmanyDelete selection.