LogoPixi’VN
pixi-jsInterfaces

Interface: GetCanvasBoundingBoxOptions

Defined in: node_modules/pixi.js/lib/utils/canvas/getCanvasBoundingBox.d.ts:4

Internal

Properties

canvas

> canvas: ICanvas

Defined in: node_modules/pixi.js/lib/utils/canvas/getCanvasBoundingBox.d.ts:6

The canvas to measure


height?

> optional height?: number

Defined in: node_modules/pixi.js/lib/utils/canvas/getCanvasBoundingBox.d.ts:10

Optional. The height to analyze (defaults to canvas.height)


output?

> optional output?: Rectangle

Defined in: node_modules/pixi.js/lib/utils/canvas/getCanvasBoundingBox.d.ts:18

Optional. The rectangle to store the result in.


resolution?

> optional resolution?: number

Defined in: node_modules/pixi.js/lib/utils/canvas/getCanvasBoundingBox.d.ts:16

Optional. The resolution at which to analyze the canvas, between 0-1. Lower values improve performance for large canvases but may be less precise. Default is 1 (full resolution).


width?

> optional width?: number

Defined in: node_modules/pixi.js/lib/utils/canvas/getCanvasBoundingBox.d.ts:8

Optional. The width to analyze (defaults to canvas.width)