index.js
function heatmap(config){
            // private variables
            var _ = {
                radius : 40,
                element : {},
                canvas : {},
                acanvas: {},
                ctx : {},
                actx : {},
                legend: null,
                visible : true,
                width : 0,
                height : 0,
                max : false,
                gradient : false,
                opacity: 180,
                premultiplyAlpha: false,
                bounds: {
                    l: 1000,
                    r: 0,
                    t: 1000,
                    b: 0
                },
                debug: false
            };
            // heatmap store containing the datapoints and information about the maximum
            // accessible via instance.store
            this.store = new store(this);

            this.get = function(key){
                return _[key];
            };
            this.set = function(key, value){
                _[key] = value;
            };
            // configure the heatmap when an instance gets created
            this.configure(config);
            // and initialize it
            this.init();
        }
function heatmap(config){
            // private variables
            var _ = {
                radius : 40,
                element : {},
                canvas : {},
                acanvas: {},
                ctx : {},
                actx : {},
                legend: null,
                visible : true,
                width : 0,
                height : 0,
                max : false,
                gradient : false,
                opacity: 180,
                premultiplyAlpha: false,
                bounds: {
                    l: 1000,
                    r: 0,
                    t: 1000,
                    b: 0
                },
                debug: false
            };
            // heatmap store containing the datapoints and information about the maximum
            // accessible via instance.store
            this.store = new store(this);

            this.get = function(key){
                return _[key];
            };
            this.set = function(key, value){
                _[key] = value;
            };
            // configure the heatmap when an instance gets created
            this.configure(config);
            // and initialize it
            this.init();
        }
function heatmap ( config ) { // private variables var _ = { radius : 40 , element : { } , canvas : { } , acanvas : { } , ctx : { } , actx : { } , legend : null , visible : true , width : 0 , height : 0 , max : false , gradient : false , opacity : 180 , premultiplyAlpha : false , bounds : { l : 1000 , r : 0 , t : 1000 , b : 0 } , debug : false } ; // heatmap store containing the datapoints and information about the maximum // accessible via instance.store this . store = new store ( this ) ; this . get = function ( key ) { return _ [ key ] ; } ; this . set = function ( key , value ) { _ [ key ] = value ; } ; // configure the heatmap when an instance gets created this . configure ( config ) ; // and initialize it this . init ( ) ; }
heatmap object constructor
heatmap object constructor