Skip to content

Commit

Permalink
leaflet test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cary Greenwood authored and Cary Greenwood committed Jan 29, 2015
0 parents commit 3c2e6ad
Show file tree
Hide file tree
Showing 46 changed files with 15,116 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Empty file added CHANGELOG
Empty file.
42 changes: 42 additions & 0 deletions CONTRIBUTE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# How to contribute to heatmap.js

@ TODO: more

## Prerequisites

- npm
- grunt-cli
- Texteditor (recommended: Sublime)

## Coding Style

### Tabs or Spaces?

Spaces! 2 spaces.

## Typical Workflow of a Contribution to heatmap.js

A contribution to heatmap.js is not a plugin. If you want to contribute a plugin a similar workflow applies but you don't have to run the watcher (because it won't go into the build).

### Checkout repository

### Install

`npm install`

### Create a new feature branch

### Add new file to watcher

If you're introducing a new file you'll have to add it to the `package.json` 's buildFiles

### Run watcher

`grunt`

### Add your code

### Add an example/tests

### Create pull request

72 changes: 72 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*global module:false*/
module.exports = function(grunt) {

var packagejson = grunt.file.readJSON('package.json');
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: packagejson,
banner: '/*\n * <%= pkg.title || pkg.name %> v<%= pkg.version %> | JavaScript Heatmap Library\n *\n * Copyright 2008-2014 Patrick Wied <[email protected]> - All rights reserved.\n * Dual licensed under MIT and Beerware license \n *\n * :: <%= grunt.template.today("yyyy-mm-dd HH:MM") %>\n */\n',
// Task configuration.
concat: {
options: {
banner: '<%= banner %>'+';(function (name, context, factory) {\n\n // Supports UMD. AMD, CommonJS/Node.js and browser context\n if (typeof module !== "undefined" && module.exports) {\n module.exports = factory();\n } else if (typeof define === "function" && define.amd) {\n define(factory);\n } else {\n context[name] = factory();\n }\n\n})("h337", this, function () {\n',
footer: '\n\n});'
},
dist: {
src: packagejson.buildFiles,
dest: 'build/heatmap.js'
}
},
uglify: {
options: {
banner: '<%= banner %>',
mangle: true,
compress: false, //compress must be false, otherwise behaviour change!!!!!
beautify: false
},
dist: {
src: 'build/heatmap.js',
dest: 'build/heatmap.min.js'
}
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
unused: true,
boss: true,
eqnull: true,
browser: true
},
gruntfile: {
src: 'Gruntfile.js'
}
},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile']
},
dist: {
files: packagejson.buildFiles,
tasks: ['concat', 'jshint', 'uglify']
}
}
});

// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');

// Default task.
grunt.registerTask('default', ['concat', 'jshint', 'uglify', 'watch']);
};
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2014 Patrick Wied

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# heatmap.js v2.0.0

[![Gittip](http://img.shields.io/gittip/pa7.svg)](https://www.gittip.com/pa7/)
<br />Dynamic Heatmaps for the Web. Get the latest release [here](https://github.com/pa7/heatmap.js/releases)

## Examples

There is a [list of all available live examples](http://www.patrick-wied.at/static/heatmapjs/examples.html) with code snippets on the [heatmap.js website](http://www.patrick-wied.at/static/heatmapjs/).

Local examples are stored in the `/examples/` folder.


### How to run the local examples

Start a webserver (e.g. python SimpleHTTPServer from the project directory root):

`python -m SimpleHTTPServer 1337 &`

Then browse to

`http://localhost:1337/examples/`

## Contributions

Please check the [contribution guidelines](#) before submitting contributions.

## Mailing list

Want to receive the latest updates and news about heatmap.js?

There is a [mailing list](http://eepurl.com/0mmV5). No spam, just news and important updates.
Binary file added README.pdf
Binary file not shown.
31 changes: 31 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "heatmap.js-amd",
"version": "2.0.0",
"description": "Dynamic JavaScript Heatmaps for the Web",
"main": "build/heatmap.min.js",
"homepage": "http://www.patrick-wied.at/static/heatmapjs/",
"authors": [
"Patrick Wied <[email protected]>"
],
"repository": {
"type": "git",
"url": "https://github.com/pa7/heatmap.js.git"
},
"keywords": [
"heatmap", "heat map", "heatmaps"
],
"main": [
"build/heatmap.js",
"plugins/gmaps-heatmap.js",
"plugins/leaflet-heatmap.js",
"plugins/svg-area-heatmap.js"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
Binary file added build/.DS_Store
Binary file not shown.
Loading

0 comments on commit 3c2e6ad

Please sign in to comment.