1.0.33-beta.56 • Published 8 years ago

angular5-canvas-drawer v1.0.33-beta.56

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

Angular5CanvasDrawer

An angular library that allows users to generate various basic shapes in an angular component as svgs on a parent svg.

This project was generated with Angular CLI version 1.3.1.

Installation

npm install angular5-canvas-drawer [--save-dev|--save-prod]

Getting started

Import DrawerLibraryModule into your app.module.ts.

Add DrawerLibraryModule.forRoot() into your imports. If you do not use forRoot() you will be unable to load critical dependancies for the library to function.

To use associated models and enum you will need to import the models from angular5-canvas-drawer in the component.ts that contains the drawer component on the html.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

To use this library in your newly generated component, add the app-drawer to your html as you would any other angular component. Once added, you will need to add inputs* to set your height, width, and viewbox for the main svg**.

*Current available inputs are widthValue (number or percentage),heightValue (number or percentage), viewWidthValue (number), viewTopValue (number), viewHeightValue (number), viewLeftValue (number)

**Currently the main component that handles the parent svg has a default value for preserveAspectRatio set to xMinYMin meet. Currently this keeps svg scaling working correctly between High Resolution (IE retina) and standard displays.

Latest Update

Date: 2018-04-06 VERSION: 1.0.33-beta.56

  • Fixing readme.md data and minor build issues

Date: 2018-04-06 VERSION: 1.0.33-beta.55

  • Added Rounded Callout tool
  • Added rename function in DataStoreService

Date: 2018-04-05 VERSION: 1.0.33-beta.54

  • Fixed mousemove issue on dblclick for PenTool

Date: 2018-04-05 VERSION: 1.0.33-beta.53

  • Added lines
  • Added micro-movements

Date: 2018-04-04 VERSION: 1.0.33-beta.52

  • Fixed naming of Grouped Objects

Date: 2018-04-04 VERSION: 1.0.33-beta.51

  • Edited text tool to no longer use a placehoder text string.

Date: 2018-04-02 VERSION: 1.0.33-beta.50

  • Even More changing default text object from 'px' to 'pt'

Date: 2018-04-02 VERSION:1.0.33-beta.49`

  • More changing default text object from 'px' to 'pt'

Date: 2018-04-02 VERSION:1.0.33-beta.48`

  • Changed default text object from 'px' to 'pt'

Date: 2018-03-29 VERSION: 1.0.33-beta.46

  • Fixed rotated multi selection

Date: 2018-03-28 VERSION: 1.0.33-beta.45

  • Added public function to find rotated point
  • Added public function to find rotated bounding box

Date: 2018-03-26 VERSION: 1.0.33-beta.44

  • Added service call to export text object as SVG text

Date: 2018-03-23 VERSION: 1.0.33-beta.43

  • Resize rotated objects

Date: 2018-03-23 VERSION: 1.0.33-beta.42

  • Minor enhancements to text tool
  • Added shift rotation and resizing
  • Added click and double click events to objects

Date: 2018-03-19 VERSION: 1.0.33-beta.39

  • Finished Text Tool
  • Added shift click and escape to the object creation tool

Date: 2018-03-19 VERSION: 1.0.33-beta.36

  • Added debug consoles for Pen Tool

Date: 2018-03-19 VERSION: 1.0.33-beta.35

  • Fixed images not loading in safari

Date: 2018-03-19 VERSION: 1.0.33-beta.34

  • Named objects
  • Got rotation working in safari

Date: 2018-03-16 VERSION: 1.0.33-beta.32

  • Added input to handle changes to a view box through a bounding box if needed

Date: 2018-03-15 VERSION: 1.0.33-beta.31

  • Exported ChangeHelperService

Date: 2018-03-15 VERSION: 1.0.33-beta.30

  • Added rotation
  • Added functionality for the corner sizers

Date: 2018-03-08 VERSION: 1.0.33-beta.29

  • Exported methods for arrow, star, triangle, callout

Date: 2018-03-08 VERSION: 1.0.33-beta.28

  • Added create methods for arrow, star, triangle, callout

Date: 2018-03-08 VERSION: 1.0.33-beta.27

  • Added star
  • Added triangle
  • Added arrow
  • Added callout

Date: 2018-03-08 VERSION: 1.0.33-beta.26

  • Added setPreviewStyles

Date: 2018-03-08 VERSION: 1.0.33-beta.25

  • Added preview component
  • Removed output and inputs on editable drawer
  • Removed elements input on drawer

Date: 2018-03-08 VERSION: 1.0.33-beta.24

  • Added Pen Tool
  • Added setUrls

Date: 2018-03-08 VERSION: 1.0.33-beta.23

  • Exporting app drawer

Date: 2018-03-07 VERSION: 1.0.33-beta.22

  • Added getObjects function to return items from an array

Date: 2018-03-07 VERSION: 1.0.33-beta.21

  • Added setVisibility

Date: 2018-03-07 VERSION: 1.0.33-beta.20

  • Got changing of nested styles work
  • Got removing of nested objects

Date: 2018-03-05 VERSION: 1.0.33-beta.19

  • Exported DrGroupedObject and createDrGroupedObject for testing in applications.

Date: 2018-03-05 VERSION: 1.0.33-beta.18

  • Changed default styles to return hex code instead of names

DATE: 2018-03-05 VERSION: 1.0.33-beta.17

  • Fixed issue with ungroup

DATE: 2018-03-05 VERSION: 1.0.33-beta.16

  • Added align tools
  • Added remove objects
  • Added setStyles
  • Removed set Style
  • Added changing z index of multiple objects

DATE: 2018-03-05 VERSION: 1.0.33-beta.14

  • Added DrGroupedObject
  • Added Object Creation Tools
  • Added resizers

DATE: 2018-03-02 VERSION: 1.0.33-beta.13

  • Added function to change style
  • Added DrStyle and DrTextStyle

DATE: 2018-03-02 VERSION: 1.0.33-beta.12

  • Got the selection box working
  • Got undo and redo working
  • Added events for selection changed and editing changed
  • Added EditableDrawerComponent

DATE: 2018-03-02 VERSION: 1.0.33-beta.11

  • Got items selected from the selection tool

DATE: 2018-03-01 VERSION: 1.0.33-beta.9

  • Compiled and included styles.sass file

DATE: 2018-03-01 VERSION: 1.0.33-beta.8

  • Added move operations for all objects
  • Added selectedIds and selectedTool to the application state
  • Got rid of viewbox and width and height on the svg's

DATE: 2018-02-28 VERSION: 1.0.33-beta.7

  • Added Undo/Redo support
  • Added DataStoreService

DATE: 2018-02-28 VERSION: 1.0.33-beta.6

  • Removed line of test code that was left in module.

DATE: 2018-02-28 VERSION: 1.0.33-beta.5

  • Added visible, name, showFill, showStroke properties to the DrObject
  • Changed from classes to interfaces for all models
  • Created factory convenience methods for all models
  • Added DrawerObjectHelperService and "getBoundingBox" public function
  • Exported DrawerObjectHelperService through the Library Module
  • Cleaned up existing object and class exports for use outside of the application.

DATE: 2018-02-27 VERSION: 1.0.33-beta.3

  • Added DrText, DrImage, DrTextAlignment

DATE: 2018-02-23 VERSION: 1.0.33-beta.2

  • Testing new beta publishing.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

For documentation on angular and how to get started using it checkout Angular's Tutorial

To better understand npm install checkout npmjs documentation

1.6.6

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.2-beta.1

5 years ago

1.5.3-beta.4

5 years ago

1.5.3-beta.5

5 years ago

1.5.3-beta.2

5 years ago

1.5.3-beta.6

5 years ago

1.5.3-beta.1

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.1-beta.1

5 years ago

1.5.1-beta.2

5 years ago

1.5.1-beta.3

5 years ago

1.5.1-beta.4

5 years ago

1.5.0

5 years ago

1.4.8

6 years ago

1.4.6

6 years ago

1.4.7

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.3.0

6 years ago

1.2.1-beta.806

6 years ago

1.2.1-beta.805

6 years ago

1.2.1-beta.804

6 years ago

1.2.1-beta.803

6 years ago

1.2.1-beta.802

6 years ago

1.2.1-beta.801

6 years ago

1.2.1-beta.800

6 years ago

1.2.1-beta.783

7 years ago

1.2.1-beta.782

7 years ago

1.2.1-beta.781

7 years ago

1.2.1-beta.780

7 years ago

1.2.1-beta.779

7 years ago

1.2.1-beta.778

7 years ago

1.2.1-beta.777

7 years ago

1.2.1-beta.37

7 years ago

1.2.1-beta.36

7 years ago

1.2.1-beta.35

7 years ago

1.2.1-beta.34

7 years ago

1.2.1-beta.33

7 years ago

1.2.1-beta.32

7 years ago

1.2.1-beta.31

7 years ago

1.2.1-beta.30

7 years ago

1.2.1-beta.29

7 years ago

1.2.1-beta.28

7 years ago

1.2.1-beta.27

7 years ago

1.2.1-beta.26

7 years ago

1.2.1-beta.25

7 years ago

1.2.1-beta.24

7 years ago

1.2.1-beta.23

7 years ago

1.2.1-beta.22

7 years ago

1.2.1-beta.21

7 years ago

1.2.1-beta.20

7 years ago

1.2.1-beta.19

7 years ago

1.2.1-beta.18

7 years ago

1.2.1-beta.17

7 years ago

1.2.1-beta.16

7 years ago

1.2.1-beta.15

7 years ago

1.2.1-beta.14

7 years ago

1.2.1-beta.13

7 years ago

1.2.1-beta.12

7 years ago

1.2.1-beta.11

7 years ago

1.2.1-beta.10

7 years ago

1.2.1-beta.9

7 years ago

1.2.1-beta.8

7 years ago

1.2.1-beta.7

7 years ago

1.2.1-beta.6

7 years ago

1.2.1-beta.5

7 years ago

1.2.1-beta.4

7 years ago

1.2.1-beta.3

7 years ago

1.2.1-beta.2

7 years ago

1.2.1-beta.1

7 years ago

1.2.1

7 years ago

1.2.0-beta.2

7 years ago

1.2.0-beta.1

7 years ago

1.2.0

7 years ago

1.1.8-beta.2

7 years ago

1.1.8-beta.1

7 years ago

1.1.8-bata.1

7 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4-beta.1

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.33-beta.75

8 years ago

1.0.33-beta.74

8 years ago

1.0.33-beta.73

8 years ago

1.0.33-beta.72

8 years ago

1.0.33-beta.71

8 years ago

1.0.33-beta.70

8 years ago

1.0.33-beta.69

8 years ago

1.0.33-beta.68

8 years ago

1.0.33-beta.67

8 years ago

1.0.33-beta.66

8 years ago

1.0.33-beta.65

8 years ago

1.0.33-beta.64

8 years ago

1.0.33-beta.63

8 years ago

1.0.33-beta.62

8 years ago

1.0.33-beta.61

8 years ago

1.0.33-beta.60

8 years ago

1.0.33-beta.59

8 years ago

1.0.33-beta.58

8 years ago

1.0.33-beta.57

8 years ago

1.0.33-beta.56

8 years ago

1.0.33-beta.55

8 years ago

1.0.33-beta.54

8 years ago

1.0.33-beta.53

8 years ago

1.0.33-beta.52

8 years ago

1.0.33-beta.51

8 years ago

1.0.33-beta.50

8 years ago

1.0.33-beta.49

8 years ago

1.0.33-beta.48

8 years ago

1.0.33-beta.47

8 years ago

1.0.33-beta.46

8 years ago

1.0.33-beta.45

8 years ago

1.0.33-beta.44

8 years ago

1.0.33-beta.43

8 years ago

1.0.33-beta.42

8 years ago

1.0.33-beta.41

8 years ago

1.0.33-beta.40

8 years ago

1.0.33-beta.39

8 years ago

1.0.33-beta.38

8 years ago

1.0.33-beta.37

8 years ago

1.0.33-beta.36

8 years ago

1.0.33-beta.35

8 years ago

1.0.33-beta.34

8 years ago

1.0.33-beta.33

8 years ago

1.0.33-beta.32

8 years ago

1.0.33-beta.31

8 years ago

1.0.33-beta.30

8 years ago

1.0.33-beta.29

8 years ago

1.0.33-beta.28

8 years ago

1.0.33-beta.27

8 years ago

1.0.33-beta.26

8 years ago

1.0.33-beta.25

8 years ago

1.0.33-beta.24

8 years ago

1.0.33-beta.23

8 years ago

1.0.33-beta.22

8 years ago

1.0.33-beta.21

8 years ago

1.0.33-beta.20

8 years ago

1.0.33-beta.19

8 years ago

1.0.33-beta.18

8 years ago

1.0.33-beta.17

8 years ago

1.0.33-beta.16

8 years ago

1.0.33-beta.15

8 years ago

1.0.33-beta.14

8 years ago

1.0.33-beta.13

8 years ago

1.0.33-beta.12

8 years ago

1.0.33-beta.11

8 years ago

1.0.33-beta.10

8 years ago

1.0.33-beta.9

8 years ago

1.0.33-beta.8

8 years ago

1.0.33-beta.7

8 years ago

1.0.33-beta.6

8 years ago

1.0.33-beta.5

8 years ago

1.0.33-beta.3

8 years ago

1.0.33-beta.2

8 years ago

1.0.33-beta.1

8 years ago

1.0.33

8 years ago

1.0.32

8 years ago

1.0.31

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago