chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -98,7 +98,9 @@ function useDrag(params: UseDragParams) {
|
||||
return n
|
||||
})
|
||||
|
||||
if (!hasChange) return
|
||||
if (!hasChange) {
|
||||
return
|
||||
}
|
||||
|
||||
updateNodePositions(dragItems, true, true)
|
||||
|
||||
@@ -116,7 +118,9 @@ function useDrag(params: UseDragParams) {
|
||||
}
|
||||
|
||||
const autoPan = (): void => {
|
||||
if (!containerBounds) return
|
||||
if (!containerBounds) {
|
||||
return
|
||||
}
|
||||
|
||||
const [xMovement, yMovement] = calcAutoPan(mousePosition, containerBounds)
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ export default (keyFilter: MaybeRef<KeyFilter | null>, onChange?: (keyPressed: b
|
||||
(e) => {
|
||||
modifierPressed = wasModifierPressed(e)
|
||||
|
||||
if (!modifierPressed && isInputDOMNode(e)) return
|
||||
if (!modifierPressed && isInputDOMNode(e)) {
|
||||
return
|
||||
}
|
||||
|
||||
e.preventDefault()
|
||||
|
||||
@@ -90,7 +92,9 @@ export default (keyFilter: MaybeRef<KeyFilter | null>, onChange?: (keyPressed: b
|
||||
unrefKeyFilter,
|
||||
(e) => {
|
||||
if (isPressed) {
|
||||
if (!modifierPressed && isInputDOMNode(e)) return
|
||||
if (!modifierPressed && isInputDOMNode(e)) {
|
||||
return
|
||||
}
|
||||
|
||||
modifierPressed = false
|
||||
|
||||
|
||||
@@ -83,7 +83,9 @@ export default (state: State, getters: ComputedGetters) => {
|
||||
duration: 0,
|
||||
},
|
||||
) => {
|
||||
if (!nodes.length) return
|
||||
if (!nodes.length) {
|
||||
return
|
||||
}
|
||||
|
||||
const nodesToFit: GraphNode[] = (options.includeHiddenNodes ? nodes : getNodes).filter((node) => {
|
||||
const initialized = node.initialized && node.dimensions.width && node.dimensions.height
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
type UseWindow = Window & typeof globalThis & { chrome?: any }
|
||||
|
||||
export default (): UseWindow => {
|
||||
if (typeof window !== 'undefined') return window as UseWindow
|
||||
else return { chrome: false } as UseWindow
|
||||
if (typeof window !== 'undefined') {
|
||||
return window as UseWindow
|
||||
} else {
|
||||
return { chrome: false } as UseWindow
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,9 @@ export default (vueFlowId?: string): ViewportFunctions => {
|
||||
duration: 0,
|
||||
},
|
||||
) => {
|
||||
if (!nodes.length) return
|
||||
if (!nodes.length) {
|
||||
return
|
||||
}
|
||||
|
||||
const nodesToFit: GraphNode[] = (options.includeHiddenNodes ? nodes : getNodes).filter((node) => {
|
||||
const initialized = node.initialized && node.dimensions.width && node.dimensions.height
|
||||
|
||||
Reference in New Issue
Block a user