EmbeddedRootModel
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Built into JBrowse core. View source.
Root model shared by the single-view embedded products
(react-linear-genome-view, react-circular-genome-view). Each product supplies
the model name, version, and session model, and may .props() on extra
fields (e.g. the LGV disableAddTracks/drawerViewHeight). Internet accounts
come from the same product-core mixin the web/desktop root models use, so
config internetAccounts are auto-initialized (no manual wiring needed).
Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
| Member | Description |
|---|---|
configcreateConfigModel(pluginManager, assemblyConfigSchema) |
|
sessionsessionModelType |
|
assemblyManagerAssemblyManager · default {} |
1 inherited property from one model
Volatiles
| Member | Description |
|---|---|
adminModeboolean |
|
versionstring |
|
rpcManagerRpcManager |
|
textSearchManagerTextSearchManager |
Getters
| Member | Description |
|---|---|
jbrowseJBrowseConfigModel |
|
pluginManagerPluginManager |
Actions
| Member | Description |
|---|---|
setSession(sessionSnapshot: SnapshotIn<SESSION>) => void |
Synchronous: an async caller must await pluginManager.preloadSessionTypes(snapshot) first. |
restoreSession(sessionSnapshot: SessionSnapshot) => void |
Load a session whose shape is only known at runtime — decoded from a URL, read back from storage, handed over by a non-TypeScript host. MST validates the snapshot as it applies it and throws on a mismatch, leaving the old session in place. |
afterCreate() => void |
The session prop at create is the third door, after the two above: a track whose config cannot load is dropped there too. |
renameCurrentSession(sessionName: string) => void |
3 inherited actions from one model
From InternetAccountsMixin: initializeInternetAccount, createEphemeralInternetAccount, findAppropriateInternetAccount