Class: Simulator
Defined in: packages/designer/types/framework/simulator.d.ts:32
Extends
Base
Constructors
new Simulator()
new Simulator(
options
):Simulator
Defined in: packages/designer/types/framework/simulator.d.ts:40
Parameters
options
Returns
Overrides
Base.constructor
Properties
contentWindow
contentWindow:
null
|Window
Defined in: packages/designer/types/framework/simulator.d.ts:33
designer
designer:
ShallowRef
<null
|Designer
>
Defined in: packages/designer/types/framework/simulator.d.ts:35
devtools
devtools:
DevTools
Defined in: packages/designer/types/framework/simulator.d.ts:39
engine
engine:
Engine
Defined in: packages/designer/types/framework/simulator.d.ts:36
isReady
isReady:
boolean
Defined in: packages/core/types/models/base.d.ts:3
Inherited from
Base.isReady
listeners
protected
listeners: () =>void
[]
Defined in: packages/core/types/models/base.d.ts:2
Returns
void
Inherited from
Base.listeners
materialPath
materialPath:
string
Defined in: packages/designer/types/framework/simulator.d.ts:37
rendered
rendered:
Ref
<symbol
,symbol
>
Defined in: packages/designer/types/framework/simulator.d.ts:38
renderer
renderer:
null
|Renderer
Defined in: packages/designer/types/framework/simulator.d.ts:34
Methods
capture()
capture():
Promise
<unknown
>
Defined in: packages/designer/types/framework/simulator.d.ts:46
Returns
Promise
<unknown
>
createEnv()
createEnv(
libraryExports
?,materialMapLibrary
?,materials
?,libraryLocaleMap
?):SimulatorEnv
Defined in: packages/designer/types/framework/simulator.d.ts:44
Parameters
libraryExports?
string
[]
materialMapLibrary?
Record
<string
, string
>
materials?
Material
[]
libraryLocaleMap?
Record
<string
, string
>
Returns
dispose()
dispose():
void
Defined in: packages/designer/types/framework/simulator.d.ts:47
Returns
void
emitReady()
emitReady(
libraryExports
?,materialExports
?,materialMapLibrary
?,libraryLocaleMap
?):Promise
<void
>
Defined in: packages/designer/types/framework/simulator.d.ts:43
Parameters
libraryExports?
string
[]
materialExports?
string
[]
materialMapLibrary?
Record
<string
, string
>
libraryLocaleMap?
Record
<string
, string
>
Returns
Promise
<void
>
init()
init(
iframe
,deps
,apis
,meta
,config
):void
Defined in: packages/designer/types/framework/simulator.d.ts:41
Parameters
iframe
Ref
<undefined
| HTMLIFrameElement
, undefined
| HTMLIFrameElement
>
deps
Ref
<Dependencie
[], Dependencie
[]>
apis
Ref
<ApiSchema
[], ApiSchema
[]>
meta
Ref
<MetaSchema
[], MetaSchema
[]>
config
Ref
<ProjectConfig
, ProjectConfig
>
Returns
void
ready()
ready(
callback
):void
Defined in: packages/core/types/models/base.d.ts:5
Parameters
callback
() => void
Returns
void
Inherited from
Base.ready
refresh()
refresh():
void
Defined in: packages/designer/types/framework/simulator.d.ts:45
Returns
void
resetReady()
resetReady():
void
Defined in: packages/core/types/models/base.d.ts:6
Returns
void
Inherited from
Base.resetReady
triggerReady()
protected
triggerReady():void
Defined in: packages/core/types/models/base.d.ts:4
Returns
void
Inherited from
Base.triggerReady