Skip to content

Commit

Permalink
Merge branch 'release/2.0.0-alpha'
Browse files Browse the repository at this point in the history
  • Loading branch information
BigFatDog committed Mar 23, 2018
2 parents 9b492d4 + 3c543e5 commit 317a617
Show file tree
Hide file tree
Showing 65 changed files with 1,415 additions and 1,718 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"presets": ["es2015"]
"presets": [
"es2015"
],
"plugins": ["transform-object-rest-spread"]
}
3 changes: 1 addition & 2 deletions demo/color-rects.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@
useFV: false,
colorblind: false
});
let _selector = new VizArtCore.HclSelector(VizArtCore.AllHcl);
let subspaceSamples = VizArtCore.getSubColorSpace(palette, function (c) {
return _selector.validate(c.hcl);
return VizArtCore.hclSelector(VizArtCore.AllHcl, c.hcl);
});

let primes = _.keys(subspaceSamples);
Expand Down
5 changes: 2 additions & 3 deletions demo/colorspace-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
<script>
$(document).ready(function () {

let _selector = new VizArtCore.HclSelector(VizArtCore.IceCube);
let subspaceSamples = VizArtCore.selectColorSpace(function (c) {
return _selector.validate(c.hcl);
const subspaceSamples = VizArtCore.selectColorSpace(function (c) {
return VizArtCore.hclSelector(VizArtCore.IceCube, c.hcl);
});


Expand Down
3 changes: 1 addition & 2 deletions demo/keiko.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

// let palette = VizArtCore.reduceToPalette(10, VizArtCore.FancyLight);
// console.log(palette);
let _selector = new VizArtCore.HclSelector(VizArtCore.FancyLight);

const _original20 = ['#528b6a'
,'#91c095'
Expand Down Expand Up @@ -83,7 +82,7 @@


let subspaceSamples = VizArtCore.getSubColorSpace(palette, function (c) {
return _selector.validate(c.hcl);
return VizArtCore.hclSelector(VizArtCore.FancyLight, c.hcl);
});

let forceStopTimers = [];
Expand Down
3 changes: 1 addition & 2 deletions demo/scientific-color.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@
}

let palette = VizArtCore.reduceToPalette(10, VizArtCore.FancyLight);
let _selector = new VizArtCore.HclSelector(VizArtCore.FancyLight);
let subspaceSamples = VizArtCore.getSubColorSpace(palette, function (c) {
return _selector.validate(c.hcl);
return VizArtCore.hclSelector(VizArtCore.FancyLight, c.hcl);
});

let forceStopTimers = [];
Expand Down
3 changes: 1 addition & 2 deletions demo/stack-overflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,8 @@ <h2>Graph Filters</h2>
}
});
// let palette = VizArtCore.reduceToPalette(totalColors, VizArtCore.Pimp);
let _selector = new VizArtCore.HclSelector(VizArtCore.Pimp);
let subspaceSamples = VizArtCore.getSubColorSpace(palette, function (c) {
return _selector.validate(c.hcl);
return VizArtCore.hclSelector(VizArtCore.Pimp, c.hcl);
});

function mapColor(d) {
Expand Down
7 changes: 1 addition & 6 deletions demo/twitter.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,14 @@
<div id="test"></div>
<script>
$(document).ready(function () {


let palette = VizArtCore.reduceToPalette(20, VizArtCore.AllHcl, {
colorblind: false
});
let _selector = new VizArtCore.HclSelector(VizArtCore.AllHcl);
let subspaceSamples = VizArtCore.getSubColorSpace(palette, function (c) {
return _selector.validate(c.hcl);
return VizArtCore.hclSelector(VizArtCore.AllHcl, c.hcl);
});




d3.json('assets/twitter_mutual2.json', (err, res)=>{
console.log(res);
// INIT SIGMA
Expand Down
Loading

0 comments on commit 317a617

Please sign in to comment.