PreferenceStore
Index
Properties
Accessors
- aipsBeamSupport
- animationCompressionQuality
- annotationColor
- annotationDashLength
- annotationLineWidth
- astColor
- astGridVisible
- astLabelsVisible
- autoLaunch
- autoWCSMatching
- beamColor
- beamType
- beamVisible
- beamWidth
- catalogDisplayedColumnSize
- catalogTableSeparatorPosition
- checkNewRelease
- codeSnippetsEnabled
- colorbarInteractive
- colorbarLabelVisible
- colorbarPosition
- colorbarTicksDensity
- colorbarVisible
- colorbarWidth
- colormap
- colormapHex
- colormapHexStart
- contourChunkSize
- contourColor
- contourColormap
- contourColormapEnabled
- contourCompressionLevel
- contourControlMapWidth
- contourDecimation
- contourGeneratorType
- contourNumLevels
- contourSmoothingFactor
- contourSmoothingMode
- contourThickness
- cursorInfoVisible
- cursorPosition
- dragPanning
- enabledLoggingEventNames
- fileFilterMode
- fileFilteringType
- fileSortingString
- gpuTileCache
- imageCompressionQuality
- imageMultiPanelEnabled
- imagePanelColumns
- imagePanelMode
- imagePanelRows
- isCursorFrozen
- isRegionCornerMode
- isSelectingAllLogEvents
- isSelectingIndeterminateLogEvents
- isZoomRAWMode
- keepLastUsedFolder
- lastUsedFolder
- latestRelease
- layout
- limitOverlayRedraw
- lowBandwidthMode
- nanAlpha
- nanColorHex
- percentile
- pixelGridColor
- pixelGridVisible
- pointAnnotationShape
- pointAnnotationWidth
- pvPreivewCubeSizeLimit
- pvPreivewCubeSizeLimitUnit
- regionColor
- regionCreationMode
- regionDashLength
- regionLineWidth
- regionSize
- regionType
- scaling
- scalingAlpha
- scalingGamma
- spectralMatchingType
- statsPanelEnabled
- statsPanelMode
- stopAnimationPlaybackMinutes
- streamContoursWhileZooming
- systemTileCache
- telemetryConsentShown
- telemetryLogging
- telemetryMode
- telemetryUuid
- textAnnotationLineWidth
- theme
- transparentImageBackground
- useSmoothedBiasContrast
- vectorOverlayColor
- vectorOverlayColormap
- vectorOverlayColormapEnabled
- vectorOverlayFractionalIntensity
- vectorOverlayPixelAveraging
- vectorOverlayThickness
- wcsType
- zoomMode
- zoomPoint
- Instance
Methods
- clearPreferences
- fetchPreferences
- isEventLoggingEnabled
- isWCSMatchingEnabled
- resetAnnotationSettings
- resetCatalogSettings
- resetCompatibilitySettings
- resetContourConfigSettings
- resetGlobalSettings
- resetLogEventSettings
- resetOverlayConfigSettings
- resetPerformanceSettings
- resetRegionSettings
- resetRenderConfigSettings
- resetSilentSettings
- resetTelemetrySettings
- resetVectorOverlayConfigSettings
- selectAllLogEvents
- setPreference
Properties
preferenceReady
Whether the preference data is initialized from the preference file or localStorage.
preferences
Accessors
aipsBeamSupport
Returns boolean
animationCompressionQuality
Returns number
annotationColor
Returns string
annotationDashLength
Returns number
annotationLineWidth
Returns number
astColor
Returns string
astGridVisible
Returns boolean
astLabelsVisible
Returns boolean
autoLaunch
Returns boolean
autoWCSMatching
Returns WCSMatchingType
beamColor
Returns string
beamType
Returns BeamType
beamVisible
Returns boolean
beamWidth
Returns number
catalogDisplayedColumnSize
Returns number
catalogTableSeparatorPosition
Returns string
checkNewRelease
Returns boolean
codeSnippetsEnabled
Returns boolean
colorbarInteractive
Returns boolean
colorbarLabelVisible
Returns boolean
colorbarPosition
Returns string
colorbarTicksDensity
Returns number
colorbarVisible
Returns boolean
colorbarWidth
Returns number
colormap
Returns string
colormapHex
Returns string
colormapHexStart
Returns string
contourChunkSize
Returns number
contourColor
Returns string
contourColormap
Returns string
contourColormapEnabled
Returns boolean
contourCompressionLevel
Returns number
contourControlMapWidth
Returns number
contourDecimation
Returns number
contourGeneratorType
Returns ContourGeneratorType
contourNumLevels
Returns number
contourSmoothingFactor
Returns number
contourSmoothingMode
Returns SmoothingMode
contourThickness
Returns number
cursorInfoVisible
Returns string
cursorPosition
Returns string
dragPanning
Returns boolean
enabledLoggingEventNames
Returns string[]
fileFilterMode
Returns FileFilterMode
fileFilteringType
Returns FileFilteringType
fileSortingString
Returns string
gpuTileCache
Returns number
imageCompressionQuality
Returns number
imageMultiPanelEnabled
Returns boolean
imagePanelColumns
Returns number
imagePanelMode
Returns ImagePanelMode
imagePanelRows
Returns number
isCursorFrozen
Returns boolean
isRegionCornerMode
Returns boolean
isSelectingAllLogEvents
Returns boolean
isSelectingIndeterminateLogEvents
Returns boolean
isZoomRAWMode
Returns boolean
keepLastUsedFolder
Returns boolean
lastUsedFolder
Returns string
latestRelease
Returns string
layout
Returns string
limitOverlayRedraw
Returns boolean
lowBandwidthMode
Returns boolean
nanAlpha
Returns number
nanColorHex
Returns string
percentile
Returns number
pixelGridColor
Returns string
pixelGridVisible
Returns boolean
pointAnnotationShape
Returns PointAnnotationShape
pointAnnotationWidth
Returns number
pvPreivewCubeSizeLimit
Returns number
pvPreivewCubeSizeLimitUnit
Returns string
regionColor
Returns string
regionCreationMode
Returns string
regionDashLength
Returns number
regionLineWidth
Returns number
regionSize
Returns number
regionType
Returns RegionType
scaling
Returns FrameScaling
scalingAlpha
Returns number
scalingGamma
Returns number
spectralMatchingType
Returns SpectralType
statsPanelEnabled
Returns boolean
statsPanelMode
Returns number
stopAnimationPlaybackMinutes
Returns number
streamContoursWhileZooming
Returns boolean
systemTileCache
Returns number
telemetryConsentShown
Returns boolean
telemetryLogging
Returns boolean
telemetryMode
Returns TelemetryMode
telemetryUuid
Returns string
textAnnotationLineWidth
Returns number
theme
Returns string
transparentImageBackground
Returns boolean
useSmoothedBiasContrast
Returns boolean
vectorOverlayColor
Returns string
vectorOverlayColormap
Returns string
vectorOverlayColormapEnabled
Returns boolean
vectorOverlayFractionalIntensity
Returns boolean
vectorOverlayPixelAveraging
Returns number
vectorOverlayThickness
Returns number
wcsType
Returns string
zoomMode
Returns string
zoomPoint
Returns string
staticInstance
Returns PreferenceStore
Methods
clearPreferences
Clear the preference setting of the selecting key
Parameters
keys: PreferenceKeys[]
keys of PreferenceKeys
Returns Generator<Promise<any>, void, unknown>
fetchPreferences
Fetch the values of the preference keys
Returns Generator<Promise<any>, void, unknown>
publicisEventLoggingEnabled
Parameters
eventType: EventType
Returns boolean
publicisWCSMatchingEnabled
Parameters
matchingType: WCSMatchingType
Returns boolean
resetAnnotationSettings
Reset the annotation settings
Returns void
resetCatalogSettings
Reset the catalog settings
Returns void
resetCompatibilitySettings
Reset the compatibility settings
Returns void
resetContourConfigSettings
Reset the contour configuration settings
Returns void
resetGlobalSettings
Reset the Global preference settings
Returns void
resetLogEventSettings
Reset the log event setting
Returns void
resetOverlayConfigSettings
Reset the overlay configuration settings
Returns void
resetPerformanceSettings
Reset the preference settings
Returns void
resetRegionSettings
Reset the region settings
Returns void
resetRenderConfigSettings
Reset the render configuration settings
Returns void
resetSilentSettings
Reset the Silent preference settings
Returns void
resetTelemetrySettings
Reset the telemetry settings
Returns void
resetVectorOverlayConfigSettings
Reset the vector overlay configuration settings
Returns void
selectAllLogEvents
Reset the all log events
Returns void
setPreference
Sets the preference parameter
Parameters
key: PreferenceKeys
The enum of PreferenceKeys.
value: any
The given value to the preference key except PreferenceKeys.LOG_EVENT and PreferenceKeys.GLOBAL_AUTO_WCS_MATCHING. For PreferenceKeys.LOG_EVENT, the input value should be an enum CARTA.EventType, functioning as a toggle for an element within the PreferenceKeys.LOG_EVENT. For PreferenceKeys.GLOBAL_AUTO_WCS_MATCHING, the input value should be a WCSMatchingType enum or a sum of the enums, functioning as an exclusive OR value for PreferenceKeys.GLOBAL_AUTO_WCS_MATCHING.
Returns Generator<Promise<any>, any, unknown>
false if the key or value is not valid; yield a result using ApiService.Instance.setPreference
The store manages the preference setting