Home Reference Source
import GlViewBox from './ui/glpatch/glviewbox.js'
public class | source

GlViewBox

Viewbox of current patch

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

cursor: *

public

glPatch: *

public get

height: *

public
public get
public get
public get

mouseX: *

public get

mouseY: *

public get

scrollX: *

public get
public get

scrollY: *

public get
public
public get

width: *

public get

zoom: *

Private Members
private
private
private
private

_cgl: *

private
private
private
private
private
private
private
private
private
private
private

_mouseX: number

private

_mouseY: number

private

_oldScrollX: number

private

_oldScrollY: number

private

_outOfBounds: boolean

private

_panStarted: number

private

_scrollX: number

private

_scrollY: number

private

_spaceDown: boolean

private
private

_viewResX: number

private

_viewResY: number

private

_zoom: *

Method Summary

Public Methods
public

animSwitchSubPatch(dur: *, sub: *, timeGrey: *, timeVisibleAgain: *, next: *)

public

animateScrollTo(x: *, y: *, dur: *, userInteraction: *)

public
public

animateZoom(z: *, dur: *)

public

centerSelectedOps(noAnim: *)

public

deSerialize(dataui: *)

public

keyScrollX(d: *)

public

keyScrollY(d: *)

public

patchToScreenConv(_x: *, _y: *): undefined[]

public

patchToScreenCoords(_x: *, _y: *): undefined[]

public

screenToPatchCoord(x: *, y: *, aspect: *): undefined[]

public

scrollTo(x: *, y: *, userInteraction: *)

public

serialize(dataui: *)

public

setMousePos(x: *, y: *)

public

setSize(w: *, h: *)

public
public

update()

public

wheelZoom(delta: *)

public

zoomStep(s: *)

Private Methods
private
private
private
private
private
private
private
private
private

_onCanvasWheel(event: *)

private

Public Constructors

public constructor() source

Public Members

public cursor: * source

public glPatch: * source

public get height: * source

public mousePatchNotPredicted: * source

public get mousePatchX: * source

public get mousePatchY: * source

public get mouseX: * source

public get mouseY: * source

public get scrollX: * source

public get scrollXZoom: * source

public get scrollY: * source

public get scrollYZoom: * source

public wheelMode: * source

public get width: * source

public get zoom: * source

Private Members

private _animScrollX: * source

private _animScrollY: * source

private _animZoom: * source

private _cgl: * source

private _currentSubPatchId: number source

private _defaultEasing: * source

private _eleTabs: * source

private _lastPosPixel: * source

private _mousePatchX: * source

private _mousePatchY: * source

private _mouseRightDownStartX: number source

private _mouseRightDownStartY: number source

private _mouseSmooth: *[] source

private _mouseSmoothCount: number source

private _mouseX: number source

private _mouseY: number source

private _oldScrollX: number source

private _oldScrollY: number source

private _outOfBounds: boolean source

private _panStarted: number source

private _scrollX: number source

private _scrollY: number source

private _spaceDown: boolean source

private _subPatchViewBoxes: {} source

private _viewResX: number source

private _viewResY: number source

private _zoom: * source

Public Methods

public animSwitchSubPatch(dur: *, sub: *, timeGrey: *, timeVisibleAgain: *, next: *) source

Params:

NameTypeAttributeDescription
dur *
sub *
timeGrey *
timeVisibleAgain *
next *

public animateScrollTo(x: *, y: *, dur: *, userInteraction: *) source

Params:

NameTypeAttributeDescription
x *
y *
dur *
userInteraction *

public animateToCenterAtMouseCoords() source

public animateZoom(z: *, dur: *) source

Params:

NameTypeAttributeDescription
z *
dur *

public centerSelectedOps(noAnim: *) source

Params:

NameTypeAttributeDescription
noAnim *

public deSerialize(dataui: *) source

Params:

NameTypeAttributeDescription
dataui *

public keyScrollX(d: *) source

Params:

NameTypeAttributeDescription
d *

public keyScrollY(d: *) source

Params:

NameTypeAttributeDescription
d *

public patchToScreenConv(_x: *, _y: *): undefined[] source

Params:

NameTypeAttributeDescription
_x *
_y *

Return:

undefined[]

public patchToScreenCoords(_x: *, _y: *): undefined[] source

Params:

NameTypeAttributeDescription
_x *
_y *

Return:

undefined[]

public screenToPatchCoord(x: *, y: *, aspect: *): undefined[] source

Params:

NameTypeAttributeDescription
x *
y *
aspect *

Return:

undefined[]

public scrollTo(x: *, y: *, userInteraction: *) source

Params:

NameTypeAttributeDescription
x *
y *
userInteraction *

public serialize(dataui: *) source

Params:

NameTypeAttributeDescription
dataui *

public setMousePos(x: *, y: *) source

Params:

NameTypeAttributeDescription
x *
y *

public setSize(w: *, h: *) source

Params:

NameTypeAttributeDescription
w *
h *

public storeCurrentSubPatch() source

public update() source

public wheelZoom(delta: *) source

Params:

NameTypeAttributeDescription
delta *

public zoomStep(s: *) source

Params:

NameTypeAttributeDescription
s *

Private Methods

private _onCanvasDblClick(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasMouseDown(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasMouseEnter(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasMouseLeave(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasMouseMove(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasMouseUp(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasSpaceDown(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasSpaceUp(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onCanvasWheel(event: *) source

Params:

NameTypeAttributeDescription
event *

private _restoreSubPatch(sub: *) source

Params:

NameTypeAttributeDescription
sub *