mirror of
https://github.com/teoxoy/factorio-blueprint-editor.git
synced 2024-12-26 20:54:22 +02:00
update dependencies
This commit is contained in:
parent
c02052012b
commit
b8143b5a3e
@ -34,6 +34,4 @@ extends:
|
||||
- .eslint.typescript.yml
|
||||
# Turn off eslint rules that conflict with prettier
|
||||
- prettier
|
||||
# Turn off typescript-eslint rules that conflict with prettier
|
||||
- prettier/@typescript-eslint
|
||||
- .eslint.import.yml
|
||||
|
16
package.json
16
package.json
@ -13,13 +13,13 @@
|
||||
"format:fix": "prettier **/*.{js,ts,html,json,yml,md} --write --config .prettierrc.yml --ignore-path .gitignore"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^4.9.1",
|
||||
"@typescript-eslint/parser": "^4.9.1",
|
||||
"eslint": "^7.15.0",
|
||||
"eslint-config-prettier": "^7.0.0",
|
||||
"eslint-import-resolver-typescript": "^2.3.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"prettier": "^2.0.5",
|
||||
"typescript": "^4.1.3"
|
||||
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
||||
"@typescript-eslint/parser": "^5.7.0",
|
||||
"eslint": "^8.4.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-import-resolver-typescript": "^2.5.0",
|
||||
"eslint-plugin-import": "^2.25.3",
|
||||
"prettier": "^2.5.1",
|
||||
"typescript": "^4.5.4"
|
||||
}
|
||||
}
|
||||
|
@ -11,20 +11,20 @@
|
||||
"bugs": "https://github.com/Teoxoy/factorio-blueprint-editor/issues",
|
||||
"homepage": "https://github.com/Teoxoy/factorio-blueprint-editor",
|
||||
"dependencies": {
|
||||
"@pixi/basis": "^6.1.3",
|
||||
"ajv": "^6.12.2",
|
||||
"delaunator": "^4.0.1",
|
||||
"eventemitter3": "^4.0.4",
|
||||
"keyboardjs": "^2.5.1",
|
||||
"maxrects-packer": "^2.6.0",
|
||||
"@pixi/basis": "^6.2.0",
|
||||
"ajv": "^6.12.6",
|
||||
"delaunator": "^5.0.0",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"keyboardjs": "^2.6.4",
|
||||
"maxrects-packer": "^2.7.2",
|
||||
"pako": "^1.0.11",
|
||||
"pathfinding": "^0.4.18",
|
||||
"pixi.js": "^6.1.3"
|
||||
"pixi.js": "^6.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/delaunator": "^3.0.0",
|
||||
"@types/keyboardjs": "^2.5.0",
|
||||
"@types/pako": "^1.0.1",
|
||||
"@types/pathfinding": "0.0.4"
|
||||
"@types/pako": "^1.0.2",
|
||||
"@types/pathfinding": "^0.0.5"
|
||||
}
|
||||
}
|
||||
|
@ -474,9 +474,7 @@ function generatePipes(
|
||||
}
|
||||
}
|
||||
|
||||
function generatePathFromLine(
|
||||
l: IPoint[]
|
||||
): {
|
||||
function generatePathFromLine(l: IPoint[]): {
|
||||
path: IPoint[]
|
||||
distance: number
|
||||
} {
|
||||
|
@ -50,9 +50,7 @@ interface IArea extends IPoint {
|
||||
|
||||
DT = using delaunay triangulation to form lines between x (for optimization)
|
||||
*/
|
||||
export function generatePoles(
|
||||
entities: { position: IPoint; size: number; power: boolean }[]
|
||||
): {
|
||||
export function generatePoles(entities: { position: IPoint; size: number; power: boolean }[]): {
|
||||
poles: {
|
||||
name: string
|
||||
position: IPoint
|
||||
|
@ -4,7 +4,10 @@ import Delaunator from 'delaunator'
|
||||
|
||||
const hashPoint = (p: IPoint): string => `${p.x},${p.y}`
|
||||
|
||||
const equalPoints = <T extends IPoint>(a: T) => (b: T): boolean => a.x === b.x && a.y === b.y
|
||||
const equalPoints =
|
||||
<T extends IPoint>(a: T) =>
|
||||
(b: T): boolean =>
|
||||
a.x === b.x && a.y === b.y
|
||||
|
||||
/** Returns unique points from points array */
|
||||
const uniqPoints = <T extends IPoint>(list: T[]): T[] =>
|
||||
|
@ -9,16 +9,16 @@
|
||||
"dependencies": {
|
||||
"@fbe/editor": "*",
|
||||
"dat.gui": "^0.7.7",
|
||||
"file-saver": "^2.0.2",
|
||||
"@pixi/settings": "^6.1.3"
|
||||
"file-saver": "^2.0.5",
|
||||
"@pixi/settings": "^6.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/dat.gui": "^0.7.5",
|
||||
"@types/file-saver": "^2.0.1",
|
||||
"@types/node": "^14.0.5",
|
||||
"fuse-box": "^4.0.0",
|
||||
"stylus": "^0.54.7",
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "^4.1.3"
|
||||
"@types/dat.gui": "^0.7.7",
|
||||
"@types/file-saver": "^2.0.4",
|
||||
"@types/node": "^14.18.0",
|
||||
"fuse-box": "^4.0.1-next.8",
|
||||
"stylus": "^0.55.0",
|
||||
"ts-node": "^10.4.0",
|
||||
"typescript": "^4.5.4"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user