Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
chore(draw-ui): fix typos. Improve styling. grunt build works
Browse files Browse the repository at this point in the history
See issue #3.
  • Loading branch information
Glavin001 committed Sep 22, 2014
1 parent 055b8df commit 3072dd5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css(.) styles/vendor.css -->
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/jsplumb/dist/css/jsplumb.css" />
<link rel="stylesheet" href="bower_components/jsplumb/css/demo-all.css" />
<!-- endbower -->
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
<link rel="stylesheet" href="bower_components/jsplumb/dist/css/jsplumb.css">
<link rel="stylesheet" href="bower_components/jsplumb/dist/css/demo-all.css">
</head>
<body ng-app="seaspongeApp">
<!--[if lt IE 7]>
Expand Down
11 changes: 0 additions & 11 deletions app/scripts/controllers/draw.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ angular.module('seaspongeApp')

jsPlumb.ready ->
instance = jsPlumb.getInstance(

# default drag options
DragOptions:
cursor: "pointer"
zIndex: 2000


# the overlays to decorate each connection with. note that the label overlay uses a function to generate the label text; in this
# case it returns the 'labelText' member that we set on each connection in the 'init' method below.
ConnectionOverlays: [
Expand Down Expand Up @@ -49,7 +46,6 @@ angular.module('seaspongeApp')
outlineWidth: 2

connectorHoverStyle =

# .. and this is the hover style.
lineWidth: 4
strokeStyle: "#216477"
Expand All @@ -61,15 +57,13 @@ angular.module('seaspongeApp')
strokeStyle: "#216477"

sourceEndpoint =

# the definition of source endpoints (the small blue ones)
endpoint: "Dot"
paintStyle:
strokeStyle: "#7AB02C"
fillStyle: "transparent"
radius: 7
lineWidth: 3

isSource: true
connector: [
"Flowchart"
Expand Down Expand Up @@ -100,19 +94,16 @@ angular.module('seaspongeApp')
]]

targetEndpoint =

# the definition of target endpoints (will appear when the user drags a connection)
endpoint: "Dot"
paintStyle:
fillStyle: "#7AB02C"
radius: 11

hoverPaintStyle: endpointHoverStyle
maxConnections: -1
dropOptions:
hoverClass: "hover"
activeClass: "active"

isTarget: true
overlays: [[
"Label"
Expand Down Expand Up @@ -140,15 +131,13 @@ angular.module('seaspongeApp')
instance.addEndpoint "flowchart" + toId, sourceEndpoint,
anchor: sourceAnchors[i]
uuid: sourceUUID

i++
j = 0
while j < targetAnchors.length
targetUUID = toId + targetAnchors[j]
instance.addEndpoint "flowchart" + toId, targetEndpoint,
anchor: targetAnchors[j]
uuid: targetUUID

j++
return

Expand Down
4 changes: 1 addition & 3 deletions app/views/draw.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>

<ul class="nav nav-pills">
<li class="" <li class=""><a href="#"><i class="glyphicon glyphicon-floppy-save"></i></a>
<li class=""><a href="#"><i class="glyphicon glyphicon-floppy-save"></i></a>
</li>
<li><a href="#">Profile</a>
</li>
Expand Down Expand Up @@ -65,7 +65,6 @@ <h3 class="panel-title">Stencils</h3>
</div>
<div class="panel-body">

Nav tabs
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#home" role="tab" data-toggle="tab">OS Process</a>
</li>
Expand All @@ -77,7 +76,6 @@ <h3 class="panel-title">Stencils</h3>
</li>
</ul>

Tab panes
<div class="tab-content">
<div class="tab-pane active" id="home">

Expand Down
6 changes: 5 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
},
"overrides": {
"jsplumb": {
"main": "dist/js/jquery.jsPlumb-1.6.4.js"
"main": [
"dist/css/jsplumb.css",
"css/demo-all.css",
"dist/js/jquery.jsPlumb-1.6.4.js"
]
}
}
}

0 comments on commit 3072dd5

Please sign in to comment.