{"name":"@aomao/plugin-alignment","version":"2.7.37","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.37","@babel/runtime":"^7.13.10"},"gitHead":"4a5d19cef581b57248c96e9b21cf2b094586f78f","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.7.37","_nodeVersion":"14.19.0","_npmVersion":"lerna/3.22.1/node@v14.19.0+x64 (win32)","dist":{"integrity":"sha512-MO3QhP+Ejs6P7me1rQpq31wmO1Tkse+C6jjIdc6pNbjI3FxSUlDAef9lj4ULfXbUnKaUBqwAG3CiRWgElhdwmA==","shasum":"f5d7f2dacf794f8b92efb143f78789ebfc8a5aec","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.7.37.tgz","fileCount":7,"unpackedSize":19942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHbNAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmri9w/+Jdk11ozdpGMzif4zDGOWdoTR4P3JPpbBCCkdjTS0xGA3pzsC\r\nQYHlAywRJApLuwA/JlQMOGGEzDVNvQ+mrQOqv1EW+CG9GpCOczB9OnHqPo04\r\noAQEqnrESCW9InYaVyOCl6j01TqESevGpLSIUAnuEL5gRCvdRPKFjptecQpS\r\nIPGnCluDOsS6lzyPNwwE1iwpIeCrN/UrkTgb1r3XUPuL7X4KT4KHCChn14sR\r\n/xpeJdNqukmcba+H78O3Ex9tenBFp2b+a8YwyLGQRbKMELW8uRHj/YeIxC3C\r\nQiGUy0+bczk2zK4AqBawuD9Cb14+9wAbkJhLHx58rcetbdkI3RkXPHatA9bG\r\n8ZQv4/ydGZU1mwLTFJb+zy63kBDgTp+8eu90KrWJvbEeHOnFdx8wD4349w3S\r\nr57XqutZ1FKifDneEjuedF5FA9DmgzEwV6AsmLEcnMqQOi2SvamTWEurWro/\r\nr9jxcV9EyUKPClkNvG7ckV6fek5dJ8ocGIRTTvyj/Cf3b2oZE+NmRIokZ8A7\r\nPUIVNsZQRPiewoxzi/m9k9uG0wStfbXJB2BRFJZbNfZHmaXC5P8SeCG6Vq2a\r\nmNK7ul6Pc+kCoyx24qw62wTf6eTH080oeKg/WgNfwcHEsvTh4qPTESsBFFRI\r\nDDF4C+P6paAB5yhMDfuwt08tjahDkmf+Epk=\r\n=CiGo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbz7jUvHzl24qWKNrbStD+ZE6GPRsDhGcdn/o25fIw/gIgaYjYu3Eki8hdRb2rYomiaMX2rGUxouhNn5TR4nMRgzU="}],"size":5221,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.7.37.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.37_1646113599972_0.7377468347979006"},"_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":1646113600128,"_cnpm_publish_time":1646113600128,"dist-tags":{"latest":"2.10.0"}}