Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: lib/google_streetview_pano.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/google_signin_aware.dart ('k') | lib/iron_a11y_keys_behavior.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update`
2 2
3 /// Dart API for the polymer element `google_streetview_pano`. 3 /// Dart API for the polymer element `google_streetview_pano`.
4 @HtmlImport('google_streetview_pano_nodart.html') 4 @HtmlImport('google_streetview_pano_nodart.html')
5 library polymer_elements.lib.src.google_streetview_pano.google_streetview_pano; 5 library polymer_elements.lib.src.google_streetview_pano.google_streetview_pano;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:js' show JsArray, JsObject; 8 import 'dart:js' show JsArray, JsObject;
9 import 'package:web_components/web_components.dart'; 9 import 'package:web_components/web_components.dart';
10 import 'package:polymer_interop/polymer_interop.dart'; 10 import 'package:polymer_interop/polymer_interop.dart';
(...skipping 11 matching lines...) Expand all
22 /// disable-default-ui> 22 /// disable-default-ui>
23 /// </google-streetview-pano> 23 /// </google-streetview-pano>
24 /// 24 ///
25 /// There are tons of great panoramas on the [Google Maps | Views page](https:// www.google.com/maps/views/home?gl=us) 25 /// There are tons of great panoramas on the [Google Maps | Views page](https:// www.google.com/maps/views/home?gl=us)
26 /// 26 ///
27 /// To grab a panorama, look at its url in the address bar. For example: 27 /// To grab a panorama, look at its url in the address bar. For example:
28 /// 28 ///
29 /// google.com/maps/views/view/102684927602131521305/photo/**1szTnskrdKIAAAGuu3f ZRw** 29 /// google.com/maps/views/view/102684927602131521305/photo/**1szTnskrdKIAAAGuu3f ZRw**
30 /// 30 ///
31 /// The hash in bold is the `pano-id`. You'll often need to dial in the `heading `, `pitch` and `zoom` manually. 31 /// The hash in bold is the `pano-id`. You'll often need to dial in the `heading `, `pitch` and `zoom` manually.
32 ///
33 /// You can also use the position attribute and set it to a position with a comp uted value. Example: { lat: 42.345573, lng: -71.098326 }
34 ///
35 /// <google-streetview-pano
36 /// position="[[_myComputedPosition()]]"
37 /// heading="330"
38 /// pitch="-2"
39 /// zoom="0.8"
40 /// disable-default-ui>
41 /// </google-streetview-pano>
32 @CustomElementProxy('google-streetview-pano') 42 @CustomElementProxy('google-streetview-pano')
33 class GoogleStreetviewPano extends HtmlElement with CustomElementProxyMixin, Pol ymerBase { 43 class GoogleStreetviewPano extends HtmlElement with CustomElementProxyMixin, Pol ymerBase {
34 GoogleStreetviewPano.created() : super.created(); 44 GoogleStreetviewPano.created() : super.created();
35 factory GoogleStreetviewPano() => new Element.tag('google-streetview-pano'); 45 factory GoogleStreetviewPano() => new Element.tag('google-streetview-pano');
36 46
37 /// A Maps API key. To obtain an API key, see developers.google.com/maps/docum entation/javascript/tutorial#api_key. 47 /// A Maps API key. To obtain an API key, see developers.google.com/maps/docum entation/javascript/tutorial#api_key.
38 String get apiKey => jsElement[r'apiKey']; 48 String get apiKey => jsElement[r'apiKey'];
39 set apiKey(String value) { jsElement[r'apiKey'] = value; } 49 set apiKey(String value) { jsElement[r'apiKey'] = value; }
40 50
41 /// A Maps API for Business Client ID. To obtain a Maps API for Business Clien t ID, see developers.google.com/maps/documentation/business/. 51 /// A Maps API for Business Client ID. To obtain a Maps API for Business Clien t ID, see developers.google.com/maps/documentation/business/.
(...skipping 14 matching lines...) Expand all
56 set heading(num value) { jsElement[r'heading'] = value; } 66 set heading(num value) { jsElement[r'heading'] = value; }
57 67
58 /// The localized language to load the Maps API with. For more information 68 /// The localized language to load the Maps API with. For more information
59 /// see https://developers.google.com/maps/documentation/javascript/basics#Lan guage 69 /// see https://developers.google.com/maps/documentation/javascript/basics#Lan guage
60 /// 70 ///
61 /// Note: the Maps API defaults to the preferred language setting of the brows er. 71 /// Note: the Maps API defaults to the preferred language setting of the brows er.
62 /// Use this parameter to override that behavior. 72 /// Use this parameter to override that behavior.
63 String get language => jsElement[r'language']; 73 String get language => jsElement[r'language'];
64 set language(String value) { jsElement[r'language'] = value; } 74 set language(String value) { jsElement[r'language'] = value; }
65 75
66 /// A comma separated list (e.g. "places,geometry") of libraries to load
67 /// with this map. Defaults to "places". For more information see
68 /// https://developers.google.com/maps/documentation/javascript/libraries.
69 String get libraries => jsElement[r'libraries'];
70 set libraries(String value) { jsElement[r'libraries'] = value; }
71
72 get pano => jsElement[r'pano']; 76 get pano => jsElement[r'pano'];
73 set pano(value) { jsElement[r'pano'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;} 77 set pano(value) { jsElement[r'pano'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;}
74 78
75 /// Specifies which photosphere to load 79 /// Specifies which photosphere to load
76 ///
77 /// **Required**
78 String get panoId => jsElement[r'panoId']; 80 String get panoId => jsElement[r'panoId'];
79 set panoId(String value) { jsElement[r'panoId'] = value; } 81 set panoId(String value) { jsElement[r'panoId'] = value; }
80 82
81 /// The camera pitch in degrees, relative to the street view vehicle. Ranges f rom 90° (directly upwards) to -90° (directly downwards). 83 /// The camera pitch in degrees, relative to the street view vehicle. Ranges f rom 90° (directly upwards) to -90° (directly downwards).
82 num get pitch => jsElement[r'pitch']; 84 num get pitch => jsElement[r'pitch'];
83 set pitch(num value) { jsElement[r'pitch'] = value; } 85 set pitch(num value) { jsElement[r'pitch'] = value; }
84 86
87 /// Specifies which position to load
88 get position => jsElement[r'position'];
89 set position(value) { jsElement[r'position'] = (value is Map || (value is Iter able && value is! JsArray)) ? new JsObject.jsify(value) : value;}
90
85 get rAFid => jsElement[r'rAFid']; 91 get rAFid => jsElement[r'rAFid'];
86 set rAFid(value) { jsElement[r'rAFid'] = (value is Map || (value is Iterable & & value is! JsArray)) ? new JsObject.jsify(value) : value;} 92 set rAFid(value) { jsElement[r'rAFid'] = (value is Map || (value is Iterable & & value is! JsArray)) ? new JsObject.jsify(value) : value;}
87 93
88 /// Version of the Google Maps API to use. 94 /// Version of the Google Maps API to use.
89 String get version => jsElement[r'version']; 95 String get version => jsElement[r'version'];
90 set version(String value) { jsElement[r'version'] = value; } 96 set version(String value) { jsElement[r'version'] = value; }
91 97
92 /// Sets the zoom level of the panorama. Fully zoomed-out is level 0, where th e field of view is 180 degrees. 98 /// Sets the zoom level of the panorama. Fully zoomed-out is level 0, where th e field of view is 180 degrees.
93 num get zoom => jsElement[r'zoom']; 99 num get zoom => jsElement[r'zoom'];
94 set zoom(num value) { jsElement[r'zoom'] = value; } 100 set zoom(num value) { jsElement[r'zoom'] = value; }
95 101
96 /// Reset the pov for the panorama. 102 /// Reset the pov for the panorama.
97 reset() => 103 reset() =>
98 jsElement.callMethod('reset', []); 104 jsElement.callMethod('reset', []);
99 105
100 /// Cancel the slow panning animation. 106 /// Cancel the slow panning animation.
101 stop() => 107 stop() =>
102 jsElement.callMethod('stop', []); 108 jsElement.callMethod('stop', []);
103 109
104 /// Fired every rAF. Updates the heading to create a slow pan effect 110 /// Fired every rAF. Updates the heading to create a slow pan effect
105 /// Will be canceled by mouse enter or calling stop() 111 /// Will be canceled by mouse enter or calling stop()
106 update() => 112 update() =>
107 jsElement.callMethod('update', []); 113 jsElement.callMethod('update', []);
108 } 114 }
OLDNEW
« no previous file with comments | « lib/google_signin_aware.dart ('k') | lib/iron_a11y_keys_behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698