Skip to content

Commit

Permalink
- new map "scope filter" options, closed #641
Browse files Browse the repository at this point in the history
  • Loading branch information
exodus4d committed Jun 17, 2018
1 parent cc7ed34 commit 7a552f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions public/js/v1.3.6/app/map/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ define([
let filterSystemHeadEvent = (e, system) => {
let target = $(e.target);
let effectClass = MapUtil.getEffectInfoForSystem('effect', 'class');
console.log('filter...')
return (
target.hasClass(config.systemHeadNameClass) ||
target.hasClass(effectClass) ||
Expand All @@ -95,7 +94,7 @@ define([
source: {
filter: filterSystemHeadEvent,
//isSource:true,
isTarget: true, // add target Endpoint to each system (e.g. for drag&drop)
isTarget: true, // add target Endpoint to each system (e.g. for drag&drop)
allowLoopback: false, // loopBack connections are not allowed
cssClass: config.endpointSourceClass,
uniqueEndpoint: false, // each connection has its own endpoint visible
Expand Down Expand Up @@ -974,7 +973,6 @@ define([

// add additional information for this map
if(mapContainer.data('updated') !== mapConfig.config.updated.updated){
console.log('updated')
mapContainer.data('name', mapConfig.config.name);
mapContainer.data('scopeId', mapConfig.config.scope.id);
mapContainer.data('typeId', mapConfig.config.type.id);
Expand Down
2 changes: 1 addition & 1 deletion public/js/v1.3.6/app/map/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ define([
let typeArray = (type === undefined) ? [] : ((Array.isArray(type)) ? type : [type]);

map.select({scope: scopeArray}).each(function(connection){
if( noHidden && !connection.isVisible()){
if(noHidden && !connection.isVisible()){
// exclude invisible connection
return;
}
Expand Down

0 comments on commit 7a552f3

Please sign in to comment.