CatalogStore
Index
Properties
Accessors
Methods
- acceptsCatalogResponse
- addCatalog
- bindPendingCatalogPlots
- catalogAssociationForFileId
- catalogAssociationForRestore
- catalogAssociationFromInfo
- catalogMatchesAssociation
- clearCatalogPlotsByComponentId
- clearCatalogPlotsByFileId
- clearCatalogPlotsByWidgetId
- clearImageCoordsData
- closeAssociatedCatalog
- completeCatalogRequest
- convertToImageCoordinate
- getAssociatedIdByWidgetId
- getCatalogDisplayStore
- getCatalogFileNames
- getCatalogPlotSelection
- getDisplayedCatalogPlot
- getFrameIdByCatalogId
- getFrameMinMaxPoints
- getImageIdByCatalog
- getOrCreateCatalogDisplayStore
- isCatalogPlotWidgetIdReserved
- registerCatalogRequest
- removeCatalog
- removeCatalogDisplayStore
- resetActiveCatalogFile
- resolveCatalogAssociation
- setCatalogPlots
- setCatalogPlotSelection
- updateImageAssociatedCatalogId
- validateCatalogPlotColumns
- catalogAssociationFromConfig
- hasStableCatalogIdentity
Properties
catalogCounts
catalogDisplayStores
catalogPlots
catalogProfileStores
imageAssociatedCatalogId
publicstaticreadonlyPENDING_CATALOG_FILE_ID
Accessors
activeCatalogFiles
Returns number[]
catalogGLData
Returns Map<number, CatalogOverlayCoords>
visibleCatalogFiles
Returns Map<FrameStore, number[]>
publicstaticInstance
Returns CatalogStore
Methods
publicacceptsCatalogResponse
Return false for a response belonging to a superseded or completed request.
Parameters
catalogFileId: number
optionalrequestId: number
Returns boolean
addCatalog
Parameters
fileId: number
size: number
Returns void
bindPendingCatalogPlots
Attach only restored plots whose stable association matches the newly loaded catalog.
Parameters
fileId: number
optionalinfo: Pick<CatalogInfo, directory | fileInfo>
Returns void
publiccatalogAssociationForFileId
Create the persisted association for a loaded catalog.
Parameters
fileId: number
Returns WorkspaceCatalogAssociation
publiccatalogAssociationForRestore
Resolve persisted settings through the shared widget/plot restore policy.
Parameters
config: Partial<WorkspaceCatalogAssociation> | null | undefined
Returns { association?: WorkspaceCatalogAssociation; catalogFileId: number }
optionalassociation?: WorkspaceCatalogAssociation
catalogFileId: number
publiccatalogAssociationFromInfo
Parameters
fileId: number
optionalinfo: Pick<CatalogInfo, directory | fileInfo>
Returns WorkspaceCatalogAssociation
publiccatalogMatchesAssociation
Match a pending association against a newly loaded catalog.
Parameters
association: WorkspaceCatalogAssociation | undefined
fileId: number
optionalinfo: Pick<CatalogInfo, directory | fileInfo>
Returns boolean
clearCatalogPlotsByComponentId
Parameters
componentId: string
Returns void
clearCatalogPlotsByFileId
Parameters
fileId: number
Returns void
clearCatalogPlotsByWidgetId
Parameters
widgetId: string
Returns void
clearImageCoordsData
Parameters
fileId: number
Returns void
closeAssociatedCatalog
Parameters
imageFileId: number
Returns void
completeCatalogRequest
Mark the current request as finished so late responses cannot mutate the catalog.
Parameters
catalogFileId: number
optionalrequestId: number
Returns void
convertToImageCoordinate
Parameters
fileId: number
xData: number[]
yData: number[]
wcsInfo: FrameSet
xUnit: string
yUnit: string
catalogCoordinateSystem: CatalogCoordinateSystem
subsetEndIndex: number
subsetDataSize: number
Returns void
getAssociatedIdByWidgetId
Parameters
catalogPlotWidgetId: string
Returns { catalogFileId: number | undefined; catalogPlotComponentId: string | undefined }
catalogFileId: number | undefined
catalogPlotComponentId: string | undefined
getCatalogDisplayStore
The display store of a catalog, or undefined when the catalog has none.
Parameters
fileId: number
Returns CatalogDisplayStore | undefined
getCatalogFileNames
Parameters
fileIds: number[]
Returns Map<number, string>
publicgetCatalogPlotSelection
The catalog one catalog plot component is showing, once it has settled on one.
Parameters
componentId: string
Returns number | undefined
publicgetDisplayedCatalogPlot
The plot store one catalog plot component is showing. A component keeps one store per catalog it has been switched to, so the widget ID it was created with is not always the plot on screen. A component that has never been mounted has settled on nothing, and the widget's own binding stands in for it.
Parameters
catalogPlotWidgetId: string
Returns { catalogFileId: number | undefined; widgetId: string }
catalogFileId: number | undefined
widgetId: string
getFrameIdByCatalogId
Parameters
catalogId: number
Returns number
getFrameMinMaxPoints
Parameters
frameId: number
Returns { maxX: number; maxY: number; minX: number; minY: number }
maxX: number
maxY: number
minX: number
minY: number
getImageIdByCatalog
Parameters
catalogFileId: number
Returns number | undefined
getOrCreateCatalogDisplayStore
As getCatalogDisplayStore, but creates the display store when the catalog has none.
Parameters
fileId: number
Returns CatalogDisplayStore
publicisCatalogPlotWidgetIdReserved
Whether a layout tab still retains this plot ID after its catalog store was removed.
Parameters
widgetId: string
Returns boolean
registerCatalogRequest
Associate a catalog filter request with the catalog it updates.
Parameters
catalogFileId: number
requestId: number
Returns void
removeCatalog
Parameters
fileId: number
optionalcatalogComponentId: string
Returns void
removeCatalogDisplayStore
Releases the display store of a catalog that is being closed.
Parameters
fileId: number
Returns void
resetActiveCatalogFile
Parameters
imageFileId: number
Returns void
publicresolveCatalogAssociation
Resolve an association without trusting a stale session-local ID.
Parameters
association: WorkspaceCatalogAssociation | undefined
Returns number | undefined
setCatalogPlots
Parameters
componentId: string
fileId: number
widgetId: string
Returns void
setCatalogPlotSelection
Parameters
componentId: string
catalogFileId: number
Returns void
updateImageAssociatedCatalogId
Parameters
activeFrameIndex: number
associatedCatalogFiles: number[]
Returns void
validateCatalogPlotColumns
Drop restored plot columns the catalog turns out not to have, and say which. Columns are restored before the catalog is known, so they are checked once its data arrives, the way a restored display config is.
Parameters
fileId: number
Returns void
publicstaticcatalogAssociationFromConfig
Read and validate a catalog association from persisted widget settings.
Parameters
config: Partial<WorkspaceCatalogAssociation> | null | undefined
Returns WorkspaceCatalogAssociation | undefined
publicstatichasStableCatalogIdentity
Parameters
association: WorkspaceCatalogAssociation | undefined
Returns boolean
Sentinel used while a restored plot is waiting for a catalog from the current session.