refactore(store)!: Remove transition and loading.transition property

* Tranisitions break testing and are superflous

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-04 15:42:18 +01:00
parent 9abc222c14
commit b1f541b63d
4 changed files with 97 additions and 124 deletions
+1 -15
View File
@@ -88,20 +88,6 @@ 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
@@ -151,5 +137,5 @@ export interface FlowOptions {
preventScrolling?: boolean
edgeUpdaterRadius?: number
storageKey?: string
loading?: Loading
loading?: string
}