AppStore
Index
Properties
- activeFrame
- activeLayer
- activeWorkspace
- alertStore
- animatorStore
- apiService
- astReady
- backendService
- cartaComputeReady
- catalogStore
- contourDataSource
- cursorFrozen
- cursorMirror
- dialogStore
- fileBrowserStore
- fileLoading
- fileSaving
- frames
- helpStore
- hoveredFrame
- imageFittingStore
- imageRatio
- isExportingImage
- isLoadingMultipleFiles
- layoutStore
- loadingWorkspace
- logStore
- momentToMatch
- newRelease
- overlayStore
- preferenceStore
- previewFrames
- rasterScalingReference
- regionHistograms
- regionStats
- resumingSession
- scriptingService
- showNewRelease
- snippetStore
- spatialProfiles
- spatialReference
- spectralMatchingType
- spectralProfiles
- spectralReference
- splashScreenVisible
- syncContourToFrame
- syncFrameToContour
- systemTheme
- taskCurrentTime
- taskProgress
- taskStartTime
- telemetryService
- tileService
- toolbarExpanded
- username
- widgetsStore
- DEFAULT_STATS_TYPES
Accessors
- activeFrameFileId
- activeFrameIndex
- appendFileDisabled
- catalogNextFileId
- catalogNum
- contourFrames
- currentImagePage
- darkTheme
- estimatedTaskRemainingTime
- frameChannels
- frameLockedToContour
- frameMap
- frameNames
- frameNum
- frameOptions
- frameStokes
- imagePanelMode
- imagesPerPage
- modifierString
- numImageColumns
- numImagePages
- numImageRows
- openFileDisabled
- pixelRatio
- selectedRegion
- spatialAndSpectalMatchedFileIds
- vectorOverlayFrames
- visibleFrames
- Instance
Methods
- addFrame
- addPreviewFrame
- addRegionsInBatch
- appendCatalog
- appendConcatFile
- appendFile
- cancelCubeHistogramRequest
- cancelRequestingMoment
- cancelRequestingPV
- clearRasterScalingReference
- clearSpatialReference
- clearSpectralReference
- closeCurrentFile
- closeFile
- closeOtherFiles
- closeWorkspace
- decreaseImageRatio
- delay
- deleteRegion
- deleteSelectedRegion
- deleteWorkspace
- endFileLoading
- endFileSaving
- exportImage
- exportRegions
- fetchParameter
- getAppContainer
- getFileList
- getFrame
- getFrameIndex
- getFrameName
- getImageDataUrl
- handleCatalogFilterStream
- handleContourImageStream
- handleErrorStream
- handleFileProgressStream
- handleFittingProgressStream
- handleMomentProgressStream
- handlePvPreviewStream
- handlePvProgressStream
- handleRegionHistogramStream
- handleRegionStatsStream
- handleScriptingRequest
- handleSpatialProfileStream
- handleSpectralProfileStream
- handleThemeChange
- handleTileStream
- handleVectorTileStream
- hideSplashScreen
- importRegion
- loadConcatStokes
- loadDefaultFiles
- loadFile
- loadWorkspace
- nextFrame
- onReconnectAlertClosed
- openConcatFile
- openFile
- prevFrame
- recalculateRequirements
- removeAllFrames
- removeCatalog
- removeFrame
- removePreviewFrame
- reorderFrame
- requestCubeHistogram
- requestFitting
- requestMoment
- requestPV
- requestPreviewPV
- resetCursorRegionSpectralProfileProgress
- resetImageRatio
- resetRegionSpectralProfileProgress
- restartTaskProgress
- saveFile
- saveWorkspace
- sendCatalogFilter
- setActiveFrame
- setActiveFrameById
- setActiveFrameByIndex
- setAppContainer
- setAstReady
- setAutoTheme
- setCanvasUpdated
- setChannelsByFrame
- setContourDataSource
- setCursorFrozen
- setDarkTheme
- setHoveredFrame
- setImageRatio
- setImageViewDimensions
- setIsCanvasUpdated
- setIsExportingImage
- setLightTheme
- setLoadingMultipleFiles
- setMatchingEnabled
- setRasterScalingMatchingEnabled
- setRasterScalingReference
- setShowNewRelease
- setSpatialMatchingEnabled
- setSpatialReference
- setSpectralMatchingEnabled
- setSpectralMatchingType
- setSpectralReference
- setTheme
- setToolbarExpanded
- setUsername
- shiftFrame
- showSplashScreen
- startFileLoading
- startFileSaving
- toggleActiveLayer
- toggleCursorFrozen
- toggleCursorMirror
- toggleFrameContourLock
- toggleMomentToMatch
- toggleRasterScalingMatching
- toggleSpatialMatching
- toggleSpectralMatching
- toggleToolbarExpanded
- updateActiveLayer
- updateCatalogProfile
- updateChannels
- updateLayerPixelRatio
- updateTaskProgress
- waitForImageData
Properties
activeFrame
activeLayer
activeWorkspace
readonlyalertStore
readonlyanimatorStore
readonlyapiService
astReady
readonlybackendService
cartaComputeReady
readonlycatalogStore
contourDataSource
cursorFrozen
cursorMirror
readonlydialogStore
readonlyfileBrowserStore
fileLoading
fileSaving
frames
readonlyhelpStore
hoveredFrame
readonlyimageFittingStore
imageRatio
isExportingImage
isLoadingMultipleFiles
readonlylayoutStore
loadingWorkspace
readonlylogStore
momentToMatch
newRelease
readonlyoverlayStore
readonlypreferenceStore
previewFrames
rasterScalingReference
regionHistograms
regionStats
resumingSession
readonlyscriptingService
showNewRelease
readonlysnippetStore
spatialProfiles
spatialReference
spectralMatchingType
spectralProfiles
spectralReference
splashScreenVisible
syncContourToFrame
syncFrameToContour
systemTheme
taskCurrentTime
taskProgress
taskStartTime
readonlytelemetryService
readonlytileService
toolbarExpanded
username
readonlywidgetsStore
publicstaticreadonlyDEFAULT_STATS_TYPES
Accessors
activeFrameFileId
Returns number
activeFrameIndex
Returns number
appendFileDisabled
Returns boolean
catalogNextFileId
Returns number
catalogNum
Returns number
contourFrames
Returns Map<FrameStore, FrameStore[]>
currentImagePage
Returns number
darkTheme
Returns boolean
estimatedTaskRemainingTime
Returns number
frameChannels
Returns number[]
frameLockedToContour
Returns boolean
frameMap
Returns Map<number, FrameStore>
frameNames
Returns IOptionProps[]
frameNum
Returns number
frameOptions
Returns FrameOption[]
frameStokes
Returns number[]
imagePanelMode
Returns ImagePanelMode
imagesPerPage
Returns number
modifierString
Returns ctrl + | cmd + | alt +
numImageColumns
Returns number
numImagePages
Returns number
numImageRows
Returns number
openFileDisabled
Returns boolean
pixelRatio
Returns number
selectedRegion
Returns RegionStore
spatialAndSpectalMatchedFileIds
Returns number[]
vectorOverlayFrames
Returns Map<FrameStore, FrameStore[]>
visibleFrames
Returns FrameStore[]
staticInstance
Returns AppStore
Methods
addFrame
Parameters
ack: IOpenFileAck
The ack message received after opening a file.
directory: string
The path to the parent directory of the file.
lelExpr: boolean
Whether the file is opened with an image arithmetic (CASA lattice expression) string.
hdu: string
The Header Data Unit (HDU) identifier of the file.
generated: boolean = false
Whether the frame is a generated in-memory image. Used for the telemetry message.
setAsActive: boolean = true
Whether the frame should be set as the active frame.
updateStartingDirectory: boolean = true
Whether to update the starting directory in the file browser. Required for carta-python.
Returns boolean
Whether the frame was successfully added.
addPreviewFrame
Parameters
ack: any
directory: string
hdu: string
Returns FrameStore
addRegionsInBatch
Parameters
frame: FrameStore
regions: [string, IRegionInfo][]
regionStyleMap: Map<string, IRegionStyle>
startIndex: number
count: number
Returns void
appendCatalog
Parameters
directory: string
file: string
previewDataSize: number
type: CatalogFileType
Returns Generator<Promise<IOpenCatalogFileAck>, number, unknown>
appendConcatFile
Parameters
stokesFiles: IStokesFile[]
directory: string
hdu: string
Returns Promise<any>
appendFile
Appends a file at the given path to the list of existing open files.
Parameters
path: string
The path to the parent directory of the file to open, or of the file itself.
optionalfilename: string
The filename of the file to open.
optionalhdu: string
The Header Data Unit (HDU) to open. If left blank, the first image HDU will be opened.
imageArithmetic: boolean = false
Whether to treat the filename as an image arithmetic (CASA lattice expression) string.
setAsActive: boolean = true
Whether to set the appended file as the active frame.
updateStartingDirectory: boolean = true
Whether to update the starting directory in the file browser. Required for carta-python.
Returns Generator<Generator<Promise<IOpenFileAck>, FrameStore, unknown>, any, unknown>
A promise that resolves to the FrameStore of the opened file.
cancelCubeHistogramRequest
Parameters
fileId: number = -1
Returns void
cancelRequestingMoment
Parameters
fileId: number = -1
Returns void
cancelRequestingPV
Parameters
fileId: number = -1
optionalpreviewId: number
Returns void
clearRasterScalingReference
Returns void
clearSpatialReference
Returns void
clearSpectralReference
Returns void
closeCurrentFile
Closes the currently active image.
Parameters
confirmClose: boolean = false
Flag indicating whether to display a confirmation dialog before closing.
Returns void
closeFile
Parameters
frame: FrameStore
confirmClose: boolean = true
Returns Generator<Promise<boolean>, void, unknown>
closeOtherFiles
Parameters
frame: FrameStore
confirmClose: boolean = true
Returns void
closeWorkspace
Returns void
decreaseImageRatio
Returns void
delay
Parameters
time: number
Returns Promise<unknown>
deleteRegion
Parameters
region: RegionStore
Returns void
deleteSelectedRegion
Returns void
deleteWorkspace
Parameters
name: string
Returns Promise<void>
endFileLoading
Returns void
endFileSaving
Returns void
exportImage
Parameters
imageRatio: number
Returns void
exportRegions
Exports specified regions and saves a region file to the provided directory.
Parameters
directory: string
The directory where the region file will be saved.
file: string
The filename of the region file.
coordType: CoordinateType
The coordinate system used in the exported region file.
fileType: any
The type of the exported region file.
exportRegions: number[]
The indices of the regions to be exported.
optionaltargetFrame: FrameStore
The target frame containing the regions. If not provided, the active frame is used.
Returns Generator<Promise<IExportRegionAck>, void, unknown>
fetchParameter
Parameters
val: any
Returns any
publicgetAppContainer
Returns HTMLElement
getFileList
Parameters
directory: string
Returns Promise<IFileListResponse>
getFrame
Parameters
fileId: number
Returns FrameStore
getFrameIndex
Parameters
fileId: number
Returns number
getFrameName
Parameters
fileId: number
Returns string
getImageDataUrl
Parameters
backgroundColor: string
Returns string
handleCatalogFilterStream
Parameters
catalogFilter: CatalogFilterResponse
Returns void
handleContourImageStream
Parameters
contourImageData: ContourImageData
Returns void
handleErrorStream
Parameters
errorData: ErrorData
Returns void
handleFileProgressStream
Parameters
fileProgress: ListProgress
Returns void
handleFittingProgressStream
Parameters
fittingProgress: FittingProgress
Returns void
handleMomentProgressStream
Parameters
momentProgress: MomentProgress
Returns void
handlePvPreviewStream
Parameters
pvPreviewData: PvPreviewData
Returns void
handlePvProgressStream
Parameters
pvProgress: PvProgress
Returns void
handleRegionHistogramStream
Parameters
regionHistogramData: RegionHistogramData
Returns void
handleRegionStatsStream
Parameters
regionStatsData: RegionStatsData
Returns void
handleScriptingRequest
Parameters
request: IScriptingRequest
Returns void
handleSpatialProfileStream
Parameters
spatialProfileData: ISpatialProfileData
Returns void
handleSpectralProfileStream
Parameters
spectralProfileData: SpectralProfileData
Returns void
handleThemeChange
Parameters
darkMode: boolean
Returns void
handleTileStream
Parameters
tileStreamDetails: TileStreamDetails
Returns void
handleVectorTileStream
Parameters
vectorTileData: IVectorOverlayTileData
Returns void
hideSplashScreen
Returns void
importRegion
Imports a region file to the active frame or a specified frame. Supported file types are CRTF and DS9.
Parameters
directory: string
The directory containing the region file.
file: string
The filename of the region file.
type: any
The type of the region file (
CRTF
orDS9_REG
).optionaltargetFrame: FrameStore
The frame to which the regions should be imported. If not provided, the active frame is used. If the frame is spatially matched, the reference frame is used.
Returns Generator<Promise<IImportRegionAck>, void, unknown>
loadConcatStokes
Parameters
stokesFiles: IStokesFile[]
directory: string
hdu: string
Returns Promise<any>
loadDefaultFiles
Returns Generator<Generator<Promise<IOpenFileAck>, FrameStore, unknown> | Generator<Generator<Generator<Promise<IOpenFileAck>, FrameStore, unknown>, any, unknown> | Promise<Workspace>, boolean, Workspace & FrameStore>, void, unknown>
loadFile
Loads a file at the given path and adds it as a frame to the application.
Parameters
path: string
The path to the parent directory of the file to load, or of the file itself.
filename: string
The filename of the file to load.
hdu: string
The Header Data Unit (HDU) to load. If left blank, the first image HDU will be loaded.
imageArithmetic: boolean
Whether to treat the file as an image arithmetic (CASA lattice expression) string.
setAsActive: boolean = true
Whether the loaded frame should be set as the active frame.
updateStartingDirectory: boolean = true
Whether to update the starting directory in the file browser. Required for carta-python.
Returns Generator<Promise<IOpenFileAck>, FrameStore, unknown>
The added frame.
publicloadWorkspace
Parameters
name: string
isKey: boolean = false
Returns Generator<Generator<Generator<Promise<IOpenFileAck>, FrameStore, unknown>, any, unknown> | Promise<Workspace>, boolean, Workspace & FrameStore>
nextFrame
Returns void
onReconnectAlertClosed
Returns Promise<void>
openConcatFile
Parameters
stokesFiles: IStokesFile[]
directory: string
hdu: string
Returns Promise<any>
openFile
Closes all existing files and opens a file at the given path.
Parameters
path: string
The path to the parent directory of the file to open, or of the file itself.
optionalfilename: string
The filename of the file to open.
optionalhdu: string
The Header Data Unit (HDU) to open. If left blank, the first image HDU will be opened.
optionalimageArithmetic: boolean
Whether to treat the filename as an image arithmetic (CASA lattice expression) string.
updateStartingDirectory: boolean = true
Whether to update the starting directory in the file browser. Required for carta-python.
Returns Generator<Generator<Promise<IOpenFileAck>, FrameStore, unknown>, any, unknown>
A promise that resolves to the FrameStore of the opened file.
prevFrame
Returns void
recalculateRequirements
Returns void
removeAllFrames
Returns void
removeCatalog
Parameters
fileId: number
catalogWidgetId: string
optionalcatalogComponentId: string
Returns void
removeFrame
Parameters
frame: FrameStore
Returns void
removePreviewFrame
Parameters
previewId: number
Returns void
reorderFrame
Parameters
oldIndex: number
newIndex: number
length: number
Returns void
requestCubeHistogram
Parameters
fileId: number = -1
Returns void
requestFitting
Parameters
message: IFittingRequest
Returns Generator<Promise<IFittingResponse>, void, unknown>
requestMoment
Parameters
message: IMomentRequest
frame: FrameStore
Returns Generator<Promise<IMomentResponse>, void, unknown>
requestPV
Parameters
message: IPvRequest
frame: FrameStore
keepExisting: boolean
Returns Generator<Promise<IPvResponse>, void, unknown>
requestPreviewPV
Parameters
message: IPvRequest
frame: FrameStore
id: string
Returns Generator<Promise<IPvResponse>, void, unknown>
publicresetCursorRegionSpectralProfileProgress
Parameters
fileId: number
Returns void
resetImageRatio
Returns void
publicresetRegionSpectralProfileProgress
Parameters
regionId: number
Returns void
restartTaskProgress
Returns void
saveFile
Parameters
directory: string
filename: string
fileType: FileType
optionalregionId: number
optionalchannels: number[]
optionalstokes: number[]
optionalshouldDropDegenerateAxes: boolean
optionalrestFreq: number
Returns Generator<Promise<ISaveFileAck>, any, unknown>
publicsaveWorkspace
Parameters
name: string
Returns Generator<Promise<Workspace> | Promise<string | false>, boolean, unknown>
sendCatalogFilter
Parameters
catalogFilter: CatalogFilterRequest
Returns void
setActiveFrame
Parameters
frame: FrameStore
Returns void
setActiveFrameById
Parameters
fileId: number
Returns void
setActiveFrameByIndex
Parameters
index: number
Returns void
publicsetAppContainer
Parameters
container: HTMLElement
Returns void
setAstReady
Parameters
val: boolean
Returns void
setAutoTheme
Returns void
setCanvasUpdated
Returns void
setChannelsByFrame
Parameters
frame: FrameStore
Returns void
setContourDataSource
Parameters
frame: FrameStore
Returns void
setCursorFrozen
Parameters
val: boolean
Returns void
setDarkTheme
Returns void
setHoveredFrame
Parameters
frame: FrameStore
Returns void
setImageRatio
Parameters
val: number
Returns void
setImageViewDimensions
Parameters
w: number
h: number
Returns void
setIsCanvasUpdated
Parameters
val: boolean
Returns void
setIsExportingImage
Parameters
val: boolean
Returns void
setLightTheme
Returns void
setLoadingMultipleFiles
Parameters
isLoadingMultipleFiles: boolean
Returns void
setMatchingEnabled
Parameters
spatial: boolean
spectral: boolean
Returns void
setRasterScalingMatchingEnabled
Parameters
frame: FrameStore
val: boolean
Returns void
setRasterScalingReference
Parameters
frame: FrameStore
Returns void
setShowNewRelease
Parameters
val: boolean
Returns void
setSpatialMatchingEnabled
Parameters
frame: FrameStore
val: boolean
Returns void
setSpatialReference
Parameters
frame: FrameStore
Returns void
setSpectralMatchingEnabled
Parameters
frame: FrameStore
val: boolean
Returns void
setSpectralMatchingType
Parameters
spectralMatchingType: SpectralType
Returns void
setSpectralReference
Parameters
frame: FrameStore
Returns void
setTheme
Parameters
theme: string
Returns void
setToolbarExpanded
Parameters
val: boolean
Returns void
setUsername
Parameters
username: string
Returns void
shiftFrame
Parameters
delta: number
Returns void
showSplashScreen
Returns void
startFileLoading
Returns void
startFileSaving
Returns void
toggleActiveLayer
Returns void
toggleCursorFrozen
Returns void
toggleCursorMirror
Returns void
toggleFrameContourLock
Returns void
toggleMomentToMatch
Returns void
toggleRasterScalingMatching
Parameters
frame: FrameStore
Returns void
toggleSpatialMatching
Parameters
frame: FrameStore
Returns void
toggleSpectralMatching
Parameters
frame: FrameStore
Returns void
toggleToolbarExpanded
Returns void
updateActiveLayer
Parameters
layer: ImageViewLayer
Returns void
updateCatalogProfile
Parameters
fileId: number
frame: FrameStore
Returns string
updateChannels
Parameters
updates: ChannelUpdate[]
Returns void
updateLayerPixelRatio
Parameters
layerRef: any
Returns void
updateTaskProgress
Parameters
progress: number
Returns void
waitForImageData
Returns Promise<void>
Adds a frame to the frame array based on the provided parameters.