Skip to content

IApplicationOptions

Unofficial

Application options.

Import:

import type { IApplicationOptions } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface IApplicationOptions

Properties

PropertyTypeDescription
antialias?booleanWhether the renderer should use antialiasing.
autoDensity?booleanWhether to automatically adjust for device pixel ratio.
autoStart?booleanWhether to automatically start the render loop.
backgroundAlpha?numberBackground alpha.
backgroundColor?ColorSourceBackground color.
clearBeforeRender?booleanWhether to clear before each render.
forceCanvas?booleanWhether to force the canvas renderer.
height?numberHeight of the renderer.
powerPreference?WebGLPowerPreferencePower preference for the WebGL context.
preserveDrawingBuffer?booleanWhether to preserve the drawing buffer.
resizeTo?HTMLElement | WindowElement to resize the renderer to.
resolution?numberRenderer resolution.
sharedLoader?booleanWhether to use a shared loader.
sharedTicker?booleanWhether to use a shared ticker.
transparent?booleanWhether the renderer background is transparent.
view?ICanvasCanvas view to use.
width?numberWidth of the renderer.