From 7a552f3bab4e6c0b627bf23c744bf2b9c10f741d Mon Sep 17 00:00:00 2001 From: Mark Friedrich Date: Sun, 17 Jun 2018 12:33:24 +0200 Subject: [PATCH] - new map "scope filter" options, closed #641 --- public/js/v1.3.6/app/map/map.js | 4 +--- public/js/v1.3.6/app/map/util.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/js/v1.3.6/app/map/map.js b/public/js/v1.3.6/app/map/map.js index 9e2bd3ff..52c86127 100644 --- a/public/js/v1.3.6/app/map/map.js +++ b/public/js/v1.3.6/app/map/map.js @@ -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) || @@ -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 @@ -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); diff --git a/public/js/v1.3.6/app/map/util.js b/public/js/v1.3.6/app/map/util.js index 78a77f99..4fed4bb2 100644 --- a/public/js/v1.3.6/app/map/util.js +++ b/public/js/v1.3.6/app/map/util.js @@ -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; }