SDFLoader
Extends:
three~EventDispatcher → SDFLoader
Implements:
- EventListener
An SDF loader.
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
clear() Clears this loader. |
|
public |
handleEvent(event: Event) Handles events. |
|
public |
Loads the given serialised SDFs but doesn't fully revive them. This loader will emit a |
|
public |
Loads an image data url for a given serialised SDF. |
|
public |
Finishes a loading task. |
Public Constructors
public constructor() source
Public Methods
public handleEvent(event: Event) source
Handles events.
Params:
Name | Type | Attribute | Description |
event | Event | An event. |
public load(descriptions: Array) source
Loads the given serialised SDFs but doesn't fully revive them.
This loader will emit a load
event when all SDFs have been inflated. The
descriptions can then safely be revived using the SDFReviver.
Params:
Name | Type | Attribute | Description |
descriptions | Array | A list of serialised SDF. The individual descriptions will be inflated. |