Skip to content

Commit

Permalink
update dependencies, package.json, and rollup.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
samussiah committed Nov 1, 2018
1 parent bfe975c commit ff274fb
Show file tree
Hide file tree
Showing 4 changed files with 925 additions and 2,234 deletions.
178 changes: 31 additions & 147 deletions build/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,16 +352,16 @@
cat.controls.settingsWrap.append('span').text('Settings: ');

/*
//////////////////////////////////////
//initialize the config status icon
//////////////////////////////////////
cat.controls.settingsStatus = settingsSection
.append("div")
.style("font-size", "1.5em")
.style("float", "right")
.style("cursor", "pointer");
settingsSection.append("br");
*/
//////////////////////////////////////
//initialize the config status icon
//////////////////////////////////////
cat.controls.settingsStatus = settingsSection
.append("div")
.style("font-size", "1.5em")
.style("float", "right")
.style("cursor", "pointer");
settingsSection.append("br");
*/

//////////////////////////////////////////////////////////////////////
//radio buttons to toggle between "text" and "form" based settings
Expand Down Expand Up @@ -538,122 +538,6 @@
: typeof obj;
};

var asyncGenerator = (function() {
function AwaitValue(value) {
this.value = value;
}

function AsyncGenerator(gen) {
var front, back;

function send(key, arg) {
return new Promise(function(resolve, reject) {
var request = {
key: key,
arg: arg,
resolve: resolve,
reject: reject,
next: null
};

if (back) {
back = back.next = request;
} else {
front = back = request;
resume(key, arg);
}
});
}

function resume(key, arg) {
try {
var result = gen[key](arg);
var value = result.value;

if (value instanceof AwaitValue) {
Promise.resolve(value.value).then(
function(arg) {
resume('next', arg);
},
function(arg) {
resume('throw', arg);
}
);
} else {
settle(result.done ? 'return' : 'normal', result.value);
}
} catch (err) {
settle('throw', err);
}
}

function settle(type, value) {
switch (type) {
case 'return':
front.resolve({
value: value,
done: true
});
break;

case 'throw':
front.reject(value);
break;

default:
front.resolve({
value: value,
done: false
});
break;
}

front = front.next;

if (front) {
resume(front.key, front.arg);
} else {
back = null;
}
}

this._invoke = send;

if (typeof gen.return !== 'function') {
this.return = undefined;
}
}

if (typeof Symbol === 'function' && Symbol.asyncIterator) {
AsyncGenerator.prototype[Symbol.asyncIterator] = function() {
return this;
};
}

AsyncGenerator.prototype.next = function(arg) {
return this._invoke('next', arg);
};

AsyncGenerator.prototype.throw = function(arg) {
return this._invoke('throw', arg);
};

AsyncGenerator.prototype.return = function(arg) {
return this._invoke('return', arg);
};

return {
wrap: function(fn) {
return function() {
return new AsyncGenerator(fn.apply(this, arguments));
};
},
await: function(value) {
return new AwaitValue(value);
}
};
})();

// Nice script loader from here: https://stackoverflow.com/questions/538745/how-to-tell-if-a-script-tag-failed-to-load

function scriptLoader() {}
Expand Down Expand Up @@ -1078,28 +962,28 @@

// minimize controls - for later?
/*
cat.controls.minimize = controlWrap
.append("div")
.attr("class", "minimize")
.text("<<")
.style("float", "left")
.on("click", function() {
cat.controls.wrap.classed("hidden", true);
cat.wrap
.insert("div", ":first-child")
.attr("class", "maximize")
.text(">>")
cat.controls.minimize = controlWrap
.append("div")
.attr("class", "minimize")
.text("<<")
.style("float", "left")
.on("click", function() {
cat.controls.wrap.classed("hidden", false);
d3.select(this).remove();
cat.controls.wrap.classed("hidden", true);
cat.wrap
.insert("div", ":first-child")
.attr("class", "maximize")
.text(">>")
.on("click", function() {
cat.controls.wrap.classed("hidden", false);
d3.select(this).remove();
});
});
});
*/
*/
}

/*------------------------------------------------------------------------------------------------\
Define controls object.
\------------------------------------------------------------------------------------------------*/
Define controls object.
\------------------------------------------------------------------------------------------------*/

var controls = {
init: init$1,
Expand Down Expand Up @@ -1317,8 +1201,8 @@
}

/*------------------------------------------------------------------------------------------------\
Define controls object.
\------------------------------------------------------------------------------------------------*/
Define controls object.
\------------------------------------------------------------------------------------------------*/

var settings = {
set: set$1,
Expand Down Expand Up @@ -1462,8 +1346,8 @@
}

/*------------------------------------------------------------------------------------------------\
Define controls object.
\------------------------------------------------------------------------------------------------*/
Define controls object.
\------------------------------------------------------------------------------------------------*/

var status = {
chartCreateStatus: chartCreateStatus,
Expand Down
Loading

0 comments on commit ff274fb

Please sign in to comment.