Skip to content

Commit

Permalink
Upgrade JsPlumb version to v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
csordasmarton committed Feb 16, 2018
1 parent 12c738c commit 7c570eb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
7 changes: 4 additions & 3 deletions scripts/build_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,15 +608,16 @@ def build_package(repository_root, build_package_config, env=None):
jsplumb_root = os.path.join(repository_root, jsplumb_dep.get('directory'))
target = os.path.join(package_root, package_layout['web_client_jsplumb'])
jsplumb = os.path.join(jsplumb_root, 'dist', 'js',
'jquery.jsPlumb-1.7.6-min.js')
'jsPlumb-2.2.0-min.js')
shutil.copy(jsplumb, target)

# Add jQuery for JsPlumb.
jquery_dep = vendor_projects['jquery']
jquery_root = os.path.join(repository_root, jquery_dep.get('directory'))
target = os.path.join(target, 'external')
if not os.path.exists(target):
os.mkdir(target)
jquery = os.path.join(jsplumb_root, 'external',
'jquery-1.9.0-min.js')
jquery = os.path.join(jquery_root, 'jquery-1.9.0-min.js')
shutil.copy(jquery, target)

# config files
Expand Down
17 changes: 15 additions & 2 deletions vendor_projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,28 @@
{
"name":"jsplumb",
"directory":"vendor/jsplumb",
"version":"1.7.6",
"version":"2.2.0",
"description":"jsplumb",
"homepage":"https://jsplumbtoolkit.com/",
"repository":{
"type":"git",
"git_tag":"1.7.6",
"git_tag":"2.2.0",
"url":"https://github.com/sporritt/jsPlumb.git"
}
},
{
"name":"jquery",
"directory":"vendor/jquery",
"version":"1.9.0",
"description":"jquery",
"homepage":"https://jquery.com/",
"source_package":{
"download_cmd":"curl",
"url":"https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js",
"option":"-o",
"name":"jquery-1.9.0-min.js"
}
},
{
"name":"marked",
"directory":"vendor/marked",
Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- Third party libraries -->

<script type="text/javascript" src="scripts/plugins/jsplumb/external/jquery-1.9.0-min.js"></script>
<script type="text/javascript" src="scripts/plugins/jsplumb/jquery.jsPlumb-1.7.6-min.js"></script>
<script type="text/javascript" src="scripts/plugins/jsplumb/jsPlumb-2.2.0-min.js"></script>
<script type="text/javascript" src="scripts/plugins/thrift/thrift.js"></script>
<script type="text/javascript" src="scripts/plugins/marked/marked.min.js"></script>
<script type="text/javascript" src="scripts/plugins/codemirror/dist/codemirror.min.js"></script>
Expand Down
1 change: 0 additions & 1 deletion www/products.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<!-- Third party libraries -->

<script type="text/javascript" src="scripts/plugins/jsplumb/external/jquery-1.9.0-min.js"></script>
<script type="text/javascript" src="scripts/plugins/jsplumb/jquery.jsPlumb-1.7.6-min.js"></script>
<script type="text/javascript" src="scripts/plugins/thrift/thrift.js"></script>
<script type="text/javascript" src="scripts/plugins/marked/marked.min.js"></script>

Expand Down
3 changes: 2 additions & 1 deletion www/scripts/codecheckerviewer/BugViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function (declare, domClass, dom, style, fx, Toggler, keys, on, query, Memory,
Container : jsPlumbParentElement,
Anchor : ['Perimeter', { shape : 'Ellipse' }],
Endpoint : ['Dot', { radius : 1 }],
PaintStyle : { strokeStyle : '#a94442', lineWidth : 2 },
PaintStyle : { stroke : '#a94442', strokeWidth : 2 },
Connector:[ "Bezier", { curviness: 10 }],
ConnectionsDetachable : false,
ConnectionOverlays : [['Arrow',
{ location : 1, length : 10, width : 8 }]]
Expand Down

0 comments on commit 7c570eb

Please sign in to comment.