Spec-Zone.ru › Dart 1

dart:html

Метод isPointInStroke

bool isPointInStroke(path_OR_x, число x_OR_y, [ число y ])

Исходный код

bool isPointInStroke(path_OR_x, num x_OR_y, [num y]) {
  if ((x_OR_y is num) && (path_OR_x is num) && y == null) {
    return _blink.BlinkCanvasRenderingContext2D.instance
        .isPointInStroke_Callback_2_(this, path_OR_x, x_OR_y);
  }
  if ((y is num) && (x_OR_y is num) && (path_OR_x is Path2D)) {
    return _blink.BlinkCanvasRenderingContext2D.instance
        .isPointInStroke_Callback_3_(this, path_OR_x, x_OR_y, y);
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API