Home Reference Source
import TexturePreviewer from './ui/components/texturepreviewer.js'
public class | source

TexturePreviewer

texturepreview floating over the patchfield

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

paused: boolean

public

scale: number

Private Members
private
private
private

_ele: *

private
private

_enabled: boolean

private
private

_hoveringTexPort: boolean

private
private
private
private
private

_listeningFrame: boolean

private

_log: *

private

_mesh: *

private

_mode: *

private

_paused: boolean

private

_shader: *

private
private
private
private
private
private
private

_showing: boolean

private
private
private
private

_timer: *

Method Summary

Public Methods
public

deserialize(o: *)

public

drawVizLayer(vizCtx: *)

public
public

gotoOp()

public

hide()

public

hover(p: *)

public
public
public
public

render()

public
public

selectTexturePortId(opid: *, portid: *)

public

serialize(): *

public

setSize(size: *)

public
public

toggleSize(m: *)

public

updateTexturePort(port: *): *

Private Methods
private

_getCanvasSize(port: *, tex: *, meta: *): undefined[]

private

_htmlDataObject(o: *): {"title": *, "id": *, "opid": *, "order": *, "size": *}

private
private

_renderTexture(tp: *, element: *)

private

_showInfo(tex: *)

Public Constructors

public constructor() source

Public Members

public paused: boolean source

public scale: number source

Private Members

private _currentHeight: * source

private _currentWidth: * source

private _ele: * source

private _emptyCubemap: * source

private _enabled: boolean source

private _hoverTimeout: * source

private _hoveringTexPort: boolean source

private _infoStr: * source

private _lastClicked: * source

private _lastClickedP: * source

private _lastTimeActivity: number source

private _listeningFrame: boolean source

private _log: * source

private _mesh: * source

private _mode: * source

private _paused: boolean source

private _shader: * source

private _shaderTexCubemapUniform: * source

private _shaderTexUniform: * source

private _shaderTexUniformH: * source

private _shaderTexUniformW: * source

private _shaderTimeUniform: * source

private _shaderTypeUniform: * source

private _showing: boolean source

private _tempOldTexPort: * source

private _tempTexturePort: * source

private _texturePorts: *[] source

private _timer: * source

Public Methods

public deserialize(o: *) source

Params:

NameTypeAttributeDescription
o *

public drawVizLayer(vizCtx: *) source

Params:

NameTypeAttributeDescription
vizCtx *

public enableBgPreview() source

public gotoOp() source

public hide() source

public hover(p: *) source

Params:

NameTypeAttributeDescription
p *

public hoverEnd() source

public needsVizLayer(): * source

Return:

*

public pressedEscape() source

public render() source

public selectTexturePort(p: *) source

Params:

NameTypeAttributeDescription
p *

public selectTexturePortId(opid: *, portid: *) source

Params:

NameTypeAttributeDescription
opid *
portid *

public serialize(): * source

Return:

*

public setSize(size: *) source

Params:

NameTypeAttributeDescription
size *

public showActivity() source

public toggleSize(m: *) source

Params:

NameTypeAttributeDescription
m *

public updateTexturePort(port: *): * source

Params:

NameTypeAttributeDescription
port *

Return:

*

Private Methods

private _getCanvasSize(port: *, tex: *, meta: *): undefined[] source

Params:

NameTypeAttributeDescription
port *
tex *
meta *

Return:

undefined[]

private _htmlDataObject(o: *): {"title": *, "id": *, "opid": *, "order": *, "size": *} source

Params:

NameTypeAttributeDescription
o *

Return:

{"title": *, "id": *, "opid": *, "order": *, "size": *}

private _initListener() source

private _renderTexture(tp: *, element: *) source

Params:

NameTypeAttributeDescription
tp *
element *

private _showInfo(tex: *) source

Params:

NameTypeAttributeDescription
tex *