newcat / baklavajs

Graph / node editor in the browser using VueJS
http://baklava.tech
MIT License
1.6k stars 117 forks source link

Example code doesn't work in documentation #391

Closed minecraft2048 closed 7 months ago

minecraft2048 commented 8 months ago

In https://v2.baklava.tech/visual-editor/customization.html they have this example code:

<template>
    <Editor>
        <template #node="nodeProps">
            <MyNodeRenderer v-if="nodeProps.node.type === 'MyNodeType'" :key="nodeProps.node.id" v-bind="nodeProps" />
            <BaklavaNode v-else :key="nodeProps.node.id" v-bind="nodeProps" />
        </template>
    </Editor>
</template>

<script setup>
import { Editor, Components } from "@baklavajs/renderer-vue";
const BaklavaNode = Components.Node;

// example, replace with your component:
import MyNodeRenderer from "./MyNodeRenderer.vue";
</script>

But there's no Editor class in "@baklavajs/renderer-vue