{"name":"@aomao/plugin-alignment","version":"2.4.4","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.4.4","@babel/runtime":"^7.13.10"},"gitHead":"f9e76c165e1cba05a23b97c0029c7cc8c7cbb19f","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.4.4","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-7xhcG9RVa8+91j9YR572imH8za/bofwOl9VnOZ/HqhnEZkVIQgCbglGMsUlN3D108+Z/PQp2TPuETapEIV4NKw==","shasum":"76b7e5613a443b4a7bfb35cf39f7a79b1670a18d","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.4.4.tgz","fileCount":7,"unpackedSize":19610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ0LMCRA9TVsSAnZWagAAq1EP/ilKrpGobKs8/xczBCJs\nLA12iv7Zci4NI8Eb+BCuKbVocWapM3JacSFYN/AcCOOjbhXqTB2NeAffVqG6\nHXtUs7+yLIlv/QKwI5cS89N1bb0BFmYX5Bexj6PpE1nVsobA9qwEfisilXfr\nGiMkkvNuEcW3qPQb9nWPbV0ESNUO10qijkUmYGcxzXRvi5uU9aNmGho9cbcZ\nsBi4uDki4FlR73t0fPDFO+2wmZZvwFbiM69Xh5bP3xSJpldYrJXwxPYM4mOu\nXb3w5HzCAqiA7xvIjVZW7TjB+K/oDLkZnypZqQrpeDzbVLPDZK0IW3xKF+9m\nAPlikcy/+F4muKTeELX20Npr3amM8yboIYKq18gIaFoMnudD35gZPy5WZJ6w\nukZK+euvqbzGJm1qw4IEDDMMni07TG02iaSpjMhph1Hpx/v/7T+rTaWCbvmC\nUEQRENjA/J37ElLWZ6ThBoAVI4RlP8OVszMnumtyZfBmxu5iAceQluGA/cHD\n+W9LrnooiCz6n7LCdjoNtC/u24YR0JaGJ3CORUD63hPthkg/oT14HECX4dgl\nZd7dEF3XNCCdldzplkvWZDDpmW0lFIGvWLLAwvL7BfiQvjsCoUoqy71cqZ30\nEkKRK6zdbelfu1Be0qBszJNk4Et/ulctw93pq3CXNgYK82U48qU7IkXKpqDF\nZ/go\r\n=nbxc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWH9gkwVGF61oR/2cKP4JjDVBOk7UGosWQJ3wpTFhN2gIgVo/TeQCH3gen9JHdPLYJiEypsE2AbNq9B2GFQejeZN4="}],"size":5133,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.4.4.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.4.4_1631797964441_0.8732738068297632"},"_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":1631797964576,"_cnpm_publish_time":1631797964576,"dist-tags":{"latest":"2.10.0"}}