{"name":"@aomao/plugin-alignment","version":"2.3.32","main":"dist/index.ts","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"me@yanmao.cc"},"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.3.32","@babel/runtime":"^7.13.10"},"gitHead":"7e779981ead18c5c8801725f74497086cb8d5a50","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.3.32","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-FJahwlWSBlnmo7HXK/NeTutvb4xqwiPgNkAvaEu5qwxB8rBEgp0S/km+QfU+NhbhbUvLbzZFRRDajaqpWgAgFA==","shasum":"43d19a9a3b9e1d7a34b035085ea880e05f0f4548","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.3.32.tgz","fileCount":7,"unpackedSize":19612,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOkHKCRA9TVsSAnZWagAA+0oP/ifDCI6DMbxpO9kj21VU\nbmMyR+C3sFNlAjtdV5WLQxOhkRFDYl1krY8FG873HEl7bO/7Hyhx1KzYa2O3\naOu20xSonqiHmlzrt7WMqzMGRHa3W/qVXnMTSjd7KIUDqPMsSgY9fnVHgN2w\nvz6KiJRUK6oLXwAFR2WW1pUaTXrsEspy506wp09z2VUUpSVb3I3YyisL/kZn\nYv7WJ2NRs5qOdjz0E3pHNhMbUuYPFpJVo8v9dRw5upAVGkhxV8xCLY0o7QyM\nnv0njee6Zn7L1VaS/4SiwzoNTMtGYItgXzSNuAVAM166jlSLXV88VmFE+/aq\nwq0VVJh0Sa9B5ZneLlYKbN0QzotA2XBOW5PjG54CttmctGtPcKVXACu9TUkX\nanKZbyQvXzmA8hvEHvp18XFFNT5xw/yLJTMBw5t8RmWq7DIU3BO10/NUxlg/\nGZj9iOGqBQxKM1geKMvifv29OgVXsbvW0/PnX+v9uVD9B5093LwRcoWR8FR9\nDCIjuCrSjZYqK773PUHXI9Wt0cL+t4FU0e/YvQaksvIduoOBCaJyYylMCX9k\ndewPxDS6uVTOWxFixuj3cuoO5amB3nruMCKndDK08HYrJXT2+IbCjNC9gbTY\nepNKW0jx8kxHzJcpmuA1DsQ6RcLmK26Ib6DvO75lVwT18vpq7X9sgEqQnrVH\nc0fu\r\n=uh+G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwB0Bcf/j+lrY7V0PVeJBkFW/pmqQujDiFMqpE1zWbrAiEAiabFasakhJXfDxP4UonYzmW1/bNap+zv6+FE2SSPfRk="}],"size":5136,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.3.32.tgz"},"_npmUser":{"name":"aomao","email":"me@yanmao.cc"},"directories":{},"maintainers":[{"name":"aomao","email":"me@yanmao.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-alignment_2.3.32_1631207882338_0.1505104990697428"},"_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":1631207882506,"_cnpm_publish_time":1631207882506,"dist-tags":{"latest":"2.10.0"}}