- new map "scope filter" options, closed #641

This commit is contained in:
Mark Friedrich
2018-06-17 12:33:24 +02:00
parent cc7ed34c97
commit 7a552f3bab
2 changed files with 2 additions and 4 deletions

View File

@@ -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);

View File

@@ -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;
}