@fiftyone/state#
State#
activeFieldsConfig#
Name |
Type |
Description |
|---|---|---|
activeFieldsConfig.exclude |
|
|
activeFieldsConfig.paths |
|
const activeFieldsConfig = useRecoilValue(fos.activeFieldsConfig);
activeIndex#
Name |
Type |
Description |
|---|---|---|
activeIndex |
|
const activeIndex = useRecoilValue(fos.activeIndex);
activeModalSample#
Name |
Type |
Description |
|---|---|---|
activeModalSample |
|
const activeModalSample = useRecoilValue(fos.activeModalSample);
activePlot#
Name |
Type |
Description |
|---|---|---|
activePlot |
|
const [activePlot, setActivePlot] = useRecoilState(fos.activePlot);
activeSliceDescriptorLabel#
Name |
Type |
Description |
|---|---|---|
activeSliceDescriptorLabel |
|
const activeSliceDescriptorLabel = useRecoilValue(fos.activeSliceDescriptorLabel);
allFieldsCheckedState#
Name |
Type |
Description |
|---|---|---|
allFieldsCheckedState |
|
const [allFieldsCheckedState, setAllFieldsCheckedState] = useRecoilState(fos.allFieldsCheckedState);
anyTagging#
Name |
Type |
Description |
|---|---|---|
anyTagging |
|
const [anyTagging, setAnyTagging] = useRecoilState(fos.anyTagging);
attributeVisibility#
Name |
Type |
Description |
|---|---|---|
attributeVisibility |
|
const [attributeVisibility, setAttributeVisibility] = useRecoilState(fos.attributeVisibility);
canAnnotate#
Name |
Type |
Description |
|---|---|---|
canAnnotate.enabled |
|
|
canAnnotate.message |
|
const [canAnnotate, setCanAnnotate] = useRecoilState(fos.canAnnotate);
canCreateNewField#
Name |
Type |
Description |
|---|---|---|
canCreateNewField.enabled |
|
|
canCreateNewField.message |
|
const [canCreateNewField, setCanCreateNewField] = useRecoilState(fos.canCreateNewField);
canEditCustomColors#
Name |
Type |
Description |
|---|---|---|
canEditCustomColors.enabled |
|
|
canEditCustomColors.message |
|
const [canEditCustomColors, setCanEditCustomColors] = useRecoilState(fos.canEditCustomColors);
canEditLabels#
Name |
Type |
Description |
|---|---|---|
canEditLabels.enabled |
|
|
canEditLabels.message |
|
const [canEditLabels, setCanEditLabels] = useRecoilState(fos.canEditLabels);
canEditSavedViews#
Name |
Type |
Description |
|---|---|---|
canEditSavedViews.enabled |
|
|
canEditSavedViews.message |
|
const [canEditSavedViews, setCanEditSavedViews] = useRecoilState(fos.canEditSavedViews);
canEditWorkspaces#
Name |
Type |
Description |
|---|---|---|
canEditWorkspaces.enabled |
|
|
canEditWorkspaces.message |
|
const [canEditWorkspaces, setCanEditWorkspaces] = useRecoilState(fos.canEditWorkspaces);
canManageSchema#
Name |
Type |
Description |
|---|---|---|
canManageSchema.enabled |
|
|
canManageSchema.message |
|
const [canManageSchema, setCanManageSchema] = useRecoilState(fos.canManageSchema);
collapsedPaths#
Name |
Type |
Description |
|---|---|---|
collapsedPaths |
|
const collapsedPaths = useRecoilValue(fos.collapsedPaths);
colorMap#
const colorMap = useRecoilValue(fos.colorMap);
colorMapRGB#
const colorMapRGB = useRecoilValue(fos.colorMapRGB);
colorScheme#
Name |
Type |
Description |
|---|---|---|
colorScheme |
|
const [colorScheme, setColorScheme] = useRecoilState(fos.colorScheme);
colorSeed#
Name |
Type |
Description |
|---|---|---|
colorSeed |
|
const [colorSeed, setColorSeed] = useRecoilState(fos.colorSeed);
coloring#
Name |
Type |
Description |
|---|---|---|
coloring |
|
const [coloring, setColoring] = useRecoilState(fos.coloring);
config#
Name |
Type |
Description |
|---|---|---|
config.colorBy |
|
|
config.colorPool |
|
|
config.colorscale |
|
|
config.defaultQueryPerformance |
|
|
config.disableFrameFiltering |
|
|
config.enableQueryPerformance |
|
|
config.gridZoom |
|
|
config.loopVideos |
|
|
config.maxQueryTime |
|
|
config.mediaFallback |
|
|
config.multicolorKeypoints |
|
|
config.notebookHeight |
|
|
config.plugins |
|
|
config.showConfidence |
|
|
config.showIndex |
|
|
config.showLabel |
|
|
config.showSkeletons |
|
|
config.showTooltip |
|
|
config.theme |
|
|
config.timezone |
|
|
config.useFrameNumber |
|
const config = useRecoilValue(fos.config);
configData#
Name |
Type |
Description |
|---|---|---|
configData |
|
const [configData, setConfigData] = useRecoilState(fos.configData);
currentGroupSliceNames#
Slice names that actually exist for the currently opened modal group.
This differs from groupSlices, which describes dataset-level slice
definitions. Sparse groups may omit some slices entirely, and annotate-mode
selectors should only offer slices that are present for the active group.
const currentGroupSliceNames = useRecoilValue(fos.currentGroupSliceNames);
currentSampleId#
Name |
Type |
Description |
|---|---|---|
currentSampleId |
|
const currentSampleId = useRecoilValue(fos.currentSampleId);
currentViewSlug#
Name |
Type |
Description |
|---|---|---|
currentViewSlug |
|
const currentViewSlug = useRecoilValue(fos.currentViewSlug);
dataset#
Name |
Type |
Description |
|---|---|---|
dataset |
|
const [dataset, setDataset] = useRecoilState(fos.dataset);
datasetAppConfig#
Name |
Type |
Description |
|---|---|---|
datasetAppConfig |
|
const [datasetAppConfig, setDatasetAppConfig] = useRecoilState(fos.datasetAppConfig);
datasetColorScheme#
Name |
Type |
Description |
|---|---|---|
datasetColorScheme |
|
const [datasetColorScheme, setDatasetColorScheme] = useRecoilState(fos.datasetColorScheme);
datasetFrameCount#
Name |
Type |
Description |
|---|---|---|
datasetFrameCount |
|
const datasetFrameCount = useRecoilValue(fos.datasetFrameCount);
datasetId#
Name |
Type |
Description |
|---|---|---|
datasetId |
|
const [datasetId, setDatasetId] = useRecoilState(fos.datasetId);
datasetName#
Name |
Type |
Description |
|---|---|---|
datasetName |
|
const [datasetName, setDatasetName] = useRecoilState(fos.datasetName);
datasetSampleCount#
Name |
Type |
Description |
|---|---|---|
datasetSampleCount |
|
const datasetSampleCount = useRecoilValue(fos.datasetSampleCount);
defaultActiveFields#
const defaultActiveFields = useRecoilValue(fos.defaultActiveFields);
defaultGroupSlice#
Name |
Type |
Description |
|---|---|---|
defaultGroupSlice |
|
const [defaultGroupSlice, setDefaultGroupSlice] = useRecoilState(fos.defaultGroupSlice);
defaultQueryPerformanceConfig#
Name |
Type |
Description |
|---|---|---|
defaultQueryPerformanceConfig |
|
const defaultQueryPerformanceConfig = useRecoilValue(fos.defaultQueryPerformanceConfig);
defaultTargets#
Name |
Type |
Description |
|---|---|---|
defaultTargets |
|
const defaultTargets = useRecoilValue(fos.defaultTargets);
disableFrameFiltering#
Name |
Type |
Description |
|---|---|---|
disableFrameFiltering |
|
const disableFrameFiltering = useRecoilValue(fos.disableFrameFiltering);
disabledCheckboxPaths#
Returns a set of paths that have their checkbox disabled in the sidebar
Name |
Type |
Description |
|---|---|---|
disabledCheckboxPaths |
|
const disabledCheckboxPaths = useRecoilValue(fos.disabledCheckboxPaths);
disabledFilterPaths#
Returns a set of paths that have their filter dropdown disabled in the sidebar
Name |
Type |
Description |
|---|---|---|
disabledFilterPaths |
|
const disabledFilterPaths = useRecoilValue(fos.disabledFilterPaths);
disabledFrameFilterPaths#
Name |
Type |
Description |
|---|---|---|
disabledFrameFilterPaths |
|
const disabledFrameFilterPaths = useRecoilValue(fos.disabledFrameFilterPaths);
distributionPaths#
const distributionPaths = useRecoilValue(fos.distributionPaths);
dynamicGroupCurrentElementIndex#
Name |
Type |
Description |
|---|---|---|
dynamicGroupCurrentElementIndex |
|
const [dynamicGroupCurrentElementIndex, setDynamicGroupCurrentElementIndex] = useRecoilState(fos.dynamicGroupCurrentElementIndex);
dynamicGroupFields#
const dynamicGroupFields = useRecoilValue(fos.dynamicGroupFields);
dynamicGroupIndex#
Name |
Type |
Description |
|---|---|---|
dynamicGroupIndex |
|
const [dynamicGroupIndex, setDynamicGroupIndex] = useRecoilState(fos.dynamicGroupIndex);
dynamicGroupParameters#
Name |
Type |
Description |
|---|---|---|
dynamicGroupParameters |
|
const [dynamicGroupParameters, setDynamicGroupParameters] = useRecoilState(fos.dynamicGroupParameters);
dynamicGroupsTargetFrameRate#
Name |
Type |
Description |
|---|---|---|
dynamicGroupsTargetFrameRate |
|
const dynamicGroupsTargetFrameRate = useRecoilValue(fos.dynamicGroupsTargetFrameRate);
editingFieldAtom#
Name |
Type |
Description |
|---|---|---|
editingFieldAtom |
|
const [editingFieldAtom, setEditingFieldAtom] = useRecoilState(fos.editingFieldAtom);
elementNames#
Name |
Type |
Description |
|---|---|---|
elementNames.plural |
|
|
elementNames.singular |
|
const elementNames = useRecoilValue(fos.elementNames);
eligibleFieldsToCustomizeColor#
const eligibleFieldsToCustomizeColor = useRecoilValue(fos.eligibleFieldsToCustomizeColor);
enableQueryPerformanceConfig#
Name |
Type |
Description |
|---|---|---|
enableQueryPerformanceConfig |
|
const enableQueryPerformanceConfig = useRecoilValue(fos.enableQueryPerformanceConfig);
escapeKeyHandlerIdsAtom#
Name |
Type |
Description |
|---|---|---|
escapeKeyHandlerIdsAtom |
|
const [escapeKeyHandlerIdsAtom, setEscapeKeyHandlerIdsAtom] = useRecoilState(fos.escapeKeyHandlerIdsAtom);
excludedPathsStrippedState#
const excludedPathsStrippedState = useRecoilValue(fos.excludedPathsStrippedState);
expandedPathsState#
const [expandedPathsState, setExpandedPathsState] = useRecoilState(fos.expandedPathsState);
extendedSelection#
Name |
Type |
Description |
|---|---|---|
extendedSelection.scope |
|
|
extendedSelection.selection |
|
|
extendedSelection.spatialSelection |
|
const [extendedSelection, setExtendedSelection] = useRecoilState(fos.extendedSelection);
extendedSelectionOverrideStage#
Name |
Type |
Description |
|---|---|---|
extendedSelectionOverrideStage |
|
const [extendedSelectionOverrideStage, setExtendedSelectionOverrideStage] = useRecoilState(fos.extendedSelectionOverrideStage);
extendedStages#
Name |
Type |
Description |
|---|---|---|
extendedStages |
|
const extendedStages = useRecoilValue(fos.extendedStages);
extendedStagesNoSort#
Name |
Type |
Description |
|---|---|---|
extendedStagesNoSort |
|
const extendedStagesNoSort = useRecoilValue(fos.extendedStagesNoSort);
extendedStagesUnsorted#
Name |
Type |
Description |
|---|---|---|
extendedStagesUnsorted |
|
const extendedStagesUnsorted = useRecoilValue(fos.extendedStagesUnsorted);
fieldSchemaState#
Name |
Type |
Description |
|---|---|---|
fieldSchemaState |
|
const [fieldSchemaState, setFieldSchemaState] = useRecoilState(fos.fieldSchemaState);
fieldVisibilityStage#
Name |
Type |
Description |
|---|---|---|
fieldVisibilityStage |
|
const [fieldVisibilityStage, setFieldVisibilityStage] = useRecoilState(fos.fieldVisibilityStage);
filters#
Name |
Type |
Description |
|---|---|---|
filters |
|
const [filters, setFilters] = useRecoilState(fos.filters);
flatFrameFields#
const flatFrameFields = useRecoilValue(fos.flatFrameFields);
flatSampleFields#
const flatSampleFields = useRecoilValue(fos.flatSampleFields);
frameFields#
const frameFields = useRecoilValue(fos.frameFields);
frameFieldsList#
const frameFieldsList = useRecoilValue(fos.frameFieldsList);
fullSchema#
Name |
Type |
Description |
|---|---|---|
fullSchema |
|
const fullSchema = useRecoilValue(fos.fullSchema);
fullscreen#
Name |
Type |
Description |
|---|---|---|
fullscreen |
|
const [fullscreen, setFullscreen] = useRecoilState(fos.fullscreen);
fullyDisabledPaths#
Returns a set of paths that should have both their checkbox and filter dropdown disabled in the sidebar
Name |
Type |
Description |
|---|---|---|
fullyDisabledPaths |
|
const fullyDisabledPaths = useRecoilValue(fos.fullyDisabledPaths);
generatedDatasetName#
Extracts the generated dataset name from the view stages.
Generated views (patches, clips, frames) store their dataset info in the
_state kwarg of the view stage that created them (e.g., ToPatches, ToClips).
Name |
Type |
Description |
|---|---|---|
generatedDatasetName |
|
const generatedDatasetName = useRecoilValue(fos.generatedDatasetName);
getSkeleton#
const getSkeleton = useRecoilValue(fos.getSkeleton);
getTarget#
const getTarget = useRecoilValue(fos.getTarget);
gridSortBy#
Name |
Type |
Description |
|---|---|---|
gridSortBy.descending |
|
|
gridSortBy.field |
|
const [gridSortBy, setGridSortBy] = useRecoilState(fos.gridSortBy);
gridSortFields#
const gridSortFields = useRecoilValue(fos.gridSortFields);
groupByFieldValue#
const groupByFieldValue = useRecoilValue(fos.groupByFieldValue);
groupField#
Name |
Type |
Description |
|---|---|---|
groupField |
|
const groupField = useRecoilValue(fos.groupField);
groupId#
Name |
Type |
Description |
|---|---|---|
groupId |
|
const groupId = useRecoilValue(fos.groupId);
groupMediaIsCarouselVisible#
Derived selector that determines if the carousel should actually be visible. Combines user setting with contextual rules (e.g., hidden for ImaVid in nested groups).
Name |
Type |
Description |
|---|---|---|
groupMediaIsCarouselVisible |
|
const groupMediaIsCarouselVisible = useRecoilValue(fos.groupMediaIsCarouselVisible);
groupMediaIsCarouselVisibleSetting#
User setting controlling whether the carousel (filmstrip of group slices) is visible in the modal.
Name |
Type |
Description |
|---|---|---|
groupMediaIsCarouselVisibleSetting |
|
const [groupMediaIsCarouselVisibleSetting, setGroupMediaIsCarouselVisibleSetting] = useRecoilState(fos.groupMediaIsCarouselVisibleSetting);
groupMediaIsMain2DViewerVisible#
Derived selector that determines if the main viewer should actually be visible. Combines user setting with contextual rules (shown when no 3D slices or multiple media types exist).
Name |
Type |
Description |
|---|---|---|
groupMediaIsMain2DViewerVisible |
|
const groupMediaIsMain2DViewerVisible = useRecoilValue(fos.groupMediaIsMain2DViewerVisible);
groupMediaIsMain2DViewerVisibleSetting#
User setting controlling whether the main 2D viewer is visible in the modal for grouped datasets. Persisted to session storage.
Name |
Type |
Description |
|---|---|---|
groupMediaIsMain2DViewerVisibleSetting |
|
const [groupMediaIsMain2DViewerVisibleSetting, setGroupMediaIsMain2DViewerVisibleSetting] = useRecoilState(fos.groupMediaIsMain2DViewerVisibleSetting);
groupMediaTypes#
const groupMediaTypes = useRecoilValue(fos.groupMediaTypes);
groupMediaTypesMap#
Mapping of slice names to their media types for grouped datasets. E.g., { “left”: “image”, “right”: “image”, “lidar”: “point_cloud” }
const groupMediaTypesMap = useRecoilValue(fos.groupMediaTypesMap);
groupMediaTypesSet#
Name |
Type |
Description |
|---|---|---|
groupMediaTypesSet |
|
const groupMediaTypesSet = useRecoilValue(fos.groupMediaTypesSet);
groupSampleAtMainSlice#
Same as modalSample but always pinned to the dataset’s main
groupSlice for both the active slice and the requested slices. Used by
groupByFieldValue so the dynamic group value is always read from the
main slice’s sample regardless of which slice the modal is currently
displaying. Has its own Relay cache key so it can resolve independently.
Name |
Type |
Description |
|---|---|---|
groupSampleAtMainSlice |
|
const [groupSampleAtMainSlice, setGroupSampleAtMainSlice] = useRecoilState(fos.groupSampleAtMainSlice);
groupSlice#
Name |
Type |
Description |
|---|---|---|
groupSlice |
|
const [groupSlice, setGroupSlice] = useRecoilState(fos.groupSlice);
groupSlices#
const groupSlices = useRecoilValue(fos.groupSlices);
hasGroupSlices#
Name |
Type |
Description |
|---|---|---|
hasGroupSlices |
|
const hasGroupSlices = useRecoilValue(fos.hasGroupSlices);
hasSelectedLabels#
Name |
Type |
Description |
|---|---|---|
hasSelectedLabels |
|
const hasSelectedLabels = useRecoilValue(fos.hasSelectedLabels);
hasSelectedSamples#
Name |
Type |
Description |
|---|---|---|
hasSelectedSamples |
|
const hasSelectedSamples = useRecoilValue(fos.hasSelectedSamples);
hideNoneValuedFields#
Name |
Type |
Description |
|---|---|---|
hideNoneValuedFields |
|
const [hideNoneValuedFields, setHideNoneValuedFields] = useRecoilState(fos.hideNoneValuedFields);
hoveredSample#
Name |
Type |
Description |
|---|---|---|
hoveredSample |
|
const [hoveredSample, setHoveredSample] = useRecoilState(fos.hoveredSample);
includeNestedFieldsState#
Name |
Type |
Description |
|---|---|---|
includeNestedFieldsState |
|
const [includeNestedFieldsState, setIncludeNestedFieldsState] = useRecoilState(fos.includeNestedFieldsState);
indexInfo#
Name |
Type |
Description |
|---|---|---|
indexInfo |
|
const [indexInfo, setIndexInfo] = useRecoilState(fos.indexInfo);
is3DDataset#
Name |
Type |
Description |
|---|---|---|
is3DDataset |
|
const is3DDataset = useRecoilValue(fos.is3DDataset);
isClipsView#
Name |
Type |
Description |
|---|---|---|
isClipsView |
|
const isClipsView = useRecoilValue(fos.isClipsView);
isDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isDynamicGroup |
|
const isDynamicGroup = useRecoilValue(fos.isDynamicGroup);
isFieldVisibilityActive#
Name |
Type |
Description |
|---|---|---|
isFieldVisibilityActive |
|
const isFieldVisibilityActive = useRecoilValue(fos.isFieldVisibilityActive);
isFramesView#
Name |
Type |
Description |
|---|---|---|
isFramesView |
|
const isFramesView = useRecoilValue(fos.isFramesView);
isGeneratedView#
Name |
Type |
Description |
|---|---|---|
isGeneratedView |
|
const isGeneratedView = useRecoilValue(fos.isGeneratedView);
isGroup#
Name |
Type |
Description |
|---|---|---|
isGroup |
|
const isGroup = useRecoilValue(fos.isGroup);
isInMultiPanelViewAtom#
Name |
Type |
Description |
|---|---|---|
isInMultiPanelViewAtom |
|
const [isInMultiPanelViewAtom, setIsInMultiPanelViewAtom] = useRecoilState(fos.isInMultiPanelViewAtom);
isLargeVideo#
Name |
Type |
Description |
|---|---|---|
isLargeVideo |
|
const isLargeVideo = useRecoilValue(fos.isLargeVideo);
isModalActive#
Name |
Type |
Description |
|---|---|---|
isModalActive |
|
const isModalActive = useRecoilValue(fos.isModalActive);
isNestedDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isNestedDynamicGroup |
|
const isNestedDynamicGroup = useRecoilValue(fos.isNestedDynamicGroup);
isNonNestedDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isNonNestedDynamicGroup |
|
const isNonNestedDynamicGroup = useRecoilValue(fos.isNonNestedDynamicGroup);
isNotebook#
Name |
Type |
Description |
|---|---|---|
isNotebook |
|
const isNotebook = useRecoilValue(fos.isNotebook);
isOrderedDynamicGroup#
Name |
Type |
Description |
|---|---|---|
isOrderedDynamicGroup |
|
const isOrderedDynamicGroup = useRecoilValue(fos.isOrderedDynamicGroup);
isPatchesView#
Name |
Type |
Description |
|---|---|---|
isPatchesView |
|
const isPatchesView = useRecoilValue(fos.isPatchesView);
isQueryPerformantView#
Name |
Type |
Description |
|---|---|---|
isQueryPerformantView |
|
const isQueryPerformantView = useRecoilValue(fos.isQueryPerformantView);
isRootView#
Name |
Type |
Description |
|---|---|---|
isRootView |
|
const isRootView = useRecoilValue(fos.isRootView);
isTooltipLocked#
Name |
Type |
Description |
|---|---|---|
isTooltipLocked |
|
const [isTooltipLocked, setIsTooltipLocked] = useRecoilState(fos.isTooltipLocked);
isVideoDataset#
Name |
Type |
Description |
|---|---|---|
isVideoDataset |
|
const isVideoDataset = useRecoilValue(fos.isVideoDataset);
labelPathsSet#
Name |
Type |
Description |
|---|---|---|
labelPathsSet |
|
const labelPathsSet = useRecoilValue(fos.labelPathsSet);
labelPathsSetExpanded#
Name |
Type |
Description |
|---|---|---|
labelPathsSetExpanded |
|
const labelPathsSetExpanded = useRecoilValue(fos.labelPathsSetExpanded);
labelSelectionStyle#
Name |
Type |
Description |
|---|---|---|
labelSelectionStyle |
|
const [labelSelectionStyle, setLabelSelectionStyle] = useRecoilState(fos.labelSelectionStyle);
lastLoadedDatasetNameState#
Name |
Type |
Description |
|---|---|---|
lastLoadedDatasetNameState |
|
const [lastLoadedDatasetNameState, setLastLoadedDatasetNameState] = useRecoilState(fos.lastLoadedDatasetNameState);
loading#
Name |
Type |
Description |
|---|---|---|
loading |
|
const [loading, setLoading] = useRecoilState(fos.loading);
lookerPanels#
Name |
Type |
Description |
|---|---|---|
lookerPanels.help |
|
|
lookerPanels.json |
|
const [lookerPanels, setLookerPanels] = useRecoilState(fos.lookerPanels);
mediaFields#
const [mediaFields, setMediaFields] = useRecoilState(fos.mediaFields);
mediaType#
Name |
Type |
Description |
|---|---|---|
mediaType |
|
const [mediaType, setMediaType] = useRecoilState(fos.mediaType);
mediaTypeSelector#
Name |
Type |
Description |
|---|---|---|
mediaTypeSelector |
|
const mediaTypeSelector = useRecoilValue(fos.mediaTypeSelector);
modal#
Name |
Type |
Description |
|---|---|---|
modal |
|
const [modal, setModal] = useRecoilState(fos.modal);
modalAttributeVisibility#
Name |
Type |
Description |
|---|---|---|
modalAttributeVisibility |
|
const [modalAttributeVisibility, setModalAttributeVisibility] = useRecoilState(fos.modalAttributeVisibility);
modalFilters#
Name |
Type |
Description |
|---|---|---|
modalFilters |
|
const [modalFilters, setModalFilters] = useRecoilState(fos.modalFilters);
modalGroupSlice#
Name |
Type |
Description |
|---|---|---|
modalGroupSlice |
|
const [modalGroupSlice, setModalGroupSlice] = useRecoilState(fos.modalGroupSlice);
modalLooker#
Name |
Type |
Description |
|---|---|---|
modalLooker |
|
const [modalLooker, setModalLooker] = useRecoilState(fos.modalLooker);
modalSample#
Name |
Type |
Description |
|---|---|---|
modalSample |
|
const [modalSample, setModalSample] = useRecoilState(fos.modalSample);
modalSampleId#
Name |
Type |
Description |
|---|---|---|
modalSampleId |
|
const modalSampleId = useRecoilValue(fos.modalSampleId);
modalSelector#
Name |
Type |
Description |
|---|---|---|
modalSelector |
|
const [modalSelector, setModalSelector] = useRecoilState(fos.modalSelector);
modalTopBarVisible#
Name |
Type |
Description |
|---|---|---|
modalTopBarVisible |
|
const [modalTopBarVisible, setModalTopBarVisible] = useRecoilState(fos.modalTopBarVisible);
non3dSamples#
const non3dSamples = useRecoilValue(fos.non3dSamples);
noneValuedPaths#
Name |
Type |
Description |
|---|---|---|
noneValuedPaths |
|
const [noneValuedPaths, setNoneValuedPaths] = useRecoilState(fos.noneValuedPaths);
nullableModalSampleId#
Name |
Type |
Description |
|---|---|---|
nullableModalSampleId |
|
const nullableModalSampleId = useRecoilValue(fos.nullableModalSampleId);
only3d#
Name |
Type |
Description |
|---|---|---|
only3d |
|
const only3d = useRecoilValue(fos.only3d);
parentMediaTypeSelector#
Name |
Type |
Description |
|---|---|---|
parentMediaTypeSelector |
|
const parentMediaTypeSelector = useRecoilValue(fos.parentMediaTypeSelector);
patching#
Name |
Type |
Description |
|---|---|---|
patching |
|
const [patching, setPatching] = useRecoilState(fos.patching);
queryPerformance#
Name |
Type |
Description |
|---|---|---|
queryPerformance |
|
const [queryPerformance, setQueryPerformance] = useRecoilState(fos.queryPerformance);
queryPerformanceMaxSearch#
Name |
Type |
Description |
|---|---|---|
queryPerformanceMaxSearch |
|
const [queryPerformanceMaxSearch, setQueryPerformanceMaxSearch] = useRecoilState(fos.queryPerformanceMaxSearch);
queryPerformanceSetting#
Name |
Type |
Description |
|---|---|---|
queryPerformanceSetting |
|
const [queryPerformanceSetting, setQueryPerformanceSetting] = useRecoilState(fos.queryPerformanceSetting);
readOnly#
Name |
Type |
Description |
|---|---|---|
readOnly |
|
const [readOnly, setReadOnly] = useRecoilState(fos.readOnly);
refreshGroupQuery#
Name |
Type |
Description |
|---|---|---|
refreshGroupQuery |
|
const [refreshGroupQuery, setRefreshGroupQuery] = useRecoilState(fos.refreshGroupQuery);
refresher#
Name |
Type |
Description |
|---|---|---|
refresher |
|
const [refresher, setRefresher] = useRecoilState(fos.refresher);
rootElementName#
Name |
Type |
Description |
|---|---|---|
rootElementName |
|
const rootElementName = useRecoilValue(fos.rootElementName);
rootElementNamePlural#
Name |
Type |
Description |
|---|---|---|
rootElementNamePlural |
|
const rootElementNamePlural = useRecoilValue(fos.rootElementNamePlural);
sampleFields#
const sampleFields = useRecoilValue(fos.sampleFields);
sampleSelectionStyle#
Name |
Type |
Description |
|---|---|---|
sampleSelectionStyle |
|
const [sampleSelectionStyle, setSampleSelectionStyle] = useRecoilState(fos.sampleSelectionStyle);
savedLookerOptions#
const [savedLookerOptions, setSavedLookerOptions] = useRecoilState(fos.savedLookerOptions);
savingFilters#
Name |
Type |
Description |
|---|---|---|
savingFilters |
|
const [savingFilters, setSavingFilters] = useRecoilState(fos.savingFilters);
schemaSearchResultList#
const [schemaSearchResultList, setSchemaSearchResultList] = useRecoilState(fos.schemaSearchResultList);
schemaSearchResults#
const [schemaSearchResults, setSchemaSearchResults] = useRecoilState(fos.schemaSearchResults);
schemaSearchTerm#
Name |
Type |
Description |
|---|---|---|
schemaSearchTerm |
|
const [schemaSearchTerm, setSchemaSearchTerm] = useRecoilState(fos.schemaSearchTerm);
schemaSelectedSettingsTab#
Name |
Type |
Description |
|---|---|---|
schemaSelectedSettingsTab |
|
const [schemaSelectedSettingsTab, setSchemaSelectedSettingsTab] = useRecoilState(fos.schemaSelectedSettingsTab);
searchMetaFilterState#
const [searchMetaFilterState, setSearchMetaFilterState] = useRecoilState(fos.searchMetaFilterState);
selectedLabelIds#
Name |
Type |
Description |
|---|---|---|
selectedLabelIds |
|
const selectedLabelIds = useRecoilValue(fos.selectedLabelIds);
selectedLabelMap#
Name |
Type |
Description |
|---|---|---|
selectedLabelMap |
|
const [selectedLabelMap, setSelectedLabelMap] = useRecoilState(fos.selectedLabelMap);
selectedLabelTypes#
Name |
Type |
Description |
|---|---|---|
selectedLabelTypes |
|
const selectedLabelTypes = useRecoilValue(fos.selectedLabelTypes);
selectedLabels#
const [selectedLabels, setSelectedLabels] = useRecoilState(fos.selectedLabels);
selectedPatchSamples#
Name |
Type |
Description |
|---|---|---|
selectedPatchSamples |
|
const selectedPatchSamples = useRecoilValue(fos.selectedPatchSamples);
selectedSampleObjects#
Name |
Type |
Description |
|---|---|---|
selectedSampleObjects |
|
const [selectedSampleObjects, setSelectedSampleObjects] = useRecoilState(fos.selectedSampleObjects);
selectedSamples#
Name |
Type |
Description |
|---|---|---|
selectedSamples |
|
const [selectedSamples, setSelectedSamples] = useRecoilState(fos.selectedSamples);
selectedSavedViewState#
Name |
Type |
Description |
|---|---|---|
selectedSavedViewState |
|
const [selectedSavedViewState, setSelectedSavedViewState] = useRecoilState(fos.selectedSavedViewState);
selectedViewName#
Name |
Type |
Description |
|---|---|---|
selectedViewName |
|
const [selectedViewName, setSelectedViewName] = useRecoilState(fos.selectedViewName);
sessionGroupSlice#
Name |
Type |
Description |
|---|---|---|
sessionGroupSlice |
|
const [sessionGroupSlice, setSessionGroupSlice] = useRecoilState(fos.sessionGroupSlice);
sessionSpaces#
Name |
Type |
Description |
|---|---|---|
sessionSpaces |
|
const [sessionSpaces, setSessionSpaces] = useRecoilState(fos.sessionSpaces);
settingsModal#
Name |
Type |
Description |
|---|---|---|
settingsModal.open |
|
const [settingsModal, setSettingsModal] = useRecoilState(fos.settingsModal);
showMetadataState#
Name |
Type |
Description |
|---|---|---|
showMetadataState |
|
const [showMetadataState, setShowMetadataState] = useRecoilState(fos.showMetadataState);
showNestedFieldsState#
Name |
Type |
Description |
|---|---|---|
showNestedFieldsState |
|
const [showNestedFieldsState, setShowNestedFieldsState] = useRecoilState(fos.showNestedFieldsState);
showOverlays#
Name |
Type |
Description |
|---|---|---|
showOverlays |
|
const [showOverlays, setShowOverlays] = useRecoilState(fos.showOverlays);
similarityMethods#
Name |
Type |
Description |
|---|---|---|
similarityMethods.patches |
|
|
similarityMethods.samples |
|
const similarityMethods = useRecoilValue(fos.similarityMethods);
similarityParameters#
Name |
Type |
Description |
|---|---|---|
similarityParameters |
|
const [similarityParameters, setSimilarityParameters] = useRecoilState(fos.similarityParameters);
similaritySorting#
Name |
Type |
Description |
|---|---|---|
similaritySorting |
|
const [similaritySorting, setSimilaritySorting] = useRecoilState(fos.similaritySorting);
snackbarErrors#
const [snackbarErrors, setSnackbarErrors] = useRecoilState(fos.snackbarErrors);
snackbarLink#
Name |
Type |
Description |
|---|---|---|
snackbarLink.link |
|
|
snackbarLink.message |
|
const [snackbarLink, setSnackbarLink] = useRecoilState(fos.snackbarLink);
snackbarMessage#
Name |
Type |
Description |
|---|---|---|
snackbarMessage |
|
const [snackbarMessage, setSnackbarMessage] = useRecoilState(fos.snackbarMessage);
stageDefinitions#
const stageDefinitions = useRecoilValue(fos.stageDefinitions);
stageInfo#
Name |
Type |
Description |
|---|---|---|
stageInfo |
|
const [stageInfo, setStageInfo] = useRecoilState(fos.stageInfo);
stateSubscription#
Name |
Type |
Description |
|---|---|---|
stateSubscription |
|
const stateSubscription = useRecoilValue(fos.stateSubscription);
targets#
Name |
Type |
Description |
|---|---|---|
targets.defaults |
|
|
targets.fields |
|
const targets = useRecoilValue(fos.targets);
theme#
Name |
Type |
Description |
|---|---|---|
theme |
|
const [theme, setTheme] = useRecoilState(fos.theme);
themeConfig#
Name |
Type |
Description |
|---|---|---|
themeConfig |
|
const themeConfig = useRecoilValue(fos.themeConfig);
timeZone#
Name |
Type |
Description |
|---|---|---|
timeZone |
|
const timeZone = useRecoilValue(fos.timeZone);
tooltipCoordinates#
Name |
Type |
Description |
|---|---|---|
tooltipCoordinates.bottom |
|
|
tooltipCoordinates.left |
|
|
tooltipCoordinates.right |
|
|
tooltipCoordinates.top |
|
const [tooltipCoordinates, setTooltipCoordinates] = useRecoilState(fos.tooltipCoordinates);
tooltipDetail#
Name |
Type |
Description |
|---|---|---|
tooltipDetail |
|
const [tooltipDetail, setTooltipDetail] = useRecoilState(fos.tooltipDetail);
view#
const [view, setView] = useRecoilState(fos.view);
viewCls#
Name |
Type |
Description |
|---|---|---|
viewCls |
|
const [viewCls, setViewCls] = useRecoilState(fos.viewCls);
viewCounter#
Name |
Type |
Description |
|---|---|---|
viewCounter |
|
const [viewCounter, setViewCounter] = useRecoilState(fos.viewCounter);
viewName#
Name |
Type |
Description |
|---|---|---|
viewName |
|
const [viewName, setViewName] = useRecoilState(fos.viewName);
viewSchemaState#
Name |
Type |
Description |
|---|---|---|
viewSchemaState |
|
const [viewSchemaState, setViewSchemaState] = useRecoilState(fos.viewSchemaState);
viewStateForm_INTERNAL#
This atom can be set to parameterize view changes
See
for example usage
Name |
Type |
Description |
|---|---|---|
viewStateForm_INTERNAL |
|
const [viewStateForm_INTERNAL, setViewStateForm_INTERNAL] = useRecoilState(fos.viewStateForm_INTERNAL);
Hooks#
useActive3dSamplesMap#
- fos.useActive3dSamplesMap()#
- Return type:
Record < string , ModalSample ><string,plugins.fiftyone.state.ModalSample>
Resolved samples for the currently active 3D slices.
useActive3dSlices#
- fos.useActive3dSlices()#
- Return type:
Array<string>
The 3D slice names currently included in the rendered scene.
useActiveDirectSlices#
- fos.useActiveDirectSlices()#
- Return type:
Array<string>
Active non-FO3D 3D slices rendered alongside the scene.
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 current active paths, and a setter to update the paths.
useActiveModalSampleValue#
- fos.useActiveModalSampleValue(path)#
Reads a single field value at path from the active modal sidebar sample.
Returns
The resolved value, or
- when the sample is
unresolved or transiently absent for the active slice.
Throws
Any non-
- error from the underlying
loadable (e.g. plain
`SampleNotFound`
or a thrown selector error).
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.
useAssertedRecoilValue#
- fos.useAssertedRecoilValue(recoilValue)#
- Arguments:
recoilValue (
RecoilValue)
- Return type:
plugins.fiftyone.state.T
useBeforeScreenshot#
- fos.useBeforeScreenshot(cb)#
- Arguments:
cb (
( ))
- Return type:
void
useBrowserStorage#
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
useCreateLooker#
useCurrentDataset#
- fos.useCurrentDataset()#
- Return type:
plugins.fiftyone.state.Dataset
Get the current dataset.
Returns
The current dataset state
useCurrentDatasetId#
- fos.useCurrentDatasetId()#
- Return type:
string
Get the current dataset ID.
Returns
The current dataset ID, or null if no dataset is selected
useCurrentDatasetName#
- fos.useCurrentDatasetName()#
- Return type:
string
Get the current dataset name.
Returns
The current dataset name
useCurrentSampleId#
- fos.useCurrentSampleId()#
- Return type:
string
Gets the current sample ID.
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.
useElementsCount#
Returns the last settled element count for the current dynamic group without suspending. Uses the stable groupByFieldValue so the count stays frozen while modalSample is transitioning between pages.
useEventHandler#
useExpandSample#
- fos.useExpandSample(store)#
- Arguments:
store ()
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
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
useGetKeypointSkeleton#
- fos.useGetKeypointSkeleton()#
Hook which provides a function to get the default keypoint skeleton for a given field.
- fos.getKeypointSkeleton()#
- Arguments:
args (
[ field ])- Return type:
plugins.fiftyone.state.KeypointSkeleton
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useGridCustomRendererFailover#
React view onto the external fail-open store.
useSyncExternalStore bridges React to this module-level source of truth,
while selectors and other non-React code can still read it synchronously.
When a dataset name is provided, the disable/banner state is scoped to that dataset. The forced subscription remains shared because the sync repair path still applies to the entire tab.
useGridEntries#
- fos.useGridEntries()#
- Return type:
[Array< SidebarEntry >,( entries : )]
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.
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.
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
useHover#
- fos.useHover()#
- Return type:
[MutableRefObject < any >,boolean]
useHoveredSample#
useInteraction3dSample#
- fos.useInteraction3dSample()#
- Return type:
plugins.fiftyone.state.ModalSample
Representative sample used for 3D interaction-driven behavior.
useIs3dPinned#
- fos.useIs3dPinned()#
- Return type:
boolean
Whether the 3D slice selection is pinned to a specific slice.
useIs3dVisible#
- fos.useIs3dVisible()#
- Return type:
boolean
Whether the 3D viewer is currently visible.
useIs3dVisibleSetting#
- fos.useIs3dVisibleSetting()#
- Return type:
boolean
Persisted user preference for showing the 3D viewer.
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.
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
useLookerOptions#
useLookerStore#
- fos.useLookerStore()#
- Return type:
plugins.fiftyone.state.LookerStore<plugins.fiftyone.state.Lookers>
useModalExplorEntries#
- fos.useModalExplorEntries()#
- Return type:
[Array< SidebarEntry >,( entries : )]
useModalLookerOptions#
- fos.useModalLookerOptions(withFilter)#
- Arguments:
withFilter (
boolean)
- Return type:
Partial < Omit ><Omit < , >>
Gets the looker options for the modal.
useModalMediaPath#
- fos.useModalMediaPath()#
- Return type:
string
Returns the current media path in the modal.
useModalMode#
- fos.useModalMode()#
- Return type:
plugins.fiftyone.state.ModalMode
Get the current modal mode.
useModalModeController#
- fos.useModalModeController()#
- Return type:
plugins.fiftyone.state.ModalModeController
Hook which provides a ModalModeController.
useModalSample#
- fos.useModalSample()#
- Return type:
plugins.fiftyone.state.ModalSample
Get the current modal sample data.
If the modal is not open, or the sample is being loaded, this hook will
return undefined.
useModalSampleSchema#
- fos.useModalSampleSchema()#
- Return type:
plugins.fiftyone.state.Schema
Get the current modal sample schema.
useModalViewport#
- fos.useModalViewport()#
- Return type:
plugins.fiftyone.state.ModalViewportState
Gets the saved modal viewport (zoom/pan) state.
useMutation#
useNon3dSlices#
- fos.useNon3dSlices()#
- Return type:
Array<string>
All available non-3D slice names.
useNotification#
useObserve#
- fos.useObserve(target, handler)#
- Arguments:
target (
any)handler (
any)
- Return type:
void
useOnSelectLabel#
- fos.useOnSelectLabel()#
- fos.onSelectLabel()#
- Arguments:
args (
[ SelectEvent ])
- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useOutsideClick#
usePanel#
- fos.usePanel(name, atom)#
- Arguments:
name (
any)atom (
any)
- Return type:
Object
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].
useQueryPerformance#
- fos.useQueryPerformance()#
- Return type:
Object
useQueryPerformanceSampleLimit#
- fos.useQueryPerformanceSampleLimit()#
- Return type:
number
Hook which returns the sample limit for dataset query performance.
useRealFo3dSlices#
- fos.useRealFo3dSlices()#
- Return type:
Array<string>
Available 3D slices whose media resolves to FO3D files.
useRefresh#
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useRefreshSample#
- fos.useRefreshSample()#
Refresh a sample in both the modal and the grid.
useRenderConfig3dActions#
- fos.useRenderConfig3dActions()#
- Return type:
plugins.fiftyone.state.RenderConfig3dActions
3D render config mutation actions.
useRenderConfig3dImperativeState#
- fos.useRenderConfig3dImperativeState()#
- Return type:
plugins.fiftyone.state.RenderConfig3dImperativeState
Imperative 3D render state queries for event handlers and callbacks.
useRenderConfig3dState#
- fos.useRenderConfig3dState()#
- Return type:
plugins.fiftyone.state.RenderConfig3dState
Suspense-compatible 3D render state for React rendering.
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.
useResizeHandler#
- fos.useResizeHandler(handler)#
- Arguments:
handler (
any)
- Return type:
void
useRetryController#
- fos.useRetryController(__namedParameters)#
- Arguments:
__namedParameters (
RetryConfig)
- Return type:
plugins.fiftyone.state.RetryController
Hook which returns a RetryController to support retryable flows.
useSampleSchema#
- fos.useSampleSchema()#
- Return type:
plugins.fiftyone.state.Schema
Get the current sample schema.
Returns
The field schema for the sample space
useSaveModalViewport#
- fos.useSaveModalViewport()#
- Return type:
SetAtom < , unknown ><Array< unknown >,unknown>
Setter for persisting the modal viewport (zoom/pan) state.
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
useScreenshot#
- fos.useScreenshot(context)#
- Arguments:
context ()
useScrollHandler#
- fos.useScrollHandler(handler)#
- Arguments:
handler (
any)
- Return type:
void
useSearchSchemaFields#
- fos.useSearchSchemaFields(mergedSchema)#
- Arguments:
mergedSchema (
Any)
- Return type:
Object
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.
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
useSession#
useSessionRef#
- fos.useSessionRef()#
- Return type:
plugins.fiftyone.state.Session
useSessionSetter#
useSessionSpaces#
- fos.useSessionSpaces()#
- Return type:
Array<any>
useSetDataset#
- fos.useSetDataset()#
- Return type:
SetterOrUpdater < string ><string>
useSetExpandedSample#
- fos.useSetExpandedSample()#
- fos.setExpandedSample()#
- Arguments:
selector (
ModalSelector)
- Return type:
Promise < void ><void>
useSetGroupSlice#
- fos.useSetGroupSlice()#
- Return type:
SetterOrUpdater < string ><string>
useSetModalState#
- fos.useSetModalState()#
Initializer that applys relevant grid settings to the modal, e.g. sidebar checkboxes. If no navigation is provided, next/previous in the modal is disabled
- fos.setModalState()#
- Arguments:
args (
[ navigation ])- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useSetSelected#
- fos.useSetSelected()#
- Return type:
SetterOrUpdater < Map ><Map < string , SelectionType >>
useSetSelectedFieldsStage#
- fos.useSetSelectedFieldsStage()#
- Return type:
Object
Returns
a callback to set the selectedFields stage
useSetSelectedLabels#
- fos.useSetSelectedLabels()#
- Return type:
SetterOrUpdater < ><Array< SelectedLabel >>
useSetSessionColorScheme#
- fos.useSetSessionColorScheme()#
- Return type:
SetterOrUpdater < ColorSchemeInput ><plugins.fiftyone.state.ColorSchemeInput>
useSetSpaces#
- fos.useSetSpaces()#
- Return type:
SetterOrUpdater < SpaceNodeJSON ><plugins.fiftyone.state.SpaceNodeJSON>
useSetView#
- fos.useSetView()#
- Return type:
SetterOrUpdater < ><Array< Stage >>
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).
useTimeout#
- fos.useTimeout(time)#
- Arguments:
time (
number)
- Return type:
boolean
useToClips#
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useToEvaluationPatches#
- fos.useToEvaluationPatches()#
- fos.toEvaluationPatches()#
- Arguments:
args (
[ evaluation ])
- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
useToPatches#
- fos.useToPatches()#
- fos.toPatches()#
- Arguments:
args (
[ field ])
- Return type:
Promise < void ><void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.
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#
useWindowSize#
- fos.useWindowSize()#
- Return type:
Object
Functions#
activeField#
- fos.activeField(params)#
Get or set the active state of a field.
activeFields#
- fos.activeFields(param)#
Returns a function which returns a memoized atom for each unique parameter value.
activeLabelFields#
- fos.activeLabelFields(param)#
- Arguments:
param (
Object)param.modal (
boolean)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
activeLabelPaths#
- fos.activeLabelPaths(param)#
- Arguments:
param (
Object)param.modal (
boolean)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
activeLabels#
- fos.activeLabels(param)#
- Arguments:
param (
Object)param.expanded (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< LabelData >>
Returns a function which returns a memoized atom for each unique parameter value.
aggregation#
- fos.aggregation(param)#
Returns a function which returns a memoized atom for each unique parameter value.
aggregationQuery#
- fos.aggregationQuery(parameter)#
- Arguments:
- Return type:
RecoilState < ><Array< Aggregation >>
GraphQL Selector Family for Aggregations.
aggregations#
- fos.aggregations(param)#
Returns a function which returns a memoized atom for each unique parameter value.
appConfigOption#
- fos.appConfigOption(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boolExcludeAtom#
- fos.boolExcludeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boolIsMatchingAtom#
- fos.boolIsMatchingAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boolean#
- fos.boolean(param)#
Returns a function which returns a memoized atom for each unique parameter value.
booleanCountResults#
- fos.booleanCountResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
booleanResults#
- fos.booleanResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
booleanSelectedValuesAtom#
- fos.booleanSelectedValuesAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boundedCount#
- fos.boundedCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
bounds#
- fos.bounds(param)#
Returns a function which returns a memoized atom for each unique parameter value.
boundsAtom#
- fos.boundsAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
buildSchema#
- fos.buildSchema(sampleFields, frameFields)#
- Arguments:
sampleFields (
Array)frameFields (
Array)
- Return type:
plugins.fiftyone.state.Schema
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
convertTargets#
- fos.convertTargets(targets)#
- Arguments:
targets (
Array)
- Return type:
Any
count#
- fos.count(param)#
Returns a function which returns a memoized atom for each unique parameter value.
countValues#
- fos.countValues(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
counts#
- fos.counts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
cropToContent#
- fos.cropToContent(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
cumulativeCounts#
- fos.cumulativeCounts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
cumulativeValues#
- fos.cumulativeValues(param)#
Returns a function which returns a memoized atom for each unique parameter value.
currentSlice#
- fos.currentSlice(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
currentSlices#
- fos.currentSlices(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
dbPath#
- fos.dbPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
deferrer#
- fos.deferrer(initialized)#
- Arguments:
initialized ()
distribution#
- fos.distribution(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , , , , >>
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupPageSelector#
- fos.dynamicGroupPageSelector(param)#
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupsElementCount#
- fos.dynamicGroupsElementCount(param)#
- Arguments:
param (
Object)param.modal (
boolean)param.value (
SerializableParam)
- Return type:
readonlyreadonly RecoilValueReadOnly < any ><any>
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupsViewMode#
- fos.dynamicGroupsViewMode(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < ><Union< , , >>
Returns a function which returns a memoized atom for each unique parameter value.
dynamicGroupsViewModeStore#
- fos.dynamicGroupsViewModeStore(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < ><Union< , , >>
Returns a function which returns a memoized atom for each unique parameter value.
ensureColorScheme#
- fos.ensureColorScheme(colorScheme, appConfig)#
excludedPathsState#
- fos.excludedPathsState(param)#
- Arguments:
param (
SerializableParam)
- Return type:
RecoilState < unknown ><unknown>
Returns a function which returns a memoized atom for each unique parameter value.
expandPath#
- fos.expandPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
falseAtom#
- fos.falseAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
field#
- fos.field(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < Field ><plugins.fiftyone.state.Field>
Returns a function which returns a memoized atom for each unique parameter value.
fieldHasVisibilitySetting#
- fos.fieldHasVisibilitySetting(param)#
Returns a function which returns a memoized atom for each unique parameter value.
fieldIsFiltered#
- fos.fieldIsFiltered(param)#
Returns a function which returns a memoized atom for each unique parameter value.
fieldPath#
- fos.fieldPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
fieldPaths#
- fos.fieldPaths(param)#
- Arguments:
param (
Object)param.embeddedDocType (
Union)param.ftype (
Union)param.path (
string)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
fieldSchema#
- fos.fieldSchema(param)#
- Arguments:
param (
Object)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < Schema ><plugins.fiftyone.state.Schema>
Returns a function which returns a memoized atom for each unique parameter value.
fieldType#
- fos.fieldType(param)#
Returns a function which returns a memoized atom for each unique parameter value.
fields#
- fos.fields(param)#
- Arguments:
param (
Object)param.embeddedDocType (
Union)param.ftype (
Union)param.path (
string)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< Field >>
Returns a function which returns a memoized atom for each unique parameter value.
fieldsMatcher#
filter#
- fos.filter(param)#
Returns a function which returns a memoized atom for each unique parameter value.
filterFields#
- fos.filterFields(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
filterPaths#
- fos.filterPaths(paths, schema)#
- Arguments:
paths (
Array)schema (
Schema)
- Return type:
Array<string>
filterSearch#
- fos.filterSearch(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Object>
Given a field path, return a set a field filters and index name that would result in a optimized IXSCAN, if possible
filterView#
- fos.filterView(stages)#
- Arguments:
stages (
Array)
- Return type:
string
gatheredPaths#
- fos.gatheredPaths(param)#
- Arguments:
param (
Object)param.embeddedDocType (
Union)param.ftype (
Union)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< any >>
Returns a function which returns a memoized atom for each unique parameter value.
generateBooleanSelectorFamily#
- fos.generateBooleanSelectorFamily(key)#
- Arguments:
key ()
Returns a function which returns a memoized atom for each unique parameter value.
generateSelectorFamily#
- fos.generateSelectorFamily(key)#
- Arguments:
key ()
Returns a function which returns a memoized atom for each unique parameter value.
getBrowserStorageEffectForKey#
- fos.getBrowserStorageEffectForKey(key, props)#
- param key:
- param props:
- param props.map:
- param props.prependDatasetNameInKey:
If true, prepends the dataset name to the storage key.
- This allows per-dataset storage isolation. Defaults to false
- param props.sessionStorage:
If true, uses sessionStorage instead of localStorage. Defaults to false
- param props.useJsonSerialization:
If true, uses JSON.stringify/parse for serialization.
- Otherwise uses simple string conversion. Defaults to false
- param props.valueClass:
The type of value being stored. Affects how the value is serialized/deserialized.
- Options: “string”, “stringArray”, “number”, “boolean”. Defaults to “string”
- type key:
string
- type props:
Object
- type props.map:
( value : unknown )
- type props.prependDatasetNameInKey:
boolean
- type props.sessionStorage:
boolean
- type props.useJsonSerialization:
boolean
- type props.valueClass:
Union< , , , >
- rtype:
AtomEffect < T ><plugins.fiftyone.state.T>
Recoil effect that syncs atom state with browser storage (localStorage or sessionStorage). Automatically loads the value from storage on initialization and saves it on every set.
Returns
A Recoil atom effect that syncs the atom with browser storage
getCurrentEnvironment#
- fos.getCurrentEnvironment()#
- Return type:
default
getEmbeddedLabelFields#
getEnvironment#
- fos.getEnvironment()#
- Return type:
default
getGridCustomRendererFailover#
- fos.getGridCustomRendererFailover(datasetName)#
- Arguments:
datasetName (
string)
- Return type:
plugins.fiftyone.state.GridCustomRendererFailure
Returns the recorded failure for a dataset in the current browser session.
getGridCustomRendererFailoverForcedSubscription#
- fos.getGridCustomRendererFailoverForcedSubscription()#
- Return type:
string
Returns the replacement synced subscription used after a renderer crash. The disable state is dataset-scoped, but subscription repair still happens at the tab level because the poisoned sync channel is shared by the whole app.
getGridCustomRendererFailoverSnapshot#
- fos.getGridCustomRendererFailoverSnapshot()#
- Return type:
plugins.fiftyone.state.GridCustomRendererFailoverSnapshot
Returns the current fail-open snapshot for this browser session.
getLabelFields#
getNormalizedUrls#
- fos.getNormalizedUrls(urls)#
- Arguments:
urls (
Union)
- Return type:
Any
getQueryPerformancePath#
- fos.getQueryPerformancePath()#
- Return type:
Object
getSampleSrc#
getSessionRef#
- fos.getSessionRef()#
- Return type:
plugins.fiftyone.state.Session
getStageKwarg#
- fos.getStageKwarg(stage, key)#
Helper to extract a kwarg value from a view stage’s kwargs array. kwargs are stored as arrays of [key, value] tuples.
gridSortByStore#
- fos.gridSortByStore(param)#
- Arguments:
param (
string)
- Return type:
RecoilState < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
gridSortDescendingStore#
- fos.gridSortDescendingStore(param)#
- Arguments:
param (
string)
- Return type:
RecoilState < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
groupFilter#
- fos.groupFilter(field)#
- Arguments:
field (
StrictField)
- Return type:
boolean
groupHasSampleOnSlice#
groupIsEmpty#
- fos.groupIsEmpty(param)#
Returns a function which returns a memoized atom for each unique parameter value.
groupLength#
- fos.groupLength(param)#
Returns a function which returns a memoized atom for each unique parameter value.
groupSamples#
groupShown#
- fos.groupShown(param)#
Returns a function which returns a memoized atom for each unique parameter value.
groupStatistics#
Returns a function which returns a memoized atom for each unique parameter value.
hasFilters#
- fos.hasFilters(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
hasVisibility#
- fos.hasVisibility(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
helperFunction#
histogramValues#
- fos.histogramValues(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , , >>
Returns a function which returns a memoized atom for each unique parameter value.
imaVidLookerState#
Returns a function which returns a memoized atom for each unique parameter value.
imaVidStoreKey#
- fos.imaVidStoreKey(param)#
Returns a function which returns a memoized atom for each unique parameter value.
indexedPaths#
- fos.indexedPaths(param)#
Returns a function which returns a memoized atom for each unique parameter value.
indexesByPath#
- fos.indexesByPath(param)#
- Arguments:
param (
Array)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
isCompoundIndexed#
- fos.isCompoundIndexed(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isDisabledCheckboxPath#
- fos.isDisabledCheckboxPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isDisabledFilterPath#
- fos.isDisabledFilterPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isDisabledFrameFilterPath#
- fos.isDisabledFrameFilterPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isFilterDefault#
- fos.isFilterDefault(param)#
Returns a function which returns a memoized atom for each unique parameter value.
isFrameField#
- fos.isFrameField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isGridCustomRendererFailOpen#
Whether custom grid renderers are disabled for the given dataset.
isHoveringAnyLabelWithInstanceConfig#
- fos.isHoveringAnyLabelWithInstanceConfig()#
- Return type:
boolean
Whether there are hovered instances
isHoveringParticularLabelWithInstanceConfig#
- fos.isHoveringParticularLabelWithInstanceConfig(instanceId)#
- Arguments:
instanceId (
string)
- Return type:
boolean
Whether there are hovered instances of a particular instance
isInListField#
- fos.isInListField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isLabelPath#
- fos.isLabelPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isListField#
- fos.isListField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isMatchingAtom#
- fos.isMatchingAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
isNumericField#
- fos.isNumericField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isObjectIdField#
- fos.isObjectIdField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isOfDocumentFieldList#
- fos.isOfDocumentFieldList(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
isStringField#
- fos.isStringField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
keypointFilter#
labelCount#
- fos.labelCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
labelFields#
- fos.labelFields(param)#
- Arguments:
param (
Object)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
labelPath#
- fos.labelPath(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
labelPaths#
- fos.labelPaths(param)#
- Arguments:
param (
Object)param.expanded (
boolean)param.space (
SPACE)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
labelTagCounts#
- fos.labelTagCounts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
labelsMatcher#
- fos.labelsMatcher(parent)#
- Arguments:
parent ()
lightningBooleanResults#
- fos.lightningBooleanResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
lightningBounds#
- fos.lightningBounds(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><[ number , number ]>
Returns a function which returns a memoized atom for each unique parameter value.
lightningNonfinites#
- fos.lightningNonfinites(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
lightningNumericResults#
- fos.lightningNumericResults(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
lightningQuery#
- fos.lightningQuery(parameter)#
- Arguments:
parameter (
readonly)
- Return type:
readonlyreadonly RecoilState < ><readonly>
lightningStringResults#
- fos.lightningStringResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
listBoolean#
- fos.listBoolean(param)#
Returns a function which returns a memoized atom for each unique parameter value.
listNumber#
- fos.listNumber(param)#
Returns a function which returns a memoized atom for each unique parameter value.
listString#
- fos.listString(param)#
Returns a function which returns a memoized atom for each unique parameter value.
logOnSetEffect#
- fos.logOnSetEffect(options)#
- Arguments:
options (
Object)options.logPrefix (
string) – Custom prefix for log messages. Defaults to “[Recoil Set]”
- Return type:
AtomEffect < T ><plugins.fiftyone.state.T>
Debug effect that logs when atom value is set.
Returns
A Recoil atom effect that logs set operations
lookerOptions#
- fos.lookerOptions(param)#
Returns a function which returns a memoized atom for each unique parameter value.
mapSampleResponse#
- fos.mapSampleResponse(data)#
- Arguments:
data (
T)
- Return type:
plugins.fiftyone.state.T
markGridCustomRendererFailed#
- fos.markGridCustomRendererFailed(__namedParameters)#
- Arguments:
__namedParameters (
MarkGridCustomRendererFailedOptions)
- Return type:
plugins.fiftyone.state.GridCustomRendererFailure
Records the first renderer failure for a dataset in the current browser session.
Repeated failures on the same dataset are ignored, but a later first failure on a different dataset will mint a fresh forced subscription so the app can reload away from any newly poisoned sync channel.
maxAtom#
- fos.maxAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
meetsType#
- fos.meetsType(param)#
Returns a function which returns a memoized atom for each unique parameter value.
minAtom#
- fos.minAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
modalAggregationPaths#
- fos.modalAggregationPaths(param)#
Returns a function which returns a memoized atom for each unique parameter value.
modalFilterFields#
- fos.modalFilterFields(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
noneAtom#
- fos.noneAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
noneCount#
- fos.noneCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
nonfiniteAtom#
- fos.nonfiniteAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
nonfiniteCount#
- fos.nonfiniteCount(param)#
Returns a function which returns a memoized atom for each unique parameter value.
nonfiniteData#
- fos.nonfiniteData(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numGroupFieldsActive#
- fos.numGroupFieldsActive(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numGroupFieldsFiltered#
- fos.numGroupFieldsFiltered(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numGroupFieldsVisible#
- fos.numGroupFieldsVisible(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numeric#
- fos.numeric(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numericExcludeAtom#
- fos.numericExcludeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
numericFields#
- fos.numericFields(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Array< string >>
Returns a function which returns a memoized atom for each unique parameter value.
numericIsMatchingAtom#
- fos.numericIsMatchingAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
parentField#
- fos.parentField(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < Field ><plugins.fiftyone.state.Field>
Returns a function which returns a memoized atom for each unique parameter value.
pathCanBeOptimized#
- fos.pathCanBeOptimized(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Union< , >>
Returns a function which returns a memoized atom for each unique parameter value.
pathColor#
- fos.pathColor(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
pathFilter#
- fos.pathFilter(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < PathFilterSelector ><plugins.fiftyone.state.PathFilterSelector>
Returns a function which returns a memoized atom for each unique parameter value.
pathHasActiveIndex#
- fos.pathHasActiveIndex(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
pathHasIndexes#
- fos.pathHasIndexes(param)#
Returns a function which returns a memoized atom for each unique parameter value.
pathIndex#
- fos.pathIndex(param)#
Returns a function which returns a memoized atom for each unique parameter value.
pathIsShown#
- fos.pathIsShown(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
primitivesMatcher#
- fos.primitivesMatcher(field)#
- Arguments:
field (
StrictField)
- Return type:
boolean
rangeAtom#
- fos.rangeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
removeRgbProperty#
- fos.removeRgbProperty(input)#
- Arguments:
input (
any)
- Return type:
any
resolveGroups#
- fos.resolveGroups(sampleFields, frameFields, currentGroups, configGroups)#
- Arguments:
sampleFields (
Array)frameFields (
Array)currentGroups (
Array)configGroups (
Array)
- Return type:
Array<plugins.fiftyone.state.SidebarGroup>
resolveSelectionIcon#
- fos.resolveSelectionIcon(selectedSamples, style, sampleId, isSelected)#
- Arguments:
selectedSamples (
Map)style (
SelectionStyle)sampleId (
string)isSelected (
boolean)
- Return type:
Object
sampleTagCounts#
- fos.sampleTagCounts(param)#
Returns a function which returns a memoized atom for each unique parameter value.
schemaReduce#
- fos.schemaReduce(schema, field)#
- Arguments:
schema (
Schema)field (
StrictField)
- Return type:
plugins.fiftyone.state.Schema
selectedMediaField#
- fos.selectedMediaField(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < string ><string>
Returns a function which returns a memoized atom for each unique parameter value.
selectedMediaFieldAtomFamily#
selectedPatchIds#
- fos.selectedPatchIds(param)#
- Arguments:
param (
SerializableParam)
- Return type:
readonlyreadonly RecoilValueReadOnly < Set ><Set < string >>
Returns a function which returns a memoized atom for each unique parameter value.
sessionAtom#
setCurrentEnvironment#
- fos.setCurrentEnvironment(environment)#
- Arguments:
environment (
default)
- Return type:
void
setQueryPerformancePath#
shouldRenderImaVidLooker#
- fos.shouldRenderImaVidLooker(param)#
- Arguments:
param (
boolean)
- Return type:
readonlyreadonly RecoilValueReadOnly < boolean ><boolean>
Returns a function which returns a memoized atom for each unique parameter value.
skeleton#
- fos.skeleton(param)#
- Arguments:
param (
string)
- Return type:
readonlyreadonly RecoilValueReadOnly < KeypointSkeleton ><plugins.fiftyone.state.KeypointSkeleton>
Returns a function which returns a memoized atom for each unique parameter value.
sortFilterResults#
- fos.sortFilterResults(param)#
- Arguments:
param (
boolean)
- Return type:
RecoilState < SortResults ><plugins.fiftyone.state.SortResults>
Returns a function which returns a memoized atom for each unique parameter value.
string#
- fos.string(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringCountResults#
- fos.stringCountResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringExcludeAtom#
- fos.stringExcludeAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringResults#
- fos.stringResults(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringSelectedValuesAtom#
- fos.stringSelectedValuesAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
stringifyObj#
- fos.stringifyObj(obj)#
- Arguments:
obj (
any)
- Return type:
any
subscribeToGridCustomRendererFailover#
- fos.subscribeToGridCustomRendererFailover(listener)#
- Arguments:
listener (
( ))
Subscribes React to this external fail-open store.
- fos.subscribeToGridCustomRendererFailover(listener)#
- Return type:
void
tagging#
- fos.tagging(param)#
Returns a function which returns a memoized atom for each unique parameter value.
textFilter#
Returns a function which returns a memoized atom for each unique parameter value.
transformDataset#
- fos.transformDataset(dataset)#
- Arguments:
dataset (
any)
- Return type:
Readonly < Dataset ><plugins.fiftyone.state.Dataset>
trueAtom#
- fos.trueAtom(param)#
Returns a function which returns a memoized atom for each unique parameter value.
unsupportedMatcher#
- fos.unsupportedMatcher(field)#
- Arguments:
field (
StrictField)
- Return type:
boolean
validIndexes#
- fos.validIndexes(param)#
- Arguments:
param (
Array)
- Return type:
readonlyreadonly RecoilValueReadOnly < ><Object>
Returns a function which returns a memoized atom for each unique parameter value.
validateGroupName#
values#
- fos.values(param)#
Returns a function which returns a memoized atom for each unique parameter value.
viewsAreEqual#
- fos.viewsAreEqual(viewOne, viewTwo)#
- Arguments:
viewOne (
Union)viewTwo (
Union)
- Return type:
boolean
visibility#
- fos.visibility(param)#
Returns a function which returns a memoized atom for each unique parameter value.
withSuspense#
- fos.withSuspense(Component, LoaderComponent)#
- Arguments:
Component (
ComponentType)LoaderComponent ()
Types#
SPACE#
Name |
Value |
|---|---|
FRAME |
|
SAMPLE |
AnnotationRun#
- class fos.AnnotationRun()#
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
|
key |
|
|
timestamp |
|
|
version |
|
|
viewStages |
|
BrainRun#
- class fos.BrainRun()#
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
|
key |
|
|
timestamp |
|
|
version |
|
|
viewStages |
|
Config#
- class fos.Config()#
Properties#
Name |
Type |
Description |
|---|---|---|
colorPool |
|
|
colorscale |
|
|
customizedColors |
|
|
gridZoom |
|
|
loopVideos |
|
|
mediaFallback |
|
|
mediaFields |
|
|
notebookHeight |
|
|
plugins |
|
|
showConfidence |
|
|
showIndex |
|
|
showLabel |
|
|
showTooltip |
|
|
theme |
|
|
timezone |
|
|
useFrameNumber |
|
Dataset#
- class fos.Dataset()#
The dataset object returned by the API.
Properties#
Name |
Type |
Description |
|---|---|---|
appConfig |
|
|
brainMethods |
|
|
createdAt |
|
|
datasetId |
|
|
defaultMaskTargets |
|
|
defaultSkeleton |
|
|
evaluations |
|
|
groupField |
|
|
groupMediaTypes |
|
|
groupSlice |
|
|
id |
|
|
info |
|
|
lastLoadedAt |
|
|
maskTargets |
|
|
mediaType |
|
|
name |
|
|
parentMediaType |
|
|
skeletons |
|
|
version |
|
DatasetAppConfig#
- class fos.DatasetAppConfig()#
Properties#
Name |
Type |
Description |
|---|---|---|
activeFields |
|
|
dynamicGroupsTargetFrameRate |
|
|
gridMediaField |
|
|
mediaFields |
|
|
modalMediaField |
|
|
plugins |
|
DateTime#
- class fos.DateTime()#
Properties#
Name |
Type |
Description |
|---|---|---|
$date |
|
Description#
- class fos.Description()#
Properties#
Name |
Type |
Description |
|---|---|---|
dataset |
|
|
fieldVisibilityStage |
|
|
savedViewSlug |
|
|
savedViews |
|
|
selected |
|
|
selectedLabels |
|
|
spaces |
|
|
view |
|
|
viewCls |
|
|
viewName |
|
DynamicGroupParameters#
- class fos.DynamicGroupParameters()#
Properties#
Name |
Type |
Description |
|---|---|---|
groupBy |
|
|
orderBy |
|
|
orderByKey |
|
Evaluation#
- class fos.Evaluation()#
EvaluationRun#
- class fos.EvaluationRun()#
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
|
key |
|
|
timestamp |
|
|
version |
|
|
viewStages |
|
FieldVisibilityStage#
- class fos.FieldVisibilityStage()#
Properties#
Name |
Type |
Description |
|---|---|---|
cls |
|
|
kwargs |
|
Filter#
- class fos.Filter()#
Name |
Type |
Description |
|---|---|---|
[key] |
|
Filters#
- class fos.Filters()#
Name |
Type |
Description |
|---|---|---|
[key] |
|
ID#
- class fos.ID()#
Properties#
Name |
Type |
Description |
|---|---|---|
$oid |
|
KeypointSkeleton#
- class fos.KeypointSkeleton()#
Properties#
Name |
Type |
Description |
|---|---|---|
edges |
|
|
labels |
|
Run#
- class fos.Run()#
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
|
key |
|
|
timestamp |
|
|
version |
|
|
viewStages |
|
SavedView#
- class fos.SavedView()#
Properties#
Name |
Type |
Description |
|---|---|---|
color |
|
|
createdAt |
|
|
datasetId |
|
|
description |
|
|
id |
|
|
lastLoadedAt |
|
|
lastModifiedAt |
|
|
name |
|
|
slug |
|
|
viewStages |
|
SelectedLabel#
- class fos.SelectedLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
field |
|
|
frameNumber |
|
|
instanceId |
|
|
labelId |
|
|
sampleId |
|
|
type |
|
SelectedLabelData#
- class fos.SelectedLabelData()#
Properties#
Name |
Type |
Description |
|---|---|---|
field |
|
|
frameNumber |
|
|
instanceId |
|
|
sampleId |
|
|
type |
|
SelectedLabelMap#
- class fos.SelectedLabelMap()#
Name |
Type |
Description |
|---|---|---|
[labelId] |
|
SortBySimilarityParameters#
- class fos.SortBySimilarityParameters()#
Properties#
Name |
Type |
Description |
|---|---|---|
brainKey |
|
|
distField |
|
|
k |
|
|
query |
|
|
queryIds |
|
|
reverse |
|
Stage#
- class fos.Stage()#
Properties#
Name |
Type |
Description |
|---|---|---|
kwargs |
|
StrictKeypointSkeleton#
- class fos.StrictKeypointSkeleton()#
Properties#
Name |
Type |
Description |
|---|---|---|
edges |
|
|
labels |
|
|
name |
|
Targets#
- class fos.Targets()#
Name |
Type |
Description |
|---|---|---|
[key] |
|
- class fos.ActiveFields()#
ActiveFields#
Name |
Type |
Description |
|---|---|---|
ActiveFields.exclude |
|
|
ActiveFields.paths |
|
- class fos.MediaType()#
MediaType#
Union of 'image', 'group', 'point_cloud', 'point-cloud', 'three_d', '3d', 'video', 'unknown'
- class fos.PluginConfig()#
PluginConfig#
An object containing the configuration for plugins. Each key is the name of a plugin, and the value is the configuration for that plugin.
PANEL_SURFACE#
Name |
Value |
|---|---|
GRID |
|
MODAL |
COLOR_BLIND_FRIENDLY_PALETTE#
COLOR_OPTIONS#
COLOR_OPTIONS_MAP#
Name |
Type |
Description |
|---|---|---|
#06AED4 |
|
|
#16B364 |
|
|
#2970FF |
|
|
#667085 |
|
|
#7A5AF8 |
|
|
#EE46BC |
|
|
#EF6820 |
|
|
#F04438 |
|
|
#FAC515 |
|
DEFAULT_COLOR#
Name |
Type |
Description |
|---|---|---|
|
DEFAULT_COLOR_OPTION#
Name |
Type |
Description |
|---|---|---|
color |
|
|
description |
|
|
id |
|
|
label |
|
FIFTYONE_GRID_SPACES_ID#
Name |
Type |
Description |
|---|---|---|
|
FIFTYONE_MODAL_SPACES_ID#
Name |
Type |
Description |
|---|---|---|
|
BooleanFilter#
- class fos.BooleanFilter()#
Properties#
Name |
Type |
Description |
|---|---|---|
exclude |
|
|
false |
|
|
isMatching |
|
|
none |
|
|
true |
|
ClassificationAnnotationLabel#
- class fos.ClassificationAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
ContextManager#
- class fos.ContextManager()#
A context manager provides support for stateful transitions into and out-of some logical context.
Callbacks can be registered to be executed when entering or exiting the context.
Properties#
Name |
Type |
Description |
|---|---|---|
isActive |
|
|
enter |
|
Enter the context, triggering all registered enter callbacks. |
exit |
|
Exit the context, triggering all registered exit callbacks. |
registerEnterCallback |
|
Register a callback to be invoked on context |
registerExitCallback |
|
Register a callback to be invoked on context |
reset |
|
Reset the context, clearing all registered callbacks. |
Detection3DAnnotationLabel#
- class fos.Detection3DAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
DetectionAnnotationLabel#
- class fos.DetectionAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
EmptyAnnotationsEntry#
- class fos.EmptyAnnotationsEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
EmptyEntry#
- class fos.EmptyEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
group |
|
|
kind |
|
|
shown |
|
GroupEntry#
- class fos.GroupEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
|
name |
|
GroupVisibilityConfigSnapshot#
- class fos.GroupVisibilityConfigSnapshot()#
Snapshot of group visibility settings and slice captured before entering Annotate mode. Used to restore settings when returning to Explore mode.
Properties#
Name |
Type |
Description |
|---|---|---|
carousel |
|
|
main |
|
|
slice |
|
|
threeDViewer |
|
IActivityToast#
- class fos.IActivityToast()#
Activity toast interface.
Properties#
Name |
Type |
Description |
|---|---|---|
config |
|
Current toast configuration. |
open |
|
|
setConfig |
|
Set the toast configuration. |
setIconName |
|
Set the icon for the toast. |
setMessage |
|
Set the message for the toast. |
setTimeout |
|
Set the timeout for the toast. |
setVariant |
|
Set the toast variant. |
InputEntry#
- class fos.InputEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
|
type |
|
KeypointAnnotationLabel#
- class fos.KeypointAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
Label#
- class fos.Label()#
Properties#
Name |
Type |
Description |
|---|---|---|
isNew |
|
|
path |
|
LabelEntry#
- class fos.LabelEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
atom |
|
|
id |
|
|
kind |
|
LoadingEntry#
- class fos.LoadingEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
id |
|
|
kind |
|
LookerStore#
- class fos.LookerStore()#
Properties#
Name |
Type |
Description |
|---|---|---|
indices |
|
|
lookers |
|
|
reset |
|
|
samples |
|
ModalModeController#
- class fos.ModalModeController()#
Manager which supports switching modal modes.
Properties#
Name |
Type |
Description |
|---|---|---|
activateAnnotateMode |
|
|
activateExploreMode |
|
ModalViewportState#
- class fos.ModalViewportState()#
Extends the base ViewportState with a sampleId so stale state from
a previous sample is never mistakenly applied when switching between
modes (EXPLORE vs ANNOTATE).
Properties#
Name |
Type |
Description |
|---|---|---|
panX |
|
|
panY |
|
|
sampleId |
|
|
scale |
|
NumericFilter#
- class fos.NumericFilter()#
Properties#
Name |
Type |
Description |
|---|---|---|
exclude |
|
|
inf |
|
|
isMatching |
|
|
nan |
|
|
ninf |
|
|
none |
|
|
range |
|
PathEntry#
- class fos.PathEntry()#
Properties#
Name |
Type |
Description |
|---|---|---|
kind |
|
|
path |
|
|
shown |
|
PolylineAnnotationLabel#
- class fos.PolylineAnnotationLabel()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
isNew |
|
|
overlay |
|
|
path |
|
|
type |
|
PrimitiveValue#
- class fos.PrimitiveValue()#
Properties#
Name |
Type |
Description |
|---|---|---|
data |
|
|
op |
|
|
path |
|
|
type |
|
RetryController#
- class fos.RetryController()#
Utility which provides retry control flow logic.
Properties#
Name |
Type |
Description |
|---|---|---|
canAttempt |
|
If |
recordAttempt |
|
|
reset |
|
SelectEvent#
- class fos.SelectEvent()#
Properties#
Name |
Type |
Description |
|---|---|---|
detail |
|
Session#
- class fos.Session()#
Properties#
Name |
Type |
Description |
|---|---|---|
canAnnotate |
|
|
canCreateNewField |
|
|
canEditCustomColors |
|
|
canEditLabels |
|
|
canEditSavedViews |
|
|
canEditWorkspaces |
|
|
canManageSchema |
|
|
canModifySidebarGroup |
|
|
canTagSamplesOrLabels |
|
|
colorScheme |
|
|
fieldVisibilityStage |
|
|
filters |
|
|
labelSelectionStyle |
|
|
modalFilters |
|
|
modalSelector |
|
|
readOnly |
|
|
sampleSelectionStyle |
|
|
selectedLabels |
|
|
selectedSamples |
|
|
sessionGroupSlice |
|
|
sessionSpaces |
|
SortResults#
- class fos.SortResults()#
Properties#
Name |
Type |
Description |
|---|---|---|
asc |
|
|
count |
|
StringFilter#
- class fos.StringFilter()#
Properties#
Name |
Type |
Description |
|---|---|---|
exclude |
|
|
isMatching |
|
|
values |
|
- 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
- class fos.AnnotationLabelData()#
AnnotationLabelData#
- class fos.ComputeCoordinatesReturnType()#
ComputeCoordinatesReturnType#
Name |
Type |
Description |
|---|---|---|
ComputeCoordinatesReturnType |
|
- class fos.DatasetViewOption()#
DatasetViewOption#
- class fos.DebouncedState()#
DebouncedState#
- class fos.DimensionsType()#
DimensionsType#
Name |
Type |
Description |
|---|---|---|
DimensionsType |
|
- class fos.GridCustomRendererFailure()#
GridCustomRendererFailure#
Name |
Type |
Description |
|---|---|---|
GridCustomRendererFailure.datasetName |
|
|
GridCustomRendererFailure.errorMessage |
|
|
GridCustomRendererFailure.failedAt |
|
|
GridCustomRendererFailure.rendererName |
|
- class fos.GroupSliceMediaType()#
GroupSliceMediaType#
Union of 'video', '3d', 'image'
- class fos.HoveredInstancesLabelsTuple()#
HoveredInstancesLabelsTuple#
Name |
Type |
Description |
|---|---|---|
HoveredInstancesLabelsTuple |
|
- class fos.LabelMap()#
LabelMap#
======= TYPES =======
Name |
Type |
Description |
|---|---|---|
LabelMap |
|
- class fos.LabelSelectionStyle()#
LabelSelectionStyle#
Name |
Type |
Description |
|---|---|---|
LabelSelectionStyle.alt |
|
|
LabelSelectionStyle.default |
|
- class fos.LabelSelectionStyleName()#
LabelSelectionStyleName#
Union of 'dashed', 'dashed-green', 'dashed-red'
- class fos.Loading()#
Loading#
- class fos.Lookers()#
Lookers#
Union of FrameLooker, ImageLooker, ImaVidLooker, VideoLooker
- class fos.Method()#
Method#
Name |
Type |
Description |
|---|---|---|
Method.key |
|
|
Method.maxK |
|
|
Method.supportsLeastSimilarity |
|
|
Method.supportsPrompts |
|
ModalSample#
- class fos.ModalSampleData()#
ModalSampleData#
Name |
Type |
Description |
|---|---|---|
ModalSampleData |
|
- class fos.ModalSelector()#
ModalSelector#
Name |
Type |
Description |
|---|---|---|
ModalSelector.groupId |
|
|
ModalSelector.hasNext |
|
|
ModalSelector.hasPrevious |
|
|
ModalSelector.id |
|
- class fos.Optional()#
Optional#
Optional
From T make a set of properties by key K become optional
- class fos.PathFilterSelector()#
PathFilterSelector#
- class fos.Range()#
Range#
Name |
Type |
Description |
|---|---|---|
Range |
|
- class fos.RenderConfig3dActions()#
RenderConfig3dActions#
Mutation helpers exposed by useRenderConfig3dActions.
Name |
Type |
Description |
|---|---|---|
RenderConfig3dActions.focusSlice |
|
|
RenderConfig3dActions.initializeFromModalSlice |
|
|
RenderConfig3dActions.reconcileAvailableSlices |
|
|
RenderConfig3dActions.setFo3dContent |
|
|
RenderConfig3dActions.setPinned |
|
|
RenderConfig3dActions.setVisible |
|
|
RenderConfig3dActions.toggleSlice |
|
- class fos.RenderConfig3dImperativeState()#
RenderConfig3dImperativeState#
Imperative snapshot query helpers exposed by useRenderConfig3dImperativeState.
Name |
Type |
Description |
|---|---|---|
RenderConfig3dImperativeState.getIsPinned |
|
- class fos.RenderConfig3dState()#
RenderConfig3dState#
Derived 3D modal state exposed by useRenderConfig3dState.
Name |
Type |
Description |
|---|---|---|
RenderConfig3dState.activeDirectSlices |
|
Active non-FO3D 3D slices rendered alongside the scene. |
RenderConfig3dState.activeFo3dSlice |
|
Active FO3D slice currently driving the scene, if one is selected. |
RenderConfig3dState.activeSampleMap |
|
Resolved samples for the currently active 3D slices. |
RenderConfig3dState.activeSlices |
|
Slice names currently participating in 3D rendering. |
RenderConfig3dState.allSampleMap |
|
Resolved samples for every available 3D slice in the current modal context. |
RenderConfig3dState.allSlices |
|
All available 3D slice names. |
RenderConfig3dState.fo3dContent |
|
Parsed FO3D scene content cached for the active scene sample. |
RenderConfig3dState.has3dSlice |
|
Whether the current modal context exposes any 3D slice. |
RenderConfig3dState.hasFo3dSlice |
|
Whether any available 3D slice resolves to an FO3D asset. |
RenderConfig3dState.hasMultipleSlices |
|
Whether more than one 3D slice is available. |
RenderConfig3dState.interactionSample |
|
Representative sample used for 3D interaction-driven behavior. |
RenderConfig3dState.interactionSlice |
|
Slice corresponding to |
RenderConfig3dState.is3dVisible |
|
Whether the 3D viewer should currently be shown. |
RenderConfig3dState.is3dVisibleSetting |
|
Persisted user preference for showing the 3D viewer. |
RenderConfig3dState.isPinned |
|
Whether the 3D selection is pinned to a specific slice. |
RenderConfig3dState.non3dSlices |
|
All available non-3D slice names. |
RenderConfig3dState.pinnedSlice |
|
Slice name currently pinned for 3D rendering, if any. |
RenderConfig3dState.realFo3dSlices |
|
Available 3D slices whose media resolves to FO3D files. |
RenderConfig3dState.sceneSample |
|
Sample currently used to render the visible 3D scene. |
- class fos.ResponseFrom()#
ResponseFrom#
- class fos.RetryConfig()#
RetryConfig#
Retry configuration.
Name |
Type |
Description |
|---|---|---|
RetryConfig.id |
|
Unique ID to identify this retryable instance. |
RetryConfig.maxAttempts |
|
Maximum number of attempts. |
- class fos.Sample()#
Sample#
Name |
Type |
Description |
|---|---|---|
Sample |
|
- class fos.SelectionIconStyle()#
SelectionIconStyle#
Union of 'checkmark', 'green-checkmark', 'red-checkmark', 'thumbsup', 'thumbsdown', 'pin', 'star', 'x', 'bookmark'
- class fos.SelectionStyle()#
SelectionStyle#
Name |
Type |
Description |
|---|---|---|
SelectionStyle.alt |
|
|
SelectionStyle.default |
|
- class fos.SelectionType()#
SelectionType#
Union of 'default', 'alt'
- class fos.SidebarEntry()#
Enums#
EntryKind#
Name |
Value |
|---|---|
EMPTY |
|
EMPTY_ANNOTATIONS |
|
GROUP |
|
INPUT |
|
LABEL |
|
LOADING |
|
PATH |
ModalMode#
Operating mode of the modal.
Name |
Value |
|---|---|
ANNOTATE |
|
EXPLORE |
Variables#
ANNOTATE#
Name |
Type |
Description |
|---|---|---|
|
BeforeScreenshotContext#
Name |
Type |
Description |
|---|---|---|
Context < Set > |
|
DEFAULT_ALPHA#
Name |
Type |
Description |
|---|---|---|
|
DEFAULT_LABEL_SELECTION_STYLE#
Name |
Type |
Description |
|---|---|---|
LabelSelectionStyle |
|
DEFAULT_SELECTED#
Name |
Type |
Description |
|---|---|---|
DatasetViewOption |
|
DEFAULT_SELECTION_STYLE#
Name |
Type |
Description |
|---|---|---|
SelectionStyle |
|
EXPLORE#
Name |
Type |
Description |
|---|---|---|
|
GRID_SPACES_DEFAULT#
Name |
Type |
Description |
|---|---|---|
active_child |
|
|
children |
|
|
component_id |
|
|
id |
|
GROUP_BY_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
INDEFINITE_TOAST_TIMEOUT#
Timeout value which will cause the activity toast to remain open indefinitely.
Name |
Type |
Description |
|---|---|---|
|
LIMIT_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
LOADING#
Sentinel returned by useActiveModalSampleValue when no real value is
available yet. Returned in two cases:
The active modal sidebar sample is still loading.
The sample failed with
GroupSampleNotFound— sparse groups can legitimately lack a sample on the active slice; consumers should render a placeholder rather than crashing.
Other errors (including plain SampleNotFound) still bubble — they
indicate a real problem, not a transient loading state.
Compare with === LOADING and typically render a loading placeholder.
MATCH_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
OTHER_GROUP#
Name |
Type |
Description |
|---|---|---|
|
RESERVED_GROUPS#
Name |
Type |
Description |
|---|---|---|
Set < string > |
|
RelayEnvironmentKey#
Name |
Type |
Description |
|---|---|---|
EnvironmentKey |
|
SESSION_DEFAULT#
Name |
Type |
Description |
|---|---|---|
Session |
|
SKIP_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
SORT_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
TAB_OPTIONS#
TAB_OPTIONS_MAP#
Name |
Type |
Description |
|---|---|---|
FILTER_RULE |
|
|
SELECTION |
|
TAKE_VIEW_STAGE#
Name |
Type |
Description |
|---|---|---|
|
appConfigDefault#
Name |
Type |
Description |
|---|---|---|
|
currentModalUniqueIdJotaiAtom#
Current modal unique id. It’s a concatenation of the group id and the sample id.
datasetQueryContext#
Name |
Type |
Description |
|---|---|---|
Context < savedViewsFragment$key > |
|
hoveredInstances#
Set of hovered instances
jotaiStore#
Name |
Type |
Description |
|---|---|---|
ReturnType < > |
|
modalBridge#
Bridge for synchronous access to modal viewport state from non-React code Provides read-only access to saved viewport state (zoom/pan position).
Name |
Type |
Description |
|---|---|---|
getModalViewport |
|
Reads the current modal viewport state. |
modalMode#
Name |
Type |
Description |
|---|---|---|
WritableAtom < ModalMode , , void > |
|
modalNavigation#
Name |
Type |
Description |
|---|---|---|
get |
|
|
set |
|
numConcurrentRenderingLabels#
Number of concurrently rendering labels.
removeAllHoveredInstances#
Remove all hovered instances
Name |
Type |
Description |
|---|---|---|
WritableAtom < unknown , , void > |
|
screenshotCallbacks#
Name |
Type |
Description |
|---|---|---|
Set < > |
|
stores#
Name |
Type |
Description |
|---|---|---|
Set < > |
|
updateHoveredInstances#
add a label instance to the hovered instances set
Name |
Type |
Description |
|---|---|---|
WritableAtom < unknown , , void > |
|