vizdom_select 2.0.2

  • Readme
  • Changelog
  • Installing
  • new51

Select #

Incremental DOM library to build beautiful graphs and plots.

Usage #

Selecting #

void main() {
  select('#root')
    ..select('.header', doo: (header) {
      final title = header.select('.title');
      DivElement node = title.element;
      node.text = "Vizdom";
      final subTitle = header.select('.sub-title');
      node = subTitle.element;
      node.text = "how-to";
    })
    ..select('.content', doo: (content) {
      final description = content.select('.description');
      DivElement node = description.element;
      node.text = "Use select to select elements.";
      final moreDescription = content.select('.more-description');
      node = moreDescription.element;
      node.text = "Use bind to bind data to elements.";
    });
}

Binding data #

// TODO

2.0.2 #

  • README

2.0.1 #

  • Selection API

Use this package as a library

1. Depend on it

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


dependencies:
  vizdom_select: ^2.0.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:vizdom_select/vizdom_select.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
8
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
51
Learn more about scoring.

We analyzed this package on Nov 11, 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:vizdom_select/vizdom_select.dart with components: html.

Health suggestions

Fix lib/binding/binding.dart. (-1.99 points)

Analysis of lib/binding/binding.dart reported 4 hints:

line 7 col 8: Unused import: 'package:vizdom_select/uitls/html.dart'.

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

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

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

Fix lib/component/component.dart. (-0.50 points)

Analysis of lib/component/component.dart reported 1 hint:

line 8 col 3: This function has a return type of 'Element', but doesn't end with a return statement.

Format lib/binding/enter_node.dart.

Run dartfmt to format lib/binding/enter_node.dart.

Fix additional 4 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/selected/selected.dart (Run dartfmt to format lib/selected/selected.dart.)
  • lib/selection.dart (Run dartfmt to format lib/selection.dart.)
  • lib/uitls/html.dart (Run dartfmt to format lib/uitls/html.dart.)
  • lib/vizdom_select.dart (Run dartfmt to format lib/vizdom_select.dart.)

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and vizdom_select.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.5.0 <3.0.0
Dev dependencies
build_runner ^1.6.0
build_web_compilers ^2.3.0
pedantic ^1.8.0