mirror of
https://github.com/teoxoy/factorio-blueprint-editor.git
synced 2025-01-28 03:29:29 +02:00
Updated PIXI
This commit is contained in:
parent
6445d803d9
commit
c7e7d73697
12
package-lock.json
generated
12
package-lock.json
generated
@ -731,9 +731,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/pixi.js": {
|
||||
"version": "4.7.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/pixi.js/-/pixi.js-4.7.3.tgz",
|
||||
"integrity": "sha512-bs2d1K3QSnqLvQC8vvUcKXjowBv6qWNLX/3OgWAZmE5/trVeLDM9NUx5i23X7+hbmoPRNv6G1Cq8+mvTMObzIw==",
|
||||
"version": "4.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/pixi.js/-/pixi.js-4.8.0.tgz",
|
||||
"integrity": "sha512-XAnOxKMyJdb0OBaJUuu17kUzR2KWKLKrOPR7laPyPYbK7faGfQjt0ueYXdTlFVDdqXPBh653+ozO0LKdLWPD3Q==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/ast": {
|
||||
@ -10772,9 +10772,9 @@
|
||||
"integrity": "sha1-i0tcQzsx5Bm8N53FZc4bg1qRs3I="
|
||||
},
|
||||
"pixi.js": {
|
||||
"version": "4.7.3",
|
||||
"resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-4.7.3.tgz",
|
||||
"integrity": "sha512-uYCTtjYiqSpwN2kZLmjwAL+1yrdCL/pVI+waYlkVqAHBnuQCpOuGA/0UunbxZ4T13xVZ4wN+ftPlEjxWl0th3w==",
|
||||
"version": "4.8.1",
|
||||
"resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-4.8.1.tgz",
|
||||
"integrity": "sha512-oL0fx8satkkcLTmnweB1idVElCMO/Lg2fs21YSUnrEJy/Skt0FH56nITEv/7epJqs6hq9ZhztSMCP98KiKF9+g==",
|
||||
"requires": {
|
||||
"bit-twiddle": "^1.0.2",
|
||||
"earcut": "^2.1.3",
|
||||
|
@ -22,13 +22,13 @@
|
||||
"immutable": "^3.8.2",
|
||||
"keyboardjs": "^2.4.1",
|
||||
"normalize.css": "^8.0.0",
|
||||
"pixi.js": "^4.7.3"
|
||||
"pixi.js": "^4.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0-beta.47",
|
||||
"@babel/preset-env": "^7.0.0-beta.47",
|
||||
"@types/keyboardjs": "^2.2.31",
|
||||
"@types/pixi.js": "^4.7.3",
|
||||
"@types/pixi.js": "^4.8.0",
|
||||
"babel-loader": "^8.0.0-beta.2",
|
||||
"clean-webpack-plugin": "^0.1.19",
|
||||
"copy-webpack-plugin": "^4.5.1",
|
||||
|
@ -94,6 +94,7 @@ document.body.appendChild(G.app.view)
|
||||
|
||||
// PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST
|
||||
// PIXI.settings.GC_MODE = PIXI.GC_MODES.MANUAL
|
||||
PIXI.Graphics.CURVES.adaptive = true
|
||||
|
||||
G.BPC = new BlueprintContainer()
|
||||
G.app.stage.addChild(G.BPC)
|
||||
|
@ -6,9 +6,9 @@ export class WiresContainer extends PIXI.Container {
|
||||
static createWire(p1: IPoint, p2: IPoint, color: string) {
|
||||
const wire = new PIXI.Graphics()
|
||||
if (color === 'red') {
|
||||
wire.lineStyle(1.3, 0xC83718)
|
||||
wire.lineStyle(1.3, 0xC83718, 1, 0.5)
|
||||
} else {
|
||||
wire.lineStyle(1.3, 0x588C38)
|
||||
wire.lineStyle(1.3, 0x588C38, 1, 0.5)
|
||||
}
|
||||
|
||||
const force = 0.25
|
||||
|
Loading…
x
Reference in New Issue
Block a user