OLD | NEW |
(Empty) | |
| 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` |
| 2 |
| 3 /// Dart API for the polymer element `google_map_poly`. |
| 4 @HtmlImport('google_map_poly_nodart.html') |
| 5 library polymer_elements.lib.src.google_map.google_map_poly; |
| 6 |
| 7 import 'dart:html'; |
| 8 import 'dart:js' show JsArray, JsObject; |
| 9 import 'package:web_components/web_components.dart'; |
| 10 import 'package:polymer_interop/polymer_interop.dart'; |
| 11 import 'google_maps_api.dart'; |
| 12 import 'google_map_point.dart'; |
| 13 |
| 14 /// The `google-map-poly` element represents a series of connected line segments
(aka a polyline) which |
| 15 /// may also be closed to form a polygon (provided there are at least three poin
ts). It is used as a |
| 16 /// child of `google-map` and will contain at least two `google-map-point` child
elements. |
| 17 /// |
| 18 /// <b>Example</b>—a simple line: |
| 19 /// |
| 20 /// <google-map latitude="37.77493" longitude="-122.41942"> |
| 21 /// <google-map-poly> |
| 22 /// <google-map-point latitude="37.77493" longitude="-122.41942"></googl
e-map-point> |
| 23 /// <google-map-point latitude="38.77493" longitude="-123.41942"></googl
e-map-point> |
| 24 /// </google-map-poly> |
| 25 /// </google-map> |
| 26 /// |
| 27 /// <b>Example</b>—a semi-translucent blue triangle: |
| 28 /// |
| 29 /// <google-map latitude="37.77493" longitude="-122.41942"> |
| 30 /// <google-map-poly closed fill-color="blue" fill-opacity=".5"> |
| 31 /// <google-map-point latitude="36.77493" longitude="-121.41942"></googl
e-map-point> |
| 32 /// <google-map-point latitude="38.77493" longitude="-122.41942"></googl
e-map-point> |
| 33 /// <google-map-point latitude="36.77493" longitude="-123.41942"></googl
e-map-point> |
| 34 /// </google-map-poly> |
| 35 /// </google-map> |
| 36 @CustomElementProxy('google-map-poly') |
| 37 class GoogleMapPoly extends HtmlElement with CustomElementProxyMixin, PolymerBas
e { |
| 38 GoogleMapPoly.created() : super.created(); |
| 39 factory GoogleMapPoly() => new Element.tag('google-map-poly'); |
| 40 |
| 41 /// When true, the poly will generate mouse events. |
| 42 bool get clickable => jsElement[r'clickable']; |
| 43 set clickable(bool value) { jsElement[r'clickable'] = value; } |
| 44 |
| 45 /// When true, the google-map-poly-*click events will be automatically registe
red. |
| 46 bool get clickEvents => jsElement[r'clickEvents']; |
| 47 set clickEvents(bool value) { jsElement[r'clickEvents'] = value; } |
| 48 |
| 49 /// When true, the path will be closed by connecting the last point to the fir
st one and |
| 50 /// treating the poly as a polygon. |
| 51 bool get closed => jsElement[r'closed']; |
| 52 set closed(bool value) { jsElement[r'closed'] = value; } |
| 53 |
| 54 /// When true, the google-map-poly-drag* events will be automatically register
ed. |
| 55 bool get dragEvents => jsElement[r'dragEvents']; |
| 56 set dragEvents(bool value) { jsElement[r'dragEvents'] = value; } |
| 57 |
| 58 /// When true, the poly may be dragged to a new position. |
| 59 bool get draggable => jsElement[r'draggable']; |
| 60 set draggable(bool value) { jsElement[r'draggable'] = value; } |
| 61 |
| 62 /// When true, the poly's vertices may be individually moved or new ones added
. |
| 63 bool get editable => jsElement[r'editable']; |
| 64 set editable(bool value) { jsElement[r'editable'] = value; } |
| 65 |
| 66 /// When true, indicates that the user has begun editing the poly path (adding
vertices). |
| 67 bool get editing => jsElement[r'editing']; |
| 68 set editing(bool value) { jsElement[r'editing'] = value; } |
| 69 |
| 70 /// If the path is closed, the polygon fill color. All CSS3 colors are support
ed except for |
| 71 /// extended named colors. |
| 72 String get fillColor => jsElement[r'fillColor']; |
| 73 set fillColor(String value) { jsElement[r'fillColor'] = value; } |
| 74 |
| 75 /// If the path is closed, the polygon fill opacity (between 0.0 and 1.0). |
| 76 num get fillOpacity => jsElement[r'fillOpacity']; |
| 77 set fillOpacity(num value) { jsElement[r'fillOpacity'] = value; } |
| 78 |
| 79 /// When true, the poly's edges are interpreted as geodesic and will follow th
e curvature of |
| 80 /// the Earth. When not set, the poly's edges are rendered as straight lines i
n screen space. |
| 81 /// Note that the poly of a geodesic poly may appear to change when dragged, a
s the dimensions |
| 82 /// are maintained relative to the surface of the earth. |
| 83 bool get geodesic => jsElement[r'geodesic']; |
| 84 set geodesic(bool value) { jsElement[r'geodesic'] = value; } |
| 85 |
| 86 /// If the path is not closed, the icons to be rendered along the polyline. |
| 87 List get icons => jsElement[r'icons']; |
| 88 set icons(List value) { jsElement[r'icons'] = (value != null && value is! JsAr
ray) ? new JsObject.jsify(value) : value;} |
| 89 |
| 90 /// The Google map object. |
| 91 get map => jsElement[r'map']; |
| 92 set map(value) { jsElement[r'map'] = (value is Map || (value is Iterable && va
lue is! JsArray)) ? new JsObject.jsify(value) : value;} |
| 93 |
| 94 /// When true, the google-map-poly-mouse* events will be automatically registe
red. |
| 95 bool get mouseEvents => jsElement[r'mouseEvents']; |
| 96 set mouseEvents(bool value) { jsElement[r'mouseEvents'] = value; } |
| 97 |
| 98 /// An array of the Google Maps LatLng objects that define the poly shape. |
| 99 get path => jsElement[r'path']; |
| 100 set path(value) { jsElement[r'path'] = (value is Map || (value is Iterable &&
value is! JsArray)) ? new JsObject.jsify(value) : value;} |
| 101 |
| 102 /// A Google Maps polyline or polygon object (depending on value of "closed" a
ttribute). |
| 103 get poly => jsElement[r'poly']; |
| 104 set poly(value) { jsElement[r'poly'] = (value is Map || (value is Iterable &&
value is! JsArray)) ? new JsObject.jsify(value) : value;} |
| 105 |
| 106 /// The color to draw the poly's stroke with. All CSS3 colors are supported ex
cept for extended |
| 107 /// named colors. |
| 108 String get strokeColor => jsElement[r'strokeColor']; |
| 109 set strokeColor(String value) { jsElement[r'strokeColor'] = value; } |
| 110 |
| 111 /// The stroke opacity (between 0.0 and 1.0). |
| 112 num get strokeOpacity => jsElement[r'strokeOpacity']; |
| 113 set strokeOpacity(num value) { jsElement[r'strokeOpacity'] = value; } |
| 114 |
| 115 /// The stroke position (center, inside, or outside). |
| 116 String get strokePosition => jsElement[r'strokePosition']; |
| 117 set strokePosition(String value) { jsElement[r'strokePosition'] = value; } |
| 118 |
| 119 /// The stroke width in pixels. |
| 120 num get strokeWeight => jsElement[r'strokeWeight']; |
| 121 set strokeWeight(num value) { jsElement[r'strokeWeight'] = value; } |
| 122 |
| 123 /// The Z-index relative to other objects on the map. |
| 124 num get zIndex => jsElement[r'zIndex']; |
| 125 set zIndex(num value) { jsElement[r'zIndex'] = value; } |
| 126 } |
OLD | NEW |