Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDraggingParameterProps

Properties of a dragging parameter.

Hierarchy

Index

Properties

draggingColor?: string

The color of the objects when dragged. (default: '#0d44f0')

hover?: boolean

If the objects are hoverable. (default: true)

hoverColor?: string

The color of the objects when hovered. (default: '#00ff78')

objects?: IDraggableObject[]

The objects that can be dragged.

For each object, the name filter, the restrictions, the drag anchors, and the drag origin can be defined. The name filter is used to filter the objects that can be dragged with the defined settings. This means that multiple objects can be dragged with different settings, but also multiple objects can be dragged with the same settings.

prompt?: { activeText?: string; activeTitle?: string; inactiveTitle?: string }

A prompt that can be defined which is displayed instead of the default prompt.

Type declaration

  • Optional activeText?: string

    The text when the parameter is inactive.

  • Optional activeTitle?: string

    The title when the parameter is active.

  • Optional inactiveTitle?: string

    The title when the parameter is inactive.

restrictions?: RestrictionDefinition[]