{"name":"@aomao/plugin-alignment","version":"2.8.23","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.8.23","@babel/runtime":"^7.13.10"},"gitHead":"dc51307e8c934b9561995d5b2309c52757726fee","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.8.23","_nodeVersion":"14.19.1","_npmVersion":"lerna/3.22.1/node@v14.19.1+x64 (win32)","dist":{"integrity":"sha512-ciB04LpXiKYKs8HxLQoh39oTd/VsTvn0MLqtu2jgyaFTaatdvMC9bdcq/x3FBSmoDHhZGxNAKVY9rT0AvygsGg==","shasum":"be888d167302e3dcc48264add4e3e20eddebd806","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.8.23.tgz","fileCount":7,"unpackedSize":19942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDU+e+iJlIEnstxrsevyXLAz3gw6mPG4jND2GQxDIRK/AiBb6uWDfx9yAk6eVMVvOBCNoZIY4hI16ZcNAkjB5dKmtA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYnHsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2Qg//bY4iHCDgpXUMRYQcNcDbVZOG3c32VWeAHvoiGnd60o266VZ8\r\nAVSBuv0V5aDJj1lAhCWCGDD5SVamJCXUF8TQGLOypgCCL1PxlHUSLnEuP9U5\r\nRUtR3qvq3pTuY7ofUpgSzp+342gD+Q1kg1lCvIfIgAjHgC/gNwaV8iL19IQI\r\nLfxkMMx4SzGvOLEZElCq3jfKBfvl6mbamwwVIATBU2oR1jr+f85EW4zYm9uS\r\nl484SAkHL3ZiFv6tZBWFMo8NbVqUtwnMjRKtDpiQLrRB/v5V6eMiYtrgRxKi\r\nT/0DznBb9IO0sAuW4QXGnZqlS6Nvsk0wvOh/x5Zbm4ruG0BGqEdgJK5Pvfd0\r\nvAF4YuA066dHD0WAj5oxx3jTMQuOtfhnjN4vulSbIdGcijb+Qlkcg+0/YMcU\r\njzQZUDvabhF6JHEpTjASb0V1ud83zuaieqCXqXknkthViV8TrJaw3ixkTBc1\r\nfdA39xayxJskGaVm7WQwB60SreWOMIje1tBiCDRozzMoCLqJOA338bBwrVEn\r\n/K/dAoXAzDFUoTXoHOAz4BI1/RKe7rE65pbXrW2gj42wK6FcaL9RAFF/mlvt\r\n1++wJ1Iy9HoRsf8xRqf7SU2jV8vFr18kmox0spAjVK5nf8euzV740KKNiLvm\r\n0b3XyC2b1mcMUSQ+hKMdN7IyulBC6bhxW3c=\r\n=vJrq\r\n-----END PGP SIGNATURE-----\r\n","size":5218,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.8.23.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.8.23_1650618860193_0.1803068567146926"},"_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":1650618860331,"_cnpm_publish_time":1650618860331,"dist-tags":{"latest":"2.10.0"}}