{"name":"@aomao/plugin-alignment","version":"2.9.6","main":"dist/index.js","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"me@aomao.com"},"license":"MIT","homepage":"https://github.com/yanmao-cc/am-editor#readme","repository":{"type":"git","url":"git+https://github.com/yanmao-cc/am-editor.git"},"bugs":{"url":"https://github.com/yanmao-cc/am-editor/issues"},"dependencies":{"@aomao/engine":"^2.9.6","@babel/runtime":"^7.13.10"},"gitHead":"0ef7901908c0770ee2a6f668283646a8dd7cf2a6","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.9.6","_nodeVersion":"16.14.2","_npmVersion":"lerna/3.22.1/node@v16.14.2+x64 (win32)","dist":{"integrity":"sha512-NrCTf65q5U7HtnTs6hNLL327dzhhVKFp2dijRmpjZEXxo8uKCXZqc7WxorFenywRrjgNYQmIRYqtir4+e15YNw==","shasum":"416444fabe9354a2661ffe8604a9e3b1b532785a","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.9.6.tgz","fileCount":7,"unpackedSize":19940,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID61vbA4B4U24LAiacqU+Bp2o5ZNblNZaO+mEnBVEyItAiEAlnFZ2HO7T4sc4psbXYOj0QXlLdr1zd2LnWDa/Osc+sk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikH3wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpx8w//b5t9gXhVcJnkXKikqFGB3FOJuJxBbamrbBoB+TomQGCR1xpw\r\nLD/zZhQd8DlYZTKBgw7rymYxT2einMrQQa1FAqwo0qtELa/kEDj4kse8no28\r\nujapMLG7fjolnPTOkgZjO5SfM74CNk0WQg2T7l+jdZW5hBO6PEcSn/WdtAu3\r\n77bfp2cJ/BfszBYP/mup0WYh5aZr9jA4tInsf18Refs4ZP3QbDIPQiIcaOpV\r\ntkfcEyamLHX2vvJRtp0cAZqDczVp/DTgS1WXqcZFZPihCgeQcd0mJNPeEIq3\r\naFHo9dYqbl4HD9AgdXfgGIRHx8orr6MHTXvhqaZlfKWJPREeeHDlusMS5x0x\r\nLwyXpfGaFO2HcVHf2rdTrfub2w7FSIwgEr3k6PXH0TmxP7qhwfnM8034IuTv\r\nMtg0/1YFRR0vW3wOg65YM+jK/KHl/7/irjeGiJtwqeeb/S9//9F172nyG4/W\r\n8HkyJfYT4xmHztyK3tvBRDDiuZkKoyBIke69FcwDjqLx3rL0LTU8wftTczZc\r\nThjQatKwNmebYrkWGoxNjjR6AHkPjVTOxppaSQ3ra5ZBHSMKiBlJ4hRShT36\r\nBqw3h5UXetiSK91gy5Fp2BaiGTL7DzRzEmyUxOb7f+GWQnSiHiLqKyk5mgYg\r\nHWz9ahBdJkGE5NarrL3QZO65dOv8zGOe6M4=\r\n=J6oX\r\n-----END PGP SIGNATURE-----\r\n","size":5215,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.9.6.tgz"},"_npmUser":{"name":"aomao","email":"me@aomao.com"},"directories":{},"maintainers":[{"name":"aomao","email":"me@aomao.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-alignment_2.9.6_1653636592191_0.061622879893689975"},"_hasShrinkwrap":false,"readme":"# @aomao/plugin-alignment\n\n对齐方式：左对齐、居中对齐、右对齐、两端对齐\n\n## 安装\n\n```bash\n$ yarn add @aomao/plugin-alignment\n```\n\n添加到引擎\n\n```ts\nimport Engine, { EngineInterface } from '@aomao/engine';\nimport Alignment from '@aomao/plugin-alignment';\n\nnew Engine(...,{ plugins:[Alignment] })\n```\n\n## 可选项\n\n```ts\n//快捷键\nhotkey?: {\n    left?: string;//左对齐，默认 mod+shift+l\n    center?: string;//居中对齐，默认 mod+shift+c\n    right?: string;//右对齐，默认 mod+shift+r\n    justify?: string;//两端对齐，默认 mod+shift+j\n};\n//使用配置\nnew Engine(...,{\n    config:{\n        \"alignment\":{\n            //修改 左对齐 快捷键\n            hotkey:{\n                left:\"快捷键\"\n            }\n        }\n    }\n })\n```\n\n## 命令\n\n对齐插件可选参数，`left` | `center` | `right` | `justify`，分别表示 左对齐、居中对齐、右对齐、两端对齐\n\n```ts\n//使用 command 执行插件、并传入所需参数\nengine.command.execute('alignment', 'left' | 'center' | 'right' | 'justify');\n//使用 command 执行查询当前状态，返回 string | undefined，光标所在处节点对齐样式 \"left\" | \"center\" | \"right\" | \"justify\"\nengine.command.queryState('alignment');\n```\n","publish_time":1653636592350,"_cnpm_publish_time":1653636592350,"dist-tags":{"latest":"2.10.0"}}