envy 0.2.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 48

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]
61
Health:
Code health derived from static analysis. [more]
5
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
82
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

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

  • Dart: 2.6.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. (-34.03 points)

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

line 14 col 41: Unnecessary new keyword.

line 38 col 27: Unnecessary new keyword.

line 40 col 17: Unnecessary new keyword.

line 43 col 18: Unnecessary new keyword.

line 70 col 15: Unnecessary new keyword.

Fix lib/src/envy/graphic/twod/graphic2d_node.dart. (-17.34 points)

Analysis of lib/src/envy/graphic/twod/graphic2d_node.dart reported 38 hints, including:

line 77 col 28: Unnecessary new keyword.

line 80 col 44: Avoid const keyword.

line 88 col 31: Unnecessary new keyword.

line 89 col 33: Unnecessary new keyword.

line 91 col 33: Unnecessary new keyword.

Fix lib/src/envy/text/font.dart. (-16.93 points)

Analysis of lib/src/envy/text/font.dart reported 37 hints, including:

line 26 col 30: Unnecessary new keyword.

line 62 col 35: Unnecessary new keyword.

line 65 col 35: Unnecessary new keyword.

line 68 col 36: Unnecessary new keyword.

line 71 col 36: Unnecessary new keyword.

Fix additional 114 files with analysis or formatting issues. (-215.98 points)

Additional issues in the following files:

  • lib/src/envy/color/color.dart (34 hints)
  • lib/src/envy/envy_property.dart (31 hints)
  • lib/src/envy/html/html_node.dart (22 hints)
  • lib/src/envy/css/enum/css_length_units.dart (14 hints)
  • lib/src/envy/html/media_node.dart (14 hints)
  • lib/src/envy/html/canvas_node.dart (13 hints)
  • lib/src/envy/data/data_accessor.dart (12 hints)
  • lib/src/envy/graphic/twod/enum/anchor_mode2d.dart (10 hints)
  • lib/src/envy/graphic/twod/enum/composite_operation2d.dart (10 hints)
  • lib/src/envy/html/image_node.dart (10 hints)
  • lib/src/envy/graphic/twod/triangle2d.dart (8 hints)
  • lib/src/envy/interpolate/gradient2d_interpolator.dart (8 hints)
  • lib/src/envy/animation/timing_function.dart (7 hints)
  • lib/src/envy/geo/geocoord.dart (7 hints)
  • lib/src/envy/graphic/twod/annular_section2d.dart (7 hints)
  • lib/src/envy/interpolate/css_style_interpolator.dart (7 hints)
  • lib/src/envy/interpolate/drawing_style2d_interpolator.dart (7 hints)
  • lib/src/envy/graphic/twod/enum/text_baseline2d.dart (6 hints)
  • lib/src/envy/graphic/twod/image2d.dart (6 hints)
  • lib/src/envy/graphic/twod/path2d.dart (6 hints)
  • lib/src/envy/animation/timeline.dart (5 hints)
  • lib/src/envy/css/css_property.dart (5 hints)
  • lib/src/envy/css/enum/css_font_style.dart (5 hints)
  • lib/src/envy/data/source/number_list/number_list_data.dart (5 hints)
  • lib/src/envy/graphic/twod/cross2d.dart (5 hints)
  • lib/src/envy/graphic/twod/enum/path_interpolation2d.dart (5 hints)
  • lib/src/envy/graphic/twod/enum/text_align2d.dart (5 hints)
  • lib/src/envy/graphic/twod/text2d.dart (5 hints)
  • lib/src/envy/html/video_node.dart (5 hints)
  • lib/src/envy/animation/fill_mode.dart (4 hints)
  • lib/src/envy/animation/player.dart (4 hints)
  • lib/src/envy/data/source/anchor2d/anchor2d_data.dart (4 hints)
  • lib/src/envy/data/source/angle/angle_data.dart (4 hints)
  • lib/src/envy/graphic/twod/line2d.dart (4 hints)
  • lib/src/envy/graphic/twod/transform2d_group.dart (4 hints)
  • lib/src/envy/html/enum/population_mode.dart (4 hints)
  • lib/src/envy/interpolate/point_list_interpolator.dart (4 hints)
  • lib/src/envy/css/css_style.dart (3 hints)
  • lib/src/envy/data/source/color/color_data.dart (3 hints)
  • lib/src/envy/data/source/font/font_data.dart (3 hints)
  • lib/src/envy/data/source/point_list/point_list_data.dart (3 hints)
  • lib/src/envy/data/source/text_align2d/text_align2d_source.dart (3 hints)
  • lib/src/envy/envy_root.dart (3 hints)
  • lib/src/envy/geo/projections.dart (3 hints)
  • lib/src/envy/graphic/twod/enum/line_cap2d.dart (3 hints)
  • lib/src/envy/graphic/twod/enum/line_join2d.dart (3 hints)
  • lib/src/envy/graphic/twod/star2d.dart (3 hints)
  • lib/src/envy/html/enum/dir_attribute.dart (3 hints)
  • lib/src/envy/interpolate/anchor2d_interpolator.dart (3 hints)
  • lib/src/envy/interpolate/number_list_interpolator.dart (3 hints)
  • lib/ng/envy_scene.dart (2 hints)
  • lib/src/envy/animation/timed_item_group.dart (2 hints)
  • lib/src/envy/animation/timing.dart (2 hints)
  • lib/src/envy/data/source/boolean/boolean_data.dart (2 hints)
  • lib/src/envy/data/source/boolean/boolean_source.dart (2 hints)
  • lib/src/envy/data/source/css/css_style_data.dart (2 hints)
  • lib/src/envy/data/source/drawing_style/drawing_style_data.dart (2 hints)
  • lib/src/envy/data/source/drawing_style/drawing_style_source.dart (2 hints)
  • lib/src/envy/data/source/extrapolate/random_sample.dart (2 hints)
  • lib/src/envy/data/source/number/number_data.dart (2 hints)
  • lib/src/envy/data/source/number/number_source.dart (2 hints)
  • lib/src/envy/data/source/number/random_number.dart (2 hints)
  • lib/src/envy/data/source/path_interpolation2d/path_interpolation2d_data.dart (2 hints)
  • lib/src/envy/data/source/string/string_data.dart (2 hints)
  • lib/src/envy/data/source/text_align2d/text_align2d_data.dart (2 hints)
  • lib/src/envy/data/source/text_baseline2d/text_baseline2d_data.dart (2 hints)
  • lib/src/envy/envy_scene_graph.dart (2 hints)
  • lib/src/envy/graphic/twod/bar2d.dart (2 hints)
  • lib/src/envy/graphic/twod/diamond2d.dart (2 hints)
  • lib/src/envy/graphic/twod/drawing_style2d.dart (2 hints)
  • lib/src/envy/graphic/twod/ellipse2d.dart (2 hints)
  • lib/src/envy/graphic/twod/point_list.dart (2 hints)
  • lib/src/envy/graphic/twod/rect2d.dart (2 hints)
  • lib/src/envy/graphic/twod/regular_polygon2d.dart (2 hints)
  • lib/src/envy/html/enum/cross_origin.dart (2 hints)
  • lib/src/envy/html/population/independent_population_strategy.dart (2 hints)
  • lib/src/envy/interpolate/angle_interpolator.dart (2 hints)
  • lib/src/envy/interpolate/color_interpolator.dart (2 hints)
  • lib/src/envy/interpolate/pattern2d_interpolator.dart (2 hints)
  • lib/src/envy/interpolate/point_interpolator.dart (2 hints)
  • lib/src/envy/interpolate/vector2_interpolator.dart (2 hints)
  • lib/src/envy/util/css_util.dart (2 hints)
  • lib/src/envy/data/source/color/color_rgb.dart (1 hint)
  • lib/src/envy/data/source/color/color_source.dart (1 hint)
  • lib/src/envy/data/source/data_source.dart (1 hint)
  • lib/src/envy/data/source/path_interpolation2d/path_interpolation2d_source.dart (1 hint)
  • lib/src/envy/data/source/point_list/geo_point_list.dart (1 hint)
  • lib/src/envy/data/source/string/string_source.dart (1 hint)
  • lib/src/envy/data/source/text_baseline2d/text_baseline2d_source.dart (1 hint)
  • lib/src/envy/dynamic_node.dart (1 hint)
  • lib/src/envy/envy_node.dart (1 hint)
  • lib/src/envy/graphic/twod/anchor2d.dart (1 hint)
  • lib/src/envy/graphic/twod/circle2d.dart (1 hint)
  • lib/src/envy/graphic/twod/number_list.dart (1 hint)
  • lib/src/envy/graphic/twod/pattern2d.dart (1 hint)
  • lib/src/envy/graphic/twod/point2d.dart (1 hint)
  • lib/src/envy/group_node.dart (1 hint)
  • lib/src/envy/html/div_node.dart (1 hint)
  • lib/src/envy/interpolate/binary_interpolator.dart (1 hint)
  • lib/src/envy/interpolate/font_interpolator.dart (1 hint)
  • lib/src/envy/interpolate/number_interpolator.dart (1 hint)
  • lib/src/envy/multiplicity/largest_size.dart (1 hint)
  • lib/src/envy/multiplicity/multiplicity.dart (1 hint)
  • lib/src/envy/multiplicity/smallest_size.dart (1 hint)
  • lib/src/envy/util/logger.dart (1 hint)
  • 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_source.dart (Run dartfmt to format lib/src/envy/data/source/anchor2d/anchor2d_source.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/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/geo/projection_source.dart (Run dartfmt to format lib/src/envy/data/source/geo/projection_source.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_list/number_list_source.dart (Run dartfmt to format lib/src/envy/data/source/number_list/number_list_source.dart.)
  • lib/src/envy/graphic/twod/gradient2d.dart (Run dartfmt to format lib/src/envy/graphic/twod/gradient2d.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.39.1
angular_ast 0.5.9 0.5.11
angular_compiler 0.4.3 0.4.5
args 1.5.2
async 2.4.0
build 1.2.2
build_config 0.4.1+1
built_collection 4.3.0
built_value 7.0.0
charcode 1.1.2
checked_yaml 1.0.2
code_builder 3.2.1
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.3.3
fixnum 0.10.11
front_end 0.1.14 0.1.29
glob 1.2.0
intl 0.15.8 0.16.0
js 0.6.1+1
json_annotation 3.0.0
kernel 0.3.14 0.3.29
logging 0.11.3+2
matcher 0.12.6
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
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.1.2+1
source_gen 0.9.4+4 0.9.4+6
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.2.0
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