Skip to main content

LinearReadCloudDisplay

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

plugins/alignments/src/LinearReadCloudDisplay/model.ts

it is not a block based track, hence not BaseLinearDisplay extends

LinearReadCloudDisplay - Properties

property: type

// type signature
ISimpleType<"LinearReadCloudDisplay">
// code
type: types.literal('LinearReadCloudDisplay')

property: configuration

// type signature
AnyConfigurationSchemaType
// code
configuration: ConfigurationReference(configSchema)

property: filterBy

// type signature
IOptionalIType<IModelType<{ flagInclude: IOptionalIType<ISimpleType<number>, [undefined]>; flagExclude: IOptionalIType<ISimpleType<number>, [undefined]>; readName: IMaybe<...>; tagFilter: IMaybe<...>; }, {}, _NotCustomized, _NotCustomized>, [...]>
// code
filterBy: types.optional(FilterModel, {})

property: colorBy

// type signature
IMaybe<IModelType<{ type: ISimpleType<string>; tag: IMaybe<ISimpleType<string>>; extra: IType<any, any, any>; }, {}, _NotCustomized, _NotCustomized>>
// code
colorBy: types.maybe(
types.model({
type: types.string,
tag: types.maybe(types.string),
extra: types.frozen(),
}),
)

property: drawSingletons

// type signature
true
// code
drawSingletons: true

LinearReadCloudDisplay - Methods

method: trackMenuItems

// type signature
trackMenuItems: () => (MenuDivider | MenuSubHeader | NormalMenuItem | CheckboxMenuItem | RadioMenuItem | SubMenuItem | { ...; })[]

method: renderSvg

// type signature
renderSvg: (opts: { rasterizeLayers?: boolean; }) => Promise<React.ReactNode>

LinearReadCloudDisplay - Actions

action: setDrawSingletons

// type signature
setDrawSingletons: (f: boolean) => void

action: setLastDrawnOffsetPx

// type signature
setLastDrawnOffsetPx: (n: number) => void

action: setLastDrawnBpPerPx

// type signature
setLastDrawnBpPerPx: (n: number) => void

action: setLoading

// type signature
setLoading: (f: boolean) => void

action: reload

// type signature
reload: () => void

action: setRef

internal, a reference to a HTMLCanvas because we use a autorun to draw the canvas

// type signature
setRef: (ref: HTMLCanvasElement) => void

action: setChainData

// type signature
setChainData: (args: ChainData) => void

action: setFilterBy

// type signature
setFilterBy: (filter: IFilter) => void