disable eslint rule svelte/prefer-svelte-reactivity for several lines and files
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
y={node.internals.positionAbsolute.y}
|
||||
{...nodeDimesions}
|
||||
selected={node.selected}
|
||||
nodeComponent={nodeComponent}
|
||||
{nodeComponent}
|
||||
color={nodeColorFunc?.(node)}
|
||||
borderRadius={nodeBorderRadius}
|
||||
strokeColor={nodeStrokeColorFunc(node)}
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
|
||||
{#if nodeComponent}
|
||||
{@const CustomComponent = nodeComponent}
|
||||
|
||||
<CustomComponent
|
||||
|
||||
<CustomComponent
|
||||
{x}
|
||||
{y}
|
||||
{width}
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
};
|
||||
},
|
||||
onChange: (change: XYResizerChange, childChanges: XYResizerChildChange[]) => {
|
||||
// eslint-disable-next-line svelte/prefer-svelte-reactivity
|
||||
const changes = new Map<string, Partial<Node>>();
|
||||
let position = change.x && change.y ? { x: change.x, y: change.y } : undefined;
|
||||
changes.set(id, { ...change, position });
|
||||
|
||||
Reference in New Issue
Block a user