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

Unified Diff: packages/charted/lib/selection/selection.dart

Issue 2213693002: Updated charted DEP to 0.4.X (Closed) Base URL: https://github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: packages/charted/lib/selection/selection.dart
diff --git a/packages/charted/lib/selection/selection.dart b/packages/charted/lib/selection/selection.dart
index c9036dcef2167364ddc7979cfb26faaffcf4643d..8615b46d8491c77a7d09fea7e503e6a2ee31656b 100644
--- a/packages/charted/lib/selection/selection.dart
+++ b/packages/charted/lib/selection/selection.dart
@@ -10,7 +10,7 @@
*/
library charted.selection;
-import "dart:html" show Element, Event, document;
+import "dart:html" show Element, Event, EventListener, document;
import "dart:math" as math;
import "package:charted/core/utils.dart";
import "package:charted/selection/transition.dart";
@@ -37,7 +37,7 @@ typedef E SelectionCallback<E>(datum, int index, Element element);
typedef E SelectionValueAccessor<E>(datum, int index);
/** Create a ChartedCallback that always returns [val] */
-SelectionCallback toCallback(val) => (datum, index, element) => val;
+SelectionCallback/*<T>*/ toCallback/*<T>*/(/*=T*/ val) => (datum, index, element) => val;
/** Create a ChartedValueAccessor that always returns [val] */
SelectionValueAccessor toValueAccessor(val) => (datum, index) => val;
@@ -57,7 +57,7 @@ abstract class Selection {
* Collection of groups - A selection when created by calling [selectAll]
* on an existing [Selection], could contain more than one group.
*/
- Iterable<SelectionGroup> groups;
+ List<SelectionGroup> groups;
/**
* Scope of this selection that manages the element, data associations for
@@ -292,7 +292,7 @@ abstract class Selection {
* Each selection may contain more than one group of elements.
*/
abstract class SelectionGroup {
- Iterable<Element> elements;
+ List<Element> elements;
Element parent;
}
« no previous file with comments | « packages/charted/lib/locale/format/time_format.dart ('k') | packages/charted/lib/selection/selection_scope.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698