Skip to main content

react-easy-diagram

Classes

Interfaces

Type Aliases

BackgroundSvgImageGenerator

Ƭ BackgroundSvgImageGenerator: (width: number, height: number) => string

Type declaration

▸ (width, height): string

Parameters
NameType
widthnumber
heightnumber
Returns

string


BoundingBox

Ƭ BoundingBox: Object

Type declaration

NameType
bottomRightCornerPoint
sizePoint
topLeftCornerPoint

CornerPosition

Ƭ CornerPosition: "left-top" | "right-top" | "right-bottom" | "left-bottom"


Direction

Ƭ Direction: "left" | "right" | "up" | "down"


DirectionWithDiagonals

Ƭ DirectionWithDiagonals: Direction | "left-down" | "left-up" | "right-down" | "right-up"


ErrorResult

Ƭ ErrorResult<TValue>: TValue extends undefined ? { error?: string ; success: false } : { error?: string ; success: false ; value: TValue }

Type parameters

NameType
TValueundefined

GestureHandlers

Ƭ GestureHandlers: Partial<UserHandlers<EventTypes> & NativeHandlers<EventTypes>>


IDiagramContextProps

Ƭ IDiagramContextProps: React.PropsWithChildren<{ initState?: IDiagramInitState ; settings?: ISettings ; storeRef?: React.MutableRefObject<RootStore | null> }>


IDiagramProps

Ƭ IDiagramProps: IDiagramInnerProps & IDiagramContextProps


ILinkPathConstructor

Ƭ ILinkPathConstructor: (source: ILinkPathConstructorEndpointInfo, target: ILinkPathConstructorEndpointInfo) => string

Type declaration

▸ (source, target): string

Parameters
NameType
sourceILinkPathConstructorEndpointInfo
targetILinkPathConstructorEndpointInfo
Returns

string


INodeDefaultSettingsWithoutPorts

Ƭ INodeDefaultSettingsWithoutPorts: Omit<INodeDefaultSettings, "ports">


LinkDefaultSettingsByStates

Ƭ LinkDefaultSettingsByStates<TValue>: { [key in LinkDefaultState]?: TValue }

Type parameters

Name
TValue

LinkDefaultState

Ƭ LinkDefaultState: "base" | "hovered" | "selected" | "selected-hovered"


MultipleSelectionKey

Ƭ MultipleSelectionKey: "ctrl" | "alt" | "meta" | "shift"


NodeDefaultSettingsByStates

Ƭ NodeDefaultSettingsByStates<TValue>: { [key in NodeDefaultState]?: TValue }

Type parameters

Name
TValue

NodeDefaultState

Ƭ NodeDefaultState: "base" | "hovered" | "selected" | "selected-hovered"


Optional

Ƭ Optional<T, K>: Pick<Partial<T>, K> & Omit<T, K>

Type parameters

NameType
TT
Kextends keyof T

Point

Ƭ Point: readonly [number, number]


PortInnerDefaultSettingsByStates

Ƭ PortInnerDefaultSettingsByStates<TValue>: { [key in PortInnerDefaultState]?: TValue }

Type parameters

Name
TValue

PortInnerDefaultState

Ƭ PortInnerDefaultState: "base" | "hovered" | "dragging" | "invalid" | "node-hovered" | "node-selected"


PortPosition

Ƭ PortPosition: typeof portPositionValues[number]


Position

Ƭ Position: typeof positionValues[number]


PropertyChange

Ƭ PropertyChange<TValue>: Object

Type parameters

Name
TValue

Type declaration

NameType
newValueTValue
oldValueTValue

SelectableItem

Ƭ SelectableItem: NodeState | LinkState


SuccessOrErrorResult

Ƭ SuccessOrErrorResult<TValue, TErrorValue>: SuccessResult<TValue> | ErrorResult<TErrorValue>

Type parameters

NameType
TValueundefined
TErrorValueundefined

SuccessResult

Ƭ SuccessResult<TValue>: TValue extends undefined ? { success: true } : { success: true ; value: TValue }

Type parameters

NameType
TValueundefined

VisualComponent

Ƭ VisualComponent<TComponentProps>: React.FunctionComponent<TComponentProps>

Type parameters

Name
TComponentProps

check

Ƭ check<T, Key>: undefined extends T[Key] ? EventTypes[Key] : T[Key]

Type parameters

NameType
Textends AnyHandlerEventTypes
Keyextends GestureKey

Variables

BackgroundWrapper

Const BackgroundWrapper: () => Element & { displayName: string }


Button

Const Button: React.FC<{ children?: React.ReactNode ; size: number ; onClick: () => any }>


COMPONENT_DEFAULT_TYPE

Const COMPONENT_DEFAULT_TYPE: "default"


CopyIcon

Const CopyIcon: React.FC


DISABLE_NODE_USER_INTERACTION_CLASS

Const DISABLE_NODE_USER_INTERACTION_CLASS: "react_easy_diagram_disable_node_user_interaction"


DiagramContext

Const DiagramContext: (props: PropsWithChildren<{ initState?: IDiagramInitState ; settings?: ISettings ; storeRef?: MutableRefObject<null | RootStore> }>) => Element & { displayName: string }


DigramInner

Const DigramInner: FunctionComponent<IDiagramInnerProps>


ENABLE_NODE_USER_INTERACTION_CLASS

Const ENABLE_NODE_USER_INTERACTION_CLASS: "react_easy_diagram_enable_node_user_interaction"


FilterCenterFocusIcon

Const FilterCenterFocusIcon: React.FC


Const LINK_CREATION_COMPONENT_TYPE: string = 'linkCreation'


LinkDefault

Const LinkDefault: React.FC<ILinkVisualComponentProps<ILinkDefaultSettings>>


Const LinkWrapper: FunctionComponent<{ link: LinkState | LinkCreationState }>


LinksLayer

Const LinksLayer: FunctionComponent<{ transform: string }>


LockIcon

Const LockIcon: React.FC


MiniControlWrapper

Const MiniControlWrapper: () => Element & { displayName: string }


NodeContext

Const NodeContext: Context<null | NodeState>


NodeLabel

Const NodeLabel: React.FC<{ node: NodeState }>


NodeWrapper

Const NodeWrapper: FunctionComponent<{ node: NodeState }>


NodesLayer

Const NodesLayer: FunctionComponent<{ transform: string }>


Port

Const Port: React.FC<IPortProps>


RootStoreContext

Const RootStoreContext: Context<null | RootStore>


RubbishBinIcon

Const RubbishBinIcon: React.FC


UnlockIcon

Const UnlockIcon: React.FC


cloneSelectedNodesCommand

Const cloneSelectedNodesCommand: Object

Type declaration

NameType
execute(rootStore: RootStore) => void

defaultLinkMainLineClasses

Const defaultLinkMainLineClasses: LinkDefaultSettingsByStates<string[]>


defaultLinkSecondaryLineClasses

Const defaultLinkSecondaryLineClasses: LinkDefaultSettingsByStates<string[]>


defaultNodeClasses

Const defaultNodeClasses: NodeDefaultSettingsByStates<string[]>


defaultPortInnerClasses

Const defaultPortInnerClasses: PortInnerDefaultSettingsByStates<string[]>


portPositionValues

Const portPositionValues: readonly ["left-top", "left-center", "left-bottom", "top-left", "top-center", "top-right", "right-top", "right-center", "right-bottom", "bottom-left", "bottom-center", "bottom-right", "diagonal-left-top", "diagonal-right-top", "diagonal-right-bottom", "diagonal-left-bottom"]


positionValues

Const positionValues: readonly ["left", "top", "right", "bottom"]


removeSelectedCommand

Const removeSelectedCommand: Object

Type declaration

NameType
execute(rootStore: RootStore) => void

removeSelectedLinksCommand

Const removeSelectedLinksCommand: Object

Type declaration

NameType
execute(rootStore: RootStore) => void

removeSelectedNodesCommand

Const removeSelectedNodesCommand: Object

Type declaration

NameType
execute(rootStore: RootStore) => void

Functions

Diagram

Diagram(props): Element

Parameters

NameType
propsIDiagramProps

Returns

Element


DragAndDropContainer

DragAndDropContainer(props): Element

Parameters

NameType
propsDragAndDropContainerProps

Returns

Element


DragAndDropItem

DragAndDropItem(props): Element

Parameters

NameType
propsDragAndDropItemProps

Returns

Element


addNodeCommand

addNodeCommand(node): Object

Parameters

NameType
nodeINodeState

Returns

Object

NameType
execute(rootStore: RootStore) => void

addPoints

addPoints(...points): Point

Parameters

NameType
...points(undefined | null | Point)[]

Returns

Point


arePointsEqual

arePointsEqual(a?, b?): boolean

Parameters

NameType
a?Point
b?Point

Returns

boolean


areTransformationsEqual

areTransformationsEqual(a, b): boolean

Parameters

NameType
aITransformation
bITransformation

Returns

boolean


canDragGestureBeTapInstead

canDragGestureBeTapInstead(movement): boolean

Does gesture can be potentially a tap/click event? Drag gesture will be tap/click gesture on mouse or touch release only when the drag displacement is inferior to 3 pixels. See useGestures documentation for more information.

Parameters

NameTypeDescription
movementVector2state value of gesture, represent gesture offset

Returns

boolean


clampValue

clampValue(value, interval): number

Parameters

NameType
valuenumber
intervalPoint

Returns

number


combineArrays

combineArrays<TValue>(...arrays): TValue[]

Type parameters

Name
TValue

Parameters

NameType
...arrays(undefined | TValue[])[]

Returns

TValue[]


commandC

commandC(startPoint, control1, control2, endPoint): string

Parameters

NameType
startPointPoint
control1Point
control2Point
endPointPoint

Returns

string


commandM

commandM(point): string

Parameters

NameType
pointPoint

Returns

string


coordinateFromPoint

coordinateFromPoint(point): string

Parameters

NameType
pointPoint

Returns

string


createArrowMarker

createArrowMarker(settings): React.FunctionComponent

Parameters

NameType
settingsISvgArrowMarkerSettings

Returns

React.FunctionComponent


createCircleMarker

createCircleMarker(settings): React.FunctionComponent

Parameters

NameType
settingsISvgCircleMarkerSettings

Returns

React.FunctionComponent


createCrossesImageGenerator

createCrossesImageGenerator(sizeMultiplicator, color, opacity): BackgroundSvgImageGenerator

Parameters

NameType
sizeMultiplicatornumber
colorstring
opacitynumber

Returns

BackgroundSvgImageGenerator


createCurvedLinkPathConstructor

createCurvedLinkPathConstructor(settings?): ILinkPathConstructor

Parameters

NameType
settings?Partial<ICurvedLinkPathConstructorSettings>

Returns

ILinkPathConstructor


createDefaultMiniControl

createDefaultMiniControl(settings?): IComponentDefinition<IMiniControlComponentProps<any>, IMiniControlDefaultSettings>

Parameters

NameType
settings?Partial<IMiniControlDefaultSettings>

Returns

IComponentDefinition<IMiniControlComponentProps<any>, IMiniControlDefaultSettings>


createDotsImageGenerator

createDotsImageGenerator(sizeMultiplicator, dotsColor, dotsOpacity, dotsRadius): BackgroundSvgImageGenerator

Parameters

NameType
sizeMultiplicatornumber
dotsColorstring
dotsOpacitynumber
dotsRadiusnumber

Returns

BackgroundSvgImageGenerator


createFullPortId

createFullPortId(nodeId, portId): string

Parameters

NameType
nodeIdstring
portIdstring

Returns

string


createGridImageGenerator

createGridImageGenerator(sizeMultiplicator, linesColor, linesOpacity): BackgroundSvgImageGenerator

Parameters

NameType
sizeMultiplicatornumber
linesColorstring
linesOpacitynumber

Returns

BackgroundSvgImageGenerator


createInputHorizontalNode

createInputHorizontalNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?Pick<INodeDefaultSettings, "innerNode" | "removeDefaultClasses" | "classes" | "style">

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createInputOutputHorizontalNode

createInputOutputHorizontalNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?Pick<INodeDefaultSettings, "innerNode" | "removeDefaultClasses" | "classes" | "style">

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createInputOutputVerticalNode

createInputOutputVerticalNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?Pick<INodeDefaultSettings, "innerNode" | "removeDefaultClasses" | "classes" | "style">

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createInputVerticalNode

createInputVerticalNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?Pick<INodeDefaultSettings, "innerNode" | "removeDefaultClasses" | "classes" | "style">

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createLinkDefault

createLinkDefault(settings?): IComponentDefinition<ILinkVisualComponentProps, Partial<ILinkDefaultSettings>>

Parameters

NameType
settings?ILinkDefaultSettings

Returns

IComponentDefinition<ILinkVisualComponentProps, Partial<ILinkDefaultSettings>>


createLinkPath

createLinkPath(rootStore, source, target): ILinkPath | undefined

Parameters

NameType
rootStoreRootStore
sourceLinkPortEndpointState
targetLinkPortEndpointState | LinkPointEndpointState

Returns

ILinkPath | undefined


createNode

createNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?INodeDefaultSettings

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createNodeOnDrop

createNodeOnDrop(node): (event: DragAndDropEvent) => void

Parameters

NameType
nodePick<INodeState, "id" | "label" | "type" | "data" | "isSelectionEnabled" | "isDragEnabled" | "ports">

Returns

fn

▸ (event): void

Parameters
NameType
eventDragAndDropEvent
Returns

void


createOutputHorizontalNode

createOutputHorizontalNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?Pick<INodeDefaultSettings, "innerNode" | "removeDefaultClasses" | "classes" | "style">

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createOutputVerticalNode

createOutputVerticalNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?Pick<INodeDefaultSettings, "innerNode" | "removeDefaultClasses" | "classes" | "style">

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createPortInnerDefault

createPortInnerDefault(settings?): IComponentDefinition<IPortVisualComponentProps, IPortInnerDefaultSettings>

Parameters

NameType
settings?IPortInnerDefaultSettings

Returns

IComponentDefinition<IPortVisualComponentProps, IPortInnerDefaultSettings>


createPortsContainer

createPortsContainer(settings?): VisualComponent<IPortsContainerProps>

Parameters

NameType
settings?Partial<IPortsContainerSettings>

Returns

VisualComponent<IPortsContainerProps>


createStarNode

createStarNode(settings?): IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>

Parameters

NameType
settings?Pick<INodeDefaultSettings, "innerNode" | "removeDefaultClasses" | "classes" | "style">

Returns

IComponentDefinition<INodeVisualComponentProps<INodeDefaultSettings>, INodeDefaultSettings>


createStraightLinkPathConstructor

createStraightLinkPathConstructor(): ILinkPathConstructor

Returns

ILinkPathConstructor


createSvgBackground

createSvgBackground(settings?): IComponentDefinition<IBackgroundComponentProps<any>, ISvgBackgroundSettings>

Parameters

NameType
settings?Partial<ISvgBackgroundSettings>

Returns

IComponentDefinition<IBackgroundComponentProps<any>, ISvgBackgroundSettings>


createVector

createVector(p, length, angleInRadian): Point

Parameters

NameType
pPoint
lengthnumber
angleInRadianundefined | number

Returns

Point


deepCopy

deepCopy<TValue>(value): TValue

Type parameters

Name
TValue

Parameters

NameType
valueTValue

Returns

TValue


distanceBetweenPoints

distanceBetweenPoints(a, b): number

Parameters

NameType
aPoint
bPoint

Returns

number


errorResult

errorResult(error?): ErrorResult

Parameters

NameType
error?string

Returns

ErrorResult


errorValueResult

errorValueResult<TErrorValue>(value, error?): ErrorResult<TErrorValue>

Type parameters

Name
TErrorValue

Parameters

NameType
valueTErrorValue
error?string

Returns

ErrorResult<TErrorValue>


eventPathContainsClass

eventPathContainsClass(event, className, exceptClassName?): boolean

Check each element starting from the first one in composedPath() (see https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath), if exceptClassName is the first class found -> return false, if className is the first class found -> return true, if neither exceptClassName nor className were found -> return false

Parameters

NameType
eventPointerEvent | MouseEvent | TouchEvent | KeyboardEvent
classNamestring
exceptClassName?string

Returns

boolean


generateTransform

generateTransform(translate, scale?): string

Parameters

NameType
translatePoint
scale?number

Returns

string


getDegree

getDegree(dir): number | undefined

Parameters

NameType
dirundefined | "left" | "right" | "up" | "down" | "left-down" | "left-up" | "right-down" | "right-up"

Returns

number | undefined


getRadian

getRadian(dir): number | undefined

Parameters

NameType
dirundefined | "left" | "right" | "up" | "down" | "left-down" | "left-up" | "right-down" | "right-up"

Returns

number | undefined


guid

guid(): string

Returns

string


guidForcedUniqueness

guidForcedUniqueness(checkExistence): string

Parameters

NameType
checkExistence(id: string) => boolean

Returns

string


isBoolean

isBoolean(value): value is boolean

Parameters

NameType
valueany

Returns

value is boolean


isError

isError<TValue, TErrorValue>(result): result is ErrorResult<TErrorValue>

Type parameters

Name
TValue
TErrorValue

Parameters

NameType
resultSuccessOrErrorResult<TValue, TErrorValue>

Returns

result is ErrorResult<TErrorValue>


isNumber

isNumber(value): value is number

Parameters

NameType
valueany

Returns

value is number


isObject

isObject(value): value is object

Parameters

NameType
valueany

Returns

value is object


isPoint

isPoint(value): value is Point

Parameters

NameType
valueany

Returns

value is Point


isSuccess

isSuccess<TValue, TErrorValue>(result): result is SuccessResult<TValue>

Type parameters

Name
TValue
TErrorValue

Parameters

NameType
resultSuccessOrErrorResult<TValue, TErrorValue>

Returns

result is SuccessResult<TValue>


linkPortEndpointsEquals

linkPortEndpointsEquals(a, b): boolean

Parameters

NameType
aILinkPortEndpoint
bILinkPortEndpoint

Returns

boolean


multiplyPoint

multiplyPoint(a, m): Point

Parameters

NameType
aPoint
mnumber

Returns

Point


roundPoint

roundPoint(point): Point

Parameters

NameType
pointPoint

Returns

Point


subtractPoints

subtractPoints(...points): Point

Parameters

NameType
...pointsPoint[]

Returns

Point


successResult

successResult(): SuccessResult

Returns

SuccessResult


successValueResult

successValueResult<TValue>(value): SuccessResult<TValue>

Type parameters

Name
TValue

Parameters

NameType
valueTValue

Returns

SuccessResult<TValue>


useCursor

useCursor(active, cursor, ref): void

Parameters

NameType
activeboolean
cursorundefined | "move" | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-grab" | "-webkit-grab" | "alias" | "all-scroll" | "auto" | "cell" | "col-resize" | "context-menu" | "copy" | "crosshair" | "default" | "e-resize" | "ew-resize" | "grab" | "grabbing" | "help" | "n-resize" | "ne-resize" | "nesw-resize" | "no-drop" | "none" | "not-allowed" | "ns-resize" | "nw-resize" | "nwse-resize" | "pointer" | "progress" | "row-resize" | "s-resize" | "se-resize" | "sw-resize" | "text" | "vertical-text" | "w-resize" | "wait" | "zoom-in" | "zoom-out"
refnull | HTMLDivElement

Returns

void


useDiagram

useDiagram(initState?, settings?): Object

Parameters

NameType
initState?IDiagramInitState
settings?ISettings

Returns

Object

NameType
Diagram() => Element
storeRefMutableRefObject<null | RootStore>

useDiagramCursor

useDiagramCursor(active, cursor): void

Parameters

NameType
activeboolean
cursorundefined | "move" | string & {} | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-grab" | "-webkit-grab" | "alias" | "all-scroll" | "auto" | "cell" | "col-resize" | "context-menu" | "copy" | "crosshair" | "default" | "e-resize" | "ew-resize" | "grab" | "grabbing" | "help" | "n-resize" | "ne-resize" | "nesw-resize" | "no-drop" | "none" | "not-allowed" | "ns-resize" | "nw-resize" | "nwse-resize" | "pointer" | "progress" | "row-resize" | "s-resize" | "se-resize" | "sw-resize" | "text" | "vertical-text" | "w-resize" | "wait" | "zoom-in" | "zoom-out"

Returns

void


useDiagramDragHandlers

useDiagramDragHandlers(cancelEvent): IDragHandlers

Parameters

NameType
cancelEvent(event: { target: null | EventTarget }) => boolean

Returns

IDragHandlers


useDiagramPinchHandlers

useDiagramPinchHandlers(cancel): IPinchHandlers

Parameters

NameType
cancel(event: { target: null | EventTarget }) => boolean

Returns

IPinchHandlers


useDiagramUserInteraction

useDiagramUserInteraction(): void

Returns

void


useDiagramWheelHandler

useDiagramWheelHandler(state): IWheelHandler

Parameters

NameType
stateIUserInteractionTranslateAndZoom

Returns

IWheelHandler


useLinkUserInteraction

useLinkUserInteraction(linkState): IUseLinkUserInteractionResult

Parameters

NameType
linkStateLinkState | LinkCreationState

Returns

IUseLinkUserInteractionResult


useNodeUserInteraction

useNodeUserInteraction(nodeState): void

Parameters

NameType
nodeStateNodeState

Returns

void


useNotifyRef

useNotifyRef<TValue>(init): MutableRefObject<TValue>

Type parameters

Name
TValue

Parameters

NameType
initTValue

Returns

MutableRefObject<TValue>


usePortUserInteraction

usePortUserInteraction(portState?): IUsePortUserInteractionResult

Parameters

NameType
portState?PortState

Returns

IUsePortUserInteractionResult


useRelativePositionStyles

useRelativePositionStyles(position?, offsetFromParentCenter?, offsetFromOrigin?, usePortCenterPivot?): Pick<Partial<CSSProperties>, "position" | "transform" | "left" | "top" | "right" | "bottom" | "width" | "height">

Parameters

NameTypeDefault value
position?null | "left-top" | "right-top" | "right-bottom" | "left-bottom" | "left-center" | "top-left" | "top-center" | "top-right" | "right-center" | "bottom-left" | "bottom-center" | "bottom-right" | "diagonal-left-top" | "diagonal-right-top" | "diagonal-right-bottom" | "diagonal-left-bottom"undefined
offsetFromParentCenter?null | numberundefined
offsetFromOrigin?null | Pointundefined
usePortCenterPivotbooleantrue

Returns

Pick<Partial<CSSProperties>, "position" | "transform" | "left" | "top" | "right" | "bottom" | "width" | "height">


useRootStore

useRootStore(): RootStore

Returns

RootStore


useStyling

useStyling(options, state): Object

Parameters

NameType
optionsIUseStylingOptions
statestring

Returns

Object

NameType
classNamestring
styleCSSProperties