# zmind **Repository Path**: wangdongdong1194/zmind ## Basic Information - **Project Name**: zmind - **Description**: 模仿xmind,canvas,textarea - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: http://zmind.wangzhidong.cn - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-10 - **Last Updated**: 2025-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: zmind, Canvas, textarea ## README # 没完没了的尝试 ## 准备工作 > 在命令行中执行,若在vscode中执行可能会有权限问题 1. npm init -y 2. npm i webpack-cli@5.1.4 --save-dev 3. npx webpack-cli init 4. 在 tsconfig.json 中配置,使可引入提示 ~~~ "include": [ "src/**/*" ], ~~~ ## bug 1. 添加节点后放大,按方向键,第一次无显示,第二次显示,执行缩放部分节点不可见,滚动后恢复可见 - OK ## 注意 > zmind.ts -> baseChars2LineChars - 文字居中和向左对齐 - 左对齐 line.x = x + LR_PADDING - 居中 line.x = x + (selectEleWidth - line.w) / 2 ## 上传文件 ~~~ scp ./z.png root@123.56.86.78:/root/nginx/usr/share/nginx/html/www/z.png scp ./dist/* root@123.56.86.78:/root/nginx/usr/share/nginx/html/zmind/ ~~~