{"name":"@aomao/plugin-alignment","version":"2.7.18","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.7.18","@babel/runtime":"^7.13.10"},"gitHead":"bc3d646a0bd15ff96d550753e371933a8e657e68","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.7.18","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (win32)","dist":{"integrity":"sha512-ukg03msCwN65vudSLbFheIEhsCP+Bz49Wf6oGL8MOJESyvbHDicFH+QOeMnbE3pfYvrxhQpWDZ8Lk6mZviIA/g==","shasum":"ebf177c76dda9c124b92366fd1f9a8c9c42bb1b0","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.7.18.tgz","fileCount":7,"unpackedSize":19942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6RJyCRA9TVsSAnZWagAAWwYQAJFgMuGXkjrgwE9tNqId\niihGqwmIQqyCqM+1QTDVyyDwwwZ9fLUBqSUQubIoQSYJ6y6ZhI/pAhMEPqDp\nvxrKGuSeB5LW58g3DPPOV/7EBGs5KzB6GkOrJKpLReD/7SC0nBCmsdiK0Apt\n4XzuqoXAVYKFP77kCIjQ+zaCeMJTzECJNj4nIlD9zsHybJgkHpisMTEHHIT/\ncFQNxqR4BTeup+l1XEuyq21A5ClWb20HciC3YAoMAhns5KO4vP5cJkRlwkNr\nHxPYYDUwrgOQNnYsEogwYk8t4BItGHymSOe6/RUJkUEafPwBFz5pqzIzu5DH\nalVcfYwYUpHDTzQenyYNKcrrNwny9vpTqic/+xeWrR3O9GIXRP6H4gqdLwr5\nibEMj769SaOqgSrYfuzcnwQ80ieOCVeNXEJx1DMScGr8p76Ilm1gGmgQ7MrF\nQ+6IYwjwSgLCiS12oam7PJgcxU+Ntcf0pECQPKph955P+pP4mwIEqbA9x79T\nQeypklQA5nPxo2zLq8Qr36YnbWQshiYRonb3Kzx7375REaJqywGvPGDgns83\nU7m4lNfL37SZqDJN3bHTZfQ1vN77Cz4c1faMIIdtN6Rk01+WylwaXMf001Nw\npigjssFoQa7e7BtlPoZm+hCYRxWLCdLUzjPwN1LhE8llXxwdWXVwlC35sI7X\nUPVd\r\n=XlwS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGc1NlnyVPp6YF8tP8vyIZXY5McBEqiw03Xg1WWseNU1AiEAsHL45DJGsc+4heXFh04xSluYglJ1lRo8u1wXyf9QuDo="}],"size":5218,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.7.18.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.7.18_1642664561926_0.4971291369442876"},"_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":1642664562122,"_cnpm_publish_time":1642664562122,"dist-tags":{"latest":"2.10.0"}}