{"name":"@aomao/plugin-alignment","version":"2.3.12","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.12","@babel/runtime":"^7.13.10"},"gitHead":"1a41e51a488a3822930dc695bb619cd60f20d964","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.3.12","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-OI0N0+MYl9F3DWYUHa2RUf/88c2D2u6ipwrI9Lfmb6RdpzKa/4u8G5LPd4zLcR9JgCMQj7CnV7hHCXcNrI/mBA==","shasum":"13a7df7b3ea688cbaf3de2af4e04f91e134c1e08","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.3.12.tgz","fileCount":7,"unpackedSize":19912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEVe+CRA9TVsSAnZWagAAT+AP/iNit9B14PvP06HuXo2i\np8IoFlq0+O8xr9t1bU1d0wqVCh6HiLtBor0e/fvM0SuMinTwcpYcHS2G4eQO\nu7HbSsQd2KDTBBg6/sr4veNQPqcYV6OLbIDCBNDp5zy0wATYNQ9SjarKjrsY\n4wHY95uZJPJjq6ddTcnYepNKBDCrjqH1mFUQ2qiW2ZY4bXBX3htidys83DwY\ni6towEgU4br3iS/CTEXSIDQwcMdKSmbEOYuzmmuFqjXuz3vxKCgMYmC6WYbc\nmpQpkuh/tGMj1f8GRlPX2OZcfmYGaZtZx9pedG4A23NlkiOhdnC/h6QDc3gA\ncEf38FnA18GDjjCbjFP4boOZzJn4GIZTLcQ2nrJzX6Fq9eGp8jLUFhgg3LuC\n+4ojygq3IuNAadSCqxUamx45APVrhEQKWOi22gpLkARtXCATzUdBrSEdU4X0\n9jd4Oghhj0btnrWpTHc0H8Q4ttxZwGNk6XpSXk6/zvLb1YLCXClLgcpQ4Jd9\nry/ofawPYxM/DkQkiniAd3V8xERd5UvgDom9XdR0quRm01JOHpqsnCkz6pFR\nhNOR7jx2KymygiKHtgAJPUYJIjKEjBifizaW+APJYxqlBM2TpZREEJMEXiAi\n380PxoHGn4b9p2t1klH14brgXtt3xtRDVXB1Z2uvfnK1BAl4paiaXRqLrFEI\ntGXH\r\n=oN2H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwpe1btvXCoc+nuwtQ/st4+J4vpmx/h33jIBVAOMkqGgIgTwTU0dzCsvrPeqVz+M74G/WDnNNJ+Dtrdnf6p0ZvTCQ="}],"size":5091,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.3.12.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.12_1628526526702_0.48777157982481034"},"_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":1628526526847,"_cnpm_publish_time":1628526526847,"dist-tags":{"latest":"2.10.0"}}