Skip to main content

JBrowseReactLinearGenomeViewRootModel

Note: this document is automatically generated from mobx-state-tree objects in our source code. See Core concepts and intro to pluggable elements for more info

Source file

products/jbrowse-react-linear-genome-view/src/createModel/createModel.ts

JBrowseReactLinearGenomeViewRootModel - Properties

property: config

// type signature
IModelType<{ configuration: ConfigurationSchemaType<{ rpc: ConfigurationSchemaType<{ defaultDriver: { type: string; description: string; defaultValue: string; }; drivers: IOptionalIType<IMapType<ITypeUnion<ModelCreationType<ExtractCFromProps<Record<string, any>>>, ModelSnapshotType<...>, {} & ... 1 more ... & NonEmp...
// code
config: createConfigModel(pluginManager, assemblyConfig)

property: session

// type signature
IModelType<{ id: IOptionalIType<ISimpleType<string>, [undefined]>; name: ISimpleType<string>; margin: IType<number, number, number>; } & { ...; } & { ...; } & { ...; } & { ...; }, { ...; } & ... 21 more ... & { ...; }, _NotCustomized, _NotCustomized>
// code
session: Session

property: assemblyManager

// type signature
IOptionalIType<IModelType<{ assemblies: IArrayType<IModelType<{ configuration: IMaybe<IReferenceType<IAnyType>>; }, { error: unknown; loaded: boolean; loadingP: Promise<void>; volatileRegions: BasicRegion[]; refNameAliases: RefNameAliases; lowerCaseRefNameAliases: RefNameAliases; cytobands: Feature[]; } & ... 5 more...
// code
assemblyManager: types.optional(AssemblyManager, {})

property: disableAddTracks

// type signature
IOptionalIType<ISimpleType<boolean>, [undefined]>
// code
disableAddTracks: types.optional(types.boolean, false)

property: internetAccounts

// type signature
IArrayType<IAnyType>
// code
internetAccounts: types.array(
pluginManager.pluggableMstType('internet account', 'stateModel'),
)

JBrowseReactLinearGenomeViewRootModel - Getters

getter: jbrowse

// type
{ configuration: { [x: string]: any; } & NonEmptyObject & { setSubschema(slotName: string, data: unknown): any; } & IStateTreeNode<ConfigurationSchemaType<{ rpc: ConfigurationSchemaType<{ defaultDriver: { type: string; description: string; defaultValue: string; }; drivers: IOptionalIType<...>; }, ConfigurationSchema...

JBrowseReactLinearGenomeViewRootModel - Actions

action: setSession

// type signature
setSession: (sessionSnapshot: ModelCreationType<ExtractCFromProps<{ id: IOptionalIType<ISimpleType<string>, [undefined]>; name: ISimpleType<string>; margin: IType<number, number, number>; } & { ...; } & { ...; } & { ...; } & { ...; }>>) => void

action: renameCurrentSession

// type signature
renameCurrentSession: (sessionName: string) => void

action: setError

// type signature
setError: (error: unknown) => void

action: addInternetAccount

// type signature
addInternetAccount: (internetAccount: any) => void

action: findAppropriateInternetAccount

// type signature
findAppropriateInternetAccount: (location: UriLocation) => any