getSelectionRectangleMath method

Rectangle<num> getSelectionRectangleMath ()

Returns the specs of the selectionRect.

Implementation

math.Rectangle getSelectionRectangleMath() {
  if (selectionIcon == null) {
    return null;
  }
  return math.Rectangle(
      int.parse(selectionIcon.attributes[SVG.X]),
      int.parse(selectionIcon.attributes[SVG.Y]),
      int.parse(selectionIcon.attributes[SVG.WIDTH]),
      int.parse(selectionIcon.attributes[SVG.HEIGHT]));
}