PreferenceStore
Index
Properties
Accessors
- animationCompressionQuality
- annotationColor
- annotationDashLength
- annotationLineWidth
- astColor
- autoWCSMatching
- beamColor
- beamType
- beamWidth
- catalogDisplayedColumnSize
- catalogTableSeparatorPosition
- colorbarPosition
- colorbarTicksDensity
- colorbarWidth
- colormap
- colormapHex
- colormapHexStart
- contourChunkSize
- contourColor
- contourColormap
- contourCompressionLevel
- contourControlMapWidth
- contourDecimation
- contourGeneratorType
- contourNumLevels
- contourSmoothingFactor
- contourSmoothingMode
- contourThickness
- cursorInfoVisible
- cursorPosition
- enabledLoggingEventNames
- existLayoutMapping
- fileFilteringType
- fileFilterMode
- fileSortingString
- gpuTileCache
- hasAipsBeamSupport
- hasTelemetryConsentShown
- hasTransparentImageBackground
- imageCompressionQuality
- imagePanelColumns
- imagePanelMode
- imagePanelRows
- isAstGridVisible
- isAstLabelsVisible
- isBeamVisible
- isCodeSnippetsEnabled
- isColorbarInteractive
- isColorbarLabelVisible
- isColorbarVisible
- isContourColormapEnabled
- isCursorFrozen
- isDragPanning
- isDynamicLayoutEnabled
- isHighDimPriority
- isImageMultiPanelEnabled
- isLowBandwidthMode
- isPixelGridVisible
- isPVAxesOrderReverse
- isRegionCornerMode
- isSelectingAllLogEvents
- isSelectingIndeterminateLogEvents
- isStatsPanelEnabled
- isTelemetryLogging
- isVectorOverlayColormapEnabled
- isVectorOverlayFractionalIntensity
- isZoomRAWMode
- lastUsedFolder
- latestRelease
- layout
- nanAlpha
- nanColorHex
- percentile
- pixelGridColor
- pointAnnotationShape
- pointAnnotationWidth
- pvPreviewCubeSizeLimit
- regionColor
- regionCreationMode
- regionDashLength
- regionLineWidth
- regionSize
- regionType
- scaling
- scalingAlpha
- scalingGamma
- shouldAutoLaunch
- shouldAutoSelectImageOverlayCoordinateColumns
- shouldCheckNewRelease
- shouldKeepLastUsedFolder
- shouldLimitOverlayRedraw
- shouldStreamContoursWhileZooming
- shouldUseSmoothedBiasContrast
- spectralMatchingType
- statsPanelMode
- stopAnimationPlaybackMinutes
- systemTileCache
- telemetryMode
- telemetryUuid
- textAnnotationLineWidth
- theme
- vectorOverlayColor
- vectorOverlayColormap
- vectorOverlayPixelAveraging
- vectorOverlayThickness
- wcsType
- zoomMode
- zoomPoint
- Instance
Methods
- clearPreferences
- fetchPreferences
- isEventLoggingEnabled
- isWCSMatchingEnabled
- resetAnnotationSettings
- resetCatalogSettings
- resetCompatibilitySettings
- resetContourConfigSettings
- resetGlobalSettings
- resetLayoutSettings
- resetLogEventSettings
- resetOverlayConfigSettings
- resetPerformanceSettings
- resetRegionSettings
- resetRenderConfigSettings
- resetSilentSettings
- resetTelemetrySettings
- resetVectorOverlayConfigSettings
- selectAllLogEvents
- setPreference
Properties
isPreferenceReady
Whether the preference data is initialized from the preference file or localStorage.
preferences
Accessors
animationCompressionQuality
Returns number
annotationColor
Returns string
annotationDashLength
Returns number
annotationLineWidth
Returns number
astColor
Returns string
autoWCSMatching
Returns WCSMatchingType
beamColor
Returns string
beamType
Returns BeamType
beamWidth
Returns number
catalogDisplayedColumnSize
Returns number
catalogTableSeparatorPosition
Returns string
colorbarPosition
Returns right | top | bottom
colorbarTicksDensity
Returns number
colorbarWidth
Returns number
colormap
Returns string
colormapHex
Returns string
colormapHexStart
Returns string
contourChunkSize
Returns number
contourColor
Returns string
contourColormap
Returns string
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
enabledLoggingEventNames
Returns string[]
existLayoutMapping
Returns {}
[key string]: string
fileFilteringType
Returns FileFilteringType
fileFilterMode
Returns FileFilterMode
fileSortingString
Returns string
gpuTileCache
Returns number
hasAipsBeamSupport
Returns boolean
hasTelemetryConsentShown
Returns boolean
hasTransparentImageBackground
Returns boolean
imageCompressionQuality
Returns number
imagePanelColumns
Returns number
imagePanelMode
Returns ImagePanelMode
imagePanelRows
Returns number
isAstGridVisible
Returns boolean
isAstLabelsVisible
Returns boolean
isBeamVisible
Returns boolean
isCodeSnippetsEnabled
Returns boolean
isColorbarInteractive
Returns boolean
isColorbarLabelVisible
Returns boolean
isColorbarVisible
Returns boolean
isContourColormapEnabled
Returns boolean
isCursorFrozen
Returns boolean
isDragPanning
Returns boolean
isDynamicLayoutEnabled
Returns boolean
isHighDimPriority
Returns boolean
isImageMultiPanelEnabled
Returns boolean
isLowBandwidthMode
Returns boolean
isPixelGridVisible
Returns boolean
isPVAxesOrderReverse
Returns boolean
isRegionCornerMode
Returns boolean
isSelectingAllLogEvents
Returns boolean
isSelectingIndeterminateLogEvents
Returns boolean
isStatsPanelEnabled
Returns boolean
isTelemetryLogging
Returns boolean
isVectorOverlayColormapEnabled
Returns boolean
isVectorOverlayFractionalIntensity
Returns boolean
isZoomRAWMode
Returns boolean
lastUsedFolder
Returns string
latestRelease
Returns string
layout
Returns string
nanAlpha
Returns number
nanColorHex
Returns string
percentile
Returns number
pixelGridColor
Returns string
pointAnnotationShape
Returns PointAnnotationShape
pointAnnotationWidth
Returns number
pvPreviewCubeSizeLimit
Returns number
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
shouldAutoLaunch
Returns boolean
shouldAutoSelectImageOverlayCoordinateColumns
Returns boolean
shouldCheckNewRelease
Returns boolean
shouldKeepLastUsedFolder
Returns boolean
shouldLimitOverlayRedraw
Returns boolean
shouldStreamContoursWhileZooming
Returns boolean
shouldUseSmoothedBiasContrast
Returns boolean
spectralMatchingType
Returns SpectralType
statsPanelMode
Returns number
stopAnimationPlaybackMinutes
Returns number
systemTileCache
Returns number
telemetryMode
Returns TelemetryMode
telemetryUuid
Returns string
textAnnotationLineWidth
Returns number
theme
Returns string
vectorOverlayColor
Returns string
vectorOverlayColormap
Returns string
vectorOverlayPixelAveraging
Returns number
vectorOverlayThickness
Returns number
wcsType
Returns string
zoomMode
Returns string
zoomPoint
Returns string
publicstaticInstance
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
resetLayoutSettings
Reset the layout 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