mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-04-06 13:00:11 +03:00
Fix error in 'collinear-segments' lint (#4604)
This commit is contained in:
parent
9c9188ec90
commit
c7734830f0
File diff suppressed because one or more lines are too long
@ -376,14 +376,11 @@ module.exports = {
|
|||||||
currLine.push([currAbsCoord[0], currAbsCoord[1]]);
|
currLine.push([currAbsCoord[0], currAbsCoord[1]]);
|
||||||
} else {
|
} else {
|
||||||
if (_exitingStraightLine) {
|
if (_exitingStraightLine) {
|
||||||
if (!zCommands.includes(cmd)) {
|
if (straightLineCommands.includes(cmd)) {
|
||||||
currLine.push([currAbsCoord[0], currAbsCoord[1]]);
|
currLine.push([currAbsCoord[0], currAbsCoord[1]]);
|
||||||
}
|
}
|
||||||
// Get collinear coordinates
|
// Get collinear coordinates
|
||||||
for (let p = 0; p < currLine.length; p++) {
|
for (let p = 1; p < currLine.length - 1; p++) {
|
||||||
if (p === 0 || p === currLine.length - 1) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
let _collinearCoord = collinear(currLine[p - 1][0],
|
let _collinearCoord = collinear(currLine[p - 1][0],
|
||||||
currLine[p - 1][1],
|
currLine[p - 1][1],
|
||||||
currLine[p][0],
|
currLine[p][0],
|
||||||
|
Loading…
Reference in New Issue
Block a user