Skip to content

Commit

Permalink
Packaged the annotator javascript file.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4oshany committed Mar 20, 2017
1 parent 75deb5c commit 6e97436
Show file tree
Hide file tree
Showing 32 changed files with 552 additions and 1,727 deletions.
32 changes: 32 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "fabric-annotator",
"authors": [
"Oshane Bailey <b4.oshany@gmail.com>"
],
"description": "Annotate images on camvas using Fabric.js",
"main": [
"dist/fab-annotator.css",
"dist/fab-annotator.js"
],
"keywords": [
"fabric",
"fabricjs",
"annotation",
"annotate",
"image"
],
"license": "MIT",
"homepage": "http://osoobe.com",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"demos"
],
"dependencies": {
"bootstrap": "^3.3.7",
"fabric.js": "fabric#^1.7.8"
}
}
35 changes: 0 additions & 35 deletions css/fab-annotate.css

This file was deleted.

16 changes: 0 additions & 16 deletions css/materialize.min.css

This file was deleted.

29 changes: 29 additions & 0 deletions demos/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!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="../dist/fab-annotator.css">
</head>
<style type="text/css">
* {
font-family: "Roboto", sans-serif;
font-weight: 100;
}
</style>

<body style="">
<div class="section no-pad-bot no-pad-top">
<img class="fab-annotate" src="http://fabricjs.com/assets/jail_cell_bars.png" />
</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="../bower_components/fabric.js/dist/fabric.min.js"></script>
<script type="text/javascript" src="../dist/fab-annotator.js"></script>

</body>

</html>
35 changes: 35 additions & 0 deletions dist/fab-annotator.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@


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 {
}

#fab-popover{
position: absolute;
}

.fab-popover-buttons{
margin-top: 5px;
padding-top: 5px;
border-top: 1px solid #ccc;
}

.icon-trash.deleteCanvasObjectBtn.canvasObjectBtn {
margin-left: 10px;
}

0 comments on commit 6e97436

Please sign in to comment.