{"name":"@aomao/plugin-alignment","version":"2.8.9","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.9","@babel/runtime":"^7.13.10"},"gitHead":"e71a8d65661abb459452bdbbea1b61fa6a80714a","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.8.9","_nodeVersion":"14.19.0","_npmVersion":"lerna/3.22.1/node@v14.19.0+x64 (win32)","dist":{"integrity":"sha512-KBNZo/pLK3vxzq6v3aW6vWjRAOU3P+dVvRtmqfSFlzLXMHA6DZbdFlwc86+tij0T+pBfbf6GHtxoiHP5h9yy6g==","shasum":"d7cc37d748174f3bdcc52f909d2ccf9ed250fd59","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.8.9.tgz","fileCount":7,"unpackedSize":19940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMKupACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYBhAAikT84GdYWPb7Y2Ly3dSA6nOROQqDRlDNX8gIX7HXYFlGRdBo\r\naKCcToUwBIDVlgNdqOzApPD1E0i8FksEBXViFsbMypxTH9vrpBb7H2n/Wz+v\r\n7sqlgQcwlH8IVAd2v15oyqa0ScOV0WxPxrgoLWwz3r8OQx2Csi1FFI+Yt4Gk\r\nWXhpoDzBHuuH7918ROr51Yc1KcKOlO7RIyOA5AmboPLaF+xXjnG9uA1k77I5\r\n1EkeXciEA2Kt+cm2W/INoH/ThPqfysBeYs3L5g38WRIoGXzOjhbCSUZw+vIc\r\nxfN08InHkYRevrwxhHduZNwhZwbT84eGIjCJ2OmZ5iRZzPFMgFRGS0+drpG/\r\n2wQW0afRjXrZ/SaYN24EM/bAEBptKypQkcpzt4jgWgtTYmsw690Au8v4xZB4\r\nR5ThRS3k26rbOQYNZaXcLCpiwfcp5mRcRgPAGBxCpM679T26GdHt4mfB/xnM\r\nl4nQlDCT6P2pBwASE6JFwb0NWSktZfNMT/SW/ryMYLMAkS0k/5fbP8OdRWsN\r\nOGh+G19QPp+zbytH+TBAWDlXVtjxoFkqRXeMy0mWt7p4OxJdnTB5CSyQ0B5g\r\n/RVQzjvFTRvpoJg+WhHBeCPv5EaIgCfpAkx5MBy5KN04rj3vHtQALPiLD7op\r\n5+TlyvWU/pQ9CjNDg7lvUYu7I5O4cuwM1OQ=\r\n=09xj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEI7pz4/xXhanwl5cGZKf26JRzgroQ9j+CskyGF7To/JAiBKSnE2/wrdzyV7xY/1xlHMzMa91/hct7BsV09j1UClrQ=="}],"size":5214,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.8.9.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.9_1647356841699_0.44904448541397923"},"_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":1647356841904,"_cnpm_publish_time":1647356841904,"dist-tags":{"latest":"2.10.0"}}