コード例 #1
0
        public void ConnectShapes(ShapeWrapper shapeFrom, ShapeWrapper shapeTo,
                                  NodesBranchRelation nodesBranchRelation = NodesBranchRelation.SAME_BRANCH)
        {
            var connectionType = BuilderUtils.DefineConnectionType(shapeFrom, shapeTo, nodesBranchRelation);

            ConnectShapes(shapeFrom, shapeTo, nodesBranchRelation, connectionType);
        }
コード例 #2
0
        public void ConnectShapes(ShapeWrapper shapeFrom, ShapeWrapper shapeTo, NodesBranchRelation nodesBranchRelation = NodesBranchRelation.SAME_BRANCH)
        {
            var connectionType  = BuilderUtils.DefineConnectionType(shapeFrom, shapeTo, nodesBranchRelation);
            var connectorMaster = GetConnectionMasterFromConnectionType(connectionType, nodesBranchRelation);

            BuilderUtils.GetCellsAlignsFromConnectionType(out var connectionFromType, out var connectionToType, connectionType);
            ConnectWithDynamicGlueAndConnector(shapeFrom, shapeTo, connectorMaster, connectionFromType, connectionToType);
        }