แก้ coding style ภาค 12
This commit is contained in:
26
.eslintrc
26
.eslintrc
@@ -11,33 +11,9 @@ rules:
|
|||||||
- always
|
- always
|
||||||
no-return-assign: 0
|
no-return-assign: 0
|
||||||
one-var: 0
|
one-var: 0
|
||||||
/*
|
|
||||||
no-extra-parens: 1
|
|
||||||
curly: 0
|
|
||||||
block-scoped-var: 1
|
|
||||||
no-tabs: 1
|
|
||||||
no-negated-condition: 1
|
|
||||||
block-spacing: 1
|
|
||||||
brace-style: 1
|
|
||||||
comma-spacing: 1
|
|
||||||
comma-style: 1
|
|
||||||
eol-last: 1
|
|
||||||
func-call-spacing: 1
|
|
||||||
indent:
|
|
||||||
- error
|
|
||||||
- 2
|
|
||||||
key-spacing: 1
|
|
||||||
linebreak-style: 1
|
|
||||||
no-lonely-if: 1
|
|
||||||
*/
|
|
||||||
env:
|
env:
|
||||||
es6: true
|
es6: true
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
console: false
|
console: false
|
||||||
/*
|
performance: false
|
||||||
plugins:
|
|
||||||
- import
|
|
||||||
- node
|
|
||||||
- promise
|
|
||||||
*/
|
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ $(document).ready(function () {
|
|||||||
/**
|
/**
|
||||||
* Parse the data from the provided csv file using Papa Parse library
|
* Parse the data from the provided csv file using Papa Parse library
|
||||||
* @param {file} evt - csv file.
|
* @param {file} evt - csv file.
|
||||||
*/
|
|
||||||
function parseFile (evt) {
|
function parseFile (evt) {
|
||||||
// Clear the previous nodes
|
// Clear the previous nodes
|
||||||
d3.selectAll('.nodes').remove();
|
d3.selectAll('.nodes').remove();
|
||||||
@@ -90,6 +89,7 @@ function parseFile (evt) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process the data and pass it into D3 force simulation.
|
* Process the data and pass it into D3 force simulation.
|
||||||
@@ -194,7 +194,7 @@ function ticked () {
|
|||||||
// if (springForce) {
|
// if (springForce) {
|
||||||
// intercom.emit("passedData", simulation.force(forceName).distributionData());
|
// intercom.emit("passedData", simulation.force(forceName).distributionData());
|
||||||
// }
|
// }
|
||||||
if (manualStop && alreadyRanIterations == ITERATIONS) {
|
if (manualStop && alreadyRanIterations === ITERATIONS) {
|
||||||
ended();
|
ended();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user