Home Reference Source
import {FlatDisplay} from 'potassium-es/src/Engine.js'
public class | source

FlatDisplay

Extends:

EventHandlerSceneDisplay → FlatDisplay

FlatDisplay is mostly used during development as an easy way to render a portal or immersive scene to the flat page to check the rendering and layout of Components WebVRDisplay and WebXRDisplay are the displays used in production.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public get

el: *

public get

Method Summary

Public Methods
public

start(): *

public

stop(): *

Inherited Summary

From class EventHandler
public get

listeners: EventListener[]: *

public

addListener(callback: function(eventName: string, eventSource: EventHandler), eventName: Object | Symbol, once: bool)

public
public

removeListener(callback: *, eventName: undefined)

public

trigger(eventName: *, params: ...*)

Send an event to listeners

From class SceneDisplay
public get
public get
public

start()

public

stop()

Public Constructors

public constructor() source

Override:

SceneDisplay#constructor

Public Members

public get blendMode: * source

Override:

SceneDisplay#blendMode

public get el: * source

public get isStarted: * source

Override:

SceneDisplay#isStarted

Public Methods

public start(): * source

Override:

SceneDisplay#start

Return:

*

public stop(): * source

Override:

SceneDisplay#stop

Return:

*