GlViewBox
Viewbox of current patch
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
cursor: * |
|
public |
glPatch: * |
|
public get |
height: * |
|
public |
|
|
public get |
mousePatchX: * |
|
public get |
mousePatchY: * |
|
public get |
mouseX: * |
|
public get |
mouseY: * |
|
public get |
scrollX: * |
|
public get |
scrollXZoom: * |
|
public get |
scrollY: * |
|
public get |
scrollYZoom: * |
|
public |
wheelMode: * |
|
public get |
width: * |
|
public get |
zoom: * |
Private Members | ||
private |
_animScrollX: * |
|
private |
_animScrollY: * |
|
private |
_animZoom: * |
|
private |
_cgl: * |
|
private |
_currentSubPatchId: number |
|
private |
|
|
private |
_eleTabs: * |
|
private |
|
|
private |
_mousePatchX: * |
|
private |
_mousePatchY: * |
|
private |
_mouseRightDownStartX: number |
|
private |
_mouseRightDownStartY: number |
|
private |
_mouseSmooth: *[] |
|
private |
_mouseSmoothCount: number |
|
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 |
_onCanvasDblClick(e: *) |
|
private |
_onCanvasMouseDown(e: *) |
|
private |
_onCanvasMouseEnter(e: *) |
|
private |
_onCanvasMouseLeave(e: *) |
|
private |
_onCanvasMouseMove(e: *) |
|
private |
_onCanvasMouseUp(e: *) |
|
private |
_onCanvasSpaceDown(e: *) |
|
private |
_onCanvasSpaceUp(e: *) |
|
private |
_onCanvasWheel(event: *) |
|
private |
_restoreSubPatch(sub: *) |
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:
Name | Type | Attribute | Description |
dur | * | ||
sub | * | ||
timeGrey | * | ||
timeVisibleAgain | * | ||
next | * |
public animateScrollTo(x: *, y: *, dur: *, userInteraction: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
dur | * | ||
userInteraction | * |
public animateToCenterAtMouseCoords() source
public animateZoom(z: *, dur: *) source
Params:
Name | Type | Attribute | Description |
z | * | ||
dur | * |
public centerSelectedOps(noAnim: *) source
Params:
Name | Type | Attribute | Description |
noAnim | * |
public deSerialize(dataui: *) source
Params:
Name | Type | Attribute | Description |
dataui | * |
public keyScrollX(d: *) source
Params:
Name | Type | Attribute | Description |
d | * |
public keyScrollY(d: *) source
Params:
Name | Type | Attribute | Description |
d | * |
public patchToScreenConv(_x: *, _y: *): undefined[] source
Params:
Name | Type | Attribute | Description |
_x | * | ||
_y | * |
Return:
undefined[] |
public patchToScreenCoords(_x: *, _y: *): undefined[] source
Params:
Name | Type | Attribute | Description |
_x | * | ||
_y | * |
Return:
undefined[] |
public screenToPatchCoord(x: *, y: *, aspect: *): undefined[] source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
aspect | * |
Return:
undefined[] |
public scrollTo(x: *, y: *, userInteraction: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
userInteraction | * |
public serialize(dataui: *) source
Params:
Name | Type | Attribute | Description |
dataui | * |
public setMousePos(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public setSize(w: *, h: *) source
Params:
Name | Type | Attribute | Description |
w | * | ||
h | * |
public storeCurrentSubPatch() source
public update() source
public wheelZoom(delta: *) source
Params:
Name | Type | Attribute | Description |
delta | * |
public zoomStep(s: *) source
Params:
Name | Type | Attribute | Description |
s | * |
Private Methods
private _onCanvasDblClick(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseDown(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseEnter(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseLeave(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseMove(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseUp(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasSpaceDown(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasSpaceUp(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasWheel(event: *) source
Params:
Name | Type | Attribute | Description |
event | * |
private _restoreSubPatch(sub: *) source
Params:
Name | Type | Attribute | Description |
sub | * |