@fiftyone/operators#
Hooks#
useFirstExistingUri#
- @fiftyone/operators.useFirstExistingUri(uris)#
- Arguments:
uris (
Array)
- Return type:
Object
Reactively returns the first registered operator URI from a list.
useGlobalExecutionContext#
- @fiftyone/operators.useGlobalExecutionContext()#
- Return type:
plugins.fiftyone.operators.ExecutionContext
useOperatorAvailability#
- @fiftyone/operators.useOperatorAvailability(uri)#
- Arguments:
uri (
string)
- Return type:
boolean
Reactively reports whether an operator URI is registered. This checks registry presence only; callers remain responsible for permission checks.
useOperatorBrowser#
- @fiftyone/operators.useOperatorBrowser()#
- Return type:
Object
useOperatorExecutor#
- @fiftyone/operators.useOperatorExecutor(uri, handlers)#
- Arguments:
uri (
any)handlers (
Object)handlers.onError (
( result : OperatorResult , options : ExecutionCallbackOptions ))handlers.onSuccess (
ExecutionCallback)
- Return type:
Object
Returns
An object containing the state of the operator execution.
Example:
const defaultParams = {
// default parameters of the operator
param1: "value1",
param2: "value2",
};
const paramOverrides = {
// override the parameters of the operator
param1: "value1-override",
};
const handlers = {
onSuccess: (result: OperatorResult, opts: OperatorExecutorOptions) => {
// do something with the success
},
onError: (error: OperatorResult, opts: OperatorExecutorOptions) => {
// do something with the error
}
};
const executor = useOperatorExecutor("my-operator", handlers);
const myBtnCb = useCallback(() => {
const opts: OperatorExecutorOptions = {
skipErrorNotification: true,
callback: (result: OperatorResult, opts: OperatorExecutorOptions) => {
if (result.error) {
// do something with the error
}
}
};
executor.execute(paramOverrides, opts);
}, [executor]);
useOperatorPlacements#
- @fiftyone/operators.useOperatorPlacements(place)#
- Arguments:
place (
Places)
- Return type:
Object
useOperatorRegistryState#
- @fiftyone/operators.useOperatorRegistryState()#
- Return type:
Union<'loading','ready','error'>
Where the operator registry stands with the server listing. While
loading, an operator’s absence from useOperatorAvailability means
nothing yet; ready and error are both final — after an error the
registry will not fill in on its own.
useOperators#
- @fiftyone/operators.useOperators(datasetLess)#
- Arguments:
datasetLess (
boolean)
- Return type:
Object
- Load built-in and installed JavaScript and Python operators and queue all
start-up operators for execution.
usePanelEvent#
- @fiftyone/operators.usePanelEvent()#
- Return type:
plugins.fiftyone.operators.TriggerEventFn
A hook that can be used to trigger an operator on a panel.
Returns
A function that can be used to trigger an operator on a panel.
Example:
const panelId = usePanelId();
const triggerEvent = usePanelEvent();
triggerEvent(panelId, {
operator: "@voxel51/plugin/operator#event",
params: { param1: "value1" },
});
usePendingRunScreen#
- @fiftyone/operators.usePendingRunScreen(runs, description)#
- Arguments:
runs (
Array)description (
string)
- Return type:
Object
usePendingRuns#
- @fiftyone/operators.usePendingRuns(__namedParameters, refreshKey)#
- Arguments:
__namedParameters (
PendingRunsConfig)refreshKey (
unknown)
- Return type:
Object
Scheduled, queued, running and recently failed delegated runs of
config on the current dataset, newest first. Polls only while one is
active, and each run can be viewed through config.onViewRun;
refreshKey forces a fetch when it changes. config.operators and
config.stageOperators must be referentially stable.
usePromptOperatorInput#
useRefreshOperators#
- @fiftyone/operators.useRefreshOperators()#
Re-fetches and registers operators/panels, then bumps the refresh count
so mounted consumers see anything new without a reload. Skips
loadOperators’ one-time onDatasetOpen/onStartup side effects.
- @fiftyone/operators.refreshOperators()#
- Arguments:
datasetName (
string)- Return type:
Promise < void ><void>
useTriggerPanelEvent#
useViewTargetCounts#
- @fiftyone/operators.useViewTargetCounts()#
- Return type:
Record < ViewTarget , number ><plugins.fiftyone.operators.ViewTarget,number>
Hook which provides the number of samples each view target processes.
useViewTargets#
- @fiftyone/operators.useViewTargets(options)#
- Arguments:
options (
Object)options.requireFlat (
boolean)
- Return type:
Object
Hook which resolves the view targets an operation may process.
requireFlat mirrors ctx.target_view(require_flat=...): pass the
same value the operation resolves with.
Functions#
OperatorBrowser#
- @fiftyone/operators.OperatorBrowser()#
- Return type:
ReactPortal
OperatorCore#
- @fiftyone/operators.OperatorCore()#
- Return type:
Element
OperatorIO#
- @fiftyone/operators.OperatorIO(props)#
- Arguments:
props (
any)
- Return type:
Element
OperatorInvocationRequestExecutor#
- @fiftyone/operators.OperatorInvocationRequestExecutor()#
- Return type:
Element
OperatorPlacementWithErrorBoundary#
- @fiftyone/operators.OperatorPlacementWithErrorBoundary(props)#
- Arguments:
props (
OperatorPlacementProps)
- Return type:
Element
OperatorPlacements#
- @fiftyone/operators.OperatorPlacements(props)#
- Arguments:
props (
OperatorPlacementsProps)
- Return type:
Element
OperatorPrompt#
- @fiftyone/operators.OperatorPrompt()#
- Return type:
Element
OperatorPromptArea#
- @fiftyone/operators.OperatorPromptArea(props)#
- Arguments:
props (
OperatorPromptAreaPropsType)
- Return type:
Element
ViewTargetSelector#
- @fiftyone/operators.ViewTargetSelector(__namedParameters)#
- Arguments:
__namedParameters (
Object)__namedParameters.label (
string)__namedParameters.onChange (
( value : ViewTarget ))__namedParameters.options (
Array)__namedParameters.value (
ViewTarget)
- Return type:
Element
Component which supports radio-style selection of a view target, with the
sample count each target would process.
abortOperationsByExpression#
- @fiftyone/operators.abortOperationsByExpression(expression)#
- Arguments:
expression (
any)
- Return type:
void
Cancels all abortable operations that match the given expression.
abortOperationsByURI#
- @fiftyone/operators.abortOperationsByURI(uri)#
- Arguments:
uri (
any)
- Return type:
void
Cancels all abortable operations started by the operator with the given uri.
executeOperator#
- @fiftyone/operators.executeOperator(uri, params, options)#
- Arguments:
uri (
string)params (
unknown)options (
OperatorExecutorOptions)
- Return type:
Promise < void ><void>
registerOperator#
- @fiftyone/operators.registerOperator(OperatorType, pluginName)#
- Arguments:
OperatorType
pluginName (
string)
- Return type:
void
validate#
Types#
Places#
Places where you can have your operator placement rendered.
Name |
Value |
|---|---|
DISPLAY_OPTIONS |
|
EMBEDDINGS_ACTIONS |
|
HEADER_ACTIONS |
|
HISTOGRAM_ACTIONS |
|
MAP_ACTIONS |
|
MAP_SECONDARY_ACTIONS |
|
SAMPLES_GRID_ACTIONS |
|
SAMPLES_GRID_SECONDARY_ACTIONS |
|
SAMPLES_GRID_SELECTION_ACTIONS |
|
SAMPLES_GRID_SELECTION_ASSISTANT |
|
SAMPLES_VIEWER_ACTIONS |
ViewTarget#
Enumeration of view targets for parity with server-side logic.
Name |
Value |
|---|---|
BASE_VIEW |
|
CURRENT_VIEW |
|
CUSTOM_VIEW_TARGET |
|
DATASET |
|
DATASET_VIEW |
|
SELECTED_LABELS |
|
SELECTED_SAMPLES |
Operator class for describing an autocomplete View for an
operator type.
AutocompleteView#
- class @fiftyone/operators.AutocompleteView()#
- Summary:
Operator class for describing an autocomplete
Viewfor an operator type.
- @fiftyone/operators.new AutocompleteView(options)#
- Arguments:
options (
ChoicesOptions)
- Return type:
plugins.fiftyone.operators.AutocompleteView
BaseType#
- class @fiftyone/operators.BaseType()#
- @fiftyone/operators.new BaseType()#
- Return type:
plugins.fiftyone.operators.BaseType
Operator type for representing a boolean value for operator input/output.
Boolean#
- class @fiftyone/operators.Boolean()#
- Summary:
Operator type for representing a boolean value for operator input/output.
- @fiftyone/operators.new Boolean()#
- Return type:
plugins.fiftyone.operators.OperatorBoolean
Operator class for describing a button View for an
operator type.
Choice#
- class @fiftyone/operators.Choice()#
- @fiftyone/operators.new Choice(value, options)#
- Arguments:
value (
string)options (
ViewProps)
- Return type:
plugins.fiftyone.operators.Choice
Operator class for describing choices View for an operator type.
Choices#
- class @fiftyone/operators.Choices()#
- Summary:
Operator class for describing choices
Viewfor an operator type.
- @fiftyone/operators.new Choices(options)#
- Arguments:
options (
ChoicesOptions)
- Return type:
plugins.fiftyone.operators.Choices
Operator class for describing a code block View for an
operator type.
CodeView#
- class @fiftyone/operators.CodeView()#
- Summary:
Operator class for describing a code block
Viewfor an operator type.
- @fiftyone/operators.new CodeView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.CodeView
Operator class for describing a color picker View for an
operator type.
ColorView#
- class @fiftyone/operators.ColorView()#
- Summary:
Operator class for describing a color picker
Viewfor an operator type.
- @fiftyone/operators.new ColorView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.ColorView
Operator class for describing a column View for an
operator type. Must be used in conjunction with TableView
Column#
- class @fiftyone/operators.Column()#
- @fiftyone/operators.new Column(key, options)#
- Arguments:
key (
string)options (
ViewProps)
- Return type:
plugins.fiftyone.operators.Column
Operator class for describing a ComponentView View for an
operator type. When using ComponentView, you can render a registered custom
plugin component.
ComponentView#
- class @fiftyone/operators.ComponentView()#
- Summary:
Operator class for describing a ComponentView
Viewfor an operator type. When using ComponentView, you can render a registered custom plugin component.
- @fiftyone/operators.new ComponentView(component, options)#
- Arguments:
component (
string)options (
ViewProps)
- Return type:
plugins.fiftyone.operators.ComponentView
Operator class for describing a dropdown View for an operator type.
Dropdown#
- class @fiftyone/operators.Dropdown()#
- Summary:
Operator class for describing a dropdown
Viewfor an operator type.
- @fiftyone/operators.new Dropdown(options)#
- Arguments:
options (
ChoicesOptions)
- Return type:
plugins.fiftyone.operators.Dropdown
- Operator type for representing an enum value for operator input/output. Enum
is similar to a string, but can define specific values
Enum#
- class @fiftyone/operators.Enum()#
- Summary:
Operator type for representing an enum value for operator input/output. Enum is similar to a string, but can define specific values
- @fiftyone/operators.new Enum(values)#
- Arguments:
values (
Array)
- Return type:
plugins.fiftyone.operators.Enum
Operator class for describing a error notice View for an
operator type.
Error#
- class @fiftyone/operators.Error()#
- Summary:
Operator class for describing a error notice
Viewfor an operator type.
- @fiftyone/operators.new Error(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.ErrorView
Operator class for describing a FieldView View for an
operator type.
FieldView#
- class @fiftyone/operators.FieldView()#
- Summary:
Operator class for describing a FieldView
Viewfor an operator type.
- @fiftyone/operators.new FieldView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.FieldView
Operator type for defining a file and its metadata.
File#
- class @fiftyone/operators.File()#
- Summary:
Operator type for defining a file and its metadata.
- @fiftyone/operators.new File(properties)#
- Arguments:
properties (
Map)
- Return type:
plugins.fiftyone.operators.File
initial properties on the object
Operator class for interacting with files.
FileExplorerView#
- class @fiftyone/operators.FileExplorerView()#
- Summary:
Operator class for interacting with files.
- @fiftyone/operators.new FileExplorerView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.FileExplorerView
Operator class for describing a file upload View for an
operator type.
FileView#
- class @fiftyone/operators.FileView()#
- Summary:
Operator class for describing a file upload
Viewfor an operator type.
- @fiftyone/operators.new FileView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.FileView
Operator class for describing a view (rendering details in the app) for an operator type.
Form#
- class @fiftyone/operators.Form()#
- Summary:
Operator class for describing a view (rendering details in the app) for an operator type.
- @fiftyone/operators.new Form(live, submitButtonLabel, cancelButtonLabel, options)#
- Arguments:
live (
boolean)submitButtonLabel (
string)cancelButtonLabel (
string)options (
ViewProps)
- Return type:
plugins.fiftyone.operators.Form
Operator class for describing a header View for an operator type.
Header#
- class @fiftyone/operators.Header()#
- Summary:
Operator class for describing a header
Viewfor an operator type.
- @fiftyone/operators.new Header(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.Header
Operator class for describing a hidden View for an
operator type.
InferredView#
- class @fiftyone/operators.InferredView()#
- Summary:
Operator class for describing an inferred
Viewfor an operator type. Inferred view is useful for rendering an operator type without the need to describe views for each type and sub-type explicitly
- @fiftyone/operators.new InferredView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.InferredView
Operator class for describing a json View for an
operator type.
JSONView#
- class @fiftyone/operators.JSONView()#
- Summary:
Operator class for describing a json
Viewfor an operator type.
- @fiftyone/operators.new JSONView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.JSONView
Operator class for describing a key-value View for an
operator type.
KeyValueView#
- class @fiftyone/operators.KeyValueView()#
- Summary:
Operator class for describing a key-value
Viewfor an operator type.
- @fiftyone/operators.new KeyValueView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.KeyValueView
Operator class for describing a LazyFieldView View for an
operator type. When using LazyFieldView, only apply input field changes on
blur or when user clicks the save button within the field.
LazyFieldView#
- class @fiftyone/operators.LazyFieldView()#
- Summary:
Operator class for describing a LazyFieldView
Viewfor an operator type. When using LazyFieldView, only apply input field changes on blur or when user clicks the save button within the field.
- @fiftyone/operators.new LazyFieldView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.LazyFieldView
Operator class for describing a link View for an
operator type.
LinkView#
- class @fiftyone/operators.LinkView()#
- Summary:
Operator class for describing a link
Viewfor an operator type.
- @fiftyone/operators.new LinkView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.LinkView
Operator type for representing a list value for operator input/output.
List#
- class @fiftyone/operators.List()#
- Summary:
Operator type for representing a list value for operator input/output.
- @fiftyone/operators.new List(elementType, minItems, maxItems)#
- Arguments:
elementType (
ANY_TYPE)minItems (
number)maxItems (
number)
- Return type:
plugins.fiftyone.operators.List
Operator class for describing a list View for an
operator type.
ListView#
- class @fiftyone/operators.ListView()#
- Summary:
Operator class for describing a list
Viewfor an operator type.
- @fiftyone/operators.new ListView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.ListView
Operator class for describing a loader View for an
operator type.
LoadingView#
- class @fiftyone/operators.LoadingView()#
- Summary:
Operator class for describing a loader
Viewfor an operator type.
- @fiftyone/operators.new LoadingView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.LoadingView
Operator type for representing a map value for operator input/output. Map
can be useful for accepting arbitrary key-value pair where key is of type
String and value can be any one of operator type.
Map#
- class @fiftyone/operators.Map()#
- Summary:
Operator type for representing a map value for operator input/output.
Mapcan be useful for accepting arbitrary key-value pair where key is of typeStringand value can be any one of operator type.
- @fiftyone/operators.new Map(keyType, valueType)#
Operator class for describing a map View for an
operator type.
MapView#
- class @fiftyone/operators.MapView()#
- Summary:
Operator class for describing a map
Viewfor an operator type.
- @fiftyone/operators.new MapView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.MapView
Operator class for rendering a string as markdown.
MarkdownView#
- class @fiftyone/operators.MarkdownView()#
- Summary:
Operator class for rendering a string as markdown.
- @fiftyone/operators.new MarkdownView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.MarkdownView
Operator class for describing a view (rendering details in the app) for an operator type.
MediaPlayerView#
- class @fiftyone/operators.MediaPlayerView()#
- Summary:
Operator class for describing a view (rendering details in the app) for an operator type.
- @fiftyone/operators.new MediaPlayerView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.MediaPlayerView
Operator class for describing a ModalView Button for an
operator type.
ModalView#
- class @fiftyone/operators.ModalView()#
- Summary:
Operator class for describing a ModalView
Buttonfor an operator type.
- @fiftyone/operators.new ModalView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.ModalView
Operator class for describing a informational notice View for an
operator type.
Notice#
- class @fiftyone/operators.Notice()#
- Summary:
Operator class for describing a informational notice
Viewfor an operator type.
- @fiftyone/operators.new Notice(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.Notice
Operator type for representing a number value for operator input/output.
Number#
- class @fiftyone/operators.Number()#
- Summary:
Operator type for representing a number value for operator input/output.
- @fiftyone/operators.new Number(options)#
- Arguments:
options (
Object)options.float (
boolean)options.int (
boolean)options.max (
number) – maximum number a value can beoptions.min (
number) – minimum number a value can be
- Return type:
plugins.fiftyone.operators.OperatorNumber
Construct operator type for number-like values
Operator type for representing an object value for operator input/output.
Object#
- class @fiftyone/operators.Object()#
- Summary:
Operator type for representing an object value for operator input/output.
- @fiftyone/operators.new Object(properties)#
- Arguments:
properties (
ObjectProperties)
- Return type:
plugins.fiftyone.operators.OperatorObject
- You can construct operator object type optionally providing a JS
Mapwith key representing the name of a property and the value representing the property it self. (default:
new Map())
initial properties on the object
- Operator type for representing an oneof value for operator input/output.
OneOfcan be used when a value can be of multiple types.
OneOf#
- class @fiftyone/operators.OneOf()#
- Summary:
Operator type for representing an oneof value for operator input/output.
OneOfcan be used when a value can be of multiple types.
- @fiftyone/operators.new OneOf(types)#
- Arguments:
types (
Array)
- Return type:
plugins.fiftyone.operators.OneOf
Operator class for describing a oneof View for an
operator type.
OneOfView#
- class @fiftyone/operators.OneOfView()#
- Summary:
Operator class for describing a oneof
Viewfor an operator type.
- @fiftyone/operators.new OneOfView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.OneOfView
Operator class for rendering a execution button.
PillBadgeView#
- class @fiftyone/operators.PillBadgeView()#
- Summary:
Operator class for describing a PillBadgeView
Viewfor an operator type.
- @fiftyone/operators.new PillBadgeView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.PillBadgeView
- Operator type for defining a placement for an operator. Placement is a button
that can be rendered at various places in the app
Placement#
- class @fiftyone/operators.Placement()#
- Summary:
Operator type for defining a placement for an operator. Placement is a button that can be rendered at various places in the app
- @fiftyone/operators.new Placement(place, view)#
- Arguments:
place (
Places)view (
View)
- Return type:
plugins.fiftyone.operators.Placement
Operator class for describing a plotly.js View for an
operator type.
PlotlyView#
- class @fiftyone/operators.PlotlyView()#
- Summary:
Operator class for describing a plotly.js
Viewfor an operator type.
- @fiftyone/operators.new PlotlyView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.PlotlyView
Operator class for describing a progress View for an
operator type.
ProgressView#
- class @fiftyone/operators.ProgressView()#
- Summary:
Operator class for describing a progress
Viewfor an operator type.
- @fiftyone/operators.new ProgressView(options)#
- Arguments:
options (
ProgressViewProps)
- Return type:
plugins.fiftyone.operators.ProgressView
Operator class for rendering a prompt.
PromptView#
- class @fiftyone/operators.PromptView()#
- Summary:
Operator class for rendering a prompt.
- @fiftyone/operators.new PromptView(label, submitButtonLabel, cancelButtonLabel)#
- Arguments:
label (
string)submitButtonLabel (
string)cancelButtonLabel (
string)
- Return type:
plugins.fiftyone.operators.PromptView
- Operator type for representing a property of operator
Objecttype.
Property#
- class @fiftyone/operators.Property()#
- Summary:
Operator type for representing a property of operator
Objecttype.
- @fiftyone/operators.new Property(type, options)#
- Arguments:
type (
ANY_TYPE)options (
PropertyOptions)
- Return type:
plugins.fiftyone.operators.Property
Operator class for describing a radio-group View for an operator type.
RadioGroup#
- class @fiftyone/operators.RadioGroup()#
- Summary:
Operator class for describing a radio-group
Viewfor an operator type.
- @fiftyone/operators.new RadioGroup(options)#
- Arguments:
options (
ChoicesOptions)
- Return type:
plugins.fiftyone.operators.RadioGroup
Operator class for describing a read-only View for an operator type.
ReadOnlyView#
- class @fiftyone/operators.ReadOnlyView()#
- Summary:
Operator class for describing a read-only
Viewfor an operator type.
- @fiftyone/operators.new ReadOnlyView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.ReadOnlyView
ResolvableProperty#
- class @fiftyone/operators.ResolvableProperty()#
- @fiftyone/operators.new ResolvableProperty(options)#
- Arguments:
options (
ResolvablePropertyOptions)
- Return type:
plugins.fiftyone.operators.ResolvableProperty
Construct operator type for resolvable property
Operator type for representing a sampled id value for operator input/output.
SampleID#
- class @fiftyone/operators.SampleID()#
- Summary:
Operator type for representing a sampled id value for operator input/output.
- @fiftyone/operators.new SampleID(options)#
- Arguments:
options
options.allowEmpty – allow an empty string value
- number
- type options:
Object
- type options.allowEmpty:
boolean
- rtype:
plugins.fiftyone.operators.SampleID
Construct operator type for string values
Operator class for rendering a status button.
String#
- class @fiftyone/operators.String()#
- Summary:
Operator type for representing a string value for operator input/output.
- @fiftyone/operators.new String(options)#
- Arguments:
options
options.allowEmpty – allow an empty string value
- number
- type options:
Object
- type options.allowEmpty:
boolean
- rtype:
plugins.fiftyone.operators.OperatorString
Construct operator type for string values
Operator class for describing a table View for an
operator type.
TableView#
- class @fiftyone/operators.TableView()#
- Summary:
Operator class for describing a table
Viewfor an operator type.
- @fiftyone/operators.new TableView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.TableView
Operator class for describing a tabs View for an
operator type.
TabsView#
- class @fiftyone/operators.TabsView()#
- Summary:
Operator class for describing a tabs
Viewfor an operator type.
- @fiftyone/operators.new TabsView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.TabsView
Operator class for describing a TextFieldView View for an
operator type.
TextFieldView#
- class @fiftyone/operators.TextFieldView()#
- Summary:
Operator class for describing a TextFieldView
Viewfor an operator type.
- @fiftyone/operators.new TextFieldView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.TextFieldView
Operator class for describing a TextView View for an
operator type.
TextView#
- class @fiftyone/operators.TextView()#
- Summary:
Operator class for describing a TextView
Viewfor an operator type.
- @fiftyone/operators.new TextView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.TextView
Operator class for describing a ToastView View for an
operator type.
ToastView#
- class @fiftyone/operators.ToastView()#
- Summary:
Operator class for describing a ToastView
Viewfor an operator type.
- @fiftyone/operators.new ToastView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.ToastView
Operator class for describing a tree node selection View for an
operator type.
TreeSelectionView#
- class @fiftyone/operators.TreeSelectionView()#
- Summary:
Operator class for describing a tree node selection
Viewfor an operator type.
- @fiftyone/operators.new TreeSelectionView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.TreeSelectionView
Operator type for defining a trigger for an operator.
Trigger#
- class @fiftyone/operators.Trigger()#
- Summary:
Operator type for defining a trigger for an operator.
- @fiftyone/operators.new Trigger(operator, params)#
- Arguments:
operator (
string)params (
object)
- Return type:
plugins.fiftyone.operators.Trigger
- Operator type for representing a tuple value for operator input/output.
Tuplecan be useful for defining list of values of mixed types
Tuple#
- class @fiftyone/operators.Tuple()#
- Summary:
Operator type for representing a tuple value for operator input/output.
Tuplecan be useful for defining list of values of mixed types
- @fiftyone/operators.new Tuple(items)#
- Arguments:
items (
Array)
- Return type:
plugins.fiftyone.operators.Tuple
Operator class for describing a tuple View for an
operator type.
TupleView#
- class @fiftyone/operators.TupleView()#
- Summary:
Operator class for describing a tuple
Viewfor an operator type.
- @fiftyone/operators.new TupleView(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.TupleView
Operator type for defining an uploaded file and its metadata.
UploadedFile#
- class @fiftyone/operators.UploadedFile()#
- Summary:
Operator type for defining an uploaded file and its metadata.
- @fiftyone/operators.new UploadedFile(properties)#
- Arguments:
properties (
Map)
- Return type:
plugins.fiftyone.operators.UploadedFile
initial properties on the object
Operator class for describing a view (rendering details in the app) for an operator type.
View#
- class @fiftyone/operators.View()#
- Summary:
Operator class for describing a view (rendering details in the app) for an operator type.
- @fiftyone/operators.new View(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.View
- Operator type for representing void value for operator input/output. Void
type can be useful for displaying a informational-only views.
Void#
- class @fiftyone/operators.Void()#
- Summary:
Operator type for representing void value for operator input/output. Void type can be useful for displaying a informational-only views.
- @fiftyone/operators.new Void()#
- Return type:
plugins.fiftyone.operators.Void
Operator class for describing a warning notice View for an
operator type.
Warning#
- class @fiftyone/operators.Warning()#
- Summary:
Operator class for describing a warning notice
Viewfor an operator type.
- @fiftyone/operators.new Warning(options)#
- Arguments:
options (
ViewProps)
- Return type:
plugins.fiftyone.operators.Warning
- class @fiftyone/operators.ANY_TYPE()#
ANY_TYPE#
OperatorObjectis exported asObjectOperatorStringis exported asStringOperatorBooleanis exported asBooleanOperatorNumberis exported asNumberOperatorMapis exported asMap
Union of Void, OperatorObject, OperatorString, OperatorBoolean, OperatorNumber, List, Enum, OneOf, Tuple, OperatorMap, File, UploadedFile, ResolvableProperty
- class @fiftyone/operators.OperatorPromptPropsType()#
OperatorPromptPropsType#
Name |
Type |
Description |
|---|---|---|
OperatorPromptPropsType.prompt |
|
- class @fiftyone/operators.OperatorPromptType()#
OperatorPromptType#
Name |
Type |
Description |
|---|---|---|
OperatorPromptType |
|
- class @fiftyone/operators.OperatorResponse()#
OperatorResponse#
Response type returned from operator execution.
Name |
Type |
Description |
|---|---|---|
OperatorResponse.delegated |
|
|
OperatorResponse.error |
|
|
OperatorResponse.error_message |
|
|
OperatorResponse.executor |
|
|
OperatorResponse.result |
|
- class @fiftyone/operators.PropertyJSON()#
PropertyJSON#
Name |
Type |
Description |
|---|---|---|
PropertyJSON.error_message |
|
|
PropertyJSON.type |
|
- class @fiftyone/operators.ValidationErrorsType()#
ValidationErrorsType#
- class @fiftyone/operators.ViewOrientation()#
ViewOrientation#
Union of 'horizontal', 'vertical'
- class @fiftyone/operators.ViewPropertyTypes()#
ViewPropertyTypes#
Union of string, boolean, number, Array, View, object, ViewOrientation
typeFromJSON#
viewFromJSON#
- @fiftyone/operators.viewFromJSON(json)#
- Arguments:
json (
any)
- Return type:
any
- class @fiftyone/operators.PendingRun()#
PendingRun#
Name |
Type |
Description |
|---|---|---|
PendingRun.brain_key |
|
|
PendingRun.id |
|
|
PendingRun.label |
|
|
PendingRun.operator |
|
|
PendingRun.run_state |
|
- class @fiftyone/operators.PendingRunWithView()#
PendingRunWithView#
- class @fiftyone/operators.PendingRunsConfig()#
PendingRunsConfig#
Name |
Type |
Description |
|---|---|---|
PendingRunsConfig.onViewRun |
|
|
PendingRunsConfig.operators |
|
Delegated operator URIs whose runs count |
PendingRunsConfig.stageOperators |
|
Pipeline stage URIs that make a pipeline parent count |
- class @fiftyone/operators.ViewTargetMeta()#
ViewTargetMeta#
Name |
Type |
Description |
|---|---|---|
ViewTargetMeta.description |
|
|
ViewTargetMeta.label |
|
|
ViewTargetMeta.target |
|
|
ViewTargetMeta.unavailableReason |
|
Enums#
OPERATOR_PROMPT_AREAS#
Name |
Value |
|---|---|
DRAWER_LEFT |
|
DRAWER_RIGHT |
RiskLevel#
Name |
Value |
|---|---|
DANGEROUS |
|
HIGH |
|
LOW |
|
MEDIUM |