Skip to content

1681-engine / index / PixelZoomOptions

Interface: PixelZoomOptions ​

Defined in: src/core/pixelZoom.ts:8

Properties ​

baseMax? ​

ts
optional baseMax?: number;

Defined in: src/core/pixelZoom.ts:13


baseMin? ​

ts
optional baseMin?: number;

Defined in: src/core/pixelZoom.ts:12

The least and most zoom a screen gets on its own, before a player's offset (default 2 and 5).


halfZoom? ​

ts
optional halfZoom?: number | null;

Defined in: src/core/pixelZoom.ts:18

The one fractional zoom allowed, or null for whole steps only (default 1.5).


max? ​

ts
optional max?: number;

Defined in: src/core/pixelZoom.ts:16


min? ​

ts
optional min?: number;

Defined in: src/core/pixelZoom.ts:15

The least and most zoom any offset may reach (default 1 and 6).


pxPerStep? ​

ts
optional pxPerStep?: number;

Defined in: src/core/pixelZoom.ts:10

Canvas height (CSS px) worth one zoom step before clamping (default 290: ×2 on a phone held landscape, ×4 at 1080p).

Released under the MIT License.