{"name":"@aomao/plugin-alignment","version":"2.2.15","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/itellyou-com/am-editor#readme","repository":{"type":"git","url":"git+https://github.com/itellyou-com/am-editor.git"},"bugs":{"url":"https://github.com/itellyou-com/am-editor/issues"},"dependencies":{"@aomao/engine":"^2.2.15","@babel/runtime":"^7.13.10"},"gitHead":"c66891e67f8df40f0ff3be5582f174c000225565","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.2.15","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-7ggSBcfMwZOgKuxSRoFePT5XO0bZZS3W6Kyd/cF13Iva9eqMAp5FhJkDRWQjsByf5EPEVBE4g3+HbIsEH50uaA==","shasum":"7fabe96fcbd71886d9806a51e8ed2f64ae0378b9","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.2.15.tgz","fileCount":7,"unpackedSize":19902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7d9DCRA9TVsSAnZWagAA4EgP/iEt2a9LHpPV1qRBwY1d\n/T6k6W1Se9Y59twJbgxshC5vQZ+LRCTa9RLWeZrSennvtKLslT4q00+a2Bla\nqX9CxgiB2whBqNUMfIsiBa3Kc+aEnKEpn6x9sA7JpS273HRadwXhrJW94rs6\nw1Xc95WkYE4rP0mU4VhIuozuwqnmYve08Cb14wxWQPcCrb4ggq35IcdlaneU\n5f3v/OG7pbxPSjPyIIQ65ksBoNoUFKZUd3wkhzPNF7mKy2ANgg0SCKagXq0L\nTcKvYotk4pJIofJMJFz8HzmbKfyw5JiBEVrK6t+sTiu2fAyIjCf4Zd+Kiu13\nvNeWd2wS10F1jytHYisht9k+TB8MdY8L0bIDNJ/sUZPhKpabMK1MS/SL1SyV\nRrqe72CyjOwLwsMIzqoPSPvvs9j5UqW+zKcLQDUHdgwzQmVYHEFea+eQlfZB\neef8yzjpLhGHKElevexXuX/JfdH+LIrJegpMKPAgiDbG/KOws97JfKAVC97u\ngmQWg0mR3Ln8SOIMyBJ0cT+kOVFqCdLhATL/1moRGehCGQDKyx/oZV6CG+HV\nQ+AdSOD4Brlmld2P+8jTvXfvYaSPmXVu/QG+qi0JLS5wRnC6nJffuDWeL+QE\nHXkkhKOBxuVEdlFnrYkNhKb1x48UyBi7Cvk9E+nAc/vmc3u1ztsmGvLkBrI5\nypuD\r\n=5AaO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEv6r3uFtaSrBZc4rvhq8r+IMAxrbIX5cDYeH+RKsFRqAiEA4uGJLDlKR/UNiVhLQl9FOlHSjs7kpKj1f3SNDYERmQk="}],"size":5070,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.2.15.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.2.15_1626201923412_0.3561711053457577"},"_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":1626201923516,"_cnpm_publish_time":1626201923516,"dist-tags":{"latest":"2.10.0"}}