@fiftyone/state#

State#

activeFieldsConfig#

Name

Type

Description

activeFieldsConfig.exclude

boolean

activeFieldsConfig.paths

readonly

const activeFieldsConfig = useRecoilValue(fos.activeFieldsConfig);

activeIndex#

Name

Type

Description

activeIndex

string

const activeIndex = useRecoilValue(fos.activeIndex);

activeModalSample#

Name

Type

Description

activeModalSample

plugins.fiftyone.state.Sample

const activeModalSample = useRecoilValue(fos.activeModalSample);

activeModalSidebarSample#

Name

Type

Description

activeModalSidebarSample

plugins.fiftyone.state.Sample

const activeModalSidebarSample = useRecoilValue(fos.activeModalSidebarSample);

activePlot#

Name

Type

Description

activePlot

string

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

string

const activeSliceDescriptorLabel = useRecoilValue(fos.activeSliceDescriptorLabel);

anyTagging#

Name

Type

Description

anyTagging

boolean

const [anyTagging, setAnyTagging] = useRecoilState(fos.anyTagging);

attributeVisibility#

Name

Type

Description

attributeVisibility

plugins.fiftyone.state.Filters

const [attributeVisibility, setAttributeVisibility] = useRecoilState(fos.attributeVisibility);

canAnnotate#

Name

Type

Description

canAnnotate.enabled

boolean

canAnnotate.message

string

const [canAnnotate, setCanAnnotate] = useRecoilState(fos.canAnnotate);

canCreateNewField#

Name

Type

Description

canCreateNewField.enabled

boolean

canCreateNewField.message

string

const [canCreateNewField, setCanCreateNewField] = useRecoilState(fos.canCreateNewField);

canEditCustomColors#

Name

Type

Description

canEditCustomColors.enabled

boolean

canEditCustomColors.message

string

const [canEditCustomColors, setCanEditCustomColors] = useRecoilState(fos.canEditCustomColors);

canEditLabels#

Name

Type

Description

canEditLabels.enabled

boolean

canEditLabels.message

string

const [canEditLabels, setCanEditLabels] = useRecoilState(fos.canEditLabels);

canEditSavedViews#

Name

Type

Description

canEditSavedViews.enabled

boolean

canEditSavedViews.message

string

const [canEditSavedViews, setCanEditSavedViews] = useRecoilState(fos.canEditSavedViews);

canEditWorkspaces#

Name

Type

Description

canEditWorkspaces.enabled

boolean

canEditWorkspaces.message

string

const [canEditWorkspaces, setCanEditWorkspaces] = useRecoilState(fos.canEditWorkspaces);

canManageSchema#

Name

Type

Description

canManageSchema.enabled

boolean

canManageSchema.message

string

const [canManageSchema, setCanManageSchema] = useRecoilState(fos.canManageSchema);

canModifySidebarGroup#

Name

Type

Description

canModifySidebarGroup.enabled

boolean

canModifySidebarGroup.message

string

const [canModifySidebarGroup, setCanModifySidebarGroup] = useRecoilState(fos.canModifySidebarGroup);

canTagSamplesOrLabels#

Name

Type

Description

canTagSamplesOrLabels.enabled

boolean

canTagSamplesOrLabels.message

string

const [canTagSamplesOrLabels, setCanTagSamplesOrLabels] = useRecoilState(fos.canTagSamplesOrLabels);

collapsedPaths#

Name

Type

Description

collapsedPaths

Set < string > < string >

const collapsedPaths = useRecoilValue(fos.collapsedPaths);

colorMap#

const colorMap = useRecoilValue(fos.colorMap);

colorMapRGB#

const colorMapRGB = useRecoilValue(fos.colorMapRGB);

colorScheme#

Name

Type

Description

colorScheme

plugins.fiftyone.state.ColorSchemeInput

const [colorScheme, setColorScheme] = useRecoilState(fos.colorScheme);

colorSeed#

Name

Type

Description

colorSeed

number

const [colorSeed, setColorSeed] = useRecoilState(fos.colorSeed);

coloring#

Name

Type

Description

coloring

plugins.fiftyone.state.Coloring

const [coloring, setColoring] = useRecoilState(fos.coloring);

config#

Name

Type

Description

config.colorBy

plugins.fiftyone.state.ColorBy

config.colorPool

readonly

config.colorscale

string

config.defaultQueryPerformance

boolean

config.disableFrameFiltering

boolean

config.enableQueryPerformance

boolean

config.gridZoom

number

config.loopVideos

boolean

config.maxQueryTime

number

config.mediaFallback

boolean

config.multicolorKeypoints

boolean

config.notebookHeight

number

config.plugins

object

config.showConfidence

boolean

config.showIndex

boolean

config.showLabel

boolean

config.showSkeletons

boolean

config.showTooltip

boolean

config.theme

plugins.fiftyone.state.Theme

config.timezone

string

config.useFrameNumber

boolean

const config = useRecoilValue(fos.config);

configData#

Name

Type

Description

configData

plugins.fiftyone.state.configFragment$data

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

string

const currentSampleId = useRecoilValue(fos.currentSampleId);

currentViewSlug#

Name

Type

Description

currentViewSlug

string

const currentViewSlug = useRecoilValue(fos.currentViewSlug);

dataset#

Name

Type

Description

dataset

plugins.fiftyone.state.Dataset

const [dataset, setDataset] = useRecoilState(fos.dataset);

datasetAppConfig#

Name

Type

Description

datasetAppConfig

plugins.fiftyone.state.datasetAppConfigFragment$data

const [datasetAppConfig, setDatasetAppConfig] = useRecoilState(fos.datasetAppConfig);

datasetColorScheme#

Name

Type

Description

datasetColorScheme

plugins.fiftyone.state.colorSchemeFragment$data

const [datasetColorScheme, setDatasetColorScheme] = useRecoilState(fos.datasetColorScheme);

datasetFrameCount#

Name

Type

Description

datasetFrameCount

number

const datasetFrameCount = useRecoilValue(fos.datasetFrameCount);

datasetId#

Name

Type

Description

datasetId

string

const [datasetId, setDatasetId] = useRecoilState(fos.datasetId);

datasetName#

Name

Type

Description

datasetName

string

const [datasetName, setDatasetName] = useRecoilState(fos.datasetName);

datasetSampleCount#

Name

Type

Description

datasetSampleCount

number

const datasetSampleCount = useRecoilValue(fos.datasetSampleCount);

defaultActiveFields#

const defaultActiveFields = useRecoilValue(fos.defaultActiveFields);

defaultGroupSlice#

Name

Type

Description

defaultGroupSlice

string

const [defaultGroupSlice, setDefaultGroupSlice] = useRecoilState(fos.defaultGroupSlice);

defaultQueryPerformanceConfig#

Name

Type

Description

defaultQueryPerformanceConfig

boolean

const defaultQueryPerformanceConfig = useRecoilValue(fos.defaultQueryPerformanceConfig);

defaultTargets#

Name

Type

Description

defaultTargets

plugins.fiftyone.state.Targets

const defaultTargets = useRecoilValue(fos.defaultTargets);

disableFrameFiltering#

Name

Type

Description

disableFrameFiltering

boolean

const disableFrameFiltering = useRecoilValue(fos.disableFrameFiltering);

disabledCheckboxPaths#

Returns a set of paths that have their checkbox disabled in the sidebar

Name

Type

Description

disabledCheckboxPaths

Set < string > < string >

const disabledCheckboxPaths = useRecoilValue(fos.disabledCheckboxPaths);

disabledFilterPaths#

Returns a set of paths that have their filter dropdown disabled in the sidebar

Name

Type

Description

disabledFilterPaths

Set < string > < string >

const disabledFilterPaths = useRecoilValue(fos.disabledFilterPaths);

disabledFrameFilterPaths#

Name

Type

Description

disabledFrameFilterPaths

Set < string > < string >

const disabledFrameFilterPaths = useRecoilValue(fos.disabledFrameFilterPaths);

distributionPaths#

const distributionPaths = useRecoilValue(fos.distributionPaths);

dynamicGroupCurrentElementIndex#

Name

Type

Description

dynamicGroupCurrentElementIndex

number

const [dynamicGroupCurrentElementIndex, setDynamicGroupCurrentElementIndex] = useRecoilState(fos.dynamicGroupCurrentElementIndex);

dynamicGroupFields#

const dynamicGroupFields = useRecoilValue(fos.dynamicGroupFields);

dynamicGroupIndex#

Name

Type

Description

dynamicGroupIndex

number

const [dynamicGroupIndex, setDynamicGroupIndex] = useRecoilState(fos.dynamicGroupIndex);

dynamicGroupParameters#

Name

Type

Description

dynamicGroupParameters

plugins.fiftyone.state.DynamicGroupParameters

const [dynamicGroupParameters, setDynamicGroupParameters] = useRecoilState(fos.dynamicGroupParameters);

dynamicGroupsTargetFrameRate#

Name

Type

Description

dynamicGroupsTargetFrameRate

number

const dynamicGroupsTargetFrameRate = useRecoilValue(fos.dynamicGroupsTargetFrameRate);

editingFieldAtom#

Name

Type

Description

editingFieldAtom

boolean

const [editingFieldAtom, setEditingFieldAtom] = useRecoilState(fos.editingFieldAtom);

elementNames#

Name

Type

Description

elementNames.plural

string

elementNames.singular

string

const elementNames = useRecoilValue(fos.elementNames);

eligibleFieldsToCustomizeColor#

const eligibleFieldsToCustomizeColor = useRecoilValue(fos.eligibleFieldsToCustomizeColor);

enableQueryPerformanceConfig#

Name

Type

Description

enableQueryPerformanceConfig

boolean

const enableQueryPerformanceConfig = useRecoilValue(fos.enableQueryPerformanceConfig);

escapeKeyHandlerIdsAtom#

Name

Type

Description

escapeKeyHandlerIdsAtom

Set < string > < string >

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

plugins.fiftyone.state.expressionCatalogFragment$data

const [expressionCatalog, setExpressionCatalog] = useRecoilState(fos.expressionCatalog);

extendedSelection#

Name

Type

Description

extendedSelection.scope

string

extendedSelection.selection

Array< string >

extendedSelection.spatialSelection

Object

const [extendedSelection, setExtendedSelection] = useRecoilState(fos.extendedSelection);

extendedSelectionOverrideStage#

Name

Type

Description

extendedSelectionOverrideStage

any

const [extendedSelectionOverrideStage, setExtendedSelectionOverrideStage] = useRecoilState(fos.extendedSelectionOverrideStage);

extendedStages#

Name

Type

Description

extendedStages

any

const extendedStages = useRecoilValue(fos.extendedStages);

extendedStagesNoSort#

Name

Type

Description

extendedStagesNoSort

any

const extendedStagesNoSort = useRecoilValue(fos.extendedStagesNoSort);

extendedStagesUnsorted#

Name

Type

Description

extendedStagesUnsorted

any

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

plugins.fiftyone.state.ModalSample

const [fetchedModalSample, setFetchedModalSample] = useRecoilState(fos.fetchedModalSample);

fieldVisibilityStage#

Name

Type

Description

fieldVisibilityStage

plugins.fiftyone.state.FieldVisibilityStage

const [fieldVisibilityStage, setFieldVisibilityStage] = useRecoilState(fos.fieldVisibilityStage);

filters#

Name

Type

Description

filters

plugins.fiftyone.state.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

plugins.fiftyone.state.Schema

const fullSchema = useRecoilValue(fos.fullSchema);

fullscreen#

Name

Type

Description

fullscreen

boolean

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

Set < string > < string >

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

string

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

any

const gridExtendedStages = useRecoilValue(fos.gridExtendedStages);

gridExtendedStagesNoSort#

gridExtendedStages without the grid sort.

Name

Type

Description

gridExtendedStagesNoSort

any

const gridExtendedStagesNoSort = useRecoilValue(fos.gridExtendedStagesNoSort);

gridSortBy#

Name

Type

Description

gridSortBy.descending

boolean

gridSortBy.field

string

const [gridSortBy, setGridSortBy] = useRecoilState(fos.gridSortBy);

gridSortFields#

const gridSortFields = useRecoilValue(fos.gridSortFields);

groupByFieldValue#

const groupByFieldValue = useRecoilValue(fos.groupByFieldValue);

groupField#

Name

Type

Description

groupField

string

const groupField = useRecoilValue(fos.groupField);

groupId#

Name

Type

Description

groupId

string

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

boolean

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

boolean

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

boolean

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

boolean

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

Set < string > < string >

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

plugins.fiftyone.state.ModalSample

const [groupSampleAtMainSlice, setGroupSampleAtMainSlice] = useRecoilState(fos.groupSampleAtMainSlice);

groupSlice#

Name

Type

Description

groupSlice

string

const [groupSlice, setGroupSlice] = useRecoilState(fos.groupSlice);

groupSlices#

const groupSlices = useRecoilValue(fos.groupSlices);

hasGroupSlices#

Name

Type

Description

hasGroupSlices

boolean

const hasGroupSlices = useRecoilValue(fos.hasGroupSlices);

hasSelectedLabels#

Name

Type

Description

hasSelectedLabels

boolean

const hasSelectedLabels = useRecoilValue(fos.hasSelectedLabels);

hasSelectedSamples#

Name

Type

Description

hasSelectedSamples

boolean

const hasSelectedSamples = useRecoilValue(fos.hasSelectedSamples);

hiddenLabelIds#

Name

Type

Description

hiddenLabelIds

Set < string > < string >

const hiddenLabelIds = useRecoilValue(fos.hiddenLabelIds);

hiddenLabels#

Name

Type

Description

hiddenLabels

plugins.fiftyone.state.SelectedLabelMap

const [hiddenLabels, setHiddenLabels] = useRecoilState(fos.hiddenLabels);

hiddenLabelsArray#

const hiddenLabelsArray = useRecoilValue(fos.hiddenLabelsArray);

hiddenNoneGroups#

Name

Type

Description

hiddenNoneGroups.groups

Set < string > < string >

hiddenNoneGroups.paths

Set < string > < string >

const hiddenNoneGroups = useRecoilValue(fos.hiddenNoneGroups);

hideNoneValuedFields#

Name

Type

Description

hideNoneValuedFields

boolean

const [hideNoneValuedFields, setHideNoneValuedFields] = useRecoilState(fos.hideNoneValuedFields);

hoveredSample#

Name

Type

Description

hoveredSample

plugins.fiftyone.state.Sample

const [hoveredSample, setHoveredSample] = useRecoilState(fos.hoveredSample);

indexInfo#

Name

Type

Description

indexInfo

plugins.fiftyone.state.indexesFragment$data

const [indexInfo, setIndexInfo] = useRecoilState(fos.indexInfo);

is3DDataset#

Name

Type

Description

is3DDataset

boolean

const is3DDataset = useRecoilValue(fos.is3DDataset);

isClipsView#

Name

Type

Description

isClipsView

boolean

const isClipsView = useRecoilValue(fos.isClipsView);

isDynamicGroup#

Name

Type

Description

isDynamicGroup

boolean

const isDynamicGroup = useRecoilValue(fos.isDynamicGroup);

isFieldVisibilityActive#

Name

Type

Description

isFieldVisibilityActive

boolean

const isFieldVisibilityActive = useRecoilValue(fos.isFieldVisibilityActive);

isFramesView#

Name

Type

Description

isFramesView

boolean

const isFramesView = useRecoilValue(fos.isFramesView);

isGeneratedView#

Name

Type

Description

isGeneratedView

boolean

const isGeneratedView = useRecoilValue(fos.isGeneratedView);

isGroup#

Name

Type

Description

isGroup

boolean

const isGroup = useRecoilValue(fos.isGroup);

isInMultiPanelViewAtom#

Name

Type

Description

isInMultiPanelViewAtom

boolean

const [isInMultiPanelViewAtom, setIsInMultiPanelViewAtom] = useRecoilState(fos.isInMultiPanelViewAtom);

isLargeVideo#

Name

Type

Description

isLargeVideo

boolean

const isLargeVideo = useRecoilValue(fos.isLargeVideo);

isModalActive#

Name

Type

Description

isModalActive

boolean

const isModalActive = useRecoilValue(fos.isModalActive);

isMultimodalDataset#

Name

Type

Description

isMultimodalDataset

boolean

const isMultimodalDataset = useRecoilValue(fos.isMultimodalDataset);

isNestedDynamicGroup#

Name

Type

Description

isNestedDynamicGroup

boolean

const isNestedDynamicGroup = useRecoilValue(fos.isNestedDynamicGroup);

isNonNestedDynamicGroup#

Name

Type

Description

isNonNestedDynamicGroup

boolean

const isNonNestedDynamicGroup = useRecoilValue(fos.isNonNestedDynamicGroup);

isNotebook#

Name

Type

Description

isNotebook

boolean

const isNotebook = useRecoilValue(fos.isNotebook);

isOrderedDynamicGroup#

Name

Type

Description

isOrderedDynamicGroup

boolean

const isOrderedDynamicGroup = useRecoilValue(fos.isOrderedDynamicGroup);

isPatchesView#

Name

Type

Description

isPatchesView

boolean

const isPatchesView = useRecoilValue(fos.isPatchesView);

isQueryPerformantDynamicGroup#

Name

Type

Description

isQueryPerformantDynamicGroup

boolean

const isQueryPerformantDynamicGroup = useRecoilValue(fos.isQueryPerformantDynamicGroup);

isQueryPerformantView#

Name

Type

Description

isQueryPerformantView

boolean

const isQueryPerformantView = useRecoilValue(fos.isQueryPerformantView);

isRootView#

Name

Type

Description

isRootView

boolean

const isRootView = useRecoilValue(fos.isRootView);

isSidebarFilterMode#

Name

Type

Description

isSidebarFilterMode

boolean

const [isSidebarFilterMode, setIsSidebarFilterMode] = useRecoilState(fos.isSidebarFilterMode);

isTooltipLocked#

Name

Type

Description

isTooltipLocked

boolean

const [isTooltipLocked, setIsTooltipLocked] = useRecoilState(fos.isTooltipLocked);

isVideoDataset#

Name

Type

Description

isVideoDataset

boolean

const isVideoDataset = useRecoilValue(fos.isVideoDataset);

labelPathsSet#

Name

Type

Description

labelPathsSet

Set < string > < string >

const labelPathsSet = useRecoilValue(fos.labelPathsSet);

labelPathsSetExpanded#

Name

Type

Description

labelPathsSetExpanded

Set < string > < string >

const labelPathsSetExpanded = useRecoilValue(fos.labelPathsSetExpanded);

labelSelectionStyle#

Name

Type

Description

labelSelectionStyle

plugins.fiftyone.state.LabelSelectionStyle

const [labelSelectionStyle, setLabelSelectionStyle] = useRecoilState(fos.labelSelectionStyle);

lastLoadedDatasetNameState#

Name

Type

Description

lastLoadedDatasetNameState

string

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

boolean

const [loading, setLoading] = useRecoilState(fos.loading);

lookerPanels#

Name

Type

Description

lookerPanels.help

Object

lookerPanels.json

Object

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

Readonly < Record > < Record < string , string > >

const mediaSources = useRecoilValue(fos.mediaSources);

mediaType#

Name

Type

Description

mediaType

string

const [mediaType, setMediaType] = useRecoilState(fos.mediaType);

mediaTypeSelector#

Name

Type

Description

mediaTypeSelector

Union< '3d' , 'group' , 'image' , 'point-cloud' , 'video' , 'multimodal' , 'point_cloud' , 'three_d' , 'unknown' >

const mediaTypeSelector = useRecoilValue(fos.mediaTypeSelector);

modalAttributeVisibility#

Name

Type

Description

modalAttributeVisibility

plugins.fiftyone.state.Filters

const [modalAttributeVisibility, setModalAttributeVisibility] = useRecoilState(fos.modalAttributeVisibility);

modalFilters#

Name

Type

Description

modalFilters

plugins.fiftyone.state.Filters

const [modalFilters, setModalFilters] = useRecoilState(fos.modalFilters);

modalGroupSlice#

Name

Type

Description

modalGroupSlice

string

const [modalGroupSlice, setModalGroupSlice] = useRecoilState(fos.modalGroupSlice);

modalLooker#

Name

Type

Description

modalLooker

plugins.fiftyone.state.Lookers

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

plugins.fiftyone.state.ModalSample

const modalSample = useRecoilValue(fos.modalSample);

modalSampleId#

Name

Type

Description

modalSampleId

string

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

plugins.fiftyone.state.ModalSelector

const [modalSelector, setModalSelector] = useRecoilState(fos.modalSelector);

modalTopBarVisible#

Name

Type

Description

modalTopBarVisible

boolean

const [modalTopBarVisible, setModalTopBarVisible] = useRecoilState(fos.modalTopBarVisible);

multimodalGridFit#

Validated grid fit for the active dataset, defaulting to Cover.

Name

Type

Description

multimodalGridFit

plugins.fiftyone.state.MultimodalGridFit

const [multimodalGridFit, setMultimodalGridFit] = useRecoilState(fos.multimodalGridFit);

non3dSamples#

const non3dSamples = useRecoilValue(fos.non3dSamples);

noneValuedPaths#

Name

Type

Description

noneValuedPaths

Record < string , Set > < string , Set < string > >

const [noneValuedPaths, setNoneValuedPaths] = useRecoilState(fos.noneValuedPaths);

nullableModalSampleId#

Name

Type

Description

nullableModalSampleId

string

const nullableModalSampleId = useRecoilValue(fos.nullableModalSampleId);

only3d#

Name

Type

Description

only3d

boolean

const only3d = useRecoilValue(fos.only3d);

parentMediaTypeSelector#

Name

Type

Description

parentMediaTypeSelector

Union< '3d' , 'group' , 'image' , 'point-cloud' , 'video' , 'multimodal' , 'point_cloud' , 'three_d' , 'unknown' >

const parentMediaTypeSelector = useRecoilValue(fos.parentMediaTypeSelector);

patching#

Name

Type

Description

patching

boolean

const [patching, setPatching] = useRecoilState(fos.patching);

pathHiddenLabelsMap#

const [pathHiddenLabelsMap, setPathHiddenLabelsMap] = useRecoilState(fos.pathHiddenLabelsMap);

queryPerformance#

Name

Type

Description

queryPerformance

boolean

const [queryPerformance, setQueryPerformance] = useRecoilState(fos.queryPerformance);

queryPerformanceMaxSearch#

Name

Type

Description

queryPerformanceMaxSearch

number

const [queryPerformanceMaxSearch, setQueryPerformanceMaxSearch] = useRecoilState(fos.queryPerformanceMaxSearch);

queryPerformanceSetting#

Name

Type

Description

queryPerformanceSetting

boolean

const [queryPerformanceSetting, setQueryPerformanceSetting] = useRecoilState(fos.queryPerformanceSetting);

readOnly#

Name

Type

Description

readOnly

boolean

const [readOnly, setReadOnly] = useRecoilState(fos.readOnly);

refreshGroupQuery#

Name

Type

Description

refreshGroupQuery

number

const [refreshGroupQuery, setRefreshGroupQuery] = useRecoilState(fos.refreshGroupQuery);

refresher#

Name

Type

Description

refresher

number

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

Record < string ,  > < string , Array< string > >

const resolvedShownLabelAttributes = useRecoilValue(fos.resolvedShownLabelAttributes);

rootElementName#

Name

Type

Description

rootElementName

string

const rootElementName = useRecoilValue(fos.rootElementName);

rootElementNamePlural#

Name

Type

Description

rootElementNamePlural

string

const rootElementNamePlural = useRecoilValue(fos.rootElementNamePlural);

sampleFields#

const sampleFields = useRecoilValue(fos.sampleFields);

sampleSelectionStyle#

Name

Type

Description

sampleSelectionStyle

plugins.fiftyone.state.SelectionStyle

const [sampleSelectionStyle, setSampleSelectionStyle] = useRecoilState(fos.sampleSelectionStyle);

savedLookerOptions#

const [savedLookerOptions, setSavedLookerOptions] = useRecoilState(fos.savedLookerOptions);

savingFilters#

Name

Type

Description

savingFilters

boolean

const [savingFilters, setSavingFilters] = useRecoilState(fos.savingFilters);

schemaLens#

Name

Type

Description

schemaLens

plugins.fiftyone.state.SchemaLensValue

const [schemaLens, setSchemaLens] = useRecoilState(fos.schemaLens);

selectedLabelIds#

Name

Type

Description

selectedLabelIds

Set < string > < string >

const selectedLabelIds = useRecoilValue(fos.selectedLabelIds);

selectedLabelMap#

Name

Type

Description

selectedLabelMap

plugins.fiftyone.state.SelectedLabelMap

const [selectedLabelMap, setSelectedLabelMap] = useRecoilState(fos.selectedLabelMap);

selectedLabelTypes#

Name

Type

Description

selectedLabelTypes

Record < string , SelectionType > < string , plugins.fiftyone.state.SelectionType >

const selectedLabelTypes = useRecoilValue(fos.selectedLabelTypes);

selectedLabels#

const [selectedLabels, setSelectedLabels] = useRecoilState(fos.selectedLabels);

selectedPatchSamples#

Name

Type

Description

selectedPatchSamples

Set < unknown > < unknown >

const selectedPatchSamples = useRecoilValue(fos.selectedPatchSamples);

selectedSampleObjects#

Name

Type

Description

selectedSampleObjects

Map < string , Sample > < string , plugins.fiftyone.state.Sample >

const [selectedSampleObjects, setSelectedSampleObjects] = useRecoilState(fos.selectedSampleObjects);

selectedSamples#

Name

Type

Description

selectedSamples

Map < string , SelectionType > < string , plugins.fiftyone.state.SelectionType >

const [selectedSamples, setSelectedSamples] = useRecoilState(fos.selectedSamples);

selectedSavedViewState#

Name

Type

Description

selectedSavedViewState

plugins.fiftyone.state.DatasetViewOption

const [selectedSavedViewState, setSelectedSavedViewState] = useRecoilState(fos.selectedSavedViewState);

selectedViewName#

Name

Type

Description

selectedViewName

string

const [selectedViewName, setSelectedViewName] = useRecoilState(fos.selectedViewName);

sessionGroupSlice#

Name

Type

Description

sessionGroupSlice

string

const [sessionGroupSlice, setSessionGroupSlice] = useRecoilState(fos.sessionGroupSlice);

sessionSpaces#

Name

Type

Description

sessionSpaces

plugins.fiftyone.state.SpaceNodeJSON

const [sessionSpaces, setSessionSpaces] = useRecoilState(fos.sessionSpaces);

showModalNavigationControls#

Name

Type

Description

showModalNavigationControls

boolean

const [showModalNavigationControls, setShowModalNavigationControls] = useRecoilState(fos.showModalNavigationControls);

showOverlays#

Name

Type

Description

showOverlays

boolean

const [showOverlays, setShowOverlays] = useRecoilState(fos.showOverlays);

sidebarPaths#

const sidebarPaths = useRecoilValue(fos.sidebarPaths);

sidebarSampleId#

Name

Type

Description

sidebarSampleId

string

const sidebarSampleId = useRecoilValue(fos.sidebarSampleId);

similarityMethods#

Name

Type

Description

similarityMethods.patches

Array< [ plugins.fiftyone.state.Method , string ] >

similarityMethods.samples

Array< plugins.fiftyone.state.Method >

const similarityMethods = useRecoilValue(fos.similarityMethods);

similarityParameters#

Name

Type

Description

similarityParameters

plugins.fiftyone.state.SortBySimilarityParameters

const [similarityParameters, setSimilarityParameters] = useRecoilState(fos.similarityParameters);

similaritySorting#

Name

Type

Description

similaritySorting

boolean

const [similaritySorting, setSimilaritySorting] = useRecoilState(fos.similaritySorting);

snackbarErrors#

const [snackbarErrors, setSnackbarErrors] = useRecoilState(fos.snackbarErrors);

snackbarMessage#

Name

Type

Description

snackbarMessage

string

const [snackbarMessage, setSnackbarMessage] = useRecoilState(fos.snackbarMessage);

stageDefinitions#

const stageDefinitions = useRecoilValue(fos.stageDefinitions);

stageInfo#

Name

Type

Description

stageInfo

any

const [stageInfo, setStageInfo] = useRecoilState(fos.stageInfo);

stateSubscription#

Name

Type

Description

stateSubscription

string

const stateSubscription = useRecoilValue(fos.stateSubscription);

targets#

Name

Type

Description

targets.defaults

plugins.fiftyone.state.Targets

targets.fields

Any

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

boolean

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

boolean

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

plugins.fiftyone.state.TemporalTagResults

const temporalTagResults = useRecoilValue(fos.temporalTagResults);

temporalTagsRevision#

Bumped after every temporal tag mutation. Temporal tags are not sample fields, so no other input to their aggregation changes when one is created, edited or deleted; this is what refetches it.

Name

Type

Description

temporalTagsRevision

number

const [temporalTagsRevision, setTemporalTagsRevision] = useRecoilState(fos.temporalTagsRevision);

theme#

Name

Type

Description

theme

Union< 'dark' , 'light' >

const [theme, setTheme] = useRecoilState(fos.theme);

themeConfig#

Name

Type

Description

themeConfig

Union< 'dark' , 'light' , 'browser' >

const themeConfig = useRecoilValue(fos.themeConfig);

timeZone#

Name

Type

Description

timeZone

string

const timeZone = useRecoilValue(fos.timeZone);

tooltipCoordinates#

Name

Type

Description

tooltipCoordinates.bottom

plugins.fiftyone.state.placement

tooltipCoordinates.left

plugins.fiftyone.state.placement

tooltipCoordinates.right

plugins.fiftyone.state.placement

tooltipCoordinates.top

plugins.fiftyone.state.placement

const [tooltipCoordinates, setTooltipCoordinates] = useRecoilState(fos.tooltipCoordinates);

tooltipDetail#

Name

Type

Description

tooltipDetail

plugins.fiftyone.state.PointInfo < plugins.fiftyone.state.BaseLabel >

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

boolean

const [viewChangePending, setViewChangePending] = useRecoilState(fos.viewChangePending);

viewCls#

Name

Type

Description

viewCls

string

const [viewCls, setViewCls] = useRecoilState(fos.viewCls);

viewCounter#

Name

Type

Description

viewCounter

number

const [viewCounter, setViewCounter] = useRecoilState(fos.viewCounter);

viewName#

Name

Type

Description

viewName

string

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

plugins.fiftyone.state.StateForm

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#

fos.useActiveFilterValues(path)#
Arguments:
Return type:

Array< string >

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)#
Arguments:
Return type:

Union< ```` , plugins.fiftyone.state.T >

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#

fos.useBoundingBoxVisibility(labelPath)#
Arguments:
Return type:

boolean

Whether a detection field’s box outlines are shown in looker overlays.

useBrowserStorage#

fos.useBrowserStorage(key, initialValue, useSessionStorage, parseFn)#
Arguments:
  • key (string)

  • initialValue (Union)

  • useSessionStorage (boolean)

  • parseFn (Object)

  • parseFn.parse (( value : string ))

  • parseFn.stringify (( value : T ))

Return type:

readonly

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#

fos.useCreateLooker(isModal, thumbnail, options, highlight, enableTimeline, sampleSchema)#
Arguments:
  • isModal (boolean)

  • thumbnail (boolean)

  • options (Omit)

  • highlight (( sample : Sample ))

  • enableTimeline (boolean)

  • sampleSchema (Schema)

Return type:

MutableRefObject <  > < ( args :  ) >

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.

useDatasetTemporalTags#

fos.useDatasetTemporalTags(datasetId, client)#
Arguments:
Return type:

plugins.fiftyone.state.TagsBySample

Every temporal tag on a dataset, grouped by sample.

One request per dataset, shared by every subscriber: the grid renders a source per tile, and a tile resolving its own tags over the network would put one request per tile on the wire.

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#

fos.useElementsCount(modal)#
Arguments:
Return type:

number

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#

fos.useEventHandler(target, eventType, handler, options)#
Arguments:
  • target (EventTarget)

  • eventType (string)

  • handler (( event : any ))

  • options (Union)

Return type:

void

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#

fos.useField(path)#
Arguments:
Return type:

plugins.fiftyone.state.Field

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#

fos.useFieldType(path)#
Arguments:
Return type:

string

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#

fos.useGridCustomRendererFailover(datasetName)#
Arguments:
Return type:

Object

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#

fos.useHoveredSample(sample, args)#
Arguments:
  • sample (Sample)

  • args (Object)

  • args.clear (( ))

  • args.update (( ))

Return type:

Object

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#

fos.useIsMediaType(mediaType)#
Arguments:
Return type:

boolean

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)#
Arguments:
Return type:

Object

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#

fos.useLookerOptions(modal)#
Arguments:
Return type:

Partial < Omit > < Omit <  ,  > >

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:
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#

fos.useMutation(hasPermission, mutation)#
Arguments:
Return type:

plugins.fiftyone.state.CanPerformActionReturnType

useNon3dSlices#

fos.useNon3dSlices()#
Return type:

Array< string >

All available non-3D slice names.

useNotification#

fos.useNotification()#
fos.notification()#
Arguments:
  • options (NotificationOption)

Return type:

void

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#

fos.useOutsideClick(ref, handler, eventName)#
Arguments:
  • ref (MutableRefObject)

  • handler (MouseEventHandler)

  • eventName (string)

Return type:

void

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.

fos.pathValueColors()#
Arguments:
Return type:

string

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#

fos.useRefresh()#
fos.refresh()#
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.

useRefreshSample#

fos.useRefreshSample()#

Refresh a sample in both the modal and the grid.

fos.refreshSample()#
Arguments:
Return type:

void

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:
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

useSampleTemporalTags#

fos.useSampleTemporalTags(__namedParameters)#
Arguments:
Return type:

plugins.fiftyone.state.UseSampleTemporalTagsResult

Loads and mutates temporal tags for one dataset sample.

useSampleTemporalTagsFromDataset#

fos.useSampleTemporalTagsFromDataset(datasetId, sampleId)#
Arguments:
Return type:

readonly

One sample’s tags, read from the dataset’s shared load.

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#

fos.useSession(setter, ref)#
Arguments:
Return type:

void

useSessionRef#

fos.useSessionRef()#
Return type:

plugins.fiftyone.state.Session

useSessionSetter#

fos.useSessionSetter()#
fos.sessionSetter()#
Arguments:
  • key (K)

  • value

Return type:

void

useSessionSpaces#

fos.useSessionSpaces()#
Return type:

Array< any >

useSetDataset#

fos.useSetDataset()#
Return type:

SetterOrUpdater < string > < string >

useSetExpandedSample#

fos.useSetExpandedSample()#
fos.setExpandedSample()#
Arguments:
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 >

useSetSidebarExpanded#

fos.useSetSidebarExpanded(params)#
Arguments:
  • params (SidebarExpandedParams)

Return type:

SetterOrUpdater < boolean > < boolean >

Returns a setter for the expanded state of the given sidebar path. Use this when the component only needs to write, not read.

Example

const setExpanded = useSetSidebarExpanded({ path: "ground_truth", modal: false });
setExpanded(true);

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 >

useSidebarExpanded#

fos.useSidebarExpanded(params)#
Arguments:
  • params (SidebarExpandedParams)

Return type:

boolean

Returns whether the given sidebar path is currently expanded.

Prefer this over reading fos.sidebarExpanded directly so that call sites remain decoupled from the underlying recoil atom.

useSidebarExpandedState#

fos.useSidebarExpandedState(params)#
Arguments:
  • params (SidebarExpandedParams)

Return type:

[ boolean , ( value :  ) ]

Returns [expanded, setExpanded] for the given sidebar path — the standard read/write accessor for toggling field expansion.

Example

const [expanded, setExpanded] = useSidebarExpandedState({ path, modal });
setExpanded((v) => !v);

useSidebarFacet#

fos.useSidebarFacet(modal, path, offset)#
Arguments:
Return type:

Object

A backend facet adapted to the sidebar’s ordinary categorical rows.

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:
Return type:

readonly

The index remembered by quick image searches and the Similarity Search panel.

useSimilaritySearchResultCount#

fos.useSimilaritySearchResultCount(datasetName)#
Arguments:
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.

useSyncModalSidebarGroups#

fos.useSyncModalSidebarGroups()#
Return type:

void

Adds the paths the grid’s sidebar groups gain while the modal is open, for example fields a schema switch shows again or a newly created field, to the modal’s groups, which are otherwise the copy taken when the modal opened.

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.

fos.temporalTagColor()#
Arguments:
Return type:

string

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.

useTemporalTagsFieldActive#

fos.useTemporalTagsFieldActive()#
Return type:

boolean

Whether the temporal-tags pseudo-field is enabled in the grid sidebar.

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#

fos.useToClips()#
fos.toClips()#
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.

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#

fos.useToggleBoundingBoxVisibility(labelPath)#
Arguments:

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#

fos.useUpdateSamples()#
fos.updateSamples()#
Arguments:
  • samples (Array)

Return type:

void

useValueColor#

fos.useValueColor(path)#
Arguments:

Domain hook for valueColor: returns a (value) => color for path.

fos.valueColor()#
Arguments:
Return type:

string

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)#
Arguments:
  • params (Object)

  • params.modal (boolean) – Whether the field is in a modal or not

  • params.path (string) – The path of the field

Return type:

RecoilState < boolean > < boolean >

Get or set the active state of a field.

activeFields#

fos.activeFields(param)#
Arguments:
Return type:

RecoilState <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

activeFilterValues#

fos.activeFilterValues(current, path)#
Arguments:
Return type:

Array< string >

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:

readonly readonly 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:

readonly readonly 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:

readonly readonly RecoilValueReadOnly <  > < Array< LabelData > >

Returns a function which returns a memoized atom for each unique parameter value.

aggregation#

fos.aggregation(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  ,  ,  ,  ,  ,  > >

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)#
Arguments:
  • param (Object)

  • param.extended (boolean)

  • param.isQueryPerformance (boolean)

  • param.mixed (boolean)

  • param.modal (boolean)

  • param.paths (Array)

Return type:

readonly readonly RecoilValueReadOnly <  > < Array< Aggregation > >

Returns a function which returns a memoized atom for each unique parameter value.

appConfigOption#

fos.appConfigOption(param)#
Arguments:
Return type:

RecoilState < any > < any >

Returns a function which returns a memoized atom for each unique parameter value.

boolExcludeAtom#

fos.boolExcludeAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

boolIsMatchingAtom#

fos.boolIsMatchingAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

boolean#

fos.boolean(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < ( value : boolean ) >

Returns a function which returns a memoized atom for each unique parameter value.

booleanCountResults#

fos.booleanCountResults(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Object >

Returns a function which returns a memoized atom for each unique parameter value.

booleanResults#

fos.booleanResults(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Object >

Returns a function which returns a memoized atom for each unique parameter value.

booleanSelectedValuesAtom#

fos.booleanSelectedValuesAtom(param)#
Arguments:
Return type:

RecoilState <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

boundedCount#

fos.boundedCount(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

bounds#

fos.bounds(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < [ number , number ] >

Returns a function which returns a memoized atom for each unique parameter value.

boundsAtom#

fos.boundsAtom(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < Range > < plugins.fiftyone.state.Range >

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)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

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)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

countValues#

fos.countValues(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

counts#

fos.counts(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Any >

Returns a function which returns a memoized atom for each unique parameter value.

createTemporalTagsClient#

fos.createTemporalTagsClient(options)#
Arguments:
Return type:

plugins.fiftyone.state.TemporalTagsClient

Creates a typed client for the tag HTTP routes.

cropToContent#

fos.cropToContent(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

cumulativeCounts#

fos.cumulativeCounts(param)#
Arguments:
  • param (Object)

  • param.embeddedDocType (Union)

  • param.extended (boolean)

  • param.ftype (Union)

  • param.modal (boolean)

  • param.path (string)

Return type:

readonly readonly RecoilValueReadOnly <  > < Any >

Returns a function which returns a memoized atom for each unique parameter value.

cumulativeValues#

fos.cumulativeValues(param)#
Arguments:
  • param (Object)

  • param.embeddedDocType (Union)

  • param.extended (boolean)

  • param.ftype (Union)

  • param.modal (boolean)

  • param.path (string)

Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

currentSlice#

fos.currentSlice(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

currentSlices#

fos.currentSlices(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

dbPath#

fos.dbPath(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

deferrer#

fos.deferrer(initialized)#
Arguments:
  • initialized ()

dismissGridCustomRendererFailoverBanner#

fos.dismissGridCustomRendererFailoverBanner(datasetName)#
Arguments:
Return type:

void

Hides the warning banner for a dataset without clearing fail-open mode. Dismissing the banner is purely a UI choice and should not re-enable the crashing renderer for that dataset.

distribution#

fos.distribution(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  ,  ,  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

dynamicGroupPageSelector#

fos.dynamicGroupPageSelector(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < ( cursor : number ,  pageSize : number ) >

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:

readonly readonly RecoilValueReadOnly < any > < any >

Returns a function which returns a memoized atom for each unique parameter value.

dynamicGroupsViewMode#

fos.dynamicGroupsViewMode(param)#
Arguments:
Return type:

RecoilState <  > < Union<  ,  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

dynamicGroupsViewModeStore#

fos.dynamicGroupsViewModeStore(param)#
Arguments:
Return type:

RecoilState <  > < Union<  ,  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

ensureColorScheme#

fos.ensureColorScheme(colorScheme, appConfig)#
Arguments:
  • colorScheme (any)

  • appConfig (Object)

  • appConfig.colorBy (ColorBy)

  • appConfig.colorPool (readonly)

  • appConfig.colorscale (string)

  • appConfig.multicolorKeypoints (boolean)

  • appConfig.showSkeletons (boolean)

Return type:

plugins.fiftyone.state.ColorSchemeInput

eventIdentity#

fos.eventIdentity(event)#
Arguments:
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:
Return type:

readonly readonly RecoilValueReadOnly < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

falseAtom#

fos.falseAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

fetchTemporalTagResults#

fos.fetchTemporalTagResults(datasetId)#
Arguments:
Return type:

Promise < TemporalTagResults > < plugins.fiftyone.state.TemporalTagResults >

Fetches the temporal-tag vocabulary of a dataset, with counts.

field#

fos.field(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < Field > < plugins.fiftyone.state.Field >

Returns a function which returns a memoized atom for each unique parameter value.

fieldHasVisibilitySetting#

fos.fieldHasVisibilitySetting(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

fieldIsFiltered#

fos.fieldIsFiltered(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

fieldPath#

fos.fieldPath(param)#
Arguments:
Return type:

readonly readonly 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:

readonly readonly 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:

readonly readonly RecoilValueReadOnly < Schema > < plugins.fiftyone.state.Schema >

Returns a function which returns a memoized atom for each unique parameter value.

fieldType#

fos.fieldType(param)#
Arguments:
  • param (Object)

  • param.path (string)

  • param.useListSubfield (boolean)

Return type:

readonly readonly RecoilValueReadOnly < string > < string >

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:

readonly readonly RecoilValueReadOnly <  > < Array< Field > >

Returns a function which returns a memoized atom for each unique parameter value.

fieldsMatcher#

fos.fieldsMatcher(fields, matcher, present, prefix)#
Arguments:
  • fields (Array)

  • matcher (( field : StrictField ))

  • present (Set)

  • prefix (string)

Return type:

Array< string >

filter#

fos.filter(param)#
Arguments:
Return type:

RecoilState < Filter > < plugins.fiftyone.state.Filter >

Returns a function which returns a memoized atom for each unique parameter value.

filterFields#

fos.filterFields(param)#
Arguments:
Return type:

readonly readonly 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:
Return type:

readonly readonly 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:

readonly readonly 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#

fos.getEmbeddedLabelFields(fields, prefix)#
Arguments:
  • fields (Array)

  • prefix (string)

Return type:

Array< string >

getEnvironment#

fos.getEnvironment()#
Return type:

default

getGridCustomRendererFailover#

fos.getGridCustomRendererFailover(datasetName)#
Arguments:
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#

fos.getLabelFields(fields, prefix)#
Arguments:
  • fields (Array)

  • prefix (string)

Return type:

Array< string >

getNormalizedUrls#

fos.getNormalizedUrls(urls)#
Arguments:
  • urls (Union)

Return type:

Any

getQueryPerformancePath#

fos.getQueryPerformancePath()#
Return type:

Object

getSampleSrc#

fos.getSampleSrc(url)#
Arguments:
Return type:

string

getSessionRef#

fos.getSessionRef()#
Return type:

plugins.fiftyone.state.Session

getStageKwarg#

fos.getStageKwarg(stage, key)#
Arguments:
Return type:

plugins.fiftyone.state.T

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:
Return type:

RecoilState < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

gridSortDescendingStore#

fos.gridSortDescendingStore(param)#
Arguments:
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#

fos.groupHasSampleOnSlice(parameter)#
Arguments:
  • parameter (Object)

  • parameter.groupId (string)

  • parameter.slice (string)

Return type:

RecoilState < boolean > < boolean >

groupIsEmpty#

fos.groupIsEmpty(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

groupLength#

fos.groupLength(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

groupSamples#

fos.groupSamples(parameter)#
Arguments:
  • parameter (Object)

  • parameter.count (number)

  • parameter.paginationData (boolean)

  • parameter.slices (Array)

Return type:

RecoilState <  > < Array< ModalSample > >

groupShown#

fos.groupShown(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

groupStatistics#

fos.groupStatistics(param)#
Arguments:
Return type:

RecoilState <  > < Union<  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

hasFieldFilters#

fos.hasFieldFilters(param)#
Arguments:
Return type:

readonly readonly 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:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

hasVisibility#

fos.hasVisibility(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

helperFunction#

fos.helperFunction(value, exclude, start, end, none, inf, ninf, nan)#
Arguments:
Return type:

boolean

hiddenFieldLabels#

fos.hiddenFieldLabels(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

histogramValues#

fos.histogramValues(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

imaVidLookerState#

fos.imaVidLookerState(param)#
Arguments:
Return type:

RecoilState < any > < any >

Returns a function which returns a memoized atom for each unique parameter value.

imaVidStoreKey#

fos.imaVidStoreKey(param)#
Arguments:
  • param (Object)

  • param.groupByFieldValue (string)

  • param.modal (boolean)

Return type:

readonly readonly RecoilValueReadOnly < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

indexedPaths#

fos.indexedPaths(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

indexesByPath#

fos.indexesByPath(param)#
Arguments:
  • param (Array)

Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

invalidateDatasetTemporalTags#

fos.invalidateDatasetTemporalTags(datasetId, client)#
Arguments:
Return type:

void

Refetches a dataset’s tags after a mutation, so the grid reflects what the modal just changed.

isCompoundIndexed#

fos.isCompoundIndexed(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isDatasetChange#

fos.isDatasetChange(data, previous)#
Arguments:
  • data (Object)

  • data.datasetId (string)

  • previous (Object)

  • previous.datasetId (string)

Return type:

boolean

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:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isDisabledFilterPath#

fos.isDisabledFilterPath(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isDisabledFrameFilterPath#

fos.isDisabledFrameFilterPath(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isFilterDefault#

fos.isFilterDefault(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isFrameField#

fos.isFrameField(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isGridCustomRendererFailOpen#

fos.isGridCustomRendererFailOpen(datasetName)#
Arguments:
Return type:

boolean

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:
Return type:

boolean

Whether there are hovered instances of a particular instance

isInListField#

fos.isInListField(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isLabelPath#

fos.isLabelPath(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isListField#

fos.isListField(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isMatchingAtom#

fos.isMatchingAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isNumericField#

fos.isNumericField(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isObjectIdField#

fos.isObjectIdField(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isOfDocumentFieldList#

fos.isOfDocumentFieldList(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isSidebarFacet#

fos.isSidebarFacet(path)#
Arguments:
Return type:

boolean

Whether a virtual path supplies flat categorical values for the sidebar.

isStringField#

fos.isStringField(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

isTemporalTagSlice#

fos.isTemporalTagSlice(mediaTypes, slice)#
Arguments:
  • mediaTypes (Record)

  • slice (string)

Return type:

boolean

Whether a grouped dataset’s slice can carry temporal tags.

keypointFilter#

fos.keypointFilter(name, embeddedDocType, filter)#
Arguments:

labelAttributeRow#

fos.labelAttributeRow(param)#
Arguments:
Return type:

readonly readonly 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)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

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:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

labelPath#

fos.labelPath(param)#
Arguments:
Return type:

readonly readonly 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:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

labelTagCounts#

fos.labelTagCounts(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Any >

Returns a function which returns a memoized atom for each unique parameter value.

labelsMatcher#

fos.labelsMatcher(parent)#
Arguments:
  • parent ()

lightningBooleanResults#

fos.lightningBooleanResults(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Object >

Returns a function which returns a memoized atom for each unique parameter value.

lightningBounds#

fos.lightningBounds(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < [ number , number ] >

Returns a function which returns a memoized atom for each unique parameter value.

lightningNonfinites#

fos.lightningNonfinites(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

lightningNumericResults#

fos.lightningNumericResults(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

lightningQuery#

fos.lightningQuery(parameter)#
Arguments:
  • parameter (readonly)

Return type:

readonly readonly RecoilState <  > < readonly >

lightningStringResults#

fos.lightningStringResults(param)#
Arguments:
  • param (Object)

  • param.exclude (Array)

  • param.filters (SerializableParam)

  • param.index (string)

  • param.maxDocumentsSearch (number)

  • param.path (string)

  • param.search (string)

Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

listBoolean#

fos.listBoolean(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < ( value : boolean ) >

Returns a function which returns a memoized atom for each unique parameter value.

listNumber#

fos.listNumber(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < ( value : number ) >

Returns a function which returns a memoized atom for each unique parameter value.

listString#

fos.listString(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < ( value : string ) >

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:

readonly readonly 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)#
Arguments:
Return type:

RecoilState < Partial > < Partial < Omit > >

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)#
Arguments:
Return type:

RecoilState < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

meetsType#

fos.meetsType(param)#
Arguments:
  • param (Object)

  • param.acceptLists (boolean)

  • param.embeddedDocType (Union)

  • param.ftype (Union)

  • param.path (string)

  • param.under (boolean)

Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

minAtom#

fos.minAtom(param)#
Arguments:
Return type:

RecoilState < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

modalAggregationPaths#

fos.modalAggregationPaths(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

modalFilterFields#

fos.modalFilterFields(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

noneAtom#

fos.noneAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

noneCount#

fos.noneCount(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

nonfiniteAtom#

fos.nonfiniteAtom(param)#
Arguments:
  • param (Object)

  • param.key (Union)

  • param.modal (boolean)

  • param.path (string)

Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

nonfiniteCount#

fos.nonfiniteCount(param)#
Arguments:
  • param (Object)

  • param.extended (boolean)

  • param.key (Nonfinite)

  • param.modal (boolean)

  • param.path (string)

Return type:

RecoilState < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

nonfiniteData#

fos.nonfiniteData(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  ,  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

numGroupFieldsActive#

fos.numGroupFieldsActive(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

numGroupFieldsFiltered#

fos.numGroupFieldsFiltered(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

numGroupFieldsVisible#

fos.numGroupFieldsVisible(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

numeric#

fos.numeric(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < ( value : number ) >

Returns a function which returns a memoized atom for each unique parameter value.

numericExcludeAtom#

fos.numericExcludeAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

numericFields#

fos.numericFields(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

numericIsMatchingAtom#

fos.numericIsMatchingAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

onTemporalTagsMutated#

fos.onTemporalTagsMutated(listener)#
Arguments:
  • listener (( ))

Calls listener after every temporal tag mutation, on any dataset. Returns the unsubscribe function.

fos.onTemporalTagsMutated(listener)#
Return type:

void

parentField#

fos.parentField(param)#
Arguments:
Return type:

readonly readonly 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:
Return type:

readonly readonly RecoilValueReadOnly <  > < Union<  ,  > >

Returns a function which returns a memoized atom for each unique parameter value.

pathColor#

fos.pathColor(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

pathFilter#

fos.pathFilter(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < PathFilterSelector > < plugins.fiftyone.state.PathFilterSelector >

Returns a function which returns a memoized atom for each unique parameter value.

pathHasActiveIndex#

fos.pathHasActiveIndex(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

pathHasIndexes#

fos.pathHasIndexes(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

pathIndex#

fos.pathIndex(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

pathIsShown#

fos.pathIsShown(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

persistSidebarGroups#

fos.persistSidebarGroups(variables)#
Arguments:
  • variables (setSidebarGroupsMutation$variables)

Return type:

void

primitivesMatcher#

fos.primitivesMatcher(field)#
Arguments:
  • field (StrictField)

Return type:

boolean

pullSidebarValue#

fos.pullSidebarValue(inputField, keys, input, isList)#
Arguments:
  • inputField (Pick)

  • keys (Array)

  • input (object)

  • isList (boolean)

Return type:

object

rangeAtom#

fos.rangeAtom(param)#
Arguments:
Return type:

RecoilState < Range > < plugins.fiftyone.state.Range >

Returns a function which returns a memoized atom for each unique parameter value.

readFilters#

fos.readFilters(data, previous)#
Arguments:
  • data (Object)

  • data.datasetId (string)

  • previous (Object)

  • previous.datasetId (string)

Return type:

plugins.fiftyone.state.State.Filters

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)#
Arguments:
  • data (Object)

  • data.datasetId (string)

  • previous (Object)

  • previous.datasetId (string)

Return type:

unknown

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.

readableTags#

fos.readableTags(param)#
Arguments:
  • param (Object)

  • param.group (Union)

  • param.modal (boolean)

Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

registerExtendedSelectionResetParticipant#

fos.registerExtendedSelectionResetParticipant(participant)#
Arguments:

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:

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:
Return type:

Object

runExtendedSelectionResetParticipants#

fos.runExtendedSelectionResetParticipants(cb)#
Arguments:
Return type:

void

Invokes every registered participant with the caller’s transaction.

sampleTagCounts#

fos.sampleTagCounts(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Any >

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:
Return type:

RecoilState < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

selectedMediaFieldAtomFamily#

fos.selectedMediaFieldAtomFamily(params)#
Arguments:
Return type:

RecoilState < string > < string >

selectedPatchIds#

fos.selectedPatchIds(param)#
Arguments:
  • param (SerializableParam)

Return type:

readonly readonly RecoilValueReadOnly < Set > < Set < string > >

Returns a function which returns a memoized atom for each unique parameter value.

sessionAtom#

fos.sessionAtom(options)#
Arguments:
  • options (SessionAtomOptions)

Return type:

RecoilState <  > < ```` >

setCurrentEnvironment#

fos.setCurrentEnvironment(environment)#
Arguments:
  • environment (default)

Return type:

void

setQueryPerformancePath#

fos.setQueryPerformancePath(path, isFrameField)#
Arguments:
Return type:

void

shouldRenderImaVidLooker#

fos.shouldRenderImaVidLooker(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

shownLabelAttributes#

fos.shownLabelAttributes(param)#
Arguments:
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.

sidebarEntries#

fos.sidebarEntries(param)#
Arguments:
Return type:

RecoilState <  > < Array< SidebarEntry > >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarExpanded#

fos.sidebarExpanded(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarExpandedStore#

fos.sidebarExpandedStore(param)#
Arguments:
Return type:

RecoilState <  > < Any >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarGroup#

fos.sidebarGroup(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarGroupMapping#

fos.sidebarGroupMapping(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Any >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarGroupNames#

fos.sidebarGroupNames(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarGroups#

fos.sidebarGroups(param)#
Arguments:
Return type:

RecoilState <  > < Array< SidebarGroup > >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarGroupsDefinition#

fos.sidebarGroupsDefinition(param)#
Arguments:
Return type:

RecoilState <  > < Array< SidebarGroup > >

Sidebar definitions and local choices, isolated by store and modal context.

sidebarVisible#

fos.sidebarVisible(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

sidebarWidth#

fos.sidebarWidth(param)#
Arguments:
Return type:

RecoilState < number > < number >

Returns a function which returns a memoized atom for each unique parameter value.

skeleton#

fos.skeleton(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < KeypointSkeleton > < plugins.fiftyone.state.KeypointSkeleton >

Returns a function which returns a memoized atom for each unique parameter value.

skeletonFieldKey#

fos.skeletonFieldKey(field)#
Arguments:
Return type:

string

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:
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)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < ( value : string ) >

Returns a function which returns a memoized atom for each unique parameter value.

stringCountResults#

fos.stringCountResults(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Object >

Returns a function which returns a memoized atom for each unique parameter value.

stringExcludeAtom#

fos.stringExcludeAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

stringResults#

fos.stringResults(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Object >

Returns a function which returns a memoized atom for each unique parameter value.

stringSelectedValuesAtom#

fos.stringSelectedValuesAtom(param)#
Arguments:
Return type:

RecoilState <  > < Array< string > >

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.

supportsTemporalTags#

fos.supportsTemporalTags(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < boolean > < boolean >

Whether the samples in view can carry temporal tags: they need a playhead to place an interval on. Multimodal episodes and videos qualify; in a grouped dataset, only a video slice does. Keyed by modal, since the modal can show a different slice than the grid.

tagging#

fos.tagging(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

Returns a function which returns a memoized atom for each unique parameter value.

temporalTagCounts#

fos.temporalTagCounts(param)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly < TemporalTagResults > < plugins.fiftyone.state.TemporalTagResults >

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#

fos.textFilter(param)#
Arguments:
Return type:

RecoilState < string > < string >

Returns a function which returns a memoized atom for each unique parameter value.

toggleShownLabelAttribute#

fos.toggleShownLabelAttribute(shown, attribute)#
Arguments:
  • shown (Array)

  • attribute (string)

Return type:

Array< string >

transformDataset#

fos.transformDataset(dataset)#
Arguments:
  • dataset (any)

Return type:

Readonly < Dataset > < plugins.fiftyone.state.Dataset >

trueAtom#

fos.trueAtom(param)#
Arguments:
Return type:

RecoilState < boolean > < boolean >

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:

readonly readonly RecoilValueReadOnly <  > < Object >

Returns a function which returns a memoized atom for each unique parameter value.

validateGroupName#

fos.validateGroupName(current, name)#
Arguments:
  • current (Array)

  • name (string)

Return type:

boolean

valueColor#

fos.valueColor(param)#
Arguments:
Return type:

readonly readonly 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)#
Arguments:
Return type:

readonly readonly RecoilValueReadOnly <  > < Array< string > >

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)#
Arguments:
Return type:

RecoilState < Filter > < plugins.fiftyone.state.Filter >

Returns a function which returns a memoized atom for each unique parameter value.

withMissingSidebarPaths#

fos.withMissingSidebarPaths(target, source)#
Arguments:
  • target (Array)

  • source (Array)

Return type:

Array< plugins.fiftyone.state.SidebarGroup >

Returns target with every path of source that it lacks, each added to the group of the same name (or in a new group when target has none), so target’s own order and groups are kept. Returns target itself when it lacks nothing.

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

Any

key

string

timestamp

string

version

string

viewStages

readonly

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’s results_meta; null for a run that

recorded none.”

“timestamp”,”string” “version”,”string” “viewStages”,”readonly”

Config#

class fos.Config()#

Properties#

Name

Type

Description

colorPool

Array< string >

colorscale

string

customizedColors

Array< plugins.fiftyone.state.CustomizeColorInput >

gridZoom

number

loopVideos

boolean

mediaFallback

boolean

mediaFields

Array< string >

notebookHeight

number

plugins

plugins.fiftyone.state.PluginConfig

showConfidence

boolean

showIndex

boolean

showLabel

boolean

showTooltip

boolean

theme

Union< 'dark' , 'light' , 'browser' >

timezone

string

useFrameNumber

boolean

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

plugins.fiftyone.state.ActiveFields

dynamicGroupsTargetFrameRate

number

gridMediaField

string

mediaFields

Array< string >

modalMediaField

string

plugins

plugins.fiftyone.state.PluginConfig

DateTime#

class fos.DateTime()#

Properties#

Name

Type

Description

$date

number

Description#

class fos.Description()#

Properties#

Name

Type

Description

dataset

string

fieldVisibilityStage

plugins.fiftyone.state.FieldVisibilityStage

savedViewSlug

string

savedViews

Array< plugins.fiftyone.state.SavedView >

selected

Array< string >

selectedLabels

Array< plugins.fiftyone.state.SelectedLabel >

spaces

plugins.fiftyone.state.SpaceNodeJSON

view

Array< plugins.fiftyone.state.Stage >

viewCls

string

viewName

string

DynamicGroupParameters#

class fos.DynamicGroupParameters()#

Properties#

Name

Type

Description

groupBy

Union< object , Array< string > >

orderBy

string

orderByKey

unknown

Evaluation#

class fos.Evaluation()#

EvaluationRun#

class fos.EvaluationRun()#

Properties#

Name

Type

Description

config

Object

key

string

timestamp

string

version

string

viewStages

readonly

FieldVisibilityStage#

class fos.FieldVisibilityStage()#

Properties#

Name

Type

Description

cls

string

kwargs

Object

Filter#

class fos.Filter()#

Name

Type

Description

[key]

string

Filters#

class fos.Filters()#

Name

Type

Description

[key]

string

ID#

class fos.ID()#

Properties#

Name

Type

Description

$oid

string

KeypointSkeleton#

class fos.KeypointSkeleton()#

Properties#

Name

Type

Description

edges

Array< Array< number > >

labels

Array< string >

Run#

class fos.Run()#

Properties#

Name

Type

Description

config

Any

key

string

timestamp

string

version

string

viewStages

readonly

SavedView#

class fos.SavedView()#

Properties#

Name

Type

Description

color

string

createdAt

plugins.fiftyone.state.DateTime

datasetId

string

description

string

id

string

lastLoadedAt

plugins.fiftyone.state.DateTime

lastModifiedAt

plugins.fiftyone.state.DateTime

name

string

slug

string

viewStages

Array< plugins.fiftyone.state.Stage >

SelectedLabel#

class fos.SelectedLabel()#

Properties#

Name

Type

Description

field

string

frameNumber

number

instanceId

string

labelId

string

sampleId

string

type

plugins.fiftyone.state.SelectionType

SelectedLabelData#

class fos.SelectedLabelData()#

Properties#

Name

Type

Description

field

string

frameNumber

number

instanceId

string

sampleId

string

type

plugins.fiftyone.state.SelectionType

SelectedLabelMap#

class fos.SelectedLabelMap()#

Name

Type

Description

[labelId]

string

SidebarGroup#

class fos.SidebarGroup()#

Properties#

Name

Type

Description

expanded

boolean

name

string

paths

Array< string >

SortBySimilarityParameters#

class fos.SortBySimilarityParameters()#

Properties#

Name

Type

Description

brainKey

string

distField

string

k

number

query

Union< string , Array< string > >

queryIds

Array< string >

reverse

boolean

Stage#

class fos.Stage()#

Properties#

Name

Type

Description

kwargs

Array< [ string , unknown ] >

StrictKeypointSkeleton#

class fos.StrictKeypointSkeleton()#

Properties#

Name

Type

Description

edges

Array< Array< number > >

labels

Array< string >

name

string

Targets#

class fos.Targets()#

Name

Type

Description

[key]

number

class fos.ActiveFields()#

ActiveFields#

Name

Type

Description

ActiveFields.exclude

Union< boolean , null >

ActiveFields.paths

Array< string >

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

Object

#16B364

Object

#2970FF

Object

#667085

Object

#7A5AF8

Object

#EE46BC

Object

#EF6820

Object

#F04438

Object

#FAC515

Object

DEFAULT_COLOR#

Name

Type

Description

'#667085'

DEFAULT_COLOR_OPTION#

Name

Type

Description

color

string

description

string

id

string

label

string

FIFTYONE_GRID_SPACES_ID#

Name

Type

Description

'fiftyone-spaces'

FIFTYONE_MODAL_SPACES_ID#

Name

Type

Description

'fiftyone-modal-spaces'

BooleanFilter#

class fos.BooleanFilter()#

Properties#

Name

Type

Description

exclude

boolean

false

boolean

isMatching

boolean

none

boolean

true

boolean

ClassificationAnnotationLabel#

class fos.ClassificationAnnotationLabel()#

Properties#

Name

Type

Description

data

plugins.fiftyone.state.ClassificationLabel

isNew

boolean

overlay

plugins.fiftyone.state.ClassificationOverlay

path

string

type

'Classification'

ClearSampleTemporalTagsRequest#

class fos.ClearSampleTemporalTagsRequest()#

Request for clearing temporal tags for one sample.

Properties#

Name

Type

Description

datasetId

string

filter

plugins.fiftyone.state.TemporalTagFilter

sampleId

string

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

void

Enter the context, triggering all registered enter callbacks.

exit

void

Exit the context, triggering all registered exit callbacks.

registerEnterCallback

void

Register a callback to be invoked on context enter.

registerExitCallback

void

Register a callback to be invoked on context exit.

reset

void

Reset the context, clearing all registered callbacks.

CountDatasetTemporalTagsRequest#

class fos.CountDatasetTemporalTagsRequest()#

Request for counting temporal tag values across a dataset.

Properties#

so a sample tagged twice with the same value counts once.”

“datasetId”,”string” “filter”,”plugins.fiftyone.state.TemporalTagFilter”

CreateSampleTemporalTagsRequest#

class fos.CreateSampleTemporalTagsRequest()#

Request for creating temporal tags for one sample.

Properties#

Name

Type

Description

datasetId

string

sampleId

string

temporalTags

readonly

CreateTemporalTagsClientOptions#

class fos.CreateTemporalTagsClientOptions()#

Options for constructing the tags route client.

Properties#

Name

Type

Description

fetchFunction

( config : plugins.fiftyone.state.FetchFunctionConfig )

DeleteSampleTemporalTagsRequest#

class fos.DeleteSampleTemporalTagsRequest()#

Request for deleting persisted temporal tags by ID for one sample.

Properties#

Name

Type

Description

datasetId

string

ids

readonly

sampleId

string

Detection3DAnnotationLabel#

class fos.Detection3DAnnotationLabel()#

Properties#

Name

Type

Description

data

plugins.fiftyone.state.DetectionLabel

isNew

boolean

overlay

plugins.fiftyone.state.GenericOverlay < plugins.fiftyone.state.DetectionLabel >

path

string

type

'Detection'

DetectionAnnotationLabel#

class fos.DetectionAnnotationLabel()#

Properties#

Name

Type

Description

data

plugins.fiftyone.state.DetectionLabel

isNew

boolean

overlay

plugins.fiftyone.state.DetectionOverlay

path

string

type

'Detection'

EmptyAnnotationsEntry#

class fos.EmptyAnnotationsEntry()#

Properties#

Name

Type

Description

kind

plugins.fiftyone.state.EMPTY_ANNOTATIONS

EmptyEntry#

class fos.EmptyEntry()#

Properties#

Name

Type

Description

group

string

kind

plugins.fiftyone.state.EMPTY

shown

boolean

EventIdentity#

class fos.EventIdentity()#

Stable identity of an event kind within its projection.

Properties#

Name

Type

Description

id

string

projection

string

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

( state : RecoilState < any > )

set

( state : RecoilState < any > , `` ``value : unknown )

FieldType#

class fos.FieldType()#

What a field holds, for callers matching paths against a type constraint.

Properties#

Name

Type

Description

embeddedDocType

string

frame

boolean

Frame-level fields are addressed as frames.<path>.

ftype

string

subfield

string

A list field’s element type.

GroupEntry#

class fos.GroupEntry()#

Properties#

Name

Type

Description

kind

plugins.fiftyone.state.GROUP

name

string

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

boolean

main

boolean

slice

string

threeDViewer

boolean

IActivityToast#

class fos.IActivityToast()#

Activity toast interface.

Properties#

Name

Type

Description

config

plugins.fiftyone.state.ActivityToastConfig

Current toast configuration.

open

boolean

true if the toast is open, else false.

setConfig

void

Set the toast configuration.

setIconName

void

Set the icon for the toast.

setMessage

void

Set the message for the toast.

setTimeout

void

Set the timeout for the toast.

setVariant

void

Set the toast variant.

InputEntry#

class fos.InputEntry()#

Properties#

Name

Type

Description

kind

plugins.fiftyone.state.INPUT

type

Union< 'filter' , 'add' >

KeypointAnnotationLabel#

class fos.KeypointAnnotationLabel()#

Properties#

Name

Type

Description

data

plugins.fiftyone.state.KeypointLabel

isNew

boolean

overlay

plugins.fiftyone.state.KeypointOverlay < plugins.fiftyone.state.KeypointLabel >

path

string

type

'Keypoint'

Label#

class fos.Label()#

Properties#

Name

Type

Description

isNew

boolean

path

string

LabelEntry#

class fos.LabelEntry()#

Properties#

Name

Type

Description

frame

number

Occurrence frame for video frame labels; absent for sample-level labels.

id

string

kind

plugins.fiftyone.state.LABEL

path

string

ListDatasetTemporalTagsRequest#

class fos.ListDatasetTemporalTagsRequest()#

Request for listing temporal tags across a dataset.

Properties#

Name

Type

Description

datasetId

string

filter

plugins.fiftyone.state.TemporalTagFilter

ListSampleTemporalTagsRequest#

class fos.ListSampleTemporalTagsRequest()#

Request for listing temporal tags for one sample.

Properties#

Name

Type

Description

datasetId

string

filter

plugins.fiftyone.state.TemporalTagFilter

sampleId

string

LoadingEntry#

class fos.LoadingEntry()#

Properties#

Name

Type

Description

id

string

kind

plugins.fiftyone.state.LOADING

LookerStore#

class fos.LookerStore()#

Properties#

Name

Type

Description

indices

Map < number , string > < number , string >

lookers

LRUCache < string , T , unknown > < string , plugins.fiftyone.state.T , unknown >

reset

( )

samples

Map < string , ModalSample > < string , plugins.fiftyone.state.ModalSample >

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

number

panY

number

sampleId

string

scale

number

NumericFilter#

class fos.NumericFilter()#

Properties#

Name

Type

Description

exclude

boolean

inf

boolean

isMatching

boolean

nan

boolean

ninf

boolean

none

boolean

range

plugins.fiftyone.state.Range

PathEntry#

class fos.PathEntry()#

Properties#

Name

Type

Description

kind

plugins.fiftyone.state.PATH

path

string

shown

boolean

PolylineAnnotationLabel#

class fos.PolylineAnnotationLabel()#

Properties#

Name

Type

Description

data

plugins.fiftyone.state.PolylineLabel

isNew

boolean

overlay

Union< plugins.fiftyone.state.PolylineOverlay , plugins.fiftyone.state.GenericOverlay >

path

string

type

'Polyline'

PrimitiveValue#

class fos.PrimitiveValue()#

Properties#

Name

Type

Description

data

plugins.fiftyone.state.Primitive

op

plugins.fiftyone.state.OpType

path

string

type

'Primitive'

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 registered TextSearchProvider searches 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

boolean

If true, operation can be attempted.

recordAttempt

( )

reset

( )

SampleTemporalTagsRequest#

class fos.SampleTemporalTagsRequest()#

Common request shape for sample-scoped tag operations.

Properties#

Name

Type

Description

datasetId

string

sampleId

string

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

string

docId

string

excluded

Array< string >

excludedAttrDb

Array< string >

Embedded DB paths of hidden attributes (payload stripping).

excludedAttrs

Array< string >

name

string

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

Object

SelectedLabelsDelta#

class fos.SelectedLabelsDelta()#

A change to the selection, expressed as labels in and label ids out.

Properties#

Name

Type

Description

add

readonly

remove

readonly

Session#

class fos.Session()#

Properties#

Name

Type

Description

canAnnotate

Object

canCreateNewField

Object

canEditCustomColors

Object

canEditLabels

Object

canEditSavedViews

Object

canEditWorkspaces

Object

canManageSchema

Object

canModifySidebarGroup

Object

canTagSamplesOrLabels

Object

colorScheme

plugins.fiftyone.state.ColorSchemeInput

fieldVisibilityStage

plugins.fiftyone.state.FieldVisibilityStage

filters

plugins.fiftyone.state.Filters

labelSelectionStyle

plugins.fiftyone.state.LabelSelectionStyle

modalFilters

plugins.fiftyone.state.Filters

modalSelector

plugins.fiftyone.state.ModalSelector

readOnly

boolean

sampleSelectionStyle

plugins.fiftyone.state.SelectionStyle

selectedLabels

Array< plugins.fiftyone.state.SelectedLabel >

selectedSamples

Map < string , SelectionType > < string , plugins.fiftyone.state.SelectionType >

sessionGroupSlice

string

sessionSpaces

plugins.fiftyone.state.SpaceNodeJSON

SortResults#

class fos.SortResults()#

Properties#

Name

Type

Description

asc

boolean

count

boolean

StringFilter#

class fos.StringFilter()#

Properties#

Name

Type

Description

exclude

boolean

isMatching

boolean

values

Array< string >

TemporalDetectionAnnotationLabel#

class fos.TemporalDetectionAnnotationLabel()#

Properties#

Name

Type

Description

data

plugins.fiftyone.state.TemporalLabel

isNew

boolean

overlay

plugins.fiftyone.state.TemporalOverlay

path

string

type

'TemporalDetection'

TemporalTag#

class fos.TemporalTag()#

Persisted temporal tag returned by the backend.

Properties#

Name

Type

Description

anchor

string

createdAt

string

createdBy

string

end

number

id

string

indexType

number

lastModifiedAt

string

lastModifiedBy

string

sampleId

string

start

number

tag

string

TemporalTagCreate#

class fos.TemporalTagCreate()#

Temporal tag payload accepted by sample-scoped create routes.

Properties#

Name

Type

Description

anchor

string

createdBy

string

end

number

indexType

number

lastModifiedBy

string

start

number

tag

string

TemporalTagFilter#

class fos.TemporalTagFilter()#

Filter for tag list/count/delete queries.

Properties#

Name

Type

Description

anchors

readonly

end

number

indexType

number

start

number

tags

readonly

TemporalTagResult#

class fos.TemporalTagResult()#

One selectable temporal-tag value and its occurrence count.

Properties#

Name

Type

Description

count

number

value

string

TemporalTagResults#

class fos.TemporalTagResults()#

Shape consumed by the string filter’s resultsAtom.

Properties#

Name

Type

Description

count

number

results

Array< plugins.fiftyone.state.TemporalTagResult >

TemporalTagUpdate#

class fos.TemporalTagUpdate()#

Mutable temporal tag fields accepted by sample-scoped update routes.

Properties#

Name

Type

Description

end

number

lastModifiedBy

string

start

number

tag

string

TemporalTagsClient#

class fos.TemporalTagsClient()#

Client for the temporal tag route surface.

Properties#

Name

Type

Description

clearSampleTemporalTags

Promise < number > < number >

clearSampleTemporalTags(request) => Promise < number >

countDatasetTemporalTags

Promise < Readonly > < Readonly < Record > >

countDatasetTemporalTags(request) => Promise < Readonly >

createSampleTemporalTags

readonly readonly Promise <  > < readonly >

createSampleTemporalTags(request) => readonly Promise < >

deleteSampleTemporalTags

Promise < number > < number >

deleteSampleTemporalTags(request) => Promise < number >

listDatasetTemporalTags

readonly readonly Promise <  > < readonly >

listDatasetTemporalTags(request) => readonly Promise < >

listSampleTemporalTags

readonly readonly Promise <  > < readonly >

listSampleTemporalTags(request) => readonly Promise < >

updateSampleTemporalTag

Promise < TemporalTag > < plugins.fiftyone.state.TemporalTag >

updateSampleTemporalTag(request) => Promise < TemporalTag >

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

string

datasetName

string

runTimestamp

string

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.method this 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 >”,”The SearchSources values 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

( cb : plugins.fiftyone.state.ExtendedSelectionResetInterface )

stage

Record < string , Record > < string , Record < string , unknown > >

The extended selection stage, { [stage class]: kwargs }.

TextSearchSuggestions#

class fos.TextSearchSuggestions()#

What the search field offers for the text typed so far.

Properties#

Name

Type

Description

emptyMessage

( props : Object )

freeText

boolean

Whether typed text that is no row can be searched.

loading

boolean

prompts

readonly

The rows to offer, in order.

TextSearchSuggestionsProps#

class fos.TextSearchSuggestionsProps()#

Properties#

Name

Type

Description

children

( suggestions : plugins.fiftyone.state.TextSearchSuggestions )

history

readonly

The field’s previous queries, most recent first.

index

plugins.fiftyone.state.TextSearchIndex

Null while no prompt-capable index exists.

open

boolean

Whether the field’s list is open.

query

string

UpdateSampleTemporalTagRequest#

class fos.UpdateSampleTemporalTagRequest()#

Request for updating one persisted temporal tag for one sample.

Properties#

Name

Type

Description

datasetId

string

sampleId

string

temporalTagId

string

update

plugins.fiftyone.state.TemporalTagUpdate

UseSampleTemporalTagsOptions#

class fos.UseSampleTemporalTagsOptions()#

Hook options for sample-scoped tag loading.

Properties#

Name

Type

Description

client

plugins.fiftyone.state.TemporalTagsClient

datasetId

string

filter

plugins.fiftyone.state.TemporalTagFilter

sampleId

string

UseSampleTemporalTagsResult#

class fos.UseSampleTemporalTagsResult()#

Hook result for sample-scoped tag loading and mutations.

Properties#

Name

Type

Description

clear

( filter : plugins.fiftyone.state.TemporalTagFilter )

create

( temporalTags : readonly )

delete

( ids : readonly )

error

string

reload

( )

status

plugins.fiftyone.state.TemporalTagsStatus

temporalTags

readonly

update

( temporalTagId : string , `` ``update : plugins.fiftyone.state.TemporalTagUpdate )

class fos.ActivityToastConfig()#

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

ReturnType <  > < ```` >

class fos.DatasetViewOption()#

DatasetViewOption#

class fos.DebouncedState()#

DebouncedState#

class fos.DimensionsType()#

DimensionsType#

Name

Type

Description

DimensionsType

ReturnType <  > < ```` >

class fos.ExtendedSelectionResetParticipant()#

ExtendedSelectionResetParticipant#

class fos.GridCustomRendererFailure()#

GridCustomRendererFailure#

Name

Type

Description

GridCustomRendererFailure.consumed

boolean

GridCustomRendererFailure.datasetName

string

GridCustomRendererFailure.errorMessage

string

GridCustomRendererFailure.failedAt

number

GridCustomRendererFailure.rendererName

string

class fos.GroupMatches()#

GroupMatches#

Group ID to the names of its slices that matched, best match first.

Name

Type

Description

GroupMatches

ReadonlyMap < string ,  > < string , readonly >

class fos.GroupSliceMediaType()#

GroupSliceMediaType#

Union of 'video', '3d', 'image', 'multimodal'

class fos.HoveredInstancesLabelsTuple()#

HoveredInstancesLabelsTuple#

Name

Type

Description

HoveredInstancesLabelsTuple

[ plugins.fiftyone.state.InstanceId , plugins.fiftyone.state.LabelMap ]

class fos.LabelMap()#

LabelMap#

======= TYPES =======

Name

Type

Description

LabelMap

Record < LabelId , LabelHoveredEventData > < plugins.fiftyone.state.LabelId , plugins.fiftyone.state.LabelHoveredEventData >

class fos.LabelSelectionStyle()#

LabelSelectionStyle#

Name

Type

Description

LabelSelectionStyle.alt

plugins.fiftyone.state.LabelSelectionStyleName

LabelSelectionStyle.default

plugins.fiftyone.state.LabelSelectionStyleName

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

string

Method.maxK

number

Method.supportsLeastSimilarity

boolean

Method.supportsPrompts

boolean

class fos.ModalNavigation()#

ModalNavigation#

Name

Type

Description

ModalNavigation.next

( offset : number )

ModalNavigation.peek

( offset : number )

ModalNavigation.previous

( offset : number )

class fos.ModalNavigationPeek()#

ModalNavigationPeek#

as loaded by the grid. Typed loosely because the paginator’s node type belongs to the relay layer.”

class fos.ModalSample()#

ModalSample#

class fos.ModalSampleData()#

ModalSampleData#

Name

Type

Description

ModalSampleData

Exclude < Exclude ,  > < Exclude <  ,  > , null >

class fos.ModalSelector()#

ModalSelector#

Name

Type

Description

ModalSelector.groupId

string

ModalSelector.hasNext

boolean

ModalSelector.hasPrevious

boolean

ModalSelector.id

string

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

[ Union< number ,  > , Union< number ,  > ]

class fos.RenderConfig3dActions()#

RenderConfig3dActions#

Mutation helpers exposed by useRenderConfig3dActions.

Name

Type

Description

RenderConfig3dActions.focusSlice

( sliceName : string )

RenderConfig3dActions.initializeFromModalSlice

( sliceName : Union< string ,  > )

RenderConfig3dActions.reconcileAvailableSlices

( )

RenderConfig3dActions.setFo3dContent

( content : Union< unknown ,  > )

RenderConfig3dActions.setMainViewerVisible

( visible : boolean )

RenderConfig3dActions.setPinned

( pinned : boolean )

RenderConfig3dActions.setVisible

( visible : boolean )

RenderConfig3dActions.toggleSlice

( sliceName : string , `` ``enabled : boolean )

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

Array< string >

Active non-FO3D 3D slices rendered alongside the scene.

RenderConfig3dState.activeFo3dSlice

Union< string , null >

Active FO3D slice currently driving the scene, if one is selected.

RenderConfig3dState.activeSampleMap

plugins.fiftyone.state.RenderConfig3dSampleMap

Resolved samples for the currently active 3D slices.

RenderConfig3dState.activeSlices

Array< string >

Slice names currently participating in 3D rendering.

RenderConfig3dState.allSampleMap

plugins.fiftyone.state.RenderConfig3dSampleMap

Resolved samples for every available 3D slice in the current modal context.

RenderConfig3dState.allSlices

Array< string >

All available 3D slice names.

RenderConfig3dState.fo3dContent

Union< unknown , null >

Parsed FO3D scene content cached for the active scene sample.

RenderConfig3dState.has3dSlice

boolean

Whether the current modal context exposes any 3D slice.

RenderConfig3dState.hasFo3dSlice

boolean

Whether any available 3D slice resolves to an FO3D asset.

RenderConfig3dState.hasMultipleSlices

boolean

Whether more than one 3D slice is available.

RenderConfig3dState.interactionSample

plugins.fiftyone.state.ModalSample

Representative sample used for 3D interaction-driven behavior.

RenderConfig3dState.interactionSlice

Union< string , null >

Slice corresponding to RenderConfig3dState.interactionSample.

RenderConfig3dState.is3dVisible

boolean

Whether the 3D viewer should currently be shown.

RenderConfig3dState.is3dVisibleSetting

boolean

Persisted user preference for showing the 3D viewer.

RenderConfig3dState.isPinned

boolean

Whether the 3D selection is pinned to a specific slice.

RenderConfig3dState.non3dSlices

Array< string >

All available non-3D slice names.

RenderConfig3dState.pinnedSlice

Union< string , null >

Slice name currently pinned for 3D rendering, if any.

RenderConfig3dState.realFo3dSlices

Array< string >

Available 3D slices whose media resolves to FO3D files.

RenderConfig3dState.sceneSample

plugins.fiftyone.state.ModalSample

Sample currently used to render the visible 3D scene.

class fos.ResponseFrom()#

ResponseFrom#

class fos.RetryConfig()#

RetryConfig#

Retry configuration.

Name

Type

Description

RetryConfig.id

string

Unique ID to identify this retryable instance.

RetryConfig.maxAttempts

number

Maximum number of attempts.

class fos.Sample()#

Sample#

Name

Type

Description

Sample

Exclude < PaginateSamplesNode ,  > < plugins.fiftyone.state.PaginateSamplesNode , null >

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

plugins.fiftyone.state.SelectionIconStyle

SelectionStyle.default

plugins.fiftyone.state.SelectionIconStyle

class fos.SelectionType()#

SelectionType#

Union of 'default', 'alt'

class fos.SidebarEntry()#

SidebarEntry#

Union of EmptyEntry, EmptyAnnotationsEntry, GroupEntry, InputEntry, LabelEntry, LoadingEntry, PathEntry

class fos.TemporalTagsStatus()#

TemporalTagsStatus#

Load state for tag React hooks.

Union of 'idle', 'loading', 'ready', 'error'

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

'annotate'

BeforeScreenshotContext#

Name

Type

Description

Context < Set >

Context < Set > < Set <  > >

DEFAULT_ALPHA#

Name

Type

Description

0.7

DEFAULT_LABEL_SELECTION_STYLE#

Name

Type

Description

LabelSelectionStyle

plugins.fiftyone.state.LabelSelectionStyle

DEFAULT_SELECTED#

Name

Type

Description

DatasetViewOption

plugins.fiftyone.state.DatasetViewOption

DEFAULT_SELECTION_STYLE#

Name

Type

Description

SelectionStyle

plugins.fiftyone.state.SelectionStyle

DEFAULT_SHOWN_LABEL_ATTRIBUTES#

EVENTS_FIELD#

The virtual sidebar field; values retain projection-scoped event identity.

Name

Type

Description

'_events'

EXPLORE#

Name

Type

Description

'explore'

GRID_SPACES_DEFAULT#

Name

Type

Description

active_child

string

children

Array< Object >

component_id

string

id

string

GROUP_BY_VIEW_STAGE#

Name

Type

Description

'fiftyone.core.stages.GroupBy'

INDEFINITE_TOAST_TIMEOUT#

Timeout value which will cause the activity toast to remain open indefinitely.

Name

Type

Description

-1

LABEL_TAGS_FIELD#

Name

Type

Description

'_label_tags'

LIMIT_VIEW_STAGE#

Name

Type

Description

'fiftyone.core.stages.Limit'

LOADING#

Sentinel returned by useActiveModalSampleValue when no real value is available yet. Returned in two cases:

  1. The active modal sidebar sample is still loading.

  2. 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_LABEL_TAGS#

Name

Type

Description

embeddedDocType

Array< string >

ftype

string

path

string

MATCH_VIEW_STAGE#

Name

Type

Description

'fiftyone.core.stages.Match'

OTHER_GROUP#

Name

Type

Description

'other'

RESERVED_GROUPS#

Name

Type

Description

Set < string >

Set < string > < string >

RelayEnvironmentKey#

Name

Type

Description

EnvironmentKey

EnvironmentKey

SESSION_DEFAULT#

Name

Type

Description

Session

plugins.fiftyone.state.Session

SKIP_VIEW_STAGE#

Name

Type

Description

'fiftyone.core.stages.Skip'

SORT_VIEW_STAGE#

Name

Type

Description

'fiftyone.core.stages.SortBy'

TAGS_FIELD#

Name

Type

Description

'tags'

TAKE_VIEW_STAGE#

Name

Type

Description

'fiftyone.core.stages.Take'

TEMPORAL_TAGS_FIELD#

Name

Type

Description

'_temporal_tags'

TEMPORAL_TAG_INDEX_TYPE#

Stable REST values shared with the time-track contract.

Name

Type

Description

DURATION_NS

2

SEQUENCE

1

TIMESTAMP_NS

3

appConfigDefault#

Name

Type

Description

any

currentModalUniqueIdJotaiAtom#

Current modal unique id. It’s a concatenation of the group id and the sample id.

datasetQueryContext#

Name

Type

Description

Context < savedViewsFragment$key >

Context < savedViewsFragment$key > < plugins.fiftyone.state.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

void

publish(matches) => void

hoveredInstances#

Set of hovered instances

jotaiStore#

Name

Type

Description

ReturnType < >

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

plugins.fiftyone.state.ModalViewportState

Reads the current modal viewport state.

modalMode#

Name

Type

Description

WritableAtom < ModalMode , , void >

WritableAtom < ModalMode ,  , void > < plugins.fiftyone.state.ModalMode , [ SetStateActionWithReset ] , void >

modalNavigation#

Name

Type

Description

get

( )

set

( value : plugins.fiftyone.state.ModalNavigation )

numConcurrentRenderingLabels#

Number of concurrently rendering labels.

removeAllHoveredInstances#

Remove all hovered instances

Name

Type

Description

WritableAtom < unknown , , void >

WritableAtom < unknown ,  , void > < unknown , [ ] , void >

screenshotCallbacks#

Name

Type

Description

Set < >

Set <  > < ( ) >

stores#

Name

Type

Description

Set < >

Set <  > < Object >

updateHoveredInstances#

add a label instance to the hovered instances set

Name

Type

Description

WritableAtom < unknown , , void >

WritableAtom < unknown ,  , void > < unknown , [ newValue ] , void >