EmbeddedSessionMixin
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Built into JBrowse core. View source.
Everything the two single-view embedded products' sessions (react-linear-genome-view, react-circular-genome-view) share: the mixin set they compose and the three getters that read the root model. The twin of createEmbeddedRootModel one level down.
Each product composes this mixin. A factory taking the product's view type
and tracks mixin as parameters does not typecheck usefully:
types.compose's overloads are declared over IModelType<P, O, FC, FS>, so
a model passed as a naked type parameter gives nothing to infer those four
from, and session.view becomes any at every embedder call site with no
type error. When compose receives only concrete types, the products'
views stay typed.
Each product therefore declares its tracks mixin, view prop, and the
views/addView/removeView members that read self.view, because those
members need its concrete view type.
Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
14 inherited properties from 3 models
From BaseSessionModel: id, name, focusedViewId, highlights, highlightsVisible, highlightLabelsVisible, heldForMissingPlugins
From ConnectionManagementSessionMixin: connectionInstances, connectionTrackConfigs
From DrawerWidgetSessionMixin: drawerPosition, drawerWidth, widgets, activeWidgets, minimized
Volatiles
9 inherited volatiles from 4 models
From EmbeddedSessionThemeMixin: sessionThemeMode
From BaseSessionModel: selection, hovered, queueOfDialogs, preferencesOverrides
Getters
| Member | Description |
|---|---|
viewTitleBarsboolean | An embedded view is drawn with no title bar above it, so its menu sits in the view's controls. |
versionstring | |
assemblyNamesstring[] | |
assemblyManagerAssemblyManager |
21 inherited getters from 5 models
From EmbeddedSessionThemeMixin: themeOptions, palette, styleTheme, theme
From BaseSessionModel: root, jbrowse, rpcManager, configuration, adminMode, textSearchManager, assemblies, DialogComponent, DialogProps, animationMode, scrollZoom, numberGrouping
From SnackbarModel: snackbarMessageSet
From ConnectionManagementSessionMixin: connections
From DrawerWidgetSessionMixin: visibleWidget, drawerVisible, modalWidgetVisible
Methods
8 inherited methods from 4 models
From EmbeddedSessionThemeMixin: getActiveThemeOptions
From BaseSessionModel: getPreferenceDefault, getPreference, getPreferenceChanges
From TrackMenuSessionMixin: ,
From ReferenceManagementSessionMixin: getReferringMultiple, getReferring
Actions
52 inherited actions from 6 models
From EmbeddedSessionThemeMixin: setThemeMode
From BaseSessionModel: setSelection, clearSelection, setHovered, setHighlightsVisible, setHighlightLabelsVisible, addHighlight, removeHighlight, updateHighlight, setHighlights, setPreferenceOverride, clearPreferenceOverrides, clearPreferenceOverride, setScrollZoom, setName, setFocusedViewId, removeActiveDialog, queueDialog, removeDialog
From SnackbarModel: notify, notifyError, setErrorDialog, pushSnackbarMessage, popSnackbarMessage, removeSnackbarMessage
From ReferenceManagementSessionMixin: dereferenceTrack
From ConnectionManagementSessionMixin: makeConnection, breakConnection, teardownConnection, deleteConnection, addConnectionConf, clearConnections, captureConnectionTrack, updateConnectionTrackConfig, setConnectionTrackConfig, pruneConnectionTrackConfig, hydrateConnection
From DrawerWidgetSessionMixin: setDrawerPosition, updateDrawerWidth, resizeDrawer, addWidget, showWidget, hideWidget, minimizeWidgetDrawer, showWidgetDrawer, popoutWidget, returnWidgetToDrawer, setModalWidgets, hideAllWidgets, closeModalWidget, openWidget, editConfiguration