Skip to content

zoom feature #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
Simple directive to draw polygons over image using canvas

### Demo:
https://sedrakpc.github.io/
this demo does not support zoom feature: https://sedrakpc.github.io/

### Preview:
![alt tag](https://cloud.githubusercontent.com/assets/6464002/22788262/182d8192-ef01-11e6-8da0-903c1ddfa70f.png)

### Usage:

```html
<div canvas-area-draw points="points"
active="activePolygon" image-url="imageSrc"
enabled="enabled" palette="colorArray"></div>
<div canvas-area-draw points="points" double-click="DoubleClickEvent()"
original-size="originalSize" active="0"
image-url="imagePath" style="width: 500px;height: 500px;"
editable="false" palette="Palette"></div>

```
### Parameters

Expand All @@ -22,5 +24,7 @@ _Param name_ | _Description_
points | where to store drawing polygons coordinates
active | current active polygon
image-url | background image url
enabled | is drawing enabled
editable | is drawing enabled
double-click | double click event on image
original-size | size of images when points are made
colorArray | color array with hex colors for every polygon layer, if color not specified for layer will be generated randomly
Loading