NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import Writer from 'ngl/src/writer/writer.js'
public interface | source

Writer

Direct Subclass:

PdbWriter, SdfWriter, StlWriter

Base class for writers

Member Summary

Public Members
public get abstract
public get abstract
public get abstract

Method Summary

Public Methods
public

download(name: [type], ext: [type]): [type]

Trigger a download of the

public

getBlob(): Blob

Get a blob with the written data

public abstract

getData(): Anything

Public Members

public get abstract defaultExt: String source

Return:

String

the default file extension

public get abstract defaultName: String source

Return:

String

the default file name

public get abstract mimeType: String source

Return:

String

the default mime type

Public Methods

public download(name: [type], ext: [type]): [type] source

Trigger a download of the

Params:

NameTypeAttributeDescription
name [type]

[description]

ext [type]

[description]

Return:

[type]

[description]

public getBlob(): Blob source

Get a blob with the written data

Return:

Blob

the blob

public abstract getData(): Anything source

Return:

Anything

the data to be written