{"name":"@aomao/plugin-alignment","version":"2.6.17","main":"dist/index.ts","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.6.17","@babel/runtime":"^7.13.10"},"gitHead":"90f8fd8f640784eca51c6c4cb8b1c227d7e5215f","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.6.17","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-oDFo5hICsQug6weeRhIgU1yuZKD5i54nR7Go3d8vChhByx+gtx1jbUwY5KFGwcMH1ukj4iM/nht+Nu+8d/XnmA==","shasum":"012e76d3d065ce7db1dd3346b94b7645843cfc14","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.6.17.tgz","fileCount":7,"unpackedSize":19680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsH6/CRA9TVsSAnZWagAA1GUQAJTOP0NiXj/uxWrww/5I\nOtAwLYwfm4MyTj4XQbTs4g+mMz8VydmuP6qEWauC1yQcMpWEworIv3l3HZ2x\nz6H5+s7ZQ5d4cC+r1FIfIgClFMcvKjZH4o9/hJjt9Od06BIHeQqXcNlMjBNO\nTOfv3gKPpJxiC70XDPxMnOF7MMvHJUAxKbSCcxDLzh3l2WlDpJHQAmvHNZFP\n3aWhcZUciyANjYcWz2m8Doiln+E1iKPUY1Kp4GP+SXsd6Vek2Ipr7LwZaxsN\nKjFN+gDg1CFQdXi3TbSfPF82uJH+k8++dtweqaoEUOIG8oHn+UEs2diEI1+4\n1UiMv9b8s/tR6mv2onjuL57VhNFwtAVEN4qL0RL4AKkbIyXY+6zDmEGxhxmT\nhgjLkngurVj3XTzD1xpclUHadGUVKPTKmCkT/P3SZqrxu413E7jT7zvqGrxQ\n7/Asuf9ZyXIW5onH/BLddQzJtThGyWa0T5X46euh+MtMuo3pbHuFkQ0kzV9n\nuXDl6zUBsm3/qnPz5CURSt7WqN5+XXobVzWot9yNsMOK8dOaCN48KnN9fcEZ\nt2Jowny9t3lzPhEKEvSt1BKkZ4JaSBszy2I3XwCK8jYPCWTC13q/qHuvziCl\nux1a6mY1HjekPhT/Tww16xR2TDCocviikAVwu0ZcgymG32A2aGDloRG39JbM\nxoCk\r\n=bRBh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7hSdLeXpswTbVGFW+XiJxqQP1rBpwAQKcmg8TlDb2kAiAtYWr6MpFwDOUxDPOHZgFRRcncOK0LAuHL5MhkHO0wZQ=="}],"size":5164,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.6.17.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.6.17_1638956735406_0.8470719391589441"},"_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":1638956735562,"_cnpm_publish_time":1638956735562,"dist-tags":{"latest":"2.10.0"}}