@fiftyone/state#
State#
activeFieldsConfig#
Name |
Type |
Description |
|---|---|---|
activeFieldsConfig.exclude |
|
|
activeFieldsConfig.paths |
|
const activeFieldsConfig = useRecoilValue(fos.activeFieldsConfig);
activeIndex#
Name |
Type |
Description |
|---|---|---|
activeIndex |
|
const activeIndex = useRecoilValue(fos.activeIndex);
activeModalSample#
Name |
Type |
Description |
|---|---|---|
activeModalSample |
|
const activeModalSample = useRecoilValue(fos.activeModalSample);
activePlot#
Name |
Type |
Description |
|---|---|---|
activePlot |
|
const [activePlot, setActivePlot] = useRecoilState(fos.activePlot);
activeSchemaAttrExclusions#
Union of the attribute-exclusion channels (task + Explore lens).
const activeSchemaAttrExclusions = useRecoilValue(fos.activeSchemaAttrExclusions);
activeSchemaExclusions#
The union of every schema-policy exclusion channel — the active
workflow task’s hidden fields and the admin Explore lens (when it
targets the current dataset). THE read for exclusion consumers
(fieldSchema, labelFields, fieldPaths, fieldExclusionStage,
the page-query reload): individual channels are write-side details.
const activeSchemaExclusions = useRecoilValue(fos.activeSchemaExclusions);
activeSchemaStageExclusions#
The wire exclusions the CLIENT must carry on aggregation queries
(fieldExclusionStage). When the server already enforces the task’s
schema, sending the task’s stage again only adds a per-document
projection to every full scan (8–16% on the label histogram at 300k
samples), so enforced viewers carry just the Explore lens (which the
server never applies); exempt viewers keep the full union.
const activeSchemaStageExclusions = useRecoilValue(fos.activeSchemaStageExclusions);
activeSchemaWireExclusions#
Everything the server exclusion stages should carry: hidden FIELDS
plus hidden-attribute DB paths. Field-schema consumers keep reading
activeSchemaExclusions (top-level only); this wire union feeds
fieldExclusionStage and the $extendedView page-query reload.
const activeSchemaWireExclusions = useRecoilValue(fos.activeSchemaWireExclusions);
activeSliceDescriptorLabel#
Name |
Type |
Description |
|---|---|---|
activeSliceDescriptorLabel |
|
const activeSliceDescriptorLabel = useRecoilValue(fos.activeSliceDescriptorLabel);
anyTagging#
Name |
Type |
Description |
|---|---|---|
anyTagging |
|
const [anyTagging, setAnyTagging] = useRecoilState(fos.anyTagging);
attributeVisibility#
Name |
Type |
Description |
|---|---|---|
attributeVisibility |
|
const [attributeVisibility, setAttributeVisibility] = useRecoilState(fos.attributeVisibility);
canAnnotate#
Name |
Type |
Description |
|---|---|---|
canAnnotate.enabled |
|
|
canAnnotate.message |
|
const [canAnnotate, setCanAnnotate] = useRecoilState(fos.canAnnotate);
canCreateNewField#
Name |
Type |
Description |
|---|---|---|
canCreateNewField.enabled |
|
|
canCreateNewField.message |
|
const [canCreateNewField, setCanCreateNewField] = useRecoilState(fos.canCreateNewField);
canEditCustomColors#
Name |
Type |
Description |
|---|---|---|
canEditCustomColors.enabled |
|
|
canEditCustomColors.message |
|
const [canEditCustomColors, setCanEditCustomColors] = useRecoilState(fos.canEditCustomColors);
canEditLabels#
Name |
Type |
Description |
|---|---|---|
canEditLabels.enabled |
|
|
canEditLabels.message |
|
const [canEditLabels, setCanEditLabels] = useRecoilState(fos.canEditLabels);
canEditSavedViews#
Name |
Type |
Description |
|---|---|---|
canEditSavedViews.enabled |
|
|
canEditSavedViews.message |
|
const [canEditSavedViews, setCanEditSavedViews] = useRecoilState(fos.canEditSavedViews);
canEditWorkspaces#
Name |
Type |
Description |
|---|---|---|
canEditWorkspaces.enabled |
|
|
canEditWorkspaces.message |
|
const [canEditWorkspaces, setCanEditWorkspaces] = useRecoilState(fos.canEditWorkspaces);
canManageSchema#
Name |
Type |
Description |
|---|---|---|
canManageSchema.enabled |
|
|
canManageSchema.message |
|
const [canManageSchema, setCanManageSchema] = useRecoilState(fos.canManageSchema);
collapsedPaths#
Name |
Type |
Description |
|---|---|---|
collapsedPaths |
|
const collapsedPaths = useRecoilValue(fos.collapsedPaths);
colorMap#
const colorMap = useRecoilValue(fos.colorMap);
colorMapRGB#
const colorMapRGB = useRecoilValue(fos.colorMapRGB);
colorScheme#
Name |
Type |
Description |
|---|---|---|
colorScheme |
|
const [colorScheme, setColorScheme] = useRecoilState(fos.colorScheme);
colorSeed#
Name |
Type |
Description |
|---|---|---|
colorSeed |
|
const [colorSeed, setColorSeed] = useRecoilState(fos.colorSeed);
coloring#
Name |
Type |
Description |
|---|---|---|
coloring |
|
const [coloring, setColoring] = useRecoilState(fos.coloring);
config#
Name |
Type |
Description |
|---|---|---|
config.colorBy |
|
|
config.colorPool |
|
|
config.colorscale |
|
|
config.defaultQueryPerformance |
|
|
config.disableFrameFiltering |
|
|
config.enableQueryPerformance |
|
|
config.gridZoom |
|
|
config.loopVideos |
|
|
config.maxQueryTime |
|
|
config.mediaFallback |
|
|
config.multicolorKeypoints |
|
|
config.notebookHeight |
|
|
config.plugins |
|
|
config.showConfidence |
|
|
config.showIndex |
|
|
config.showLabel |
|
|
config.showSkeletons |
|
|
config.showTooltip |
|
|
config.theme |
|
|
config.timezone |
|
|
config.useFrameNumber |
|
const config = useRecoilValue(fos.config);
configData#
Name |
Type |
Description |
|---|---|---|
configData |
|
const [configData, setConfigData] = useRecoilState(fos.configData);
currentGroupSliceNames#
Slice names that actually exist for the currently opened modal group.
This differs from groupSlices, which describes dataset-level slice
definitions. Sparse groups may omit some slices entirely, and annotate-mode
selectors should only offer slices that are present for the active group.
const currentGroupSliceNames = useRecoilValue(fos.currentGroupSliceNames);
currentSampleId#
Name |
Type |
Description |
|---|---|---|
currentSampleId |
|
const currentSampleId = useRecoilValue(fos.currentSampleId);
currentViewSlug#
Name |
Type |
Description |
|---|---|---|
currentViewSlug |
|
const currentViewSlug = useRecoilValue(fos.currentViewSlug);
dataset#
Name |
Type |
Description |
|---|---|---|
dataset |
|
const [dataset, setDataset] = useRecoilState(fos.dataset);
datasetAppConfig#
Name |
Type |
Description |
|---|---|---|
datasetAppConfig |
|
const [datasetAppConfig, setDatasetAppConfig] = useRecoilState(fos.datasetAppConfig);
datasetColorScheme#
Name |
Type |
Description |
|---|---|---|
datasetColorScheme |
|
const [datasetColorScheme, setDatasetColorScheme] = useRecoilState(fos.datasetColorScheme);
datasetFrameCount#
Name |
Type |
Description |
|---|---|---|
datasetFrameCount |
|
const datasetFrameCount = useRecoilValue(fos.datasetFrameCount);
datasetId#
Name |
Type |
Description |
|---|---|---|
datasetId |
|
const [datasetId, setDatasetId] = useRecoilState(fos.datasetId);
datasetName#
Name |
Type |
Description |
|---|---|---|
datasetName |
|
const [datasetName, setDatasetName] = useRecoilState(fos.datasetName);
datasetSampleCount#
Name |
Type |
Description |
|---|---|---|
datasetSampleCount |
|
const datasetSampleCount = useRecoilValue(fos.datasetSampleCount);
defaultActiveFields#
const defaultActiveFields = useRecoilValue(fos.defaultActiveFields);
defaultGroupSlice#
Name |
Type |
Description |
|---|---|---|
defaultGroupSlice |
|
const [defaultGroupSlice, setDefaultGroupSlice] = useRecoilState(fos.defaultGroupSlice);
defaultQueryPerformanceConfig#
Name |
Type |
Description |
|---|---|---|
defaultQueryPerformanceConfig |
|
const defaultQueryPerformanceConfig = useRecoilValue(fos.defaultQueryPerformanceConfig);
defaultTargets#
Name |
Type |
Description |
|---|---|---|
defaultTargets |
|
const defaultTargets = useRecoilValue(fos.defaultTargets);
disableFrameFiltering#
Name |
Type |
Description |
|---|---|---|
disableFrameFiltering |
|
const disableFrameFiltering = useRecoilValue(fos.disableFrameFiltering);
disabledCheckboxPaths#
Returns a set of paths that have their checkbox disabled in the sidebar
Name |
Type |
Description |
|---|---|---|
disabledCheckboxPaths |
|
const disabledCheckboxPaths = useRecoilValue(fos.disabledCheckboxPaths);
disabledFilterPaths#
Returns a set of paths that have their filter dropdown disabled in the sidebar
Name |
Type |
Description |
|---|---|---|
disabledFilterPaths |
|
const disabledFilterPaths = useRecoilValue(fos.disabledFilterPaths);
disabledFrameFilterPaths#
Name |
Type |
Description |
|---|---|---|
disabledFrameFilterPaths |
|
const disabledFrameFilterPaths = useRecoilValue(fos.disabledFrameFilterPaths);
distributionPaths#
const distributionPaths = useRecoilValue(fos.distributionPaths);
dynamicGroupCurrentElementIndex#
Name |
Type |
Description |
|---|---|---|
dynamicGroupCurrentElementIndex |
|
const [dynamicGroupCurrentElementIndex, setDynamicGroupCurrentElementIndex] = useRecoilState(fos.dynamicGroupCurrentElementIndex);
dynamicGroupFields#
const dynamicGroupFields = useRecoilValue(fos.dynamicGroupFields);
dynamicGroupIndex#
Name |
Type |
Description |
|---|---|---|
dynamicGroupIndex |
|
const [dynamicGroupIndex, setDynamicGroupIndex] = useRecoilState(fos.dynamicGroupIndex);
dynamicGroupParameters#
Name |
Type |
Description |
|---|---|---|
dynamicGroupParameters |
|
const [dynamicGroupParameters, setDynamicGroupParameters] = useRecoilState(fos.dynamicGroupParameters);
dynamicGroupsTargetFrameRate#
Name |
Type |
Description |
|---|---|---|
dynamicGroupsTargetFrameRate |
|
const dynamicGroupsTargetFrameRate = useRecoilValue(fos.dynamicGroupsTargetFrameRate);
editingFieldAtom#
Name |
Type |
Description |
|---|---|---|
editingFieldAtom |
|
const [editingFieldAtom, setEditingFieldAtom] = useRecoilState(fos.editingFieldAtom);
elementNames#
Name |
Type |
Description |
|---|---|---|
elementNames.plural |
|
|
elementNames.singular |
|
const elementNames = useRecoilValue(fos.elementNames);
eligibleFieldsToCustomizeColor#
const eligibleFieldsToCustomizeColor = useRecoilValue(fos.eligibleFieldsToCustomizeColor);
enableQueryPerformanceConfig#
Name |
Type |
Description |
|---|---|---|
enableQueryPerformanceConfig |
|
const enableQueryPerformanceConfig = useRecoilValue(fos.enableQueryPerformanceConfig);
escapeKeyHandlerIdsAtom#
Name |
Type |
Description |
|---|---|---|
escapeKeyHandlerIdsAtom |
|
const [escapeKeyHandlerIdsAtom, setEscapeKeyHandlerIdsAtom] = useRecoilState(fos.escapeKeyHandlerIdsAtom);
expressionCatalog#
The server’s description of view expressions: every operator with its kinds and docstring summary, the kind of value each field type holds, and the AST version both sides must agree on to exchange an envelope.
Name |
Type |
Description |
|---|---|---|
expressionCatalog |
|
const [expressionCatalog, setExpressionCatalog] = useRecoilState(fos.expressionCatalog);
extendedSelection#
Name |
Type |
Description |
|---|---|---|
extendedSelection.scope |
|
|
extendedSelection.selection |
|
|
extendedSelection.spatialSelection |
|
const [extendedSelection, setExtendedSelection] = useRecoilState(fos.extendedSelection);
extendedSelectionOverrideStage#
Name |
Type |
Description |
|---|---|---|
extendedSelectionOverrideStage |
|
const [extendedSelectionOverrideStage, setExtendedSelectionOverrideStage] = useRecoilState(fos.extendedSelectionOverrideStage);
extendedStages#
Name |
Type |
Description |
|---|---|---|
extendedStages |
|
const extendedStages = useRecoilValue(fos.extendedStages);
extendedStagesNoSort#
Name |
Type |
Description |
|---|---|---|
extendedStagesNoSort |
|
const extendedStagesNoSort = useRecoilValue(fos.extendedStagesNoSort);
extendedStagesUnsorted#
Name |
Type |
Description |
|---|---|---|
extendedStagesUnsorted |
|
const extendedStagesUnsorted = useRecoilValue(fos.extendedStagesUnsorted);
fetchedModalSample#
The modal sample as fetched: without the active task’s hidden fields,
with every other field (see modalSample).
Name |
Type |
Description |
|---|---|---|
fetchedModalSample |
|
const [fetchedModalSample, setFetchedModalSample] = useRecoilState(fos.fetchedModalSample);
fieldVisibilityStage#
Name |
Type |
Description |
|---|---|---|
fieldVisibilityStage |
|
const [fieldVisibilityStage, setFieldVisibilityStage] = useRecoilState(fos.fieldVisibilityStage);
filters#
Name |
Type |
Description |
|---|---|---|
filters |
|
const [filters, setFilters] = useRecoilState(fos.filters);
flatFrameFields#
const flatFrameFields = useRecoilValue(fos.flatFrameFields);
flatSampleFields#
const flatSampleFields = useRecoilValue(fos.flatSampleFields);
frameFields#
const frameFields = useRecoilValue(fos.frameFields);
frameFieldsList#
const frameFieldsList = useRecoilValue(fos.frameFieldsList);
fullSchema#
Name |
Type |
Description |
|---|---|---|
fullSchema |
|
const fullSchema = useRecoilValue(fos.fullSchema);
fullscreen#
Name |
Type |
Description |
|---|---|---|
fullscreen |
|
const [fullscreen, setFullscreen] = useRecoilState(fos.fullscreen);
fullyDisabledPaths#
Returns a set of paths that should have both their checkbox and filter dropdown disabled in the sidebar
Name |
Type |
Description |
|---|---|---|
fullyDisabledPaths |
|
const fullyDisabledPaths = useRecoilValue(fos.fullyDisabledPaths);
generatedDatasetName#
Extracts the generated dataset name from the view stages.
Generated views (patches, clips, frames) store their dataset info in the
_state kwarg of the view stage that created them (e.g., ToPatches, ToClips).
Name |
Type |
Description |
|---|---|---|
generatedDatasetName |
|
const generatedDatasetName = useRecoilValue(fos.generatedDatasetName);
getSkeleton#
const getSkeleton = useRecoilValue(fos.getSkeleton);
getTarget#
const getTarget = useRecoilValue(fos.getTarget);
gridExtendedStages#
The extended stages of the grid’s sample query: extendedStages without
the Explore lens, whose hidden fields the grid leaves out of what it
draws instead (see taskSchemaStageExclusions).
Name |
Type |
Description |
|---|---|---|
gridExtendedStages |
|
const gridExtendedStages = useRecoilValue(fos.gridExtendedStages);
gridExtendedStagesNoSort#
gridExtendedStages without the grid sort.
Name |
Type |
Description |
|---|---|---|
gridExtendedStagesNoSort |
|
const gridExtendedStagesNoSort = useRecoilValue(fos.gridExtendedStagesNoSort);
gridSortBy#
Name |
Type |
Description |
|---|---|---|
gridSortBy.descending |
|
|
gridSortBy.field |
|
const [gridSortBy, setGridSortBy] = useRecoilState(fos.gridSortBy);
gridSortFields#
const gridSortFields = useRecoilValue(fos.gridSortFields);
groupByFieldValue#
const groupByFieldValue = useRecoilValue(fos.groupByFieldValue);
groupField#
Name |
Type |
Description |
|---|---|---|
groupField |
|
const groupField = useRecoilValue(fos.groupField);
groupId#
Name |
Type |
Description |
|---|---|---|
groupId |
|
const groupId = useRecoilValue(fos.groupId);
groupMediaIsCarouselVisible#
Derived selector that determines if the carousel should actually be visible. Combines user setting with contextual rules (e.g., hidden for ImaVid in nested groups).
Name |
Type |
Description |
|---|---|---|
groupMediaIsCarouselVisible |
|
const groupMediaIsCarouselVisible = useRecoilValue(fos.groupMediaIsCarouselVisible);
groupMediaIsCarouselVisibleSetting#
User setting controlling whether the carousel (filmstrip of group slices) is visible in the modal.
Name |
Type |
Description |
|---|---|---|
groupMediaIsCarouselVisibleSetting |
|
const [groupMediaIsCarouselVisibleSetting, setGroupMediaIsCarouselVisibleSetting] = useRecoilState(fos.groupMediaIsCarouselVisibleSetting);
groupMediaIsMain2DViewerVisible#
Derived selector that determines if the main viewer should actually be visible. Combines user setting with contextual rules (shown when no 3D slices or multiple media types exist).
Name |
Type |
Description |
|---|---|---|
groupMediaIsMain2DViewerVisible |
|
const groupMediaIsMain2DViewerVisible = useRecoilValue(fos.groupMediaIsMain2DViewerVisible);
groupMediaIsMain2DViewerVisibleSetting#
User setting controlling whether the main 2D viewer is visible in the modal for grouped datasets. Persisted to session storage.
Name |
Type |
Description |
|---|---|---|
groupMediaIsMain2DViewerVisibleSetting |
|
const [groupMediaIsMain2DViewerVisibleSetting, setGroupMediaIsMain2DViewerVisibleSetting] = useRecoilState(fos.groupMediaIsMain2DViewerVisibleSetting);
groupMediaTypes#
const groupMediaTypes = useRecoilValue(fos.groupMediaTypes);
groupMediaTypesMap#
Mapping of slice names to their media types for grouped datasets. E.g., { “left”: “image”, “right”: “image”, “lidar”: “point_cloud” }
const groupMediaTypesMap = useRecoilValue(fos.groupMediaTypesMap);
groupMediaTypesSet#
Name |
Type |
Description |
|---|---|---|
groupMediaTypesSet |
|
const groupMediaTypesSet = useRecoilValue(fos.groupMediaTypesSet);
groupSampleAtMainSlice#
Same as modalSample but always pinned to the dataset’s main
groupSlice for both the active slice and the requested slices. Used by
groupByFieldValue so the dynamic group value is always read from the
main slice’s sample regardless of which slice the modal is currently
displaying. Has its own Relay cache key so it can resolve independently.
Name |
Type |
Description |
|---|---|---|
groupSampleAtMainSlice |
|
const [groupSampleAtMainSlice, setGroupSampleAtMainSlice] = useRecoilState(fos.groupSampleAtMainSlice);
groupSlice#
Name |
Type |
Description |
|---|---|---|
groupSlice |
|
const [groupSlice, setGroupSlice] = useRecoilState(fos.groupSlice);
groupSlices#
const groupSlices = useRecoilValue(fos.groupSlices);
hasGroupSlices#
Name |
Type |
Description |
|---|---|---|
hasGroupSlices |
|
const hasGroupSlices = useRecoilValue(fos.hasGroupSlices);
hasSelectedLabels#
Name |
Type |
Description |
|---|---|---|
hasSelectedLabels |
|
const hasSelectedLabels = useRecoilValue(fos.hasSelectedLabels);
hasSelectedSamples#
Name |
Type |
Description |
|---|---|---|
hasSelectedSamples |
|
const hasSelectedSamples = useRecoilValue(fos.hasSelectedSamples);
hideNoneValuedFields#
Name |
Type |
Description |
|---|---|---|
hideNoneValuedFields |
|
const [hideNoneValuedFields, setHideNoneValuedFields] = useRecoilState(fos.hideNoneValuedFields);
hoveredSample#
Name |
Type |
Description |
|---|---|---|
hoveredSample |
|
const [hoveredSample, setHoveredSample] = useRecoilState(fos.hoveredSample);
indexInfo#
Name |
Type |
Description |
|---|---|---|
indexInfo |
|
const [indexInfo, setIndexInfo] = useRecoilState(fos.indexInfo);
is3DDataset#
Name |
Type |
Description |
|---|---|---|
is3DDataset |
|
const is3DDataset = useRecoilValue(fos.is3DDataset);
isClipsView#
Name |
Type |
Description |
|---|---|---|
isClipsView |
|
const isClipsView = useRecoilValue(fos.isClipsView);
isDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isDynamicGroup |
|
const isDynamicGroup = useRecoilValue(fos.isDynamicGroup);
isFieldVisibilityActive#
Name |
Type |
Description |
|---|---|---|
isFieldVisibilityActive |
|
const isFieldVisibilityActive = useRecoilValue(fos.isFieldVisibilityActive);
isFramesView#
Name |
Type |
Description |
|---|---|---|
isFramesView |
|
const isFramesView = useRecoilValue(fos.isFramesView);
isGeneratedView#
Name |
Type |
Description |
|---|---|---|
isGeneratedView |
|
const isGeneratedView = useRecoilValue(fos.isGeneratedView);
isGroup#
Name |
Type |
Description |
|---|---|---|
isGroup |
|
const isGroup = useRecoilValue(fos.isGroup);
isInMultiPanelViewAtom#
Name |
Type |
Description |
|---|---|---|
isInMultiPanelViewAtom |
|
const [isInMultiPanelViewAtom, setIsInMultiPanelViewAtom] = useRecoilState(fos.isInMultiPanelViewAtom);
isLargeVideo#
Name |
Type |
Description |
|---|---|---|
isLargeVideo |
|
const isLargeVideo = useRecoilValue(fos.isLargeVideo);
isModalActive#
Name |
Type |
Description |
|---|---|---|
isModalActive |
|
const isModalActive = useRecoilValue(fos.isModalActive);
isMultimodalDataset#
Name |
Type |
Description |
|---|---|---|
isMultimodalDataset |
|
const isMultimodalDataset = useRecoilValue(fos.isMultimodalDataset);
isNestedDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isNestedDynamicGroup |
|
const isNestedDynamicGroup = useRecoilValue(fos.isNestedDynamicGroup);
isNonNestedDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isNonNestedDynamicGroup |
|
const isNonNestedDynamicGroup = useRecoilValue(fos.isNonNestedDynamicGroup);
isNotebook#
Name |
Type |
Description |
|---|---|---|
isNotebook |
|
const isNotebook = useRecoilValue(fos.isNotebook);
isOrderedDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isOrderedDynamicGroup |
|
const isOrderedDynamicGroup = useRecoilValue(fos.isOrderedDynamicGroup);
isPatchesView#
Name |
Type |
Description |
|---|---|---|
isPatchesView |
|
const isPatchesView = useRecoilValue(fos.isPatchesView);
isQueryPerformantDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isQueryPerformantDynamicGroup |
|
const isQueryPerformantDynamicGroup = useRecoilValue(fos.isQueryPerformantDynamicGroup);
isQueryPerformantView#
Name |
Type |
Description |
|---|---|---|
isQueryPerformantView |
|
const isQueryPerformantView = useRecoilValue(fos.isQueryPerformantView);
isRootView#
Name |
Type |
Description |
|---|---|---|
isRootView |
|
const isRootView = useRecoilValue(fos.isRootView);
isTooltipLocked#
Name |
Type |
Description |
|---|---|---|
isTooltipLocked |
|
const [isTooltipLocked, setIsTooltipLocked] = useRecoilState(fos.isTooltipLocked);
isVideoDataset#
Name |
Type |
Description |
|---|---|---|
isVideoDataset |
|
const isVideoDataset = useRecoilValue(fos.isVideoDataset);
labelPathsSet#
Name |
Type |
Description |
|---|---|---|
labelPathsSet |
|
const labelPathsSet = useRecoilValue(fos.labelPathsSet);
labelPathsSetExpanded#
Name |
Type |
Description |
|---|---|---|
labelPathsSetExpanded |
|
const labelPathsSetExpanded = useRecoilValue(fos.labelPathsSetExpanded);
labelSelectionStyle#
Name |
Type |
Description |
|---|---|---|
labelSelectionStyle |
|
const [labelSelectionStyle, setLabelSelectionStyle] = useRecoilState(fos.labelSelectionStyle);
lastLoadedDatasetNameState#
Name |
Type |
Description |
|---|---|---|
lastLoadedDatasetNameState |
|
const [lastLoadedDatasetNameState, setLastLoadedDatasetNameState] = useRecoilState(fos.lastLoadedDatasetNameState);
lensWireExclusions#
The fields and attribute DB paths the Explore schema lens hides. Only viewers who may see every field can pick a lens (never in a task), so these are hidden in the client: switching the lens never reloads the page query or refetches the grid’s or the modal’s samples.
const lensWireExclusions = useRecoilValue(fos.lensWireExclusions);
loading#
Name |
Type |
Description |
|---|---|---|
loading |
|
const [loading, setLoading] = useRecoilState(fos.loading);
lookerPanels#
Name |
Type |
Description |
|---|---|---|
lookerPanels.help |
|
|
lookerPanels.json |
|
const [lookerPanels, setLookerPanels] = useRecoilState(fos.lookerPanels);
mediaFields#
const [mediaFields, setMediaFields] = useRecoilState(fos.mediaFields);
mediaSources#
Where each media source the browser addresses by path is, by source id. Read once per dataset load; a sample’s assets name their source, so nothing repeats a location per page.
Name |
Type |
Description |
|---|---|---|
mediaSources |
|
const mediaSources = useRecoilValue(fos.mediaSources);
mediaType#
Name |
Type |
Description |
|---|---|---|
mediaType |
|
const [mediaType, setMediaType] = useRecoilState(fos.mediaType);
mediaTypeSelector#
Name |
Type |
Description |
|---|---|---|
mediaTypeSelector |
|
const mediaTypeSelector = useRecoilValue(fos.mediaTypeSelector);
modal#
Name |
Type |
Description |
|---|---|---|
modal |
|
const [modal, setModal] = useRecoilState(fos.modal);
modalAttributeVisibility#
Name |
Type |
Description |
|---|---|---|
modalAttributeVisibility |
|
const [modalAttributeVisibility, setModalAttributeVisibility] = useRecoilState(fos.modalAttributeVisibility);
modalFilters#
Name |
Type |
Description |
|---|---|---|
modalFilters |
|
const [modalFilters, setModalFilters] = useRecoilState(fos.modalFilters);
modalGroupSlice#
Name |
Type |
Description |
|---|---|---|
modalGroupSlice |
|
const [modalGroupSlice, setModalGroupSlice] = useRecoilState(fos.modalGroupSlice);
modalLooker#
Name |
Type |
Description |
|---|---|---|
modalLooker |
|
const [modalLooker, setModalLooker] = useRecoilState(fos.modalLooker);
modalSample#
The modal sample without the fields and attributes the Explore schema lens hides (the task’s never reach the payload).
The lens’s paths are removed here rather than excluded in the query: the query’s response is stored in one Relay record per sample whatever its view, so a lens-specific query overwrote the record the other lenses read, and switching back showed the fields still hidden. Removing them here also means a lens switch never refetches the sample or reloads its media, and a sample the lens hides nothing on keeps its identity.
Name |
Type |
Description |
|---|---|---|
modalSample |
|
const modalSample = useRecoilValue(fos.modalSample);
modalSampleId#
Name |
Type |
Description |
|---|---|---|
modalSampleId |
|
const modalSampleId = useRecoilValue(fos.modalSampleId);
modalSampleView#
The view of the modal sample queries: the current view plus the active
task’s hidden fields, which never reach the payload. The Explore lens’s
are removed by modalSample instead.
const modalSampleView = useRecoilValue(fos.modalSampleView);
modalSelector#
Name |
Type |
Description |
|---|---|---|
modalSelector |
|
const [modalSelector, setModalSelector] = useRecoilState(fos.modalSelector);
modalTopBarVisible#
Name |
Type |
Description |
|---|---|---|
modalTopBarVisible |
|
const [modalTopBarVisible, setModalTopBarVisible] = useRecoilState(fos.modalTopBarVisible);
multimodalGridFit#
Validated grid fit for the active dataset, defaulting to Cover.
Name |
Type |
Description |
|---|---|---|
multimodalGridFit |
|
const [multimodalGridFit, setMultimodalGridFit] = useRecoilState(fos.multimodalGridFit);
non3dSamples#
const non3dSamples = useRecoilValue(fos.non3dSamples);
noneValuedPaths#
Name |
Type |
Description |
|---|---|---|
noneValuedPaths |
|
const [noneValuedPaths, setNoneValuedPaths] = useRecoilState(fos.noneValuedPaths);
nullableModalSampleId#
Name |
Type |
Description |
|---|---|---|
nullableModalSampleId |
|
const nullableModalSampleId = useRecoilValue(fos.nullableModalSampleId);
only3d#
Name |
Type |
Description |
|---|---|---|
only3d |
|
const only3d = useRecoilValue(fos.only3d);
parentMediaTypeSelector#
Name |
Type |
Description |
|---|---|---|
parentMediaTypeSelector |
|
const parentMediaTypeSelector = useRecoilValue(fos.parentMediaTypeSelector);
patching#
Name |
Type |
Description |
|---|---|---|
patching |
|
const [patching, setPatching] = useRecoilState(fos.patching);
queryPerformance#
Name |
Type |
Description |
|---|---|---|
queryPerformance |
|
const [queryPerformance, setQueryPerformance] = useRecoilState(fos.queryPerformance);
queryPerformanceMaxSearch#
Name |
Type |
Description |
|---|---|---|
queryPerformanceMaxSearch |
|
const [queryPerformanceMaxSearch, setQueryPerformanceMaxSearch] = useRecoilState(fos.queryPerformanceMaxSearch);
queryPerformanceSetting#
Name |
Type |
Description |
|---|---|---|
queryPerformanceSetting |
|
const [queryPerformanceSetting, setQueryPerformanceSetting] = useRecoilState(fos.queryPerformanceSetting);
readOnly#
Name |
Type |
Description |
|---|---|---|
readOnly |
|
const [readOnly, setReadOnly] = useRecoilState(fos.readOnly);
refreshGroupQuery#
Name |
Type |
Description |
|---|---|---|
refreshGroupQuery |
|
const [refreshGroupQuery, setRefreshGroupQuery] = useRecoilState(fos.refreshGroupQuery);
refresher#
Name |
Type |
Description |
|---|---|---|
refresher |
|
const [refresher, setRefresher] = useRecoilState(fos.refresher);
resolvedShownLabelAttributes#
All customized label fields mapped to their shown attributes, for looker options. Fields without an entry default to showing “label”.
Name |
Type |
Description |
|---|---|---|
resolvedShownLabelAttributes |
|
const resolvedShownLabelAttributes = useRecoilValue(fos.resolvedShownLabelAttributes);
rootElementName#
Name |
Type |
Description |
|---|---|---|
rootElementName |
|
const rootElementName = useRecoilValue(fos.rootElementName);
rootElementNamePlural#
Name |
Type |
Description |
|---|---|---|
rootElementNamePlural |
|
const rootElementNamePlural = useRecoilValue(fos.rootElementNamePlural);
sampleFields#
const sampleFields = useRecoilValue(fos.sampleFields);
sampleSelectionStyle#
Name |
Type |
Description |
|---|---|---|
sampleSelectionStyle |
|
const [sampleSelectionStyle, setSampleSelectionStyle] = useRecoilState(fos.sampleSelectionStyle);
savedLookerOptions#
const [savedLookerOptions, setSavedLookerOptions] = useRecoilState(fos.savedLookerOptions);
savingFilters#
Name |
Type |
Description |
|---|---|---|
savingFilters |
|
const [savingFilters, setSavingFilters] = useRecoilState(fos.savingFilters);
schemaLens#
Name |
Type |
Description |
|---|---|---|
schemaLens |
|
const [schemaLens, setSchemaLens] = useRecoilState(fos.schemaLens);
selectedLabelIds#
Name |
Type |
Description |
|---|---|---|
selectedLabelIds |
|
const selectedLabelIds = useRecoilValue(fos.selectedLabelIds);
selectedLabelMap#
Name |
Type |
Description |
|---|---|---|
selectedLabelMap |
|
const [selectedLabelMap, setSelectedLabelMap] = useRecoilState(fos.selectedLabelMap);
selectedLabelTypes#
Name |
Type |
Description |
|---|---|---|
selectedLabelTypes |
|
const selectedLabelTypes = useRecoilValue(fos.selectedLabelTypes);
selectedLabels#
const [selectedLabels, setSelectedLabels] = useRecoilState(fos.selectedLabels);
selectedPatchSamples#
Name |
Type |
Description |
|---|---|---|
selectedPatchSamples |
|
const selectedPatchSamples = useRecoilValue(fos.selectedPatchSamples);
selectedSampleObjects#
Name |
Type |
Description |
|---|---|---|
selectedSampleObjects |
|
const [selectedSampleObjects, setSelectedSampleObjects] = useRecoilState(fos.selectedSampleObjects);
selectedSamples#
Name |
Type |
Description |
|---|---|---|
selectedSamples |
|
const [selectedSamples, setSelectedSamples] = useRecoilState(fos.selectedSamples);
selectedSavedViewState#
Name |
Type |
Description |
|---|---|---|
selectedSavedViewState |
|
const [selectedSavedViewState, setSelectedSavedViewState] = useRecoilState(fos.selectedSavedViewState);
selectedViewName#
Name |
Type |
Description |
|---|---|---|
selectedViewName |
|
const [selectedViewName, setSelectedViewName] = useRecoilState(fos.selectedViewName);
sessionGroupSlice#
Name |
Type |
Description |
|---|---|---|
sessionGroupSlice |
|
const [sessionGroupSlice, setSessionGroupSlice] = useRecoilState(fos.sessionGroupSlice);
sessionSpaces#
Name |
Type |
Description |
|---|---|---|
sessionSpaces |
|
const [sessionSpaces, setSessionSpaces] = useRecoilState(fos.sessionSpaces);
showOverlays#
Name |
Type |
Description |
|---|---|---|
showOverlays |
|
const [showOverlays, setShowOverlays] = useRecoilState(fos.showOverlays);
similarityMethods#
Name |
Type |
Description |
|---|---|---|
similarityMethods.patches |
|
|
similarityMethods.samples |
|
const similarityMethods = useRecoilValue(fos.similarityMethods);
similarityParameters#
Name |
Type |
Description |
|---|---|---|
similarityParameters |
|
const [similarityParameters, setSimilarityParameters] = useRecoilState(fos.similarityParameters);
similaritySorting#
Name |
Type |
Description |
|---|---|---|
similaritySorting |
|
const [similaritySorting, setSimilaritySorting] = useRecoilState(fos.similaritySorting);
snackbarErrors#
const [snackbarErrors, setSnackbarErrors] = useRecoilState(fos.snackbarErrors);
snackbarLink#
Name |
Type |
Description |
|---|---|---|
snackbarLink.link |
|
|
snackbarLink.message |
|
const [snackbarLink, setSnackbarLink] = useRecoilState(fos.snackbarLink);
snackbarMessage#
Name |
Type |
Description |
|---|---|---|
snackbarMessage |
|
const [snackbarMessage, setSnackbarMessage] = useRecoilState(fos.snackbarMessage);
stageDefinitions#
const stageDefinitions = useRecoilValue(fos.stageDefinitions);
stageInfo#
Name |
Type |
Description |
|---|---|---|
stageInfo |
|
const [stageInfo, setStageInfo] = useRecoilState(fos.stageInfo);
stateSubscription#
Name |
Type |
Description |
|---|---|---|
stateSubscription |
|
const stateSubscription = useRecoilValue(fos.stateSubscription);
targets#
Name |
Type |
Description |
|---|---|---|
targets.defaults |
|
|
targets.fields |
|
const targets = useRecoilValue(fos.targets);
taskAttrDbExclusions#
Embedded DB paths (<field>.<list_key>.<attr>) of the active task’s
hidden attributes — these ride the server exclusion stages so hidden
attribute VALUES are stripped from sample payloads.
const [taskAttrDbExclusions, setTaskAttrDbExclusions] = useRecoilState(fos.taskAttrDbExclusions);
taskAttributeExclusions#
Attribute-level exclusions from the active workflow task’s schema
policy (<field_path>.<attr> entries) — hidden attributes drop out
of the Explore sidebar’s nested rows/filters via fieldPaths.
const [taskAttributeExclusions, setTaskAttributeExclusions] = useRecoilState(fos.taskAttributeExclusions);
taskExclusionsEnforcedByServer#
Whether the server is enforcing the active task’s schema for this viewer (set by the task entry effect alongside the task header: below MANAGE the server drops hidden paths from aggregation requests and appends the exclusion stage to the page query itself; MANAGE viewers and admins are exempt and rely on the client stage).
Name |
Type |
Description |
|---|---|---|
taskExclusionsEnforcedByServer |
|
const [taskExclusionsEnforcedByServer, setTaskExclusionsEnforcedByServer] = useRecoilState(fos.taskExclusionsEnforcedByServer);
taskFieldExclusions#
Field paths hidden by the active workflow task’s stage schema policy
(written by the task workspace on entry, cleared on exit). A silent,
in-memory sibling of fieldVisibilityStage: it rides the same
enforcement paths — client-side fieldSchema filtering plus the
extendedStages ExcludeFields sent with server queries — but never
renders a view-bar stage or a clearable pill, is not persisted to
the server session, and cannot be cleared by sidebar affordances.
const [taskFieldExclusions, setTaskFieldExclusions] = useRecoilState(fos.taskFieldExclusions);
taskSchemaGoverns#
True while a workflow task is active: the task’s schema (or its absence — an unrestricted task) governs, and no Explore lens or dataset default may contribute exclusions.
Name |
Type |
Description |
|---|---|---|
taskSchemaGoverns |
|
const [taskSchemaGoverns, setTaskSchemaGoverns] = useRecoilState(fos.taskSchemaGoverns);
taskSchemaStageExclusions#
Like activeSchemaStageExclusions, without the Explore lens: what the
grid’s sample query carries. The grid fetches lens-hidden fields and
leaves them out of what it draws, so a lens switch keeps its samples,
media and scroll position.
const taskSchemaStageExclusions = useRecoilValue(fos.taskSchemaStageExclusions);
taskSchemaWireExclusions#
The active task’s hidden fields and attribute DB paths. These ride the
server queries (the page query’s $extendedView, the grid and
aggregation stages, the modal sample query), because a task’s viewer
may not be allowed to see them.
const taskSchemaWireExclusions = useRecoilValue(fos.taskSchemaWireExclusions);
temporalTagColor#
Resolver for temporal-tag colors.
Temporal tags follow the app’s color-by setting like every other interval
source does: the _temporal_tags field color when coloring by field, and
the tag name’s own color — configured, else hashed from the pool — when
coloring by value. They used to be pinned to value coloring whatever the app
was set to, which left a grid tile’s marks disagreeing with the Enterprise
events beside them in the same lane.
This is valueColor for the temporal-tags path and nothing more; it
stays as its own name because the tag name is not a path value the way a
string filter’s is, and callers outside state should not have to know
which pseudo-path it lives under.
const temporalTagColor = useRecoilValue(fos.temporalTagColor);
temporalTagResults#
Read-only view of the dataset’s temporal-tag vocabulary. Populate it via
useSyncTemporalTagResults. The sidebar’s counts are not these; they
are temporalTagCounts, scoped to the view.
Name |
Type |
Description |
|---|---|---|
temporalTagResults |
|
const temporalTagResults = useRecoilValue(fos.temporalTagResults);
theme#
Name |
Type |
Description |
|---|---|---|
theme |
|
const [theme, setTheme] = useRecoilState(fos.theme);
themeConfig#
Name |
Type |
Description |
|---|---|---|
themeConfig |
|
const themeConfig = useRecoilValue(fos.themeConfig);
timeZone#
Name |
Type |
Description |
|---|---|---|
timeZone |
|
const timeZone = useRecoilValue(fos.timeZone);
tooltipCoordinates#
Name |
Type |
Description |
|---|---|---|
tooltipCoordinates.bottom |
|
|
tooltipCoordinates.left |
|
|
tooltipCoordinates.right |
|
|
tooltipCoordinates.top |
|
const [tooltipCoordinates, setTooltipCoordinates] = useRecoilState(fos.tooltipCoordinates);
tooltipDetail#
Name |
Type |
Description |
|---|---|---|
tooltipDetail |
|
const [tooltipDetail, setTooltipDetail] = useRecoilState(fos.tooltipDetail);
view#
const [view, setView] = useRecoilState(fos.view);
viewChangePending#
A view change in flight outside the router’s knowledge — a server-side
operator that applies a view when it finishes. Read through
useViewChangePending; the router clears it when the next entry loads.
Name |
Type |
Description |
|---|---|---|
viewChangePending |
|
const [viewChangePending, setViewChangePending] = useRecoilState(fos.viewChangePending);
viewCls#
Name |
Type |
Description |
|---|---|---|
viewCls |
|
const [viewCls, setViewCls] = useRecoilState(fos.viewCls);
viewCounter#
Name |
Type |
Description |
|---|---|---|
viewCounter |
|
const [viewCounter, setViewCounter] = useRecoilState(fos.viewCounter);
viewName#
Name |
Type |
Description |
|---|---|---|
viewName |
|
const [viewName, setViewName] = useRecoilState(fos.viewName);
viewStateForm_INTERNAL#
This atom can be set to parameterize view changes
See
for example usage
Name |
Type |
Description |
|---|---|---|
viewStateForm_INTERNAL |
|
const [viewStateForm_INTERNAL, setViewStateForm_INTERNAL] = useRecoilState(fos.viewStateForm_INTERNAL);
Hooks#
useActive3dSamplesMap#
- fos.useActive3dSamplesMap()#
- Return type:
Record < string , ModalSample ><string,plugins.fiftyone.state.ModalSample>
Resolved samples for the currently active 3D slices.
useActive3dSlices#
- fos.useActive3dSlices()#
- Return type:
Array<string>
The 3D slice names currently included in the rendered scene.
useActiveDirectSlices#
- fos.useActiveDirectSlices()#
- Return type:
Array<string>
Active non-FO3D 3D slices rendered alongside the scene.
useActiveFields#
- fos.useActiveFields(params)#
- Arguments:
params (
Object)params.modal (
boolean)
- Return type:
Array<string>
The field paths currently toggled visible in the sidebar.
useActiveFilterValues#
Recoil-bound activeFilterValues for the grid’s filter set.
useActiveFo3dSlice#
- fos.useActiveFo3dSlice()#
- Return type:
string
Active FO3D slice currently driving the scene, if one is selected.
useActiveModalFields#
- fos.useActiveModalFields()#
- Return type:
[Array< string >,SetterOrUpdater < >]
Hook which provides the modal’s stored active-field choice, and a setter
to update it. null is the default: every field the current schema
shows. Unlike the resolved paths, the choice is not filtered by the
schema, so restoring it brings back fields a schema switch showed again.
useActiveModalSample#
- fos.useActiveModalSample()#
- Return type:
plugins.fiftyone.state.Sample
Get the sample currently being acted on in the modal.
Unlike useModalSample, which always resolves the 2D modalGroupSlice
sample, this is 3D-aware: when a 3D slice is pinned it returns that slice’s
sample. It mirrors the sample the sidebar and looker display, so annotation
edits persist to the slice the user is actually editing (e.g. a cuboid edit
targets the point-cloud sample, not the 2D image slice).
Returns undefined if the modal is closed or the sample is still loading.
useActiveModalSampleValue#
- fos.useActiveModalSampleValue(path)#
Reads a single field value at path from the active modal sidebar sample.
Returns
The resolved value, or
- when the sample is
unresolved or transiently absent for the active slice.
Throws
Any non-
- error from the underlying
loadable (e.g. plain
`SampleNotFound`
or a thrown selector error).
useActiveTemporalTagFilterValues#
- fos.useActiveTemporalTagFilterValues()#
- Return type:
Array<string>
Tag values the grid is currently filtering for via the temporal-tags filter — inclusive selections only (empty when the filter is unset or set to exclude). Used to auto-pin the matching timeline tracks when a sample is opened from a temporal-tag-filtered grid.
Nothing here is tag-specific beyond the path, so the body lives in
filters.ts as useActiveFilterValues and is shared with the other
interval sources that pin the same way.
useActivityToast#
- fos.useActivityToast()#
- Return type:
plugins.fiftyone.state.IActivityToast
Hook which provides read and write access to the application’s ActivityToast
through the IActivityToast interface.
useAll3dSamplesMap#
- fos.useAll3dSamplesMap()#
- Return type:
Record < string , ModalSample ><string,plugins.fiftyone.state.ModalSample>
Resolved samples for every available 3D slice in the current modal context.
useAll3dSlices#
- fos.useAll3dSlices()#
- Return type:
Array<string>
All available 3D slice names.
useAnnotationSurface#
- fos.useAnnotationSurface()#
- Return type:
plugins.fiftyone.state.AnnotationSurface
The annotation surface currently mounted in the modal, if any.
useApplySelectedLabelsDelta#
- fos.useApplySelectedLabelsDelta()#
Apply a delta to the selected labels in one write.
Additive by nature — it adds and removes exactly what it is given and leaves the rest alone — which is what lets several independent gestures accumulate into one selection rather than replacing each other.
A delta that changes nothing publishes nothing. Callers can be driven by state that also derives FROM this atom (a canvas mirroring the selection back), where republishing an unchanged map would hand every derived selector a fresh identity and kick those observers off again for no reason.
- fos.applySelectedLabelsDelta()#
- Arguments:
args (
[ SelectedLabelsDelta ])- Return type:
void
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useAssertedRecoilValue#
- fos.useAssertedRecoilValue(recoilValue)#
- Arguments:
recoilValue (
RecoilValue)
- Return type:
plugins.fiftyone.state.T
useBeforeScreenshot#
- fos.useBeforeScreenshot(cb)#
- Arguments:
cb (
( ))
- Return type:
void
useBoundingBoxVisibility#
Whether a detection field’s box outlines are shown in looker overlays.
useBrowserStorage#
useClearGridViewConstraints#
- fos.useClearGridViewConstraints()#
Clears the outgoing query’s constraints when opening a new browsing scope.
- fos.clearGridViewConstraints()#
- Arguments:
args (
[ ])- Return type:
void
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useClearModal#
- fos.useClearModal()#
A react hook that allows clearing the modal state.
Example
function MyComponent() {
const clearModal = useClearModal();
return (
<button onClick={clearModal}>Close Modal</button>
)
}
Returns
A function that clears the modal state.
- fos.clearModal()#
- Return type:
void
useColorScheme#
- fos.useColorScheme()#
- Return type:
plugins.fiftyone.state.ColorSchemeInput
The session color scheme (per-field customizations, label tag colors).
useColoring#
- fos.useColoring()#
- Return type:
plugins.fiftyone.state.Coloring
The resolved coloring configuration (color-by mode, pool, seed) used to color labels.
useCreateLooker#
useCurrentDataset#
- fos.useCurrentDataset()#
- Return type:
plugins.fiftyone.state.Dataset
Get the current dataset.
Returns
The current dataset state
useCurrentDatasetId#
- fos.useCurrentDatasetId()#
- Return type:
string
Get the current dataset ID.
Returns
The current dataset ID, or null if no dataset is selected
useCurrentDatasetName#
- fos.useCurrentDatasetName()#
- Return type:
string
Get the current dataset name.
Returns
The current dataset name
useCurrentSampleId#
- fos.useCurrentSampleId()#
- Return type:
string
Gets the current sample ID.
useDatasetMediaType#
- fos.useDatasetMediaType()#
- Return type:
string
The dataset’s media type, with group datasets reporting group — matching
how a view stage declares the media types it applies to.
Returns
the media type, or null when no dataset is loaded
useDatasetSampleCount#
- fos.useDatasetSampleCount()#
- Return type:
number
The dataset’s estimated sample count, before any view stage or filter.
useDebounceCallback#
- fos.useDebounceCallback(func, delay, options)#
- Arguments:
func (
T)delay (
number)options (
DebounceSettings)
- Return type:
plugins.fiftyone.state.DebouncedState<plugins.fiftyone.state.T>
useDeferrer#
- fos.useDeferrer()#
- Return type:
Object
useDimensions#
- fos.useDimensions()#
- Return type:
Object
useDisabledCheckboxPaths#
- fos.useDisabledCheckboxPaths()#
- Return type:
Set < string ><string>
Returns the set of field paths that are disabled in the sidebar checkbox list. Includes unsupported field types (DictField, VectorField, etc.) and frame fields that are not labels.
useDynamicGroupGroupBy#
- fos.useDynamicGroupGroupBy()#
- Return type:
string
The field the current dynamic group is grouped by, or null when the view is not a dynamic group. A group built from an expression or a list of fields has no single field to name, so it reads null too.
useDynamicGroupOrderBy#
- fos.useDynamicGroupOrderBy()#
- Return type:
string
The field the current dynamic group is ordered by, or null when the view is not a dynamic group or the group is unordered.
useElementsCount#
Returns the last settled element count for the current dynamic group without suspending. Uses the stable groupByFieldValue so the count stays frozen while modalSample is transitioning between pages.
useEvaluationKeys#
- fos.useEvaluationKeys()#
- Return type:
Array<string>
The keys of the dataset’s evaluation runs, for parameters that name one —
ToEvaluationPatches.eval_key being the reason this exists.
Returns
the evaluation keys, empty when no dataset is loaded
useEventHandler#
useExpandSample#
- fos.useExpandSample(store)#
- Arguments:
store ()
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useExpressionCatalog#
- fos.useExpressionCatalog()#
- Return type:
plugins.fiftyone.state.expressionCatalogFragment$data
The operator catalog the expression editor suggests from, exactly as the server describes it — or null before the query has resolved, which callers treat as “suggest nothing rather than something wrong”.
useExtendedStages#
- fos.useExtendedStages()#
- Return type:
Record < string , unknown ><string,unknown>
The grid’s extended stages, { [stage class]: kwargs }, as operators are
sent them.
useField#
A field’s schema entry, or null when the path is not in the schema.
useFieldPaths#
- fos.useFieldPaths(params)#
- Arguments:
params (
Object)params.embeddedDocType (
Union)params.ftype (
Union)params.path (
string)params.space (
SPACE)
- Return type:
Array<string>
Field paths of the dataset’s schema, filtered by params (see fieldPaths).
useFieldType#
A field’s ftype, or undefined when the path is not in the schema.
useFieldTypes#
- fos.useFieldTypes()#
- Return type:
ReadonlyMap < string , FieldType ><string,plugins.fiftyone.state.FieldType>
Every field path in the dataset and what it holds, sample and frame alike.
Flat rather than nested, because callers ask about a path they already have — matching a field against a type restriction, say — not about the shape of the schema.
Returns
field types keyed by the path used to address them
useFilters#
- fos.useFilters()#
- Return type:
plugins.fiftyone.state.Filters
The grid’s sidebar filters.
useFo3dContent#
- fos.useFo3dContent()#
- Return type:
unknown
Parsed FO3D scene content cached for the active scene sample.
useFollow#
- fos.useFollow(leaderRef, followerRef, api)#
- Arguments:
leaderRef (
any)followerRef (
any)api (
any)
- Return type:
void
useFrameSchema#
- fos.useFrameSchema()#
- Return type:
plugins.fiftyone.state.Schema
Get the current FRAME field schema — the per-frame fields of a video
dataset, keyed WITHOUT the frames. prefix that sidebar paths carry.
Returns
The field schema for the frame space
useGetKeypointSkeleton#
- fos.useGetKeypointSkeleton()#
Hook which provides a function to get the default keypoint skeleton for a given field. Falls back to the dataset’s default skeleton when the field has none of its own.
- fos.getKeypointSkeleton()#
- Arguments:
args (
[ field ])- Return type:
plugins.fiftyone.state.KeypointSkeleton
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useGridCustomRendererFailover#
React view onto the external fail-open store.
useSyncExternalStore bridges React to this module-level source of truth,
while selectors and other non-React code can still read it synchronously.
When a dataset name is provided, the disable/banner state is scoped to that dataset. The forced subscription remains shared because the sync repair path still applies to the entire tab.
useGridEntries#
- fos.useGridEntries()#
- Return type:
[Array< SidebarEntry >,( entries : )]
useGridGroupSlice#
- fos.useGridGroupSlice()#
- Return type:
Union<string,null>
The active group slice the grid shows, or null outside grouped datasets.
useGridViewScope#
- fos.useGridViewScope()#
- Return type:
Object
Current grid pipeline inputs, without pagination or explicit selection.
useGroupByFieldValue#
- fos.useGroupByFieldValue()#
- Return type:
string
Returns the last settled groupByFieldValue without ever suspending.
groupByFieldValue derives from modalSample (a graphQLSelector) and suspends during sample transitions. This hook holds the previous value steady while the next one loads, preventing Suspense boundaries from triggering on every sample navigation. Returns undefined until the first value has settled.
useGroupField#
- fos.useGroupField()#
- Return type:
string
The current dataset’s group field.
Returns
- The group field’s name, or null if the dataset is not a group
dataset
useGroupSlices#
- fos.useGroupSlices(mediaTypes)#
- Arguments:
mediaTypes (
Array)
- Return type:
Array<string>
Returns the names of dataset-level group slices whose media type matches any of the provided types, or every slice when types are omitted.
Returns
Slice names matching the requested media types, in dataset order.
useHas3dSlice#
- fos.useHas3dSlice()#
- Return type:
boolean
Whether the current modal context exposes any 3D slice.
useHasMultiple3dSlices#
- fos.useHasMultiple3dSlices()#
- Return type:
boolean
Whether more than one 3D slice is available.
useHashChangeHandler#
- fos.useHashChangeHandler(handler)#
- Arguments:
handler (
any)
- Return type:
void
useHelpPanel#
- fos.useHelpPanel()#
- Return type:
Object
useHoldScopedCountsUntilNextPage#
- fos.useHoldScopedCountsUntilNextPage()#
Holds scoped counts until the next full page lands: for a scope switch whose view arrives with that page, after its boundary has already applied.
- fos.holdScopedCountsUntilNextPage()#
- Return type:
void
useHover#
- fos.useHover()#
- Return type:
[MutableRefObject < any >,boolean]
useHoveredSample#
useInteraction3dSample#
- fos.useInteraction3dSample()#
- Return type:
plugins.fiftyone.state.ModalSample
Representative sample used for 3D interaction-driven behavior.
useIs3dPinned#
- fos.useIs3dPinned()#
- Return type:
boolean
Whether the 3D slice selection is pinned to a specific slice.
useIs3dVisible#
- fos.useIs3dVisible()#
- Return type:
boolean
Whether the 3D viewer is currently visible.
useIs3dVisibleSetting#
- fos.useIs3dVisibleSetting()#
- Return type:
boolean
Persisted user preference for showing the 3D viewer.
useIsConvertedView#
- fos.useIsConvertedView()#
- Return type:
boolean
Whether the view converts parent episodes into another result identity.
useIsDynamicGroup#
- fos.useIsDynamicGroup()#
- Return type:
boolean
Whether the current view is a dynamic group.
useIsFramesView#
- fos.useIsFramesView()#
- Return type:
boolean
Whether the current view contains individual video frames.
useIsGroupCarouselVisible#
- fos.useIsGroupCarouselVisible()#
- Return type:
boolean
Whether the carousel is visible. Always false in annotate mode.
useIsGroupDataset#
- fos.useIsGroupDataset()#
- Return type:
boolean
Whether the current dataset is a grouped dataset.
Returns
True if the current dataset is a group dataset
useIsGroupMain2dViewerVisible#
- fos.useIsGroupMain2dViewerVisible()#
- Return type:
boolean
Whether the 2D viewer is visible. In annotate mode, suppressed when the 3D viewer is also visible so only one viewer shows at a time.
useIsGroupMain2dViewerVisibleSetting#
- fos.useIsGroupMain2dViewerVisibleSetting()#
- Return type:
boolean
The user’s setting for showing the 2D viewer, before annotate-mode suppression.
useIsImageDynamicGroupVideo#
- fos.useIsImageDynamicGroupVideo()#
- Return type:
boolean
Whether the current view is an ordered dynamic group over image samples (ImaVid). Such a view reports a “group” media type with no slices.
Returns
True if the current view is an image-backed dynamic group video
useIsMediaType#
Returns true when the current dataset’s media type matches the argument.
Equality is on the dataset-level mediaType (e.g. "video", "image",
"point_cloud"). For media-family checks like “is 3D”, prefer the existing
is3DDataset selector since it handles multiple matching types.
useIsNestedDynamicGroup#
- fos.useIsNestedDynamicGroup()#
- Return type:
boolean
Whether the current view is a dynamic group over a group dataset.
useIsNonNestedDynamicGroup#
- fos.useIsNonNestedDynamicGroup()#
- Return type:
boolean
Whether the current view is a dynamic group over a non-group dataset.
useIsPatchesView#
- fos.useIsPatchesView()#
- Return type:
boolean
Whether the current view is a patches view.
useIsQueryPerformantDynamicGroup#
- fos.useIsQueryPerformantDynamicGroup()#
- Return type:
boolean
Whether the dynamic group is ordered with a fixed order-by key, so paging it is indexed.
useIsVideo#
- fos.useIsVideo()#
- Return type:
boolean
Convenience: useIsMediaType("video").
useJSONPanel#
- fos.useJSONPanel()#
- Return type:
Object
Manage the JSON panel state and events.
Example
function MyComponent() {
const jsonPanel = useJSONPanel();
return jsonPanel.isOpen && (
<JSONPanel
containerRef={jsonPanel.containerRef}
onClose={() => jsonPanel.close()}
onCopy={() => jsonPanel.copy()}
/>
)
}
useKeyDown#
- fos.useKeyDown(key, handler, deps)#
- Arguments:
key (
string)handler (
( down : boolean , e : KeyboardEvent ))deps (
DependencyList)
- Return type:
void
a react hook that calls the handler when a given key is down
useKeydownHandler#
- fos.useKeydownHandler(handler)#
- Arguments:
handler (
( e : KeyboardEvent ))
- Return type:
void
useLabelAttributeToggle#
- fos.useLabelAttributeToggle(path, modal)#
Show/hide state for a sidebar label attribute row, e.g. “ground_truth.detections.label”. Returns null when the row is not a label attribute or toggling it would not change what is rendered.
useLabelFields#
- fos.useLabelFields(params)#
- Arguments:
params (
Object)params.space (
SPACE)
- Return type:
Array<string>
The label field paths in the dataset schema.
useLegacySelectedSamples#
- fos.useLegacySelectedSamples()#
- Return type:
[Map < string , SelectionType >,SetterOrUpdater < Map >]
The legacy selected-samples session, read and written as one accessor so the grid selection tray can stay in step with lookers, the modal, and operators without new Recoil usage elsewhere.
useLoadedSavedViewName#
- fos.useLoadedSavedViewName()#
- Return type:
string
The loaded saved view’s name, or null while the view is unsaved.
useLookerOptions#
useLookerStore#
- fos.useLookerStore()#
- Return type:
plugins.fiftyone.state.LookerStore<plugins.fiftyone.state.Lookers>
useModalActive#
- fos.useModalActive()#
- Return type:
boolean
Returns whether the sample modal is currently active.
useModalExplorEntries#
- fos.useModalExplorEntries()#
- Return type:
[Array< SidebarEntry >,( entries : )]
useModalLookerOptions#
- fos.useModalLookerOptions(withFilter)#
- Arguments:
withFilter (
boolean)
- Return type:
Partial < Omit ><Omit < , >>
Gets the looker options for the modal.
useModalMediaPath#
- fos.useModalMediaPath()#
- Return type:
string
Returns the current media path in the modal.
useModalMode#
- fos.useModalMode()#
- Return type:
plugins.fiftyone.state.ModalMode
Get the current modal mode.
useModalModeController#
- fos.useModalModeController()#
- Return type:
plugins.fiftyone.state.ModalModeController
Hook which provides a ModalModeController.
useModalSample#
- fos.useModalSample()#
- Return type:
plugins.fiftyone.state.ModalSample
Get the current modal sample data.
If the modal is not open, or the sample is being loaded, this hook will
return undefined.
useModalSampleId#
- fos.useModalSampleId()#
- Return type:
string
The sample the modal is showing.
useModalSampleSchema#
- fos.useModalSampleSchema()#
- Return type:
plugins.fiftyone.state.Schema
Get the current modal sample schema.
useModalViewport#
- fos.useModalViewport()#
- Return type:
plugins.fiftyone.state.ModalViewportState
Gets the saved modal viewport (zoom/pan) state.
useMutation#
useNon3dSlices#
- fos.useNon3dSlices()#
- Return type:
Array<string>
All available non-3D slice names.
useNotification#
useNullableModalSampleId#
- fos.useNullableModalSampleId()#
- Return type:
string
Reads the selected grid sample ID without suspending on the sample query.
useObserve#
- fos.useObserve(target, handler)#
- Arguments:
target (
any)handler (
any)
- Return type:
void
useOnSelectLabel#
- fos.useOnSelectLabel()#
- fos.onSelectLabel()#
- Arguments:
args (
[ SelectEvent ])
- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useOutsideClick#
usePanel#
- fos.usePanel(name, atom)#
- Arguments:
name (
any)atom (
any)
- Return type:
Object
useParentMediaType#
- fos.useParentMediaType()#
- Return type:
string
The media type of a dynamic group’s members, or the dataset’s own media type.
usePathValueColors#
- fos.usePathValueColors(paths)#
- Arguments:
paths (
readonly)
Domain hook for pathValueColors: returns a
(path: string, value?: string) => string resolving any of paths — and,
where the caller names one of that path’s values, that value — to the color
the sidebar shows for it.
Omit value for something the sidebar has no value dot for: those take the
field’s color in both modes. A path that was not requested falls back to the
seeded pool, so a caller that discovers a path late still gets a stable
color rather than nothing.
usePinned3dSlice#
- fos.usePinned3dSlice()#
- Return type:
string
Slice name currently pinned for 3D rendering, if any.
usePreferredGroupAnnotationSlice#
- fos.usePreferredGroupAnnotationSlice()#
- Return type:
[string,SetAtom < , void >]
Get and set the preferred annotation slice for grouped datasets. Returns [preferredSlice, setPreferredSlice].
usePrimitiveFieldPaths#
- fos.usePrimitiveFieldPaths()#
- Return type:
Array<string>
The primitive (non-label) field paths in the dataset schema, sample and frame spaces alike.
usePromptableSimilarityKeys#
- fos.usePromptableSimilarityKeys()#
- Return type:
Array<plugins.fiftyone.state.PromptableSimilarityIndex>
The dataset’s similarity indexes that accept text prompts, newest first,
for surfaces that turn a typed query into a search. Most become a
SortBySimilarity stage; those whose method has a registered text search
provider are searched by it instead. Brain runs append to brainMethods in
creation order, so the reversed order is “most recently computed” — the
index the user most likely just built for exactly this.
usePublishExtendedSelection#
- fos.usePublishExtendedSelection()#
publishExtendedSelection, committed as one Recoil batch.
- fos.publishExtendedSelection()#
- Arguments:
args (
[ stage , decorate ])- Return type:
void
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
usePublishedGroupMatches#
- fos.usePublishedGroupMatches()#
- Return type:
Union<plugins.fiftyone.state.GroupMatches,null>
The matches last published through groupMatchesBridge.
useQueryPerformance#
- fos.useQueryPerformance()#
- Return type:
Object
useQueryPerformanceSampleLimit#
- fos.useQueryPerformanceSampleLimit()#
- Return type:
number
Hook which returns the sample limit for dataset query performance.
useRealFo3dSlices#
- fos.useRealFo3dSlices()#
- Return type:
Array<string>
Available 3D slices whose media resolves to FO3D files.
useRefresh#
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useRefreshSample#
- fos.useRefreshSample()#
Refresh a sample in both the modal and the grid.
useRenderConfig3dActions#
- fos.useRenderConfig3dActions()#
- Return type:
plugins.fiftyone.state.RenderConfig3dActions
3D render config mutation actions.
useRenderConfig3dImperativeState#
- fos.useRenderConfig3dImperativeState()#
- Return type:
plugins.fiftyone.state.RenderConfig3dImperativeState
Imperative 3D render state queries for event handlers and callbacks.
useRenderConfig3dState#
- fos.useRenderConfig3dState()#
- Return type:
plugins.fiftyone.state.RenderConfig3dState
Suspense-compatible 3D render state for React rendering.
useReportAnnotationSurface#
- fos.useReportAnnotationSurface(surface)#
- Arguments:
surface (
AnnotationSurface)
- Return type:
void
Called by an annotation surface to report itself while mounted. Pass
null while the component is not acting as an annotation surface.
useReset#
- fos.useReset()#
- Return type:
SetterOrUpdater < ><Array< Stage >>
Deprecated
use
instead
useResetExtendedSelection#
- fos.useResetExtendedSelection()#
- fos.resetExtendedSelection()#
- Arguments:
args (
[ ])
- Return type:
void
Returns a function that executes an atomic transaction for updating Recoil state.
useResetView#
- fos.useResetView()#
- Return type:
Resetter
Returns the working view to the unsaved full dataset.
useResizeHandler#
- fos.useResizeHandler(handler)#
- Arguments:
handler (
any)
- Return type:
void
useRetryController#
- fos.useRetryController(__namedParameters)#
- Arguments:
__namedParameters (
RetryConfig)
- Return type:
plugins.fiftyone.state.RetryController
Hook which returns a RetryController to support retryable flows.
useSampleFields#
- fos.useSampleFields()#
- Return type:
Array<plugins.fiftyone.state.Field>
Returns the dataset’s sample-space fields (schema metadata resolved by the active view), sorted by field path.
useSampleSchema#
- fos.useSampleSchema()#
- Return type:
plugins.fiftyone.state.Schema
Get the current sample schema.
Returns
The field schema for the sample space
useSaveModalViewport#
- fos.useSaveModalViewport()#
- Return type:
SetAtom < , void ><[ SetStateAction ],void>
Setter for persisting the modal viewport (zoom/pan) state.
useSavedViewEditPermission#
- fos.useSavedViewEditPermission()#
- Return type:
Object
Whether the viewer may save, edit, and delete saved views, and why not.
useSavedViewTransientState#
- fos.useSavedViewTransientState()#
- Return type:
Object
The App state that saving a view compiles into stages beside the view bar’s own: sidebar filters, sorting, field visibility, and selections made in plots or by search.
useSavedViews#
- fos.useSavedViews()#
- Return type:
Object
useSceneSample3d#
- fos.useSceneSample3d()#
- Return type:
plugins.fiftyone.state.ModalSample
Sample currently used to render the visible 3D scene.
useSchemaSettings#
- fos.useSchemaSettings()#
- Return type:
Object
useScopedGridFilters#
- fos.useScopedGridFilters()#
- Return type:
Object
Sidebar filters and the browsing boundary shared by grid-linked panels.
useScreenshot#
- fos.useScreenshot(context)#
- Arguments:
context ()
useScrollHandler#
- fos.useScrollHandler(handler)#
- Arguments:
handler (
any)
- Return type:
void
useSelectSample#
- fos.useSelectSample()#
- fos.selectSample()#
- Arguments:
args (
[ sampleId , altKey ])
- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useSelectedLabelIds#
- fos.useSelectedLabelIds()#
- Return type:
ReadonlySet < string ><string>
The ids of every currently selected label.
useSelectedMediaFieldGrid#
- fos.useSelectedMediaFieldGrid()#
- Return type:
string
Hook to retrieve the selected media field for the grid view.
Returns
The selected media field state for the grid
useSelectedMediaFieldModal#
- fos.useSelectedMediaFieldModal()#
- Return type:
string
Hook to retrieve the selected media field for the modal view.
Returns
The selected media field state for the modal
useSelectionSubsetDisabledReason#
- fos.useSelectionSubsetDisabledReason()#
- Return type:
Union<string,null>
Saved subsets follow the dataset metadata editing permission.
useSelectionTagDisabledReason#
- fos.useSelectionTagDisabledReason()#
- Return type:
Union<string,null>
Shared tagging policy, including session permissions.
useSession#
useSessionRef#
- fos.useSessionRef()#
- Return type:
plugins.fiftyone.state.Session
useSessionSetter#
useSessionSpaces#
- fos.useSessionSpaces()#
- Return type:
Array<any>
useSetDataset#
- fos.useSetDataset()#
- Return type:
SetterOrUpdater < string ><string>
useSetExpandedSample#
- fos.useSetExpandedSample()#
- fos.setExpandedSample()#
- Arguments:
selector (
ModalSelector)
- Return type:
Promise < void ><void>
useSetGroupSlice#
- fos.useSetGroupSlice()#
- Return type:
SetterOrUpdater < string ><string>
useSetModalState#
- fos.useSetModalState()#
Initializer that applys relevant grid settings to the modal, e.g. sidebar checkboxes. If no navigation is provided, next/previous in the modal is disabled
- fos.setModalState()#
- Arguments:
args (
[ navigation ])- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useSetSavedViewName#
- fos.useSetSavedViewName()#
- Return type:
SetterOrUpdater < string ><string>
Loads a saved view by slug into the working view.
useSetSelected#
- fos.useSetSelected()#
- Return type:
SetterOrUpdater < Map ><Map < string , SelectionType >>
useSetSelectedLabels#
- fos.useSetSelectedLabels()#
- Return type:
SetterOrUpdater < ><Array< SelectedLabel >>
useSetSelectionBoundaries#
- fos.useSetSelectionBoundaries()#
- Return type:
SetterOrUpdater < Readonly ><Readonly < Record >>
Mirrors every domain’s boundary as the tray sets it.
useSetSelectionScopeBoundary#
- fos.useSetSelectionScopeBoundary()#
- Return type:
SetterOrUpdater < ><Object>
Publishes a browsing boundary together with the dataset and view it belongs to.
useSetSessionColorScheme#
- fos.useSetSessionColorScheme()#
- Return type:
SetterOrUpdater < ColorSchemeInput ><plugins.fiftyone.state.ColorSchemeInput>
useSetSpaces#
- fos.useSetSpaces()#
- Return type:
SetterOrUpdater < SpaceNodeJSON ><plugins.fiftyone.state.SpaceNodeJSON>
useSetView#
- fos.useSetView()#
- Return type:
SetterOrUpdater < ><Array< Stage >>
useSetViewChangePending#
- fos.useSetViewChangePending()#
- Return type:
SetterOrUpdater < boolean ><boolean>
useSimilarityKeys#
- fos.useSimilarityKeys()#
- Return type:
Array<string>
Brain keys of all of the dataset’s similarity indexes, for surfaces that
pick a brain_key — e.g. a SortBySimilarity stage form. Sorted for a
stable list.
useSimilaritySearchIndexPreference#
- fos.useSimilaritySearchIndexPreference(datasetId)#
- Arguments:
datasetId (
string)
- Return type:
readonly
The index remembered by quick image searches and the Similarity Search panel.
useSimilaritySearchResultCount#
- fos.useSimilaritySearchResultCount(datasetName)#
- Arguments:
datasetName (
string)
- Return type:
readonly
The result count shared by the view bar and selection tray, per dataset.
useSimilarityType#
- fos.useSimilarityType(props)#
- Arguments:
props (
SimilarityTypeProp)
- Return type:
Object
useStableActive3dSamplesMap#
- fos.useStableActive3dSamplesMap()#
- Return type:
Record < string , ModalSample ><string,plugins.fiftyone.state.ModalSample>
Like useActive3dSamplesMap but holds the last settled value while loading. Returns {} before the first value settles.
useStableActiveFo3dSlice#
- fos.useStableActiveFo3dSlice()#
- Return type:
string
Like useActiveFo3dSlice but holds the last settled value while loading. Returns null before the first value settles (same as selector default).
useStableAll3dSamplesMap#
- fos.useStableAll3dSamplesMap()#
- Return type:
Record < string , ModalSample ><string,plugins.fiftyone.state.ModalSample>
Like useAll3dSamplesMap but holds the last settled value while loading. Returns {} before the first value settles.
useStableInteraction3dSample#
- fos.useStableInteraction3dSample()#
- Return type:
plugins.fiftyone.state.ModalSample
Like useInteraction3dSample but holds the last settled value while loading. Returns undefined before the first value settles — callers must guard.
useStableModalSample#
- fos.useStableModalSample()#
- Return type:
plugins.fiftyone.state.ModalSample
Like useModalSample but holds the last settled value across loading
transitions so consumers don’t lose the sample mid-navigation. Returns
undefined before the first value settles. Treats GroupSampleNotFound as
a non-error (sparse groups legitimately lack a sample on the active slice);
all other errors still bubble.
useStableRealFo3dSlices#
- fos.useStableRealFo3dSlices()#
- Return type:
Array<string>
Like useRealFo3dSlices but holds the last settled value while loading. Returns [] before the first value settles.
useStableSceneSample3d#
- fos.useStableSceneSample3d()#
- Return type:
plugins.fiftyone.state.ModalSample
Like useSceneSample3d but holds the last settled value while the selector is re-fetching (e.g. during group-sample navigation). The 3D scene stays visible instead of flickering to “Pixelating…”. Returns undefined before the first value settles — callers must guard (return null when undefined).
useStageDefinitions#
- fos.useStageDefinitions()#
- Return type:
readonly
The server’s stage descriptors, as fiftyone/core/stages.py describes them.
useSyncTemporalTagResults#
- fos.useSyncTemporalTagResults()#
- Return type:
void
Loads the active dataset’s temporal-tag vocabulary into the results atom, once per dataset, and refreshes it after every temporal tag mutation. Call from each tag editor that offers the existing values.
useTemporalTagColor#
- fos.useTemporalTagColor()#
Domain hook for the temporalTagColor resolver: returns a
(value: string) => string mapping each temporal-tag name to its color.
Consume this from components/hooks instead of reading the selector directly.
useTemporalTagValues#
- fos.useTemporalTagValues()#
- Return type:
Array<string>
Every temporal-tag value defined on the current dataset. Populated by
useSyncTemporalTagResults; empty until that has run, so callers
that need it should call the sync hook too.
useTextSearchProviders#
- fos.useTextSearchProviders()#
- Return type:
ReadonlyMap < string , TextSearchProvider ><string,plugins.fiftyone.state.TextSearchProvider>
The registered providers by method. Re-renders on registration, which can land after first render: providers register from a lazily loaded module.
useTimeZone#
- fos.useTimeZone()#
- Return type:
string
Returns the app display timezone (fo.config.timezone, “UTC” by default)
useTimeout#
- fos.useTimeout(time)#
- Arguments:
time (
number)
- Return type:
boolean
useToClips#
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useToEvaluationPatches#
- fos.useToEvaluationPatches()#
- fos.toEvaluationPatches()#
- Arguments:
args (
[ evaluation ])
- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useToPatches#
- fos.useToPatches()#
- fos.toPatches()#
- Arguments:
args (
[ field ])
- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useToggleBoundingBoxVisibility#
Shows or hides a detection field’s box outlines in looker overlays.
- fos.toggleBoundingBoxVisibility()#
- Return type:
void
useTooltip#
- fos.useTooltip()#
- Return type:
Object
useUnboundState#
- fos.useUnboundState(value)#
- Arguments:
value (
State)
- Return type:
plugins.fiftyone.state.State
The hook can be used to get the latest value of the state without re-rendering the component.
useUnboundStateRef#
- fos.useUnboundStateRef(value)#
- Arguments:
value (
State)
- Return type:
MutableRefObject < State ><plugins.fiftyone.state.State>
useUpdateSamples#
useValueColor#
Domain hook for valueColor: returns a (value) => color for path.
useView#
- fos.useView()#
- Return type:
Array<plugins.fiftyone.state.Stage>
The applied view’s stages.
useViewChangePending#
- fos.useViewChangePending()#
- Return type:
boolean
Whether a view change is in flight outside the router’s knowledge — e.g.
a server-side operator that will apply a view when it finishes. Surfaces
the same pending treatment a setView round-trip gets, for exactly as
long: the router clears it when the resulting entry loads.
useWindowSize#
- fos.useWindowSize()#
- Return type:
Object
Functions#
activeField#
- fos.activeField(params)#
Get or set the active state of a field.
activeFields#
- fos.activeFields(param)#
Returns a function which returns a memoized atom for each unique parameter value.
activeFilterValues#
- fos.activeFilterValues(current, path)#
String values a filter set is currently filtering for at path —
inclusive selections only, empty when the filter is unset or set to exclude.
The shape read here is the string filter’s ({ values, exclude }), so this
applies to any path whose sidebar filter is a string filter. Non-string
filters at path yield an empty list rather than an error: a caller asking
“which values is this filtered to” gets “none it can name”.
Lives in its own module, free of the sidebar and graphQL machinery
filters.ts pulls in, so a test can run the real rule instead of standing a
copy of it up in a mock.
activeLabelFields#
- fos.activeLabelFields(param)#
- Arguments:
param (
Object)param.modal (
boolean)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
activeLabelPaths#
- fos.activeLabelPaths(param)#
- Arguments:
param (
Object)param.modal (
boolean)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
activeLabels#
- fos.activeLabels(param)#
- Arguments:
param (
Object)param.expanded (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< LabelData >>
Returns a function which returns a memoized atom for each unique parameter value.
aggregation#
- fos.aggregation(param)#
Returns a function which returns a memoized atom for each unique parameter value.
aggregationQuery#
- fos.aggregationQuery(parameter)#
- Arguments:
parameter (
Object)parameter.dynamicGroup (
SerializableParam)parameter.eventOffset (
number)parameter.eventSearch (
string)parameter.extended (
boolean)parameter.isQueryPerformance (
boolean)parameter.mixed (
boolean)parameter.modal (
boolean)parameter.paths (
Array)parameter.root (
boolean)parameter.useSelection (
boolean)
- Return type:
RecoilState < ><Array< Aggregation >>
GraphQL Selector Family for Aggregations.
aggregations#
- fos.aggregations(param)#
Returns a function which returns a memoized atom for each unique parameter value.
appConfigOption#
- fos.appConfigOption(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boolExcludeAtom#
- fos.boolExcludeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boolIsMatchingAtom#
- fos.boolIsMatchingAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boolean#
- fos.boolean(param)#
Returns a function which returns a memoized atom for each unique parameter value.
booleanCountResults#
- fos.booleanCountResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
booleanResults#
- fos.booleanResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
booleanSelectedValuesAtom#
- fos.booleanSelectedValuesAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boundedCount#
- fos.boundedCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
bounds#
- fos.bounds(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boundsAtom#
- fos.boundsAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
buildSchema#
- fos.buildSchema(sampleFields, frameFields)#
- Arguments:
sampleFields (
Array)frameFields (
Array)
- Return type:
plugins.fiftyone.state.Schema
canToggleShownLabelAttributes#
- fos.canToggleShownLabelAttributes(param)#
Whether toggling shown attributes for a label field changes what is rendered in the current context: classification-style tag overlays render everywhere, detection box headers and polyline tags render in the modal, and spatial patch labels render as grid tag overlays in patches views.
clampSimilarityResultCount#
- fos.clampSimilarityResultCount(raw, fallback)#
- Arguments:
raw (
number)fallback (
number)
- Return type:
number
Clamp a similarity result count, retaining the previous count for invalid input.
clearExtendedSelectionMirror#
- fos.clearExtendedSelectionMirror()#
- Return type:
void
Clears what read hands back, so a reset survives the next update.
collapseFields#
- fos.collapseFields(paths)#
- Arguments:
paths (
any)
- Return type:
Array<plugins.fiftyone.state.StrictField>
computeCoordinates#
- fos.computeCoordinates(__namedParameters)#
- Arguments:
__namedParameters (
[ number , number ])
- Return type:
Object
constrainsScope#
- fos.constrainsScope(scope)#
- Arguments:
scope (
SelectionBoundary)
- Return type:
boolean
Whether the tray’s browsing boundary narrows results at all.
consumeGridCustomRendererFailover#
- fos.consumeGridCustomRendererFailover()#
- Return type:
void
Records that the reload these failures triggered has landed. They stay in force for this page load; the next one drops them and retries the renderer.
convertTargets#
- fos.convertTargets(targets)#
- Arguments:
targets (
Array)
- Return type:
Any
count#
- fos.count(param)#
Returns a function which returns a memoized atom for each unique parameter value.
countValues#
- fos.countValues(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
counts#
- fos.counts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
cropToContent#
- fos.cropToContent(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
cumulativeCounts#
- fos.cumulativeCounts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
cumulativeValues#
- fos.cumulativeValues(param)#
Returns a function which returns a memoized atom for each unique parameter value.
currentSlice#
- fos.currentSlice(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
currentSlices#
- fos.currentSlices(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
dbPath#
- fos.dbPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
deferrer#
- fos.deferrer(initialized)#
- Arguments:
initialized ()
distribution#
- fos.distribution(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , , , , >>
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupPageSelector#
- fos.dynamicGroupPageSelector(param)#
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupsElementCount#
- fos.dynamicGroupsElementCount(param)#
- Arguments:
param (
Object)param.modal (
boolean)param.value (
SerializableParam)
- Return type:
readonlyreadonly RecoilValueReadOnly < any ><any>
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupsViewMode#
- fos.dynamicGroupsViewMode(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < ><Union< , , >>
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupsViewModeStore#
- fos.dynamicGroupsViewModeStore(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < ><Union< , , >>
Returns a function which returns a memoized atom for each unique parameter value.
ensureColorScheme#
- fos.ensureColorScheme(colorScheme, appConfig)#
eventIdentity#
- fos.eventIdentity(event)#
- Arguments:
event (
EventIdentity)
- Return type:
string
Encodes a projection/id pair for categorical filter values.
excludedPathsState#
- fos.excludedPathsState(param)#
- Arguments:
param (
SerializableParam)
- Return type:
RecoilState < ><Any>
Returns a function which returns a memoized atom for each unique parameter value.
exclusionViewStages#
- fos.exclusionViewStages(paths)#
- Arguments:
paths (
readonly)
- Return type:
Array<Object>
The ExcludeFields view stage for the given paths, as a list of
serialized stages (empty when there are none).
expandPath#
- fos.expandPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
falseAtom#
- fos.falseAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
fetchTemporalTagResults#
- fos.fetchTemporalTagResults(datasetId)#
- Arguments:
datasetId (
string)
- Return type:
Promise < TemporalTagResults ><plugins.fiftyone.state.TemporalTagResults>
Fetches the temporal-tag vocabulary of a dataset, with counts.
field#
- fos.field(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < Field ><plugins.fiftyone.state.Field>
Returns a function which returns a memoized atom for each unique parameter value.
fieldHasVisibilitySetting#
- fos.fieldHasVisibilitySetting(param)#
Returns a function which returns a memoized atom for each unique parameter value.
fieldIsFiltered#
- fos.fieldIsFiltered(param)#
Returns a function which returns a memoized atom for each unique parameter value.
fieldPath#
- fos.fieldPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
fieldPaths#
- fos.fieldPaths(param)#
- Arguments:
param (
Object)param.embeddedDocType (
Union)param.ftype (
Union)param.path (
string)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
fieldSchema#
- fos.fieldSchema(param)#
- Arguments:
param (
Object)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < Schema ><plugins.fiftyone.state.Schema>
Returns a function which returns a memoized atom for each unique parameter value.
fieldType#
- fos.fieldType(param)#
Returns a function which returns a memoized atom for each unique parameter value.
fields#
- fos.fields(param)#
- Arguments:
param (
Object)param.embeddedDocType (
Union)param.ftype (
Union)param.path (
string)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< Field >>
Returns a function which returns a memoized atom for each unique parameter value.
fieldsMatcher#
filter#
- fos.filter(param)#
Returns a function which returns a memoized atom for each unique parameter value.
filterFields#
- fos.filterFields(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
filterPaths#
- fos.filterPaths(paths, schema)#
- Arguments:
paths (
Array)schema (
Schema)
- Return type:
Array<string>
filterSearch#
- fos.filterSearch(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Object>
Given a field path, return a set a field filters and index name that would result in a optimized IXSCAN, if possible
filterView#
- fos.filterView(stages)#
- Arguments:
stages (
Array)
- Return type:
string
gatheredPaths#
- fos.gatheredPaths(param)#
- Arguments:
param (
Object)param.embeddedDocType (
Union)param.ftype (
Union)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< any >>
Returns a function which returns a memoized atom for each unique parameter value.
generateBooleanSelectorFamily#
- fos.generateBooleanSelectorFamily(key)#
- Arguments:
key ()
Returns a function which returns a memoized atom for each unique parameter value.
generateSelectorFamily#
- fos.generateSelectorFamily(key)#
- Arguments:
key ()
Returns a function which returns a memoized atom for each unique parameter value.
getBrowserStorageEffectForKey#
- fos.getBrowserStorageEffectForKey(key, props)#
- param key:
- param props:
- param props.map:
- param props.prependDatasetNameInKey:
If true, prepends the dataset name to the storage key.
- This allows per-dataset storage isolation. Defaults to false
- param props.sessionStorage:
If true, uses sessionStorage instead of localStorage. Defaults to false
- param props.useJsonSerialization:
If true, uses JSON.stringify/parse for serialization.
- Otherwise uses simple string conversion. Defaults to false
- param props.valueClass:
The type of value being stored. Affects how the value is serialized/deserialized.
- Options: “string”, “stringArray”, “number”, “boolean”. Defaults to “string”
- type key:
string
- type props:
Object
- type props.map:
( value : unknown )
- type props.prependDatasetNameInKey:
boolean
- type props.sessionStorage:
boolean
- type props.useJsonSerialization:
boolean
- type props.valueClass:
Union< , , , >
- rtype:
AtomEffect < T ><plugins.fiftyone.state.T>
Recoil effect that syncs atom state with browser storage (localStorage or sessionStorage). Automatically loads the value from storage on initialization and saves it on every set.
Returns
A Recoil atom effect that syncs the atom with browser storage
getCurrentEnvironment#
- fos.getCurrentEnvironment()#
- Return type:
default
getEmbeddedLabelFields#
getEnvironment#
- fos.getEnvironment()#
- Return type:
default
getGridCustomRendererFailover#
- fos.getGridCustomRendererFailover(datasetName)#
- Arguments:
datasetName (
string)
- Return type:
plugins.fiftyone.state.GridCustomRendererFailure
Returns the recorded failure for a dataset in the current browser session.
getGridCustomRendererFailoverForcedSubscription#
- fos.getGridCustomRendererFailoverForcedSubscription()#
- Return type:
string
Returns the replacement synced subscription used after a renderer crash. The disable state is dataset-scoped, but subscription repair still happens at the tab level because the poisoned sync channel is shared by the whole app.
getGridCustomRendererFailoverSnapshot#
- fos.getGridCustomRendererFailoverSnapshot()#
- Return type:
plugins.fiftyone.state.GridCustomRendererFailoverSnapshot
Returns the current fail-open snapshot for this browser session.
getLabelFields#
getNormalizedUrls#
- fos.getNormalizedUrls(urls)#
- Arguments:
urls (
Union)
- Return type:
Any
getQueryPerformancePath#
- fos.getQueryPerformancePath()#
- Return type:
Object
getSampleSrc#
getSessionRef#
- fos.getSessionRef()#
- Return type:
plugins.fiftyone.state.Session
getStageKwarg#
- fos.getStageKwarg(stage, key)#
Helper to extract a kwarg value from a view stage’s kwargs array. kwargs are stored as arrays of [key, value] tuples.
gridSortByStore#
- fos.gridSortByStore(param)#
- Arguments:
param (
string)
- Return type:
RecoilState < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
gridSortDescendingStore#
- fos.gridSortDescendingStore(param)#
- Arguments:
param (
string)
- Return type:
RecoilState < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
groupFilter#
- fos.groupFilter(field)#
- Arguments:
field (
StrictField)
- Return type:
boolean
groupHasSampleOnSlice#
groupIsEmpty#
- fos.groupIsEmpty(param)#
Returns a function which returns a memoized atom for each unique parameter value.
groupLength#
- fos.groupLength(param)#
Returns a function which returns a memoized atom for each unique parameter value.
groupSamples#
groupShown#
- fos.groupShown(param)#
Returns a function which returns a memoized atom for each unique parameter value.
groupStatistics#
Returns a function which returns a memoized atom for each unique parameter value.
hasFieldFilters#
- fos.hasFieldFilters(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Field filters alone — the only input an aggregation’s extended flag
controls. An extended selection (grid checkboxes, a plot lasso, an override
stage) rides in extendedStages, which every aggregation sends whether or
not it is extended, so counting it as a filter made the extended
aggregation a byte-identical twin of the unextended one.
hasFilters#
- fos.hasFilters(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
hasVisibility#
- fos.hasVisibility(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
helperFunction#
histogramValues#
- fos.histogramValues(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , , >>
Returns a function which returns a memoized atom for each unique parameter value.
imaVidLookerState#
Returns a function which returns a memoized atom for each unique parameter value.
imaVidStoreKey#
- fos.imaVidStoreKey(param)#
Returns a function which returns a memoized atom for each unique parameter value.
indexedPaths#
- fos.indexedPaths(param)#
Returns a function which returns a memoized atom for each unique parameter value.
indexesByPath#
- fos.indexesByPath(param)#
- Arguments:
param (
Array)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
isCompoundIndexed#
- fos.isCompoundIndexed(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isDatasetChange#
- fos.isDatasetChange(data, previous)#
Whether a dataset fragment update comes from a different dataset than the
one before it. datasetId is the dataset’s own id. id is minted per
fetch whenever a view argument is sent, so it changes on every hard reload
(a layout write, a refresh) and cannot tell a reload from a dataset switch.
isDisabledCheckboxPath#
- fos.isDisabledCheckboxPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isDisabledFilterPath#
- fos.isDisabledFilterPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isDisabledFrameFilterPath#
- fos.isDisabledFrameFilterPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isFilterDefault#
- fos.isFilterDefault(param)#
Returns a function which returns a memoized atom for each unique parameter value.
isFrameField#
- fos.isFrameField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isGridCustomRendererFailOpen#
Whether custom grid renderers are disabled for the given dataset.
isHoveringAnyLabelWithInstanceConfig#
- fos.isHoveringAnyLabelWithInstanceConfig()#
- Return type:
boolean
Whether there are hovered instances
isHoveringParticularLabelWithInstanceConfig#
- fos.isHoveringParticularLabelWithInstanceConfig(instanceId)#
- Arguments:
instanceId (
string)
- Return type:
boolean
Whether there are hovered instances of a particular instance
isInListField#
- fos.isInListField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isLabelPath#
- fos.isLabelPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isListField#
- fos.isListField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isMatchingAtom#
- fos.isMatchingAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
isNumericField#
- fos.isNumericField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isObjectIdField#
- fos.isObjectIdField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isOfDocumentFieldList#
- fos.isOfDocumentFieldList(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isStringField#
- fos.isStringField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
keypointFilter#
labelAttributeRow#
- fos.labelAttributeRow(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Object>
Resolve a sidebar attribute row path, e.g. “ground_truth.detections.label”, to its label field path and attribute name, e.g. “ground_truth” and “label”. Returns null when the path is not a label attribute.
labelCount#
- fos.labelCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
labelFields#
- fos.labelFields(param)#
- Arguments:
param (
Object)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
labelPath#
- fos.labelPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
labelPaths#
- fos.labelPaths(param)#
- Arguments:
param (
Object)param.expanded (
boolean)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
labelTagCounts#
- fos.labelTagCounts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
labelsMatcher#
- fos.labelsMatcher(parent)#
- Arguments:
parent ()
lightningBooleanResults#
- fos.lightningBooleanResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
lightningBounds#
- fos.lightningBounds(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><[ number , number ]>
Returns a function which returns a memoized atom for each unique parameter value.
lightningNonfinites#
- fos.lightningNonfinites(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
lightningNumericResults#
- fos.lightningNumericResults(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
lightningQuery#
- fos.lightningQuery(parameter)#
- Arguments:
parameter (
readonly)
- Return type:
readonlyreadonly RecoilState < ><readonly>
lightningStringResults#
- fos.lightningStringResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
listBoolean#
- fos.listBoolean(param)#
Returns a function which returns a memoized atom for each unique parameter value.
listNumber#
- fos.listNumber(param)#
Returns a function which returns a memoized atom for each unique parameter value.
listString#
- fos.listString(param)#
Returns a function which returns a memoized atom for each unique parameter value.
logOnSetEffect#
- fos.logOnSetEffect(options)#
- Arguments:
options (
Object)options.logPrefix (
string) – Custom prefix for log messages. Defaults to “[Recoil Set]”
- Return type:
AtomEffect < T ><plugins.fiftyone.state.T>
Debug effect that logs when atom value is set.
Returns
A Recoil atom effect that logs set operations
lookerFieldSchema#
- fos.lookerFieldSchema(param)#
- Arguments:
param (
Object)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < Schema ><plugins.fiftyone.state.Schema>
The schema lookers build their overlays from: fieldSchema keeping the
fields the Explore lens hides. A looker reads its schema when it is
created, so with the lens’s fields left out, a lens switch could never
draw them on the tiles already loaded; the active paths keep them hidden
while the lens is on.
lookerOptions#
- fos.lookerOptions(param)#
Returns a function which returns a memoized atom for each unique parameter value.
mapSampleResponse#
- fos.mapSampleResponse(data)#
- Arguments:
data (
T)
- Return type:
plugins.fiftyone.state.T
markGridCustomRendererFailed#
- fos.markGridCustomRendererFailed(__namedParameters)#
- Arguments:
__namedParameters (
MarkGridCustomRendererFailedOptions)
- Return type:
Object
Records the first renderer failure for a dataset in the current browser session.
Repeated failures on the same dataset are ignored, but a later first failure on a different dataset will mint a fresh forced subscription so the app can reload away from any newly poisoned sync channel.
maxAtom#
- fos.maxAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
meetsType#
- fos.meetsType(param)#
Returns a function which returns a memoized atom for each unique parameter value.
minAtom#
- fos.minAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
modalAggregationPaths#
- fos.modalAggregationPaths(param)#
Returns a function which returns a memoized atom for each unique parameter value.
modalFilterFields#
- fos.modalFilterFields(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
noneAtom#
- fos.noneAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
noneCount#
- fos.noneCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
nonfiniteAtom#
- fos.nonfiniteAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
nonfiniteCount#
- fos.nonfiniteCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
nonfiniteData#
- fos.nonfiniteData(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numGroupFieldsActive#
- fos.numGroupFieldsActive(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numGroupFieldsFiltered#
- fos.numGroupFieldsFiltered(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numGroupFieldsVisible#
- fos.numGroupFieldsVisible(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numeric#
- fos.numeric(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numericExcludeAtom#
- fos.numericExcludeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numericFields#
- fos.numericFields(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
numericIsMatchingAtom#
- fos.numericIsMatchingAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
parentField#
- fos.parentField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < Field ><plugins.fiftyone.state.Field>
Returns a function which returns a memoized atom for each unique parameter value.
parseEventIdentity#
- fos.parseEventIdentity(value)#
- Arguments:
value (
unknown)
- Return type:
Union<plugins.fiftyone.state.EventIdentity,null>
Decodes a stored event filter value without accepting display names.
pathCanBeOptimized#
- fos.pathCanBeOptimized(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
pathColor#
- fos.pathColor(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
pathFilter#
- fos.pathFilter(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < PathFilterSelector ><plugins.fiftyone.state.PathFilterSelector>
Returns a function which returns a memoized atom for each unique parameter value.
pathHasActiveIndex#
- fos.pathHasActiveIndex(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
pathHasIndexes#
- fos.pathHasIndexes(param)#
Returns a function which returns a memoized atom for each unique parameter value.
pathIndex#
- fos.pathIndex(param)#
Returns a function which returns a memoized atom for each unique parameter value.
pathIsShown#
- fos.pathIsShown(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
primitivesMatcher#
- fos.primitivesMatcher(field)#
- Arguments:
field (
StrictField)
- Return type:
boolean
rangeAtom#
- fos.rangeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
readFilters#
- fos.readFilters(data, previous)#
What the filters atom reads from a dataset fragment update: the session’s
filters on the first read, none after a dataset switch, and otherwise the
last write. A reload of the same dataset (a layout write, a refresh) keeps
them; a view change clears them through resetFiltersTransaction.
readOverrideStage#
- fos.readOverrideStage(data, previous)#
What the override stage atom reads from a dataset fragment update: the mirror, or nothing after a dataset switch. A reload of the same dataset keeps the stage.
registerExtendedSelectionResetParticipant#
- fos.registerExtendedSelectionResetParticipant(participant)#
- Arguments:
participant (
ExtendedSelectionResetParticipant)
Registers a callback to join every extended-selection reset. Extensions that publish selection artifacts of their own (atoms this package does not know) register one so “clear the selection” clears them in the same commit. Returns the unregister, for HMR disposal.
- fos.registerExtendedSelectionResetParticipant(participant)#
- Return type:
void
registerTextSearchProvider#
- fos.registerTextSearchProvider(provider)#
- Arguments:
provider (
TextSearchProvider)
Registers the text search for one similarity method. Returns the unregister, for HMR disposal.
- fos.registerTextSearchProvider(provider)#
- Return type:
void
removeRgbProperty#
- fos.removeRgbProperty(input)#
- Arguments:
input (
any)
- Return type:
any
resetExtendedSelectionTransaction#
- fos.resetExtendedSelectionTransaction(cb)#
- Arguments:
- Return type:
void
Clears every extended-selection layer inside the caller’s Recoil transaction. The atoms’ effects update the mirror they restore themselves from on fragment refetches only once the transaction commits, so the mirror is cleared here as well, in step with the reset.
resetFiltersTransaction#
- fos.resetFiltersTransaction(cb)#
- Arguments:
cb (
Pick)
- Return type:
void
Clears the sidebar filters inside the caller’s Recoil transaction. The
atom’s effect updates the value read hands back only once the
transaction commits, so that is cleared here as well, in step with the
reset.
resolveGroups#
- fos.resolveGroups(sampleFields, frameFields, currentGroups, configGroups)#
- Arguments:
sampleFields (
Array)frameFields (
Array)currentGroups (
Array)configGroups (
Array)
- Return type:
Array<plugins.fiftyone.state.SidebarGroup>
resolveMediaFieldLooker#
- fos.resolveMediaFieldLooker(__namedParameters)#
- Arguments:
__namedParameters (
ResolveMediaFieldLookerParams)
- Return type:
Object
Resolves the selected media source and the built-in looker that can render it.
The root sample media type and metadata describe filepath only. Alternate
fields are classified from their own paths so they can safely override it.
resolveSelectionIcon#
- fos.resolveSelectionIcon(selectedSamples, style, sampleId, isSelected)#
- Arguments:
selectedSamples (
Map)style (
SelectionStyle)sampleId (
string)isSelected (
boolean)
- Return type:
Object
runExtendedSelectionResetParticipants#
- fos.runExtendedSelectionResetParticipants(cb)#
- Arguments:
- Return type:
void
Invokes every registered participant with the caller’s transaction.
sampleTagCounts#
- fos.sampleTagCounts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
schemaReduce#
- fos.schemaReduce(schema, field)#
- Arguments:
schema (
Schema)field (
StrictField)
- Return type:
plugins.fiftyone.state.Schema
selectedMediaField#
- fos.selectedMediaField(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
selectedMediaFieldAtomFamily#
selectedPatchIds#
- fos.selectedPatchIds(param)#
- Arguments:
param (
SerializableParam)
- Return type:
readonlyreadonly RecoilValueReadOnly < Set ><Set < string >>
Returns a function which returns a memoized atom for each unique parameter value.
sessionAtom#
setCurrentEnvironment#
- fos.setCurrentEnvironment(environment)#
- Arguments:
environment (
default)
- Return type:
void
setQueryPerformancePath#
shouldRenderImaVidLooker#
- fos.shouldRenderImaVidLooker(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
shownLabelAttributes#
- fos.shownLabelAttributes(param)#
- Arguments:
param (
string)
- Return type:
RecoilState < ><Array< string >>
The attribute names of a label field rendered as text in looker overlays. An explicitly empty list renders no text. Attributes no longer present in the schema are silently dropped; when a non-empty list loses every valid entry, the default applies.
skeleton#
- fos.skeleton(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < KeypointSkeleton ><plugins.fiftyone.state.KeypointSkeleton>
Returns a function which returns a memoized atom for each unique parameter value.
skeletonFieldKey#
The registry key a field path resolves its skeleton under.
Skeletons are registered against the dataset’s TOP-LEVEL field name, so a
frame path (frames.keypoints) has to resolve through its last segment.
Without it a frame keypoint field misses the registry entirely and falls
through to the dataset default, which is null for most datasets.
Exported so the rule can be tested on its own: the hook around it is a
useRecoilCallback, and exercising that would mean importing Recoil into a
test during the Recoil->Jotai freeze.
sortFilterResults#
- fos.sortFilterResults(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < SortResults ><plugins.fiftyone.state.SortResults>
Returns a function which returns a memoized atom for each unique parameter value.
string#
- fos.string(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringCountResults#
- fos.stringCountResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringExcludeAtom#
- fos.stringExcludeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringResults#
- fos.stringResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringSelectedValuesAtom#
- fos.stringSelectedValuesAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringifyObj#
- fos.stringifyObj(obj)#
- Arguments:
obj (
any)
- Return type:
any
subscribeToGridCustomRendererFailover#
- fos.subscribeToGridCustomRendererFailover(listener)#
- Arguments:
listener (
( ))
Subscribes React to this external fail-open store.
- fos.subscribeToGridCustomRendererFailover(listener)#
- Return type:
void
supportsNativeLooker#
- fos.supportsNativeLooker(__namedParameters)#
- Arguments:
__namedParameters (
NativeLookerSupport)
- Return type:
boolean
Determines whether the selected media source can use a native looker.
The sample media type describes filepath. A present alternate media
field must instead prove its own native compatibility through its path.
tagging#
- fos.tagging(param)#
Returns a function which returns a memoized atom for each unique parameter value.
temporalTagCounts#
- fos.temporalTagCounts(param)#
The temporal-tag values on the samples in view, with how many intervals
each has there, shaped for the string filter’s resultsAtom. Scoped like
every other sidebar count: the view, the active slice, and with extended
the filters.
textFilter#
Returns a function which returns a memoized atom for each unique parameter value.
toggleShownLabelAttribute#
transformDataset#
- fos.transformDataset(dataset)#
- Arguments:
dataset (
any)
- Return type:
Readonly < Dataset ><plugins.fiftyone.state.Dataset>
trueAtom#
- fos.trueAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
unsupportedMatcher#
- fos.unsupportedMatcher(field)#
- Arguments:
field (
StrictField)
- Return type:
boolean
validIndexes#
- fos.validIndexes(param)#
- Arguments:
param (
Array)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Object>
Returns a function which returns a memoized atom for each unique parameter value.
validateGroupName#
valueColor#
- fos.valueColor(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><( value : string )>
Resolver for the values of one path, under whichever color-by mode is set: the path’s own field color when coloring by field, and the value’s own color when coloring by value, honoring any per-value colors configured for the field.
This is what the sidebar paints a filter value’s dot with, so anything else
that shows the same value — a grid overlay’s interval marks, a timeline row —
matches the sidebar by resolving through here rather than reaching for
pathColor directly. Coloring by instance has no meaning for a
primitive value and resolves as coloring by field does.
values#
- fos.values(param)#
Returns a function which returns a memoized atom for each unique parameter value.
viewsAreEqual#
- fos.viewsAreEqual(viewOne, viewTwo)#
- Arguments:
viewOne (
Union)viewTwo (
Union)
- Return type:
boolean
visibility#
- fos.visibility(param)#
Returns a function which returns a memoized atom for each unique parameter value.
withSelectionScope#
- fos.withSelectionScope(filters, scope)#
- Arguments:
filters (
object)scope (
SelectionBoundary)
- Return type:
object
Adds the tray’s browsing boundary to App filters so counts describe the scoped grid. A boundary that constrains nothing leaves filters untouched.
withSuspense#
- fos.withSuspense(Component, LoaderComponent)#
- Arguments:
Component (
ComponentType)LoaderComponent ()
withoutPaths#
- fos.withoutPaths(value, paths)#
- Arguments:
value (
T)paths (
readonly)
- Return type:
plugins.fiftyone.state.T
Returns value without the given dotted paths. A path passes through
lists at any depth, so gt.detections.year removes year from every
detection. Only the objects on a removed path are copied: everything
else, and value itself when nothing is removed, keeps its identity.
writeExtendedSelectionMirror#
- fos.writeExtendedSelectionMirror(overrideStage)#
- Arguments:
overrideStage (
unknown)
- Return type:
void
Sets what read hands back to a published override stage, so the stage
survives the next update.
writeOverrideStageMirror#
- fos.writeOverrideStageMirror(overrideStage)#
- Arguments:
overrideStage (
unknown)
- Return type:
void
Sets what read hands back for the override stage alone, for a publisher
that writes the stage beside another panel’s selection rather than
replacing it. The atom’s effect updates the mirror only once the write
commits, and a page reload landing first would restore the old stage.
Types#
SPACE#
Name |
Value |
|---|---|
FRAME |
|
SAMPLE |
AnnotationRun#
- class fos.AnnotationRun()#
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
|
key |
|
|
timestamp |
|
|
version |
|
|
viewStages |
|
BrainRun#
- class fos.BrainRun()#
Properties#
- (e.g. its config class no longer imports); null when usable.”
“key”,”
string” “ready”,”boolean”,”Whether the run’s results have been saved. A run still computing (or- whose computation died) is not ready.”
“resultsMeta”,”
Object”,”The declared facts of the run’sresults_meta; null for a run that- recorded none.”
“timestamp”,”
string” “version”,”string” “viewStages”,”readonly”
Config#
- class fos.Config()#
Properties#
Name |
Type |
Description |
|---|---|---|
colorPool |
|
|
colorscale |
|
|
customizedColors |
|
|
gridZoom |
|
|
loopVideos |
|
|
mediaFallback |
|
|
mediaFields |
|
|
notebookHeight |
|
|
plugins |
|
|
showConfidence |
|
|
showIndex |
|
|
showLabel |
|
|
showTooltip |
|
|
theme |
|
|
timezone |
|
|
useFrameNumber |
|
Dataset#
- class fos.Dataset()#
The dataset object returned by the API.
Properties#
- source id. Absent on datasets whose media is not reference-backed.”
“mediaType”,”
plugins.fiftyone.state.MediaType” “name”,”string” “parentMediaType”,”plugins.fiftyone.state.MediaType” “skeletons”,”Array<plugins.fiftyone.state.StrictKeypointSkeleton>” “version”,”string”
DatasetAppConfig#
- class fos.DatasetAppConfig()#
Properties#
Name |
Type |
Description |
|---|---|---|
activeFields |
|
|
dynamicGroupsTargetFrameRate |
|
|
gridMediaField |
|
|
mediaFields |
|
|
modalMediaField |
|
|
plugins |
|
DateTime#
- class fos.DateTime()#
Properties#
Name |
Type |
Description |
|---|---|---|
$date |
|
Description#
- class fos.Description()#
Properties#
Name |
Type |
Description |
|---|---|---|
dataset |
|
|
fieldVisibilityStage |
|
|
savedViewSlug |
|
|
savedViews |
|
|
selected |
|
|
selectedLabels |
|
|
spaces |
|
|
view |
|
|
viewCls |
|
|
viewName |
|
DynamicGroupParameters#
- class fos.DynamicGroupParameters()#
Properties#
Name |
Type |
Description |
|---|---|---|
groupBy |
|
|
orderBy |
|
|
orderByKey |
|
Evaluation#
- class fos.Evaluation()#
EvaluationRun#
- class fos.EvaluationRun()#
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
|
key |
|
|
timestamp |
|
|
version |
|
|
viewStages |
|
FieldVisibilityStage#
- class fos.FieldVisibilityStage()#
Properties#
Name |
Type |
Description |
|---|---|---|
cls |
|
|
kwargs |
|
Filter#
- class fos.Filter()#
Name |
Type |
Description |
|---|---|---|
[key] |
|
Filters#
- class fos.Filters()#
Name |
Type |
Description |
|---|---|---|
[key] |
|
ID#
- class fos.ID()#
Properties#
Name |
Type |
Description |
|---|---|---|
$oid |
|
KeypointSkeleton#
- class fos.KeypointSkeleton()#
Properties#
Name |
Type |
Description |
|---|---|---|
edges |
|
|
labels |
|
Run#
- class fos.Run()#
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
|
key |
|
|
timestamp |
|
|
version |
|
|
viewStages |
|
SavedView#
- class fos.SavedView()#
Properties#
Name |
Type |
Description |
|---|---|---|
color |
|
|
createdAt |
|
|
datasetId |
|
|
description |
|
|
id |
|
|
lastLoadedAt |
|
|
lastModifiedAt |
|
|
name |
|
|
slug |
|
|
viewStages |
|
SelectedLabel#
- class fos.SelectedLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
field |
|
|
frameNumber |
|
|
instanceId |
|
|
labelId |
|
|
sampleId |
|
|
type |
|
SelectedLabelData#
- class fos.SelectedLabelData()#
Properties#
Name |
Type |
Description |
|---|---|---|
field |
|
|
frameNumber |
|
|
instanceId |
|
|
sampleId |
|
|
type |
|
SelectedLabelMap#
- class fos.SelectedLabelMap()#
Name |
Type |
Description |
|---|---|---|
[labelId] |
|
SortBySimilarityParameters#
- class fos.SortBySimilarityParameters()#
Properties#
Name |
Type |
Description |
|---|---|---|
brainKey |
|
|
distField |
|
|
k |
|
|
query |
|
|
queryIds |
|
|
reverse |
|
Stage#
- class fos.Stage()#
Properties#
Name |
Type |
Description |
|---|---|---|
kwargs |
|
StrictKeypointSkeleton#
- class fos.StrictKeypointSkeleton()#
Properties#
Name |
Type |
Description |
|---|---|---|
edges |
|
|
labels |
|
|
name |
|
Targets#
- class fos.Targets()#
Name |
Type |
Description |
|---|---|---|
[key] |
|
- class fos.ActiveFields()#
ActiveFields#
Name |
Type |
Description |
|---|---|---|
ActiveFields.exclude |
|
|
ActiveFields.paths |
|
- class fos.MediaType()#
MediaType#
Union of RecognizedMediaType, 'point_cloud', 'three_d', 'unknown'
- class fos.PluginConfig()#
PluginConfig#
An object containing the configuration for plugins. Each key is the name of a plugin, and the value is the configuration for that plugin.
PANEL_SURFACE#
Name |
Value |
|---|---|
GRID |
|
MODAL |
COLOR_BLIND_FRIENDLY_PALETTE#
COLOR_OPTIONS#
COLOR_OPTIONS_MAP#
Name |
Type |
Description |
|---|---|---|
#06AED4 |
|
|
#16B364 |
|
|
#2970FF |
|
|
#667085 |
|
|
#7A5AF8 |
|
|
#EE46BC |
|
|
#EF6820 |
|
|
#F04438 |
|
|
#FAC515 |
|
DEFAULT_COLOR#
Name |
Type |
Description |
|---|---|---|
|
DEFAULT_COLOR_OPTION#
Name |
Type |
Description |
|---|---|---|
color |
|
|
description |
|
|
id |
|
|
label |
|
FIFTYONE_GRID_SPACES_ID#
Name |
Type |
Description |
|---|---|---|
|
FIFTYONE_MODAL_SPACES_ID#
Name |
Type |
Description |
|---|---|---|
|
BooleanFilter#
- class fos.BooleanFilter()#
Properties#
Name |
Type |
Description |
|---|---|---|
exclude |
|
|
false |
|
|
isMatching |
|
|
none |
|
|
true |
|
ClassificationAnnotationLabel#
- class fos.ClassificationAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
ContextManager#
- class fos.ContextManager()#
A context manager provides support for stateful transitions into and out-of some logical context.
Callbacks can be registered to be executed when entering or exiting the context.
Properties#
Name |
Type |
Description |
|---|---|---|
isActive |
|
|
enter |
|
Enter the context, triggering all registered enter callbacks. |
exit |
|
Exit the context, triggering all registered exit callbacks. |
registerEnterCallback |
|
Register a callback to be invoked on context |
registerExitCallback |
|
Register a callback to be invoked on context |
reset |
|
Reset the context, clearing all registered callbacks. |
Detection3DAnnotationLabel#
- class fos.Detection3DAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
DetectionAnnotationLabel#
- class fos.DetectionAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
EmptyAnnotationsEntry#
- class fos.EmptyAnnotationsEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
EmptyEntry#
- class fos.EmptyEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
group |
|
|
kind |
|
|
shown |
|
EventIdentity#
- class fos.EventIdentity()#
Stable identity of an event kind within its projection.
Properties#
Name |
Type |
Description |
|---|---|---|
id |
|
|
projection |
|
ExtendedSelectionResetInterface#
- class fos.ExtendedSelectionResetInterface()#
The set/reset surface a participant receives: the one the core selection
atoms are written through, whether a reset’s transaction or a publish’s
callback (see ./useResetExtendedSelection), so a participant’s
writes land in one commit with them. Atoms are untyped here: participants
own atoms this package has never heard of.
Properties#
Name |
Type |
Description |
|---|---|---|
reset |
|
|
set |
|
FieldType#
- class fos.FieldType()#
What a field holds, for callers matching paths against a type constraint.
Properties#
Name |
Type |
Description |
|---|---|---|
embeddedDocType |
|
|
frame |
|
Frame-level fields are addressed as |
ftype |
|
|
subfield |
|
A list field’s element type. |
GroupEntry#
- class fos.GroupEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
|
name |
|
GroupVisibilityConfigSnapshot#
- class fos.GroupVisibilityConfigSnapshot()#
Snapshot of group visibility settings and slice captured before entering Annotate mode. Used to restore settings when returning to Explore mode.
Properties#
Name |
Type |
Description |
|---|---|---|
carousel |
|
|
main |
|
|
slice |
|
|
threeDViewer |
|
IActivityToast#
- class fos.IActivityToast()#
Activity toast interface.
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
Current toast configuration. |
open |
|
|
setConfig |
|
Set the toast configuration. |
setIconName |
|
Set the icon for the toast. |
setMessage |
|
Set the message for the toast. |
setTimeout |
|
Set the timeout for the toast. |
setVariant |
|
Set the toast variant. |
InputEntry#
- class fos.InputEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
|
type |
|
KeypointAnnotationLabel#
- class fos.KeypointAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
Label#
- class fos.Label()#
Properties#
Name |
Type |
Description |
|---|---|---|
isNew |
|
|
path |
|
LabelEntry#
- class fos.LabelEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
frame |
|
Occurrence frame for video frame labels; absent for sample-level labels. |
id |
|
|
kind |
|
|
path |
|
LoadingEntry#
- class fos.LoadingEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
id |
|
|
kind |
|
LookerStore#
- class fos.LookerStore()#
Properties#
Name |
Type |
Description |
|---|---|---|
indices |
|
|
lookers |
|
|
reset |
|
|
samples |
|
ModalModeController#
- class fos.ModalModeController()#
Manager which supports switching modal modes.
Properties#
Name |
Type |
Description |
|---|---|---|
activateAnnotateMode |
|
|
activateExploreMode |
|
ModalViewportState#
- class fos.ModalViewportState()#
Extends the base ViewportState with a sampleId so stale state from
a previous sample is never mistakenly applied when switching between
modes (EXPLORE vs ANNOTATE).
Properties#
Name |
Type |
Description |
|---|---|---|
panX |
|
|
panY |
|
|
sampleId |
|
|
scale |
|
NumericFilter#
- class fos.NumericFilter()#
Properties#
Name |
Type |
Description |
|---|---|---|
exclude |
|
|
inf |
|
|
isMatching |
|
|
nan |
|
|
ninf |
|
|
none |
|
|
range |
|
PathEntry#
- class fos.PathEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
|
path |
|
|
shown |
|
PolylineAnnotationLabel#
- class fos.PolylineAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
PrimitiveValue#
- class fos.PrimitiveValue()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
op |
|
|
path |
|
|
type |
|
PromptableSimilarityIndex#
- class fos.PromptableSimilarityIndex()#
Properties#
- recorded when its results were saved.”
“key”,”
string” “model”,”string”,”The model the index embeds with, when the run recorded one.” “patchesField”,”string”,”Set when the index is patches-level: the field its patches come from.” “provider”,”string”,”Set when a registeredTextSearchProvidersearches this index
client-side instead of the server’s SortBySimilarity: the run’s
method.”
“timestamp”,”
string”,”When the run was computed.”
RetryController#
- class fos.RetryController()#
Utility which provides retry control flow logic.
Properties#
Name |
Type |
Description |
|---|---|---|
canAttempt |
|
If |
recordAttempt |
|
|
reset |
|
SchemaLensValue#
- class fos.SchemaLensValue()#
The admin Explore “schema lens”: a named label-schema doc selected in
the grid sidebar to view the dataset through. excluded is the doc’s
resolved excluded_paths (server-resolved, so lens semantics match
task semantics). Scoped to dataset — a lens never leaks across
datasets. Session-local.
Properties#
Name |
Type |
Description |
|---|---|---|
dataset |
|
|
docId |
|
|
excluded |
|
|
excludedAttrDb |
|
Embedded DB paths of hidden attributes (payload stripping). |
excludedAttrs |
|
|
name |
|
SearchSources#
- class fos.SearchSources()#
What an index’s matches can come from, such as the streams of a multimodal index, offered in the search settings so a search can be narrowed to some of them.
Properties#
- place of the choice. The search then covers the entire index.”
“values”,”
Array<string>”
SelectEvent#
- class fos.SelectEvent()#
Properties#
Name |
Type |
Description |
|---|---|---|
detail |
|
SelectedLabelsDelta#
- class fos.SelectedLabelsDelta()#
A change to the selection, expressed as labels in and label ids out.
Properties#
Name |
Type |
Description |
|---|---|---|
add |
|
|
remove |
|
Session#
- class fos.Session()#
Properties#
Name |
Type |
Description |
|---|---|---|
canAnnotate |
|
|
canCreateNewField |
|
|
canEditCustomColors |
|
|
canEditLabels |
|
|
canEditSavedViews |
|
|
canEditWorkspaces |
|
|
canManageSchema |
|
|
canModifySidebarGroup |
|
|
canTagSamplesOrLabels |
|
|
colorScheme |
|
|
fieldVisibilityStage |
|
|
filters |
|
|
labelSelectionStyle |
|
|
modalFilters |
|
|
modalSelector |
|
|
readOnly |
|
|
sampleSelectionStyle |
|
|
selectedLabels |
|
|
selectedSamples |
|
|
sessionGroupSlice |
|
|
sessionSpaces |
|
SortResults#
- class fos.SortResults()#
Properties#
Name |
Type |
Description |
|---|---|---|
asc |
|
|
count |
|
StringFilter#
- class fos.StringFilter()#
Properties#
Name |
Type |
Description |
|---|---|---|
exclude |
|
|
isMatching |
|
|
values |
|
TemporalDetectionAnnotationLabel#
- class fos.TemporalDetectionAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
TemporalTag#
- class fos.TemporalTag()#
Persisted temporal tag returned by the backend.
Properties#
Name |
Type |
Description |
|---|---|---|
anchor |
|
|
createdAt |
|
|
createdBy |
|
|
end |
|
|
id |
|
|
indexType |
|
|
lastModifiedAt |
|
|
lastModifiedBy |
|
|
sampleId |
|
|
start |
|
|
tag |
|
TemporalTagCreate#
- class fos.TemporalTagCreate()#
Temporal tag payload accepted by sample-scoped create routes.
Properties#
Name |
Type |
Description |
|---|---|---|
anchor |
|
|
createdBy |
|
|
end |
|
|
indexType |
|
|
lastModifiedBy |
|
|
start |
|
|
tag |
|
TemporalTagFilter#
- class fos.TemporalTagFilter()#
Filter for tag list/count/delete queries.
Properties#
Name |
Type |
Description |
|---|---|---|
anchors |
|
|
end |
|
|
indexType |
|
|
start |
|
|
tags |
|
TemporalTagResult#
- class fos.TemporalTagResult()#
One selectable temporal-tag value and its occurrence count.
Properties#
Name |
Type |
Description |
|---|---|---|
count |
|
|
value |
|
TemporalTagResults#
- class fos.TemporalTagResults()#
Shape consumed by the string filter’s resultsAtom.
Properties#
Name |
Type |
Description |
|---|---|---|
count |
|
|
results |
|
TemporalTagUpdate#
- class fos.TemporalTagUpdate()#
Mutable temporal tag fields accepted by sample-scoped update routes.
Properties#
Name |
Type |
Description |
|---|---|---|
end |
|
|
lastModifiedBy |
|
|
start |
|
|
tag |
|
TextSearchIndex#
- class fos.TextSearchIndex()#
Which similarity index a search runs over, as a provider is asked about it outside a search.
Properties#
Name |
Type |
Description |
|---|---|---|
brainKey |
|
|
datasetName |
|
|
runTimestamp |
|
TextSearchProvider#
- class fos.TextSearchProvider()#
Text search that runs client-side for a similarity method whose indexes the server cannot sort by. Registered by the package that owns the method; the view bar’s language search hands such an index’s queries to it.
Properties#
selected, to say what it offers for the typed text. It must call
children, which renders the field itself. Absent, the field offers the
previous queries matching the typed text, and any text runs.”
“method”,”
string”,”The brain runs’config.methodthis provider searches.” “resultsHint”,”string”,”Shown below the search settings’ Results label, above its input, while
one of this provider’s indexes is selected, e.g. to say how its results relate to what the grid shows.”
“search”,”
(request:plugins.fiftyone.state.TextSearchRequest)” “sources”,”(index:plugins.fiftyone.state.TextSearchIndex)”
TextSearchRequest#
- class fos.TextSearchRequest()#
What a provider’s search is asked: the index, the prompt, and how many matches to return.
Properties#
- extended selection this search’s result replaces once published.”
“filters”,”
plugins.fiftyone.state.Filters”,”The grid’s sidebar filters.” “k”,”number”,”How many matches the search returns: samples for most indexes, segments- for a segment index, where several can fall in one sample.”
“query”,”
string” “runTimestamp”,”string”,”The run’s timestamp, so a key recomputed in place is not served the- previous run’s cached answers.”
“signal”,”
AbortSignal”,”Aborted once this search is cancelled: the view changed, a newer
search started, or the field went away. A provider should stop before further work and resolve null; a result it returns anyway is discarded.”
“sources”,”
Array<string>”,”TheSearchSourcesvalues to rank within; null ranks them all.” “view”,”Array<plugins.fiftyone.state.Stage>”,”The serialized stages of the view the search was typed over. With
filters and extended, this is the context an operator is sent, and
SortBySimilarity ranks within all three. How a provider scopes its
ranking is its own choice; one that ranks over the whole index can return
fewer than k matches the grid shows.”
TextSearchResult#
- class fos.TextSearchResult()#
A search’s result, published to the extended selection: it narrows the grid without changing the view, exactly as a selection made in the embeddings panel does.
Properties#
Name |
Type |
Description |
|---|---|---|
decorate |
|
|
stage |
|
The extended selection stage, |
TextSearchSuggestions#
- class fos.TextSearchSuggestions()#
What the search field offers for the text typed so far.
Properties#
Name |
Type |
Description |
|---|---|---|
emptyMessage |
|
|
freeText |
|
Whether typed text that is no row can be searched. |
loading |
|
|
prompts |
|
The rows to offer, in order. |
TextSearchSuggestionsProps#
- class fos.TextSearchSuggestionsProps()#
Properties#
Name |
Type |
Description |
|---|---|---|
children |
|
|
history |
|
The field’s previous queries, most recent first. |
index |
|
Null while no prompt-capable index exists. |
open |
|
Whether the field’s list is open. |
query |
|
UpdateSampleTemporalTagRequest#
- class fos.UpdateSampleTemporalTagRequest()#
Request for updating one persisted temporal tag for one sample.
Properties#
Name |
Type |
Description |
|---|---|---|
datasetId |
|
|
sampleId |
|
|
temporalTagId |
|
|
update |
|
ActivityToastConfig#
Configuration data which drives ActivityToast behavior.
the toast will disappear after this time has elapsed.
This timeout is reset any time the toast configuration is modified.
A negative timeout value will disable the timeout, causing the toast to remain visible indefinitely.”
“ActivityToastConfig.variant”,”
Variant”,”Toast variant.”
- class fos.AggregationResponseFrom()#
AggregationResponseFrom#
A generic type that extracts the response type from a GraphQL query.
- class fos.AnnotationLabel()#
AnnotationLabel#
Union of ClassificationAnnotationLabel, DetectionAnnotationLabel, Detection3DAnnotationLabel, PolylineAnnotationLabel, KeypointAnnotationLabel, TemporalDetectionAnnotationLabel
- class fos.AnnotationLabelData()#
AnnotationLabelData#
- class fos.ComputeCoordinatesReturnType()#
ComputeCoordinatesReturnType#
Name |
Type |
Description |
|---|---|---|
ComputeCoordinatesReturnType |
|
- class fos.DatasetViewOption()#
DatasetViewOption#
- class fos.DebouncedState()#
DebouncedState#
- class fos.DimensionsType()#
DimensionsType#
Name |
Type |
Description |
|---|---|---|
DimensionsType |
|
- class fos.ExtendedSelectionResetParticipant()#
ExtendedSelectionResetParticipant#
- class fos.GridCustomRendererFailure()#
GridCustomRendererFailure#
Name |
Type |
Description |
|---|---|---|
GridCustomRendererFailure.consumed |
|
|
GridCustomRendererFailure.datasetName |
|
|
GridCustomRendererFailure.errorMessage |
|
|
GridCustomRendererFailure.failedAt |
|
|
GridCustomRendererFailure.rendererName |
|
- class fos.GroupMatches()#
GroupMatches#
Group ID to the names of its slices that matched, best match first.
Name |
Type |
Description |
|---|---|---|
GroupMatches |
|
- class fos.GroupSliceMediaType()#
GroupSliceMediaType#
Union of 'video', '3d', 'image', 'multimodal'
- class fos.HoveredInstancesLabelsTuple()#
HoveredInstancesLabelsTuple#
Name |
Type |
Description |
|---|---|---|
HoveredInstancesLabelsTuple |
|
- class fos.LabelMap()#
LabelMap#
======= TYPES =======
Name |
Type |
Description |
|---|---|---|
LabelMap |
|
- class fos.LabelSelectionStyle()#
LabelSelectionStyle#
Name |
Type |
Description |
|---|---|---|
LabelSelectionStyle.alt |
|
|
LabelSelectionStyle.default |
|
- class fos.LabelSelectionStyleName()#
LabelSelectionStyleName#
Union of 'dashed', 'dashed-green', 'dashed-red'
- class fos.Loading()#
Loading#
- class fos.Lookers()#
Lookers#
Union of FrameLooker, ImageLooker, ImaVidLooker, VideoLooker
- class fos.Method()#
Method#
Name |
Type |
Description |
|---|---|---|
Method.key |
|
|
Method.maxK |
|
|
Method.supportsLeastSimilarity |
|
|
Method.supportsPrompts |
|
ModalSample#
- class fos.ModalSampleData()#
ModalSampleData#
Name |
Type |
Description |
|---|---|---|
ModalSampleData |
|
- class fos.ModalSelector()#
ModalSelector#
Name |
Type |
Description |
|---|---|---|
ModalSelector.groupId |
|
|
ModalSelector.hasNext |
|
|
ModalSelector.hasPrevious |
|
|
ModalSelector.id |
|
- class fos.MultimodalGridFit()#
MultimodalGridFit#
Presentation fit for media rendered inside square multimodal grid tiles.
Union of 'contain', 'cover'
- class fos.NativeLookerType()#
NativeLookerType#
Union of 'image', 'video', '3d'
- class fos.Optional()#
Optional#
Optional
From T make a set of properties by key K become optional
- class fos.PathFilterSelector()#
PathFilterSelector#
- class fos.Range()#
Range#
Name |
Type |
Description |
|---|---|---|
Range |
|
- class fos.RenderConfig3dActions()#
RenderConfig3dActions#
Mutation helpers exposed by useRenderConfig3dActions.
Name |
Type |
Description |
|---|---|---|
RenderConfig3dActions.focusSlice |
|
|
RenderConfig3dActions.initializeFromModalSlice |
|
|
RenderConfig3dActions.reconcileAvailableSlices |
|
|
RenderConfig3dActions.setFo3dContent |
|
|
RenderConfig3dActions.setMainViewerVisible |
|
|
RenderConfig3dActions.setPinned |
|
|
RenderConfig3dActions.setVisible |
|
|
RenderConfig3dActions.toggleSlice |
|
- class fos.RenderConfig3dImperativeState()#
RenderConfig3dImperativeState#
Imperative snapshot query helpers exposed by useRenderConfig3dImperativeState.
Name |
Type |
Description |
|---|---|---|
RenderConfig3dImperativeState.getIsPinned |
|
- class fos.RenderConfig3dState()#
RenderConfig3dState#
Derived 3D modal state exposed by useRenderConfig3dState.
Name |
Type |
Description |
|---|---|---|
RenderConfig3dState.activeDirectSlices |
|
Active non-FO3D 3D slices rendered alongside the scene. |
RenderConfig3dState.activeFo3dSlice |
|
Active FO3D slice currently driving the scene, if one is selected. |
RenderConfig3dState.activeSampleMap |
|
Resolved samples for the currently active 3D slices. |
RenderConfig3dState.activeSlices |
|
Slice names currently participating in 3D rendering. |
RenderConfig3dState.allSampleMap |
|
Resolved samples for every available 3D slice in the current modal context. |
RenderConfig3dState.allSlices |
|
All available 3D slice names. |
RenderConfig3dState.fo3dContent |
|
Parsed FO3D scene content cached for the active scene sample. |
RenderConfig3dState.has3dSlice |
|
Whether the current modal context exposes any 3D slice. |
RenderConfig3dState.hasFo3dSlice |
|
Whether any available 3D slice resolves to an FO3D asset. |
RenderConfig3dState.hasMultipleSlices |
|
Whether more than one 3D slice is available. |
RenderConfig3dState.interactionSample |
|
Representative sample used for 3D interaction-driven behavior. |
RenderConfig3dState.interactionSlice |
|
Slice corresponding to |
RenderConfig3dState.is3dVisible |
|
Whether the 3D viewer should currently be shown. |
RenderConfig3dState.is3dVisibleSetting |
|
Persisted user preference for showing the 3D viewer. |
RenderConfig3dState.isPinned |
|
Whether the 3D selection is pinned to a specific slice. |
RenderConfig3dState.non3dSlices |
|
All available non-3D slice names. |
RenderConfig3dState.pinnedSlice |
|
Slice name currently pinned for 3D rendering, if any. |
RenderConfig3dState.realFo3dSlices |
|
Available 3D slices whose media resolves to FO3D files. |
RenderConfig3dState.sceneSample |
|
Sample currently used to render the visible 3D scene. |
- class fos.ResponseFrom()#
ResponseFrom#
- class fos.RetryConfig()#
RetryConfig#
Retry configuration.
Name |
Type |
Description |
|---|---|---|
RetryConfig.id |
|
Unique ID to identify this retryable instance. |
RetryConfig.maxAttempts |
|
Maximum number of attempts. |
- class fos.Sample()#
Sample#
Name |
Type |
Description |
|---|---|---|
Sample |
|
- class fos.SelectionIconStyle()#
SelectionIconStyle#
Union of 'checkmark', 'green-checkmark', 'red-checkmark', 'thumbsup', 'thumbsdown', 'pin', 'star', 'x', 'bookmark'
- class fos.SelectionStyle()#
SelectionStyle#
Name |
Type |
Description |
|---|---|---|
SelectionStyle.alt |
|
|
SelectionStyle.default |
|
- class fos.SelectionType()#
SelectionType#
Union of 'default', 'alt'
- class fos.SidebarEntry()#
Enums#
EntryKind#
Name |
Value |
|---|---|
EMPTY |
|
EMPTY_ANNOTATIONS |
|
GROUP |
|
INPUT |
|
LABEL |
|
LOADING |
|
PATH |
ModalMode#
Operating mode of the modal.
Name |
Value |
|---|---|
ANNOTATE |
|
EXPLORE |
Variables#
ANNOTATE#
Name |
Type |
Description |
|---|---|---|
|
BeforeScreenshotContext#
Name |
Type |
Description |
|---|---|---|
Context < Set > |
|
DEFAULT_ALPHA#
Name |
Type |
Description |
|---|---|---|
|
DEFAULT_LABEL_SELECTION_STYLE#
Name |
Type |
Description |
|---|---|---|
LabelSelectionStyle |
|
DEFAULT_SELECTED#
Name |
Type |
Description |
|---|---|---|
DatasetViewOption |
|
DEFAULT_SELECTION_STYLE#
Name |
Type |
Description |
|---|---|---|
SelectionStyle |
|
DEFAULT_SHOWN_LABEL_ATTRIBUTES#
EVENTS_FIELD#
The virtual sidebar field; values retain projection-scoped event identity.
Name |
Type |
Description |
|---|---|---|
|
EXPLORE#
Name |
Type |
Description |
|---|---|---|
|
GRID_SPACES_DEFAULT#
Name |
Type |
Description |
|---|---|---|
active_child |
|
|
children |
|
|
component_id |
|
|
id |
|
GROUP_BY_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
INDEFINITE_TOAST_TIMEOUT#
Timeout value which will cause the activity toast to remain open indefinitely.
Name |
Type |
Description |
|---|---|---|
|
LIMIT_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
LOADING#
Sentinel returned by useActiveModalSampleValue when no real value is
available yet. Returned in two cases:
The active modal sidebar sample is still loading.
The sample failed with
GroupSampleNotFound— sparse groups can legitimately lack a sample on the active slice; consumers should render a placeholder rather than crashing.
Other errors (including plain SampleNotFound) still bubble — they
indicate a real problem, not a transient loading state.
Compare with === LOADING and typically render a loading placeholder.
MATCH_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
OTHER_GROUP#
Name |
Type |
Description |
|---|---|---|
|
RESERVED_GROUPS#
Name |
Type |
Description |
|---|---|---|
Set < string > |
|
RelayEnvironmentKey#
Name |
Type |
Description |
|---|---|---|
EnvironmentKey |
|
SESSION_DEFAULT#
Name |
Type |
Description |
|---|---|---|
Session |
|
SKIP_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
SORT_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
TAKE_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
TEMPORAL_TAG_INDEX_TYPE#
Stable REST values shared with the time-track contract.
Name |
Type |
Description |
|---|---|---|
DURATION_NS |
|
|
SEQUENCE |
|
|
TIMESTAMP_NS |
|
appConfigDefault#
Name |
Type |
Description |
|---|---|---|
|
currentModalUniqueIdJotaiAtom#
Current modal unique id. It’s a concatenation of the group id and the sample id.
datasetQueryContext#
Name |
Type |
Description |
|---|---|---|
Context < savedViewsFragment$key > |
|
groupMatchesBridge#
The matched slices of a search that selects groups without a
SortBySimilarity stage to record them, such as a search run in the
browser. Its publisher clears them together with its selection.
Name |
Type |
Description |
|---|---|---|
publish |
|
publish(matches) => void |
hoveredInstances#
Set of hovered instances
jotaiStore#
Name |
Type |
Description |
|---|---|---|
ReturnType < > |
|
modalBridge#
Bridge for synchronous access to modal viewport state from non-React code Provides read-only access to saved viewport state (zoom/pan position).
Name |
Type |
Description |
|---|---|---|
getModalViewport |
|
Reads the current modal viewport state. |
modalMode#
Name |
Type |
Description |
|---|---|---|
WritableAtom < ModalMode , , void > |
|
modalNavigation#
Name |
Type |
Description |
|---|---|---|
get |
|
|
set |
|
numConcurrentRenderingLabels#
Number of concurrently rendering labels.
removeAllHoveredInstances#
Remove all hovered instances
Name |
Type |
Description |
|---|---|---|
WritableAtom < unknown , , void > |
|
screenshotCallbacks#
Name |
Type |
Description |
|---|---|---|
Set < > |
|
stores#
Name |
Type |
Description |
|---|---|---|
Set < > |
|
updateHoveredInstances#
add a label instance to the hovered instances set
Name |
Type |
Description |
|---|---|---|
WritableAtom < unknown , , void > |
|