### Install and Run Project Source: https://github.com/le5le-com/meta2d.js/blob/main/examples/diagram-editor-vue3/README.md Install dependencies and start the development server. Open the provided URL in your browser. ```bash pnpm i pnpm start // 在浏览器中打开http://127.0.0.1:5173/ 运行 // open http://127.0.0.1:5173/ in browser ``` -------------------------------- ### Build Project Source: https://github.com/le5le-com/meta2d.js/blob/main/examples/diagram-editor-vue3/README.md Install dependencies and build the project for production. ```bash pnpm i pnpm build ``` -------------------------------- ### Example Commit Message - Docs Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md An example of a commit message following the specified format, used for documentation changes. ```git docs(changelog): update change log to beta.5 ``` -------------------------------- ### Build meta2d.js Project Source: https://github.com/le5le-com/meta2d.js/blob/main/packages/meta2d.js/README.md Run these commands to install dependencies and build the project. ```bash $ yarn $ yarn build ``` -------------------------------- ### Example Commit Message - Fix Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md An example of a commit message for a bug fix, including a detailed body explaining the motivation. ```git fix(release): need to depend on latest rxjs and zone.js The version in our package.json gets copied to the one we publish, and users need the latest of these. ``` -------------------------------- ### Vue Component for Meta2D Integration Source: https://github.com/le5le-com/meta2d.js/blob/main/packages/vue/README.md Demonstrates how to use the Meta2dComponent in a Vue 3 setup script. It shows dynamic background color changes and conditional rendering of circles based on their visibility state. Use this for creating interactive meta2d visualizations within a Vue application. ```vue ``` -------------------------------- ### Rebase and force push updates Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md If changes are suggested for your Pull Request, rebase your branch to incorporate them and then force push to update your Pull Request. This ensures the PR reflects the latest changes. ```shell git rebase master -i git push -f ``` -------------------------------- ### Commit changes Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md Commit your changes using a descriptive message that follows the project's conventions. The `-a` flag can be used to automatically stage and commit modified files. ```shell git commit -a ``` -------------------------------- ### Push branch to GitHub Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md After committing your changes, push your feature branch to your GitHub repository to prepare for a pull request. ```shell git push origin my-fix-branch ``` -------------------------------- ### Checkout Master Branch Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md Command to switch to the local master branch, forcing the checkout if necessary. ```shell git checkout master -f ``` -------------------------------- ### Create a new git branch Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md Before submitting a Pull Request, create a new git branch for your changes. This helps in organizing contributions. ```shell git checkout -b my-fix-branch master ``` -------------------------------- ### Commit Message Header Format Source: https://github.com/le5le-com/meta2d.js/blob/main/CONTRIBUTING.md The standard format for the header of a git commit message, including type, optional scope, and subject. ```git ():