envy 0.2.2

envy #

An experimental information visualization framework.

This is a work in progress; this package's API may change significantly.
Some parts are currently unfinished, untested and/or undocumented. Use at your own risk.

0.2.2 #

  • Address new analyzer warnings for Dart 2.1.1.

0.2.1 #

  • Additional documentation and analyzer warning cleanup.

0.2.0 #

  • Stricter typing and Dart 2 support.

0.1.0 #

  • Added the envy-scene Angular component and removed envy-div Polymer component.
  • Upgraded dependencies; removed explicit dependencies on reflectable and web_components.

0.0.7 #

  • Only update line dash value when necessary
  • Upgraded to polymer 1.0.0-rc.14, polymer-elements 1.0.0-rc.7 and reflectable 0.5.1
  • +1: Clear intersection indices for every child; improve intersection efficiency

0.0.6 #

  • Added a default line dash value
  • Added GeoJson support

0.0.5 #

  • Optimization of EnvyProperty.updateValues
  • Refined CanvasNode support for mouse enter, leave, over, out and move
  • Added Sum, Diff, Product and various other operation type NumberSources
  • Added support for dashed lines

0.0.4 #

  • EnvyProperty.updateValues no longer includes unavailable data when finishing
  • Bumped polymer dependency to ^1.0.0-rc.4
  • Added NakedProperty, an EnvyProperty that makes its private values available

0.0.3 #

  • Removed null operator ambiguity

0.0.2 #

  • Migrated to polymer 1.0.0-rc.2

0.0.1 #

  • Initial version

example/main.dart

import 'package:angular/angular.dart';
import 'gallery.dart';

// ignore_for_file: URI_HAS_NOT_BEEN_GENERATED
import 'gallery.template.dart' as app;

void main() {
  runApp<Gallery>(app.GalleryNgFactory);
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  envy: ^0.2.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:envy/envy.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
62
Health:
Code health derived from static analysis. [more]
92
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
82
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Sep 13, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21

Platforms

Detected platforms: web

Primary library: package:envy/envy.dart with components: html, js.

Health suggestions

Fix lib/src/envy/geo/geojson.dart. (-4.41 points)

Analysis of lib/src/envy/geo/geojson.dart reported 9 hints, including:

line 161 col 7: DO use curly braces for all flow control structures.

line 225 col 7: DO use curly braces for all flow control structures.

line 323 col 7: DO use curly braces for all flow control structures.

line 360 col 7: DO use curly braces for all flow control structures.

line 413 col 7: DO use curly braces for all flow control structures.

Fix lib/src/envy/color/color.dart. (-2.48 points)

Analysis of lib/src/envy/color/color.dart reported 5 hints:

line 185 col 9: DO use curly braces for all flow control structures.

line 187 col 9: DO use curly braces for all flow control structures.

line 189 col 9: DO use curly braces for all flow control structures.

line 202 col 7: DO use curly braces for all flow control structures.

line 204 col 7: DO use curly braces for all flow control structures.

Fix lib/src/envy/animation/timed_item_group.dart. (-0.50 points)

Analysis of lib/src/envy/animation/timed_item_group.dart reported 1 hint:

line 65 col 7: DO use curly braces for all flow control structures.

Fix additional 91 files with analysis or formatting issues. (-0.50 points)

Additional issues in the following files:

  • lib/src/envy/graphic/twod/anchor2d.dart (1 hint)
  • lib/src/envy/animation/player.dart (Run dartfmt to format lib/src/envy/animation/player.dart.)
  • lib/src/envy/animation/timeline.dart (Run dartfmt to format lib/src/envy/animation/timeline.dart.)
  • lib/src/envy/animation/timing_function.dart (Run dartfmt to format lib/src/envy/animation/timing_function.dart.)
  • lib/src/envy/css/css_property.dart (Run dartfmt to format lib/src/envy/css/css_property.dart.)
  • lib/src/envy/css/css_style.dart (Run dartfmt to format lib/src/envy/css/css_style.dart.)
  • lib/src/envy/data/data_accessor.dart (Run dartfmt to format lib/src/envy/data/data_accessor.dart.)
  • lib/src/envy/data/data_group.dart (Run dartfmt to format lib/src/envy/data/data_group.dart.)
  • lib/src/envy/data/source/anchor2d/anchor2d_data.dart (Run dartfmt to format lib/src/envy/data/source/anchor2d/anchor2d_data.dart.)
  • lib/src/envy/data/source/anchor2d/anchor2d_source.dart (Run dartfmt to format lib/src/envy/data/source/anchor2d/anchor2d_source.dart.)
  • lib/src/envy/data/source/angle/angle_data.dart (Run dartfmt to format lib/src/envy/data/source/angle/angle_data.dart.)
  • lib/src/envy/data/source/boolean/boolean_data.dart (Run dartfmt to format lib/src/envy/data/source/boolean/boolean_data.dart.)
  • lib/src/envy/data/source/color/color_data.dart (Run dartfmt to format lib/src/envy/data/source/color/color_data.dart.)
  • lib/src/envy/data/source/color/color_rgb.dart (Run dartfmt to format lib/src/envy/data/source/color/color_rgb.dart.)
  • lib/src/envy/data/source/color/color_source.dart (Run dartfmt to format lib/src/envy/data/source/color/color_source.dart.)
  • lib/src/envy/data/source/css/css_style_data.dart (Run dartfmt to format lib/src/envy/data/source/css/css_style_data.dart.)
  • lib/src/envy/data/source/css/css_style_source.dart (Run dartfmt to format lib/src/envy/data/source/css/css_style_source.dart.)
  • lib/src/envy/data/source/data_source.dart (Run dartfmt to format lib/src/envy/data/source/data_source.dart.)
  • lib/src/envy/data/source/drawing_style/drawing_style_data.dart (Run dartfmt to format lib/src/envy/data/source/drawing_style/drawing_style_data.dart.)
  • lib/src/envy/data/source/drawing_style/drawing_style_source.dart (Run dartfmt to format lib/src/envy/data/source/drawing_style/drawing_style_source.dart.)
  • lib/src/envy/data/source/extrapolate/duplicate_first.dart (Run dartfmt to format lib/src/envy/data/source/extrapolate/duplicate_first.dart.)
  • lib/src/envy/data/source/extrapolate/duplicate_last.dart (Run dartfmt to format lib/src/envy/data/source/extrapolate/duplicate_last.dart.)
  • lib/src/envy/data/source/extrapolate/random_sample.dart (Run dartfmt to format lib/src/envy/data/source/extrapolate/random_sample.dart.)
  • lib/src/envy/data/source/font/font_data.dart (Run dartfmt to format lib/src/envy/data/source/font/font_data.dart.)
  • lib/src/envy/data/source/geo/projection_source.dart (Run dartfmt to format lib/src/envy/data/source/geo/projection_source.dart.)
  • lib/src/envy/data/source/number/number_data.dart (Run dartfmt to format lib/src/envy/data/source/number/number_data.dart.)
  • lib/src/envy/data/source/number/number_ops.dart (Run dartfmt to format lib/src/envy/data/source/number/number_ops.dart.)
  • lib/src/envy/data/source/number/random_number.dart (Run dartfmt to format lib/src/envy/data/source/number/random_number.dart.)
  • lib/src/envy/data/source/number_list/number_list_data.dart (Run dartfmt to format lib/src/envy/data/source/number_list/number_list_data.dart.)
  • lib/src/envy/data/source/number_list/number_list_source.dart (Run dartfmt to format lib/src/envy/data/source/number_list/number_list_source.dart.)
  • lib/src/envy/data/source/path_interpolation2d/path_interpolation2d_data.dart (Run dartfmt to format lib/src/envy/data/source/path_interpolation2d/path_interpolation2d_data.dart.)
  • lib/src/envy/data/source/path_interpolation2d/path_interpolation2d_source.dart (Run dartfmt to format lib/src/envy/data/source/path_interpolation2d/path_interpolation2d_source.dart.)
  • lib/src/envy/data/source/point_list/geo_point_list.dart (Run dartfmt to format lib/src/envy/data/source/point_list/geo_point_list.dart.)
  • lib/src/envy/data/source/point_list/point_list_data.dart (Run dartfmt to format lib/src/envy/data/source/point_list/point_list_data.dart.)
  • lib/src/envy/data/source/string/string_data.dart (Run dartfmt to format lib/src/envy/data/source/string/string_data.dart.)
  • lib/src/envy/data/source/text_align2d/text_align2d_data.dart (Run dartfmt to format lib/src/envy/data/source/text_align2d/text_align2d_data.dart.)
  • lib/src/envy/data/source/text_align2d/text_align2d_source.dart (Run dartfmt to format lib/src/envy/data/source/text_align2d/text_align2d_source.dart.)
  • lib/src/envy/data/source/text_baseline2d/text_baseline2d_data.dart (Run dartfmt to format lib/src/envy/data/source/text_baseline2d/text_baseline2d_data.dart.)
  • lib/src/envy/data/source/text_baseline2d/text_baseline2d_source.dart (Run dartfmt to format lib/src/envy/data/source/text_baseline2d/text_baseline2d_source.dart.)
  • lib/src/envy/dynamic_node.dart (Run dartfmt to format lib/src/envy/dynamic_node.dart.)
  • lib/src/envy/envy_node.dart (Run dartfmt to format lib/src/envy/envy_node.dart.)
  • lib/src/envy/envy_property.dart (Run dartfmt to format lib/src/envy/envy_property.dart.)
  • lib/src/envy/envy_scene_graph.dart (Run dartfmt to format lib/src/envy/envy_scene_graph.dart.)
  • lib/src/envy/geo/geocoord.dart (Run dartfmt to format lib/src/envy/geo/geocoord.dart.)
  • lib/src/envy/geo/projections.dart (Run dartfmt to format lib/src/envy/geo/projections.dart.)
  • lib/src/envy/graphic/twod/annular_section2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/annular_section2d.dart.)
  • lib/src/envy/graphic/twod/bar2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/bar2d.dart.)
  • lib/src/envy/graphic/twod/circle2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/circle2d.dart.)
  • lib/src/envy/graphic/twod/cross2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/cross2d.dart.)
  • lib/src/envy/graphic/twod/diamond2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/diamond2d.dart.)
  • lib/src/envy/graphic/twod/drawing_style2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/drawing_style2d.dart.)
  • lib/src/envy/graphic/twod/ellipse2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/ellipse2d.dart.)
  • lib/src/envy/graphic/twod/enum/composite_operation2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/enum/composite_operation2d.dart.)
  • lib/src/envy/graphic/twod/enum/path_interpolation2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/enum/path_interpolation2d.dart.)
  • lib/src/envy/graphic/twod/gradient2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/gradient2d.dart.)
  • lib/src/envy/graphic/twod/graphic2d_node.dart (Run dartfmt to format lib/src/envy/graphic/twod/graphic2d_node.dart.)
  • lib/src/envy/graphic/twod/image2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/image2d.dart.)
  • lib/src/envy/graphic/twod/line2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/line2d.dart.)
  • lib/src/envy/graphic/twod/number_list.dart (Run dartfmt to format lib/src/envy/graphic/twod/number_list.dart.)
  • lib/src/envy/graphic/twod/path2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/path2d.dart.)
  • lib/src/envy/graphic/twod/pattern2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/pattern2d.dart.)
  • lib/src/envy/graphic/twod/point2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/point2d.dart.)
  • lib/src/envy/graphic/twod/point_list.dart (Run dartfmt to format lib/src/envy/graphic/twod/point_list.dart.)
  • lib/src/envy/graphic/twod/rect2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/rect2d.dart.)
  • lib/src/envy/graphic/twod/regular_polygon2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/regular_polygon2d.dart.)
  • lib/src/envy/graphic/twod/text2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/text2d.dart.)
  • lib/src/envy/graphic/twod/transform2d_group.dart (Run dartfmt to format lib/src/envy/graphic/twod/transform2d_group.dart.)
  • lib/src/envy/graphic/twod/triangle2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/triangle2d.dart.)
  • lib/src/envy/group_node.dart (Run dartfmt to format lib/src/envy/group_node.dart.)
  • lib/src/envy/html/canvas_node.dart (Run dartfmt to format lib/src/envy/html/canvas_node.dart.)
  • lib/src/envy/html/enum/cross_origin.dart (Run dartfmt to format lib/src/envy/html/enum/cross_origin.dart.)
  • lib/src/envy/html/enum/population_mode.dart (Run dartfmt to format lib/src/envy/html/enum/population_mode.dart.)
  • lib/src/envy/html/html_node.dart (Run dartfmt to format lib/src/envy/html/html_node.dart.)
  • lib/src/envy/html/image_node.dart (Run dartfmt to format lib/src/envy/html/image_node.dart.)
  • lib/src/envy/html/media_node.dart (Run dartfmt to format lib/src/envy/html/media_node.dart.)
  • lib/src/envy/html/population/independent_population_strategy.dart (Run dartfmt to format lib/src/envy/html/population/independent_population_strategy.dart.)
  • lib/src/envy/interpolate/anchor2d_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/anchor2d_interpolator.dart.)
  • lib/src/envy/interpolate/angle_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/angle_interpolator.dart.)
  • lib/src/envy/interpolate/binary_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/binary_interpolator.dart.)
  • lib/src/envy/interpolate/color_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/color_interpolator.dart.)
  • lib/src/envy/interpolate/css_style_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/css_style_interpolator.dart.)
  • lib/src/envy/interpolate/drawing_style2d_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/drawing_style2d_interpolator.dart.)
  • lib/src/envy/interpolate/font_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/font_interpolator.dart.)
  • lib/src/envy/interpolate/gradient2d_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/gradient2d_interpolator.dart.)
  • lib/src/envy/interpolate/number_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/number_interpolator.dart.)
  • lib/src/envy/interpolate/number_list_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/number_list_interpolator.dart.)
  • lib/src/envy/interpolate/pattern2d_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/pattern2d_interpolator.dart.)
  • lib/src/envy/interpolate/point_list_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/point_list_interpolator.dart.)
  • lib/src/envy/interpolate/vector2_interpolator.dart (Run dartfmt to format lib/src/envy/interpolate/vector2_interpolator.dart.)
  • lib/src/envy/text/font.dart (Run dartfmt to format lib/src/envy/text/font.dart.)
  • lib/src/envy/util/css_util.dart (Run dartfmt to format lib/src/envy/util/css_util.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (angular).

The package description is too short. (-8 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
angular ^5.2.0 5.3.1 6.0.0-alpha+1
collection ^1.14.0 1.14.12
quantity ^0.2.0+1 0.2.0+1
vector_math ^2.0.5 2.0.8
Transitive dependencies
analyzer 0.35.4 0.38.2
angular_ast 0.5.9 0.5.11
angular_compiler 0.4.3 0.4.5
args 1.5.2
async 2.3.0
build 1.1.6
build_config 0.4.1+1
built_collection 4.2.2
built_value 6.7.1
charcode 1.1.2
checked_yaml 1.0.2
code_builder 3.2.0
convert 2.1.1
crypto 2.1.3
csslib 0.14.6+1 0.16.1
dart2_constant 1.0.2+dart2
dart_style 1.2.4 1.2.10
fixnum 0.10.9
front_end 0.1.14 0.1.24
glob 1.1.7
intl 0.15.8 0.16.0
js 0.6.1+1
json_annotation 3.0.0
kernel 0.3.14 0.3.24
logging 0.11.3+2
matcher 0.12.5
meta 1.1.7
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
pub_semver 1.4.2
pubspec_parse 0.1.5
quiver 2.0.5
source_gen 0.9.4+4
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.1.16
Dev dependencies
angular_test ^2.1.0
build_runner ^1.1.0
build_test ^0.10.1+1
build_web_compilers ^1.0.0
test ^1.3.0