update vibrant
This commit is contained in:
parent
0943e64c09
commit
140c6917b5
1 changed files with 337 additions and 342 deletions
|
@ -1,5 +1,5 @@
|
|||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
||||
/*
|
||||
define([], function () {
|
||||
/*
|
||||
* quantize.js Copyright 2008 Nick Rabinowitz
|
||||
* Ported to node.js by Olivier Lesnicki
|
||||
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -488,11 +488,7 @@ var MMCQ = (function() {
|
|||
}
|
||||
})();
|
||||
|
||||
module.exports = MMCQ.quantize
|
||||
|
||||
},{}],2:[function(require,module,exports){
|
||||
|
||||
/*
|
||||
/*
|
||||
Vibrant.js
|
||||
by Jari Zwarts
|
||||
|
||||
|
@ -504,11 +500,11 @@ module.exports = MMCQ.quantize
|
|||
Google - Palette support library in Android
|
||||
*/
|
||||
|
||||
var CanvasImage, Swatch, Vibrant,
|
||||
var CanvasImage, Swatch, Vibrant,
|
||||
bind = function (fn, me) { return function () { return fn.apply(me, arguments); }; },
|
||||
slice = [].slice;
|
||||
|
||||
window.Swatch = Swatch = (function () {
|
||||
window.Swatch = Swatch = (function () {
|
||||
Swatch.prototype.hsl = void 0;
|
||||
|
||||
Swatch.prototype.rgb = void 0;
|
||||
|
@ -568,11 +564,10 @@ module.exports = MMCQ.quantize
|
|||
|
||||
return Swatch;
|
||||
|
||||
})();
|
||||
|
||||
window.Vibrant = Vibrant = (function () {
|
||||
Vibrant.prototype.quantize = require('quantize');
|
||||
})();
|
||||
|
||||
window.Vibrant = Vibrant = (function () {
|
||||
Vibrant.prototype.quantize = MMCQ.quantize;
|
||||
Vibrant.prototype._swatches = [];
|
||||
|
||||
Vibrant.prototype.TARGET_DARK_LUMA = 0.26;
|
||||
|
@ -824,7 +819,7 @@ module.exports = MMCQ.quantize
|
|||
|
||||
return Vibrant;
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
|
||||
/*
|
||||
|
@ -835,7 +830,7 @@ module.exports = MMCQ.quantize
|
|||
Stolen from https://github.com/lokesh/color-thief
|
||||
*/
|
||||
|
||||
window.CanvasImage = CanvasImage = (function () {
|
||||
window.CanvasImage = CanvasImage = (function () {
|
||||
function CanvasImage(image) {
|
||||
|
||||
this.canvas = document.createElement('canvas');
|
||||
|
@ -875,6 +870,6 @@ module.exports = MMCQ.quantize
|
|||
|
||||
return CanvasImage;
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
},{"quantize":1}]},{},[2]);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue