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