feat: Add dedicated default loading component
* add option to pass a transition name Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+15
-1
@@ -78,6 +78,20 @@ export type FitViewFunc = (fitViewOptions?: FitViewParams) => void
|
||||
export type ProjectFunc = (position: XYPosition) => XYPosition
|
||||
export type ToObjectFunc<T = any> = () => FlowExportObject<T>
|
||||
|
||||
export type Loading =
|
||||
| {
|
||||
label: string
|
||||
transition?:
|
||||
| string
|
||||
| {
|
||||
name: string
|
||||
mode: string
|
||||
}
|
||||
style: CSSProperties
|
||||
class: string
|
||||
}
|
||||
| boolean
|
||||
|
||||
export type FlowInstance<T = any> = {
|
||||
zoomIn: () => void
|
||||
zoomOut: () => void
|
||||
@@ -126,5 +140,5 @@ export interface FlowOptions {
|
||||
zoomOnDoubleClick?: boolean
|
||||
edgeUpdaterRadius?: number
|
||||
storageKey?: string
|
||||
showLoadingIndicator?: boolean
|
||||
loading?: Loading
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user