EmbeddedRootModel
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements 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
its own 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).
Members a composed model contributes are listed here too, so these tables are the whole surface.
Properties
| Member | Description | Defined by |
|---|---|---|
configconfig: createConfigModel(pluginManager, assemblyConfigSchema) | EmbeddedRootModel | |
sessionsession: sessionModelType | EmbeddedRootModel | |
| assemblyManager | EmbeddedRootModel | |
| internetAccounts | InternetAccountsMixin |
Volatiles
| Member | Description |
|---|---|
errorerror: undefined as unknown | |
adminModeadminMode: false | |
versionversion | |
| rpcManager | |
textSearchManagertextSearchManager: new TextSearchManager(pluginManager) |
Getters
| Member | Description |
|---|---|
| jbrowse | |
pluginManagerPluginManager |
Actions
| Member | Description | Defined by |
|---|---|---|
setSession(sessionSnapshot: SnapshotIn<SESSION>) => void | EmbeddedRootModel | |
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. Separate from setSession because that one takes the compiler-checked snapshot type, which a value parsed out of JSON can never satisfy. The assertion below is the whole reason this exists: it is the single place the conversion happens, instead of every caller asserting at its own site. Nothing is unchecked at runtime — MST validates the snapshot as it applies it and throws on a mismatch, which is the check that actually matters for a value this app did not author. | EmbeddedRootModel |
renameCurrentSession(sessionName: string) => void | EmbeddedRootModel | |
setError(error: unknown) => void | EmbeddedRootModel | |
| initializeInternetAccount | InternetAccountsMixin | |
| createEphemeralInternetAccount | InternetAccountsMixin | |
findAppropriateInternetAccount(location: UriLocation) => any | InternetAccountsMixin |