W3cubDocs

/Dart 2

getClientRects method

List<Rectangle<num>> getClientRects ()

Implementation

List<Rectangle> getClientRects() {
  var value = _getClientRects();

  // If no prototype we need one for the world to hookup to the proper Dart class.
  var jsProto = JS('', '#.prototype', value);
  if (jsProto == null) {
    JS('', '#.prototype = Object.create(null)', value);
  }

  applyExtension('DOMRectList', value);

  return value;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/Element/getClientRects.html