2 * Created by onvelocity on 2/15/16.
4 import ColorGroups
from '../ColorGroups'
7 * NOTE: WIP this will replace part of the RelationsAndNetworksLayout::drawConnectionPointsAndPaths method.
9 * This class draws the paths between the VLD and the Connection Point it references.
12 export default class GraphVirtualLinkPaths
{
14 constructor(graph
, props
) {
20 addContainers(containers
) {
26 const paths
= graph
.paths
.selectAll('.connection').data(connectionPointRefs
, DescriptorModelFactory
.containerIdentity
);
28 paths
.enter().append('path');
35 return 'connection between-' + d
.parent
.type
+ '-and-' + d
.type
;
38 stroke
: ColorGroups
.vld
.primary
,
41 const layout
= containerLayouts
[edge
.parent
.type
];
42 return layout
.renderConnectionPath(edge
, containerLayouts
);
46 paths
.exit().remove();