areElementsPresent static method

JSArray<JSAny?> areElementsPresent(
  1. JSArray<JSAny?> elementSearchObjects
)

Implementation

static JSArray areElementsPresent(JSArray elementSearchObjects) {
  var pixRatio = getDevicePixelRatio(Plotline.ctx);
  var screenHeight = (getScreenHeight(Plotline.ctx) * pixRatio).round();
  var screenWidth = (getScreenWidth(Plotline.ctx) * pixRatio).round();
  List<dynamic> presentElements = Plotline.areViewsPresentInWeb(
          elementSearchObjects, pixRatio, screenWidth, screenHeight)
      .toDart;
  return presentElements.map((element) => element as JSAny).toList().toJS;
}