コード例 #1
0
ファイル: mxGraphView.cs プロジェクト: mbao01/mxgraph-clean
        /// <summary>
        /// Returns the perimeter bounds for the given terminal, edge pair.
        /// </summary>
        public mxRectangle GetPerimeterBounds(mxCellState terminal, double border)
        {
            if (terminal != null)
            {
                border += mxUtils.GetDouble(terminal.Style, mxConstants.STYLE_PERIMETER_SPACING);
            }

            return(terminal.GetPerimeterBounds(border * scale));
        }
コード例 #2
0
ファイル: mxGraphView.cs プロジェクト: sinrusia/Hello-sky
        /// <summary>
        /// Returns the perimeter bounds for the given terminal, edge pair.
        /// </summary>
        public mxRectangle GetPerimeterBounds(mxCellState terminal, double border)
        {
            if (terminal != null)
            {
                border += mxUtils.GetDouble(terminal.Style, mxConstants.STYLE_PERIMETER_SPACING);
            }

            return terminal.GetPerimeterBounds(border * scale);
        }