-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 75deb5c
Showing
30 changed files
with
1,733 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bower_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# fabricjs-polygon | ||
Draw polygon using mouse in fabricjs | ||
|
||
Demo URL: | ||
http://taqimustafa.com/demo/polygon/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.icon-trash { | ||
width: 24px !important; | ||
height: 24px !important; | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA70lEQVR42mNkoBAwYhNUVlLyEBUTswcy/8HEXr9+feXu3bvLcRrAxsYmoqurmwgUYFRUVPS6f//+UaDwN6g0s7yCgtvDBw82/QcaevHixdl//vz5iGIAPz+/lbu7+1FinL1161b9r1+/XkL3ArOAgICTjrZ2PQsrKwMbEDOzsIAl/v79y/D7928wvnbt2oR3796tg3kPJQyEBAXtHB0dD4I0AMOAAehMBnZ2djD9/v17BkZGRoZDBw+Gv3r9ehXWQBw1YNQAEODh5tbR0dWdyApMhSCNLLCUCDTg569fDL+B+Oq1a42fPn06hNUAcgAAgb/7Ef+L8wkAAAAASUVORK5CYII=); | ||
} | ||
|
||
.icon-edit { | ||
width: 24px !important; | ||
height: 24px !important; | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABVklEQVR42mNkIBGoaWvYMzEx/f729euTR/cePmIkRbO6tmYQIxNjHZB5BIjTv3z6LEW0AUDNwUDNjUDmBSCOAuKe////byXKAKDmEKDmJiDzChCHAvE8IDb9+/dvKkEDoJqbgcyrQBwMxMuA2PDfv38lt67e2MZIhOYWIPMaEAcC8QqQ5v///pfevHp9M0gNIwHNrUDmdSD2B+JVQKwP1FwO1LwRpo4Rh2ZQgLUhaV4DxHpQzRuQ1TJi0QyKqnYsmiuAmtejq2fEorkD6meQ5rVArAvUXAnUvA6baxmRNAcCNXdDQ9sPSXMVUPNaXGEFN0BDVwtmAyi0Qf7UIqQZwwtAQx4xQFKaBlBzDVDzKgYCgFFSRoqTX1BgN5CdeuPytesglwCT6JqbV64vI6QZbICyhmogKysryPkHgAY4EqMJ1QB1FRtGRibZ79++7Xz66Mk7Ug0AAAWgjeZ5lkmtAAAAAElFTkSuQmCC); | ||
} | ||
|
||
img.fab-hide{ | ||
display: none !important; | ||
} | ||
|
||
.fab-annotate-btn { | ||
position: absolute; | ||
width: 200px; | ||
background: rgba(0,0,0,.3); | ||
padding: 5px 10px; | ||
left: 10px; | ||
top: 10px; | ||
z-index: 10000000; | ||
color: white; | ||
font-weight: bold; | ||
border-radius: 20px; | ||
} | ||
|
||
dic.fab-canvas { | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Fabric Polygon</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" /> | ||
<!-- <link rel="stylesheet" href="css/materialize.min.css">--> | ||
<link rel="stylesheet" href="css/fab-annotate.css"> | ||
</head> | ||
<style type="text/css"> | ||
* { | ||
font-family: "Roboto", sans-serif; | ||
font-weight: 100; | ||
} | ||
</style> | ||
|
||
<body style="overflow:hidden;"> | ||
<div class="section no-pad-bot no-pad-top"> | ||
<img class="fab-annotate" src="http://fabricjs.com/assets/jail_cell_bars.png" /> | ||
</div> | ||
|
||
<div data-toggle="popover" | ||
data-trigger="focus" | ||
title="Dismissible popover" | ||
id="fab-input-field" | ||
data-html="true" | ||
data-content=""> | ||
* | ||
</div> | ||
|
||
<script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script> | ||
<script type="text/ecmascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> | ||
<script type="text/javascript" src="js/fabric.min.js"></script> | ||
<script type="text/javascript" src="js/fab-annotate.js"></script> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.