Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
b4oshany committed Mar 20, 2017
0 parents commit 75deb5c
Show file tree
Hide file tree
Showing 30 changed files with 1,733 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bower_components
5 changes: 5 additions & 0 deletions README.md
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/
35 changes: 35 additions & 0 deletions css/fab-annotate.css
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 {
}
16 changes: 16 additions & 0 deletions css/materialize.min.css

Large diffs are not rendered by default.

428 changes: 428 additions & 0 deletions font/material-design-icons/LICENSE.txt

Large diffs are not rendered by default.

Binary file not shown.
769 changes: 769 additions & 0 deletions font/material-design-icons/Material-Design-Icons.svg
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 added font/roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Light.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Light.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Light.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.woff2
Binary file not shown.
39 changes: 39 additions & 0 deletions index.html
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>
Loading

0 comments on commit 75deb5c

Please sign in to comment.