Skip to content

Commit

Permalink
dot now produced again; modified build w/o flow, eslint, audit
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Jun 5, 2017
1 parent 607222f commit 64e3e31
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
13 changes: 9 additions & 4 deletions dist/jssm.es5.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/lib/index.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset='utf-8' />
<title>jssm 2.1.4 | Documentation</title>
<title>jssm 2.2.0 | Documentation</title>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' type='text/css' rel='stylesheet' />
<link href='assets/style.css' type='text/css' rel='stylesheet' />
Expand All @@ -14,7 +14,7 @@
<div class='fixed xs-hide fix-3 overflow-auto max-height-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>jssm</h3>
<div class='mb1'><code>2.1.4</code></div>
<div class='mb1'><code>2.2.0</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down
3 changes: 2 additions & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "2.1.4",
"version": "2.2.0",
"engines": {
"node": ">=6.0.0"
},
Expand All @@ -25,6 +25,7 @@
"coverage": "nyc report --reporter=text-lcov | coveralls",
"vet": "npm run flow && npm run eslint",
"audit": "echo \\\"major\\\" remaining. . : `grep major src/js/jssm*.js | wc -l`\\\\n\\\"wasteful\\\" remaining : `grep wasteful src/js/jssm*.js | wc -l`\\\\n\\\"any\\\" remaining. . . : `grep any src/js/jssm*.js | wc -l`\\\\n\\\"mixed\\\" remaining. . : `grep mixed src/js/jssm*.js | wc -l`\\\\n\\\"todo\\\" remaining . . : `grep todo src/js/jssm*.js | wc -l`\\\\n\\\"nextdo\\\" remaining . : `grep nextdo src/js/jssm*.js | wc -l`\\\\n\\\"whargarbl\\\" remaining: `grep whargarbl src/js/jssm*.js | wc -l`\\\\n\\\"comeback\\\" remaining : `grep comeback src/js/jssm*.js | wc -l`\\\\n\\\"fixme\\\" remaining. . : `grep fixme src/js/jssm*.js | wc -l`\\\\n\\\"stochable\\\" remaining: `grep stochable src/js/jssm*.js | wc -l`\\\\n\\\"checkme\\\" remaining. : `grep checkme src/js/jssm*.js | wc -l`",
"qbuild": "npm run make && npm run test-verbose && npm run minify && npm run docs && npm run dist",
"build": "npm run make && npm run vet && npm run test-verbose && npm run audit && npm run minify && npm run docs && npm run dist",
"nyc-build": "npm run vet && npm run make && npm run test-verbose && npm run audit && npm run nyc-test",
"postinstall": "npm run build",
Expand Down
6 changes: 3 additions & 3 deletions src/js/jssm-viz.js
Expand Up @@ -30,14 +30,14 @@ const viz = jssm => {
const strike = [];
const edges = jssm.states().map( (s:any) =>

jssm.exits_for(s).map( (ex:any) => {
jssm.list_exits(s).map( (ex:any) => {

if ( strike.find(row => (row[0] === s) && (row[1] == ex) ) ) {
return ''; // already did the pair
}

const edge = jssm.transition_for(s, ex),
pair = jssm.transition_for(ex, s),
const edge = jssm.list_transitions(s, ex),
pair = jssm.list_transitions(ex, s),
double = pair && (s !== ex),

head_state = jssm.state_for(s),
Expand Down
4 changes: 4 additions & 0 deletions src/js/jssm.js
Expand Up @@ -437,6 +437,10 @@ class machine<mNT, mDT> {



viz() : string {
return viz(this);
}

set_viz_colors() : void {

this._viz_colors = {
Expand Down

0 comments on commit 64e3e31

Please sign in to comment.