linting
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
import { getEdgeToolbarTransform } from '@xyflow/system';
|
||||
|
||||
import { useStore } from '$lib/store';
|
||||
import { getEdgeIdContext } from '$lib/store/context';
|
||||
|
||||
import { EdgeLabel } from '$lib/components/EdgeLabel';
|
||||
import type { EdgeToolbarProps } from './types';
|
||||
import { getContext } from 'svelte';
|
||||
import { getEdgeIdContext } from '$lib/store/context';
|
||||
|
||||
let {
|
||||
x,
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
} from '@xyflow/system';
|
||||
|
||||
import type { ResizeControlProps } from './types';
|
||||
import type { Node } from '$lib/types';
|
||||
|
||||
let {
|
||||
nodeId,
|
||||
@@ -79,7 +78,7 @@
|
||||
changes.set(id, change);
|
||||
|
||||
for (const childChange of childChanges) {
|
||||
changes.set(childChange.id, {x: childChange.position.x, y: childChange.position.y });
|
||||
changes.set(childChange.id, { x: childChange.position.x, y: childChange.position.y });
|
||||
}
|
||||
|
||||
store.nodes = store.nodes.map((node) => {
|
||||
@@ -88,7 +87,7 @@
|
||||
const vertical = !resizeDirection || resizeDirection === 'vertical';
|
||||
|
||||
if (change) {
|
||||
return {
|
||||
return {
|
||||
...node,
|
||||
position: {
|
||||
x: horizontal ? (change.x ?? node.position.x) : node.position.x,
|
||||
|
||||
@@ -35,8 +35,10 @@ export interface EdgeLayoutBaseOptions<NodeType extends Node = Node, EdgeType ex
|
||||
onerror: OnError;
|
||||
}
|
||||
|
||||
export interface EdgeLayoutAllOptions<NodeType extends Node = Node, EdgeType extends Edge = Edge>
|
||||
extends EdgeLayoutBaseOptions<NodeType, EdgeType> {
|
||||
export interface EdgeLayoutAllOptions<
|
||||
NodeType extends Node = Node,
|
||||
EdgeType extends Edge = Edge
|
||||
> extends EdgeLayoutBaseOptions<NodeType, EdgeType> {
|
||||
onlyRenderVisible: never;
|
||||
visibleNodes: never;
|
||||
transform: never;
|
||||
|
||||
Reference in New Issue
Block a user