chore: lint files

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-31 21:30:23 +02:00
committed by Braks
parent 9d597ff454
commit f61e5beb02
69 changed files with 623 additions and 424 deletions
+9 -8
View File
@@ -6,21 +6,22 @@ import { nextTick, ref } from 'vue'
import { getElements } from './utils.js'
const { nodes, edges } = getElements(15, 15)
const elements = ref([...nodes, ...edges])
const { onPaneReady, dimensions, onNodeClick, getEdges, fitView } = useVueFlow()
const { onPaneReady, dimensions, fitView } = useVueFlow()
onPaneReady((i) => {
i.fitView({
padding: 0.2,
})
onPaneReady(({ fitView, getElements }) => {
fitView({ padding: 0.2 })
console.log(i.getElements.value)
console.log(getElements.value)
})
const toggleClass = () => elements.value.forEach((el) => (el.class = el.class === 'light' ? 'dark' : 'light'))
function toggleClass() {
return elements.value.forEach((el) => (el.class = el.class === 'light' ? 'dark' : 'light'))
}
const updatePos = () => {
function updatePos() {
elements.value.forEach((el) => {
if (isNode(el)) {
el.position = {