This git repository is intended for instructional purposes. It is the source code that accompanies a JointJS+ blog post "Integration with Vue" which can be found here.
To run the following code, you will need a JointJS+ license that comes with the JointJS+ installable package file joint-plus.tgz
.
Make sure you have the following dependencies installed on your system:
- Node.js >= 16.0
- git
Clone this repository.
git clone [email protected]:clientIO/joint-plus-tutorial-vue.git
Change into the joint-plus-tutorial-vue
directory.
cd joint-plus-tutorial-vue
For this tutorial, you need to place your own joint-plus.tgz
file in the root directory.
When that is completed, you can install the dependencies.
npm install
Your demo is now ready to start.
npm run dev
You should be able to view the demo at http://localhost:5173/
.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.