Skip to content

Commit

Permalink
Remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Jul 25, 2017
1 parent 3bf8d0e commit 659ce8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
File renamed without changes.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
*/
'use strict';

var at = require('arraytools');
var clone = require('clone');
var colorScale = require('./colormap');
var colorScale = require('./colorScale');
var isPlainObject = require('is-plain-obj');
var clamp = require('clamp');
var lerp = require('lerp')
Expand Down Expand Up @@ -44,7 +42,7 @@ function createColormap (spec) {
cmap = colorScale[colormap];

} else if (Array.isArray(colormap)) {
cmap = clone(colormap);
cmap = colormap.slice();

} else {
throw Error('unsupported colormap option', colormap);
Expand All @@ -69,7 +67,7 @@ function createColormap (spec) {
alpha = [1, 1];

} else {
alpha = clone(spec.alpha);
alpha = spec.alpha.slice();
}

// map index points from 0..1 to 0..n-1
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"description": "Great looking color maps",
"author": "bpostlethwaite",
"dependencies": {
"arraytools": "^1.1.2",
"clamp": "^1.0.1",
"clone": "^1.0.2",
"is-plain-obj": "^1.1.0",
"lerp": "^1.0.3"
},
Expand Down

0 comments on commit 659ce8e

Please sign in to comment.