Home Reference Source
import Gui from './ui/gui.js'
public class | source

Gui

Extends:

cables-shared-client~Events → Gui

main singleton class for starting the editor

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public
public
public
public

chat: *

public
public
public
public
public
public
public
public
public
public
public
public
public

keys: *

public
public
public
public
public
public
public
public
public
public
public

opDocs: *

public
public
public
public get

patchId: *

public
public
public
public
public
public
public
public
public
public
public get
public
public

socket: *

public

theme: *

public

tips: *

public
public

user: *

public
Private Members
private
private
private

_cursor: string

private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

_elMeta: *

private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

_find: *

private

_gizmo: *[]

private

_jobs: *

private

_log: *

private
private
private
private

_oldCanvasWidth: number

private
private
private
private
private
private

_showTiming: boolean

private

_spaceBarStart: number

private
private
private

Method Summary

Public Methods
public

bind(cb: *)

public
public
public
public
public

converterStart(projectId: *, fileId: *, converterId: *)

public

corePatch(): *

public
public
public
public
public

find(str: *): *

public
public

focusFindResult(idx: *, opid: *, subpatch: *, x: *, y: *)

public
public

getFileManager(cb: *, userInteraction: *): *

public

getOpDoc(opname: *, html: *, cb: *)

public
public
public
public
public
public
public
public
public

init(next: *)

public
public
public
public
public

jobs(): *

public

metaKeyframesShowAnim(opid: *, portname: *)

public
public
public

opSelect(): *

public
public
public
public

project(): *

public
public

reloadDocs(cb: *)

public
public
public
public
public
public
public

scene(): *

public

serializeForm(selector: *): *

public
public

setCursor(str: *)

public
public

setFontSize(v: *)

public
public

setProject(p: *)

public

setProjectName(name: *)

public
public

setStateUnsaved(options: *)

public

setTheme(theme: {}): *

public

setTransform(id: *, x: *, y: *, z: *)

public

setTransformGizmo(params: *, idx: *)

public

setUser(u: *)

public
public
public

showConverter(converterId: *, projectId: *, fileId: *, converterName: *, fileName: undefined)

public

showFileManager(cb: *, userInteraction: *)

public

showGuestWarning(): boolean

public

showInfo(txt: *)

public

showInfoParam(txt: *)

public

showLibLoadError(libName: *)

public
public
public

showSaveWarning(): boolean

public

showSettings(userInteraction: *)

public
public
public
public
public

startModalLoading(title: *): *

public
public

timeLine(): *

public
public
public

watchArray(opid: *, which: *)

Private Methods
private
private

Public Constructors

public constructor() source

Public Members

public bookmarks: * source

public bottomInfoArea: * source

public bottomPanelHeight: * source

public bottomTabPanel: * source

public bottomTabs: * source

public canvasInfoUiHeight: number source

public canvasMagnifier: * source

public canvasManager: * source

public chat: * source

public cmdPallet: * source

public currentModal: * source

public delayedResizeCanvas: * source

public editorWidth: * source

public fileManager: * source

public fileManagerEditor: * source

public htmlEleOverlay: * source

public iconBarLeft: * source

public iconBarPatchNav: * source

public iconBarTimeline: * source

public introduction: * source

public isRemoteClient: * source

public keys: * source

public lastNotIdle: * source

public longPressConnector: * source

public mainTabs: * source

public maintabPanel: * source

public metaKeyframes: * source

public metaOpParams: * source

public metaTabs: * source

public metaTexturePreviewer: * source

public notifiedFullscreen: boolean source

public onSaveProject: * source

public opDocs: * source

public opHistory: * source

public opParams: * source

public opPortModal: * source

public get patchId: * source

public patchParamPanel: * source

public patchView: * source

public rendererHeight: * source

public rendererHeightScaled: * source

public rendererWidth: * source

public rendererWidthScaled: * source

public restriction: * source

public rightPanelWidth: * source

public savedState: * source

public serverOps: ServerOps source

public get shouldDrawOverlay: boolean source

public showingtwoMetaPanel: boolean source

public socket: * source

public theme: * source

public tips: * source

public transformOverlay: * source

public user: * source

public userSettings: * source

Private Members

private _corePatch: * source

private _currentProject: * source

private _cursor: string source

private _elBgPreview: * source

private _elBgPreviewButtonContainer: * source

private _elBreadcrumbNav: * source

private _elCablesCanvasContainer: * source

private _elCanvasFlash: * source

private _elEditor: * source

private _elEditorMaximized: * source

private _elEditorMinimized: * source

private _elGlCanvasDom: * source

private _elGlUiPreviewLayer: * source

private _elIconbarBottom: * source

private _elIconbarLeft: * source

private _elIconbarTimeline: * source

private _elInfoArea: * source

private _elInfoAreaParam: * source

private _elLibrary: * source

private _elMaintab: * source

private _elMenubar: * source

private _elMeta: * source

private _elOptions: * source

private _elPatch: * source

private _elProgressbar: * source

private _elSplitterMaintabs: * source

private _elSplitterPatch: * source

private _elSplitterRenderer: * source

private _elTLkeycontrols: * source

private _elTLoverviewtimeline: * source

private _elTLsplitterTimeline: * source

private _elTLtimelineTitle: * source

private _elTLtimetimeline: * source

private _eleBottomTabs: * source

private _eleSplitterTimeline: * source

private _eleTiming: * source

private _find: * source

private _gizmo: *[] source

private _jobs: * source

private _log: * source

private _modalLoading: * source

private _modalLoadingCount: number source

private _oldCanvasHeight: number source

private _oldCanvasWidth: number source

private _oldShowingEditor: boolean source

private _opselect: * source

private _patchLoadEndiD: * source

private _restrictionMode: * source

private _savedStateChangesBlueprintSubPatches: *[] source

private _showTiming: boolean source

private _spaceBarStart: number source

private _timeLine: * source

private _timeoutPauseProfiler: * source

private _toBottomPanel: * source

Public Methods

public bind(cb: *) source

Params:

NameTypeAttributeDescription
cb *

public bindKeys() source

public canSaveInMultiplayer(): boolean source

Return:

boolean

public checkIdle() source

public closeModal() source

public converterStart(projectId: *, fileId: *, converterId: *) source

Params:

NameTypeAttributeDescription
projectId *
fileId *
converterId *

public corePatch(): * source

Return:

*

public createProject() source

public cycleFullscreen() source

public cyclePatchBg() source

public endModalLoading() source

public find(str: *): * source

Params:

NameTypeAttributeDescription
str *

Return:

*

public finishedLoading(): * source

Return:

*

public focusFindResult(idx: *, opid: *, subpatch: *, x: *, y: *) source

Params:

NameTypeAttributeDescription
idx *
opid *
subpatch *
x *
y *

public getDefaultTheme(): * source

Return:

*

public getFileManager(cb: *, userInteraction: *): * source

Params:

NameTypeAttributeDescription
cb *
userInteraction *

Return:

*

public getOpDoc(opname: *, html: *, cb: *) source

Params:

NameTypeAttributeDescription
opname *
html *
cb *

public getParamPanelEleId(): * source

Return:

*

public getRestriction(): * source

Return:

*

public getSavedState(): * source

Return:

*

public getSavedStateChangesBlueprintSubPatches(): *[] source

Return:

*[]

public helperContextMenu(el: *) source

Params:

NameTypeAttributeDescription
el *

public hideBottomTabs() source

public hideElementsByRestriction(r: *) source

Params:

NameTypeAttributeDescription
r *

public hideTiming() source

public init(next: *) source

Params:

NameTypeAttributeDescription
next *

public initCoreListeners() source

public isGuestEditor(): * source

Return:

*

public isShowingModal(): * source

Return:

*

public isShowingTiming(): * source

Return:

*

public jobs(): * source

Return:

*

public metaKeyframesShowAnim(opid: *, portname: *) source

Params:

NameTypeAttributeDescription
opid *
portname *

public notIdling() source

public onResize() source

public opSelect(): * source

Return:

*

public pauseInteractionSplitpanes() source

public pauseProfiling() source

public pressedEscape(e: *) source

Params:

NameTypeAttributeDescription
e *

public project(): * source

Return:

*

public refreshFileManager() source

public reloadDocs(cb: *) source

Params:

NameTypeAttributeDescription
cb *

public rendererAspectMenu(el: *) source

Params:

NameTypeAttributeDescription
el *

public rendererContextMenu(el: *) source

Params:

NameTypeAttributeDescription
el *

public replaceNavShortcuts() source

public resumeInteractionSplitpanes() source

public savingTitleAnimEnd() source

public savingTitleAnimStart(title: *) source

Params:

NameTypeAttributeDescription
title *

public scene(): * source

Return:

*

public serializeForm(selector: *): * source

Params:

NameTypeAttributeDescription
selector *

Return:

*

public setBottomPanelHeight(h: *) source

Params:

NameTypeAttributeDescription
h *

public setCursor(str: *) source

Params:

NameTypeAttributeDescription
str *

public setElementBgPattern(el: *) source

Params:

NameTypeAttributeDescription
el *

public setFontSize(v: *) source

Params:

NameTypeAttributeDescription
v *

public setLayout() source

public setProject(p: *) source

Params:

NameTypeAttributeDescription
p *

public setProjectName(name: *) source

Params:

NameTypeAttributeDescription
name *

public setRestriction(r: *) source

Params:

NameTypeAttributeDescription
r *

public setStateUnsaved(options: *) source

Params:

NameTypeAttributeDescription
options *

public setTheme(theme: {}): * source

Params:

NameTypeAttributeDescription
theme {}
  • optional
  • default: {}

Return:

*

public setTransform(id: *, x: *, y: *, z: *) source

Params:

NameTypeAttributeDescription
id *
x *
y *
z *

public setTransformGizmo(params: *, idx: *) source

Params:

NameTypeAttributeDescription
params *
idx *

public setUser(u: *) source

Params:

NameTypeAttributeDescription
u *

public showBackupSaveWarning(): boolean source

Return:

boolean

public showBottomTabs() source

public showConverter(converterId: *, projectId: *, fileId: *, converterName: *, fileName: undefined) source

Params:

NameTypeAttributeDescription
converterId *
projectId *
fileId *
converterName *
fileName undefined
  • optional
  • default: undefined

public showFileManager(cb: *, userInteraction: *) source

Params:

NameTypeAttributeDescription
cb *
userInteraction *

public showGuestWarning(): boolean source

Return:

boolean

public showInfo(txt: *) source

Params:

NameTypeAttributeDescription
txt *

public showInfoParam(txt: *) source

Params:

NameTypeAttributeDescription
txt *

public showLibLoadError(libName: *) source

Params:

NameTypeAttributeDescription
libName *

public showLoadingProgress(show: *) source

Params:

NameTypeAttributeDescription
show *

public showLogging() source

public showSaveWarning(): boolean source

Return:

boolean

public showSettings(userInteraction: *) source

Params:

NameTypeAttributeDescription
userInteraction *

public showTiming() source

public showTwoMetaPanels(): * source

Return:

*

public showUiElements() source

public showWelcomeNotifications() source

public startModalLoading(title: *): * source

Params:

NameTypeAttributeDescription
title *

Return:

*

public texturePreview(): * source

Return:

*

public timeLine(): * source

Return:

*

public toggleTiming() source

public updateActivityFeedIcon(data: *) source

Params:

NameTypeAttributeDescription
data *

public watchArray(opid: *, which: *) source

Params:

NameTypeAttributeDescription
opid *
which *

Private Methods

private _switchCanvasPatchBg() source

private _switchCanvasSizeNormal() source