chore(lint): cleanup minor issues
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
- add `on:edgemouseenter` and `on:edgemouseleave` event handler
|
||||
- fix deselection of edges
|
||||
- remove pointer events from panel when user selection is active
|
||||
- fix viewport initialization with user viewport
|
||||
- fix viewport initialization with user viewport
|
||||
- fix parent node lookup in `evaluateAbsolutePosition`- thanks @lcsfort
|
||||
|
||||
## 0.1.3
|
||||
@@ -42,16 +42,16 @@ This is a bigger update for Svelte Flow to keep up with the latest changes we ma
|
||||
- rename `node.computed` to `node.measured` - this attribute only includes `width` and `height` and no `positionAbsolute` anymore. For this we added the helpers `getInternalNode` and `useInternalNode`
|
||||
- rename `node.parentNode` to `node.parentId`
|
||||
|
||||
### More updates:
|
||||
### More updates:
|
||||
|
||||
- add `isValidConnection` for `<Handle />` component
|
||||
- add `fitViewOptions` for `<Controls />` component
|
||||
- add `getInternalNode` to `useSvelteFlow`
|
||||
- add `useInternalNode` hook
|
||||
- don't reset nodes and edges when svelte flow unmounts - thanks @darabos
|
||||
- don't reset nodes and edges when svelte flow unmounts - thanks @darabos
|
||||
- fix node event types - thanks @RedPhoenixQ
|
||||
- make handleId and isTarget reactive - thanks @darabos
|
||||
- fix MiniMap interaction for touch devices
|
||||
- fix MiniMap interaction for touch devices
|
||||
- fix pane: pinch zoom on windows
|
||||
- fix nodes: return user node in node event handlers
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"css": "postcss src/styles/{base,style}.css --config ./../../tooling/postcss-config --dir dist",
|
||||
"css-watch": "pnpm css --watch",
|
||||
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
||||
"format": "prettier --plugin-search-dir . --write .",
|
||||
"lint": "prettier --check . && eslint ./src",
|
||||
"format": "prettier --write .",
|
||||
"typecheck": "pnpm check"
|
||||
},
|
||||
"type": "module",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { NodeProps } from '$lib/types';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
interface $$Props extends NodeProps {}
|
||||
|
||||
// this is a workaround for suppressing the warning about unused props
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { getNodesBounds, Position, type Rect, getNodeToolbarTransform } from '@xyflow/system';
|
||||
import { getNodesBounds, Position, getNodeToolbarTransform } from '@xyflow/system';
|
||||
import portal from '$lib/actions/portal';
|
||||
import type { InternalNode } from '$lib/types';
|
||||
import { useStore } from '$lib/store';
|
||||
|
||||
Reference in New Issue
Block a user