IEnumerator AlignElements(AutoAlignmentHelper.AlignmentReference reference)
        {
            m_AlignmentHelper.SendAlignCommand(reference);
            yield return(null);

            // Get the UI elements
            m_FirstNode  = FirstNodeModel.GetUI <Node>(graphView);
            m_SecondNode = SecondNodeModel.GetUI <Node>(graphView);
            m_ThirdNode  = ThirdNodeModel.GetUI <Node>(graphView);
            m_FourthNode = FourthNodeModel.GetUI <Node>(graphView);
            m_Placemat   = PlacematModel.GetUI <Placemat>(graphView);
            m_StickyNote = StickyNoteModel.GetUI <StickyNote>(graphView);
        }
Beispiel #2
0
        IEnumerator SpaceElements(PortOrientation orientation)
        {
            m_AutoSpacingHelper.SendSpacingCommand(orientation);
            yield return(null);

            // Get the UI elements
            m_FirstNode  = FirstNodeModel.GetUI <Node>(graphView);
            m_SecondNode = SecondNodeModel.GetUI <Node>(graphView);
            m_ThirdNode  = ThirdNodeModel.GetUI <Node>(graphView);
            m_FourthNode = FourthNodeModel.GetUI <Node>(graphView);
            m_Placemat   = PlacematModel.GetUI <Placemat>(graphView);
            m_StickyNote = StickyNoteModel.GetUI <StickyNote>(graphView);
        }