setup a project using dtreemap

The d-treemap custom element and other modules from the dtreemap project can be consumed in two forms:

In order to install the built form:

bower install dtreemap-build

Similarly, for the source form:

bower install dtreemap

Using the source form is as simple as requiring the needed AMD modules using RequireJS:

require(["delite/register", "dtreemap/TreeMap", "dtreemap/DrillDownUp", "requirejs-domready/domReady!"], 
   function (register, TreeMap, DrillDownUp) {
   //...
});

In order to consume the built form you first need to load the corresponding layer and then the AMD modules as follows:

 require(["dtreemap/layer"], function() {
   require(["delite/register", "dtreemap/TreeMap", "dtreemap/DrillDownUp", "requirejs-domready/domReady!"], 
      function (register, TreeMap, DrillDownUp) {
      //...
   });
 });

When using the source form (or the built form if needed), you can built your resulting application using the grunt-amd-build project.