mirror of https://github.com/apache/nifi.git
[NIFI-3550] inject nf.ConnectionConfiguration into the nf.Cannection module during nf.Graph init. This closes #1560
This commit is contained in:
parent
6c44d6be2e
commit
9f669aa944
|
@ -50,8 +50,8 @@
|
|||
}(this, function ($, d3, nfCommon, nfDialog, nfErrorHandler, nfClient, nfCanvasUtils) {
|
||||
'use strict';
|
||||
|
||||
var nfCanvas;
|
||||
var nfSelectable;
|
||||
var nfConnectionConfiguration;
|
||||
var nfContextMenu;
|
||||
|
||||
// the dimensions for the connection label
|
||||
|
@ -1546,9 +1546,10 @@
|
|||
* @param nfSelectableRef The nfSelectable module.
|
||||
* @param nfContextMenuRef The nfContextMenu module.
|
||||
*/
|
||||
init: function (nfSelectableRef, nfContextMenuRef) {
|
||||
init: function (nfSelectableRef, nfContextMenuRef, nfConnectionConfigurationRef) {
|
||||
nfSelectable = nfSelectableRef;
|
||||
nfContextMenu = nfContextMenuRef;
|
||||
nfConnectionConfiguration = nfConnectionConfigurationRef;
|
||||
|
||||
connectionMap = d3.map();
|
||||
removedCache = d3.map();
|
||||
|
|
|
@ -30,13 +30,14 @@
|
|||
'nf.ProcessGroup',
|
||||
'nf.Processor',
|
||||
'nf.Connection',
|
||||
'nf.ConnectionConfiguration',
|
||||
'nf.CanvasUtils',
|
||||
'nf.Connectable',
|
||||
'nf.Draggable',
|
||||
'nf.Selectable',
|
||||
'nf.ContextMenu'],
|
||||
function ($, d3, nfCommon, nfNgBridge, nfLabel, nfFunnel, nfPort, nfRemoteProcessGroup, nfProcessGroup, nfProcessor, nfConnection, nfCanvasUtils, nfConnectable, nfDraggable, nfSelectable, nfContextMenu) {
|
||||
return (nf.Graph = factory($, d3, nfCommon, nfNgBridge, nfLabel, nfFunnel, nfPort, nfRemoteProcessGroup, nfProcessGroup, nfProcessor, nfConnection, nfCanvasUtils, nfConnectable, nfDraggable, nfSelectable, nfContextMenu));
|
||||
function ($, d3, nfCommon, nfNgBridge, nfLabel, nfFunnel, nfPort, nfRemoteProcessGroup, nfProcessGroup, nfProcessor, nfConnection, nfConnectionConfiguration, nfCanvasUtils, nfConnectable, nfDraggable, nfSelectable, nfContextMenu) {
|
||||
return (nf.Graph = factory($, d3, nfCommon, nfNgBridge, nfLabel, nfFunnel, nfPort, nfRemoteProcessGroup, nfProcessGroup, nfProcessor, nfConnection, nfConnectionConfiguration, nfCanvasUtils, nfConnectable, nfDraggable, nfSelectable, nfContextMenu));
|
||||
});
|
||||
} else if (typeof exports === 'object' && typeof module === 'object') {
|
||||
module.exports = (nf.Graph =
|
||||
|
@ -51,6 +52,7 @@
|
|||
require('nf.ProcessGroup'),
|
||||
require('nf.Processor'),
|
||||
require('nf.Connection'),
|
||||
require('nf.ConnectionConfiguration'),
|
||||
require('nf.CanvasUtils'),
|
||||
require('nf.Connectable'),
|
||||
require('nf.Draggable'),
|
||||
|
@ -68,13 +70,14 @@
|
|||
root.nf.ProcessGroup,
|
||||
root.nf.Processor,
|
||||
root.nf.Connection,
|
||||
root.nf.ConnectionConfiguration,
|
||||
root.nf.CanvasUtils,
|
||||
root.nf.Connectable,
|
||||
root.nf.Draggable,
|
||||
root.nf.Selectable,
|
||||
root.nf.ContextMenu);
|
||||
}
|
||||
}(this, function ($, d3, nfCommon, nfNgBridge, nfLabel, nfFunnel, nfPort, nfRemoteProcessGroup, nfProcessGroup, nfProcessor, nfConnection, nfCanvasUtils, nfConnectable, nfDraggable, nfSelectable, nfContextMenu) {
|
||||
}(this, function ($, d3, nfCommon, nfNgBridge, nfLabel, nfFunnel, nfPort, nfRemoteProcessGroup, nfProcessGroup, nfProcessor, nfConnection, nfConnectionConfiguration, nfCanvasUtils, nfConnectable, nfDraggable, nfSelectable, nfContextMenu) {
|
||||
'use strict';
|
||||
|
||||
var combinePorts = function (contents) {
|
||||
|
@ -201,7 +204,7 @@
|
|||
nfRemoteProcessGroup.init(nfConnectable, nfDraggable, nfSelectable, nfContextMenu);
|
||||
nfProcessGroup.init(nfConnectable, nfDraggable, nfSelectable, nfContextMenu);
|
||||
nfProcessor.init(nfConnectable, nfDraggable, nfSelectable, nfContextMenu);
|
||||
nfConnection.init(nfSelectable, nfContextMenu);
|
||||
nfConnection.init(nfSelectable, nfContextMenu, nfConnectionConfiguration);
|
||||
|
||||
// load the graph
|
||||
return nfProcessGroup.enterGroup(nfCanvasUtils.getGroupId());
|
||||
|
|
Loading…
Reference in New Issue