Skip to content

johandb/svg-drawing-tool

Repository files navigation

svg-drawing-tool

Draw SVG shapes with Angular 7

The SVG Drawing Tool is a web based tool to draw different kind of shapes like line, circle, rectangle, square, text and images.

Installation

Clone the project or download the zip file in a folder on your system. Change to the installation folder and do

npm install

How it Works

Select a shape from the shape menu (line, circle) and click somewhere in the graphical space of the svg. Hold down the mouse and drag the shape to match its size. If you want to move a shape click on the shape and move to the new location.

If drawing PolyGon select the point by mouse click. When finished select the Pointer tool from the tools menu.

In the properties menu you can select the stroke color and width. Also you can sit the fill color for the shape.

Click on the clear button to erase all shapes on the canvas.

TODO

  1. Implement property inspector for each shape i.e. line, circle, rectangle etc.
  2. Save svg to disk
  3. Apply property settings to style sheets.
  4. Resize components
  5. Group shapes

Below is a screenshot how the app looks.

Screenshot