1
0
mirror of https://github.com/teoxoy/factorio-blueprint-editor.git synced 2025-01-18 02:58:31 +02:00

tweaked maxzoom

This commit is contained in:
Teoxoy 2018-09-19 00:03:52 +02:00
parent 1b52375d15
commit 2c57c3e92d
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ export class BlueprintContainer extends PIXI.Container {
this.zoomPan = new ZoomPan(this, G.sizeBPContainer, G.positionBPContainer, {
width: G.app.screen.width,
height: G.app.screen.height
}, 10)
}, 5)
this.movingEntityFilter = new AdjustmentFilter({ red: 0.4, blue: 0.4, green: 1 })

View File

@ -109,7 +109,8 @@ export class ZoomPan {
const zoom = Math.min(
(this.viewPortSize.width - this.viewPortPosition.x) / focusObjectSize.x,
(this.viewPortSize.height - this.viewPortPosition.y) / focusObjectSize.y
(this.viewPortSize.height - this.viewPortPosition.y) / focusObjectSize.y,
this.maxZoom
)
this.scaleX = zoom
this.scaleY = zoom