update!: Remove update node internals composable
* It's practically useless as vue doesn't need the trigger to catch a re-render * Remove unused types Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,6 @@ export { default as useHandle } from './useHandle'
|
||||
export { default as useHooks } from './useHooks'
|
||||
export * from './useHooks'
|
||||
export { default as useKeyPress } from './useKeyPress'
|
||||
export { default as useUpdateNodeInternals } from './useUpdateNodeInternals'
|
||||
export { default as useZoomPanHelper } from './useZoomPanHelper'
|
||||
export { default as useStore } from './useStore'
|
||||
export { default as useWindow } from './useWindow'
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import useStore from './useStore'
|
||||
import { ElementId, UpdateNodeInternals } from '~/types'
|
||||
|
||||
export default (store = useStore()): UpdateNodeInternals =>
|
||||
(id: ElementId) => {
|
||||
const nodeElement: HTMLDivElement | null = document.querySelector(`.vue-flow__node[data-id="${id}"]`)
|
||||
|
||||
if (nodeElement) {
|
||||
store.updateNodeDimensions({ id, nodeElement, forceUpdate: true })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user