{"name":"@aomao/plugin-alignment","version":"2.8.8","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.8","@babel/runtime":"^7.13.10"},"gitHead":"ac40cd8b174327615a3b6abcf65cd5e7d8238148","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.8.8","_nodeVersion":"14.19.0","_npmVersion":"lerna/3.22.1/node@v14.19.0+x64 (win32)","dist":{"integrity":"sha512-40AvRjuPO7UY+jgMz8vYhcdP4dpBQUpBacnXZamAR8lz+wniEHbDehpGKxX9dZEbRDo/rKXpeKDn63PICHf8Kw==","shasum":"555bf4399a09f9be2c90b8a50bf83d2c296595f4","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.8.8.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\nwsFzBAEBCAAGBQJiL1EHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6xA/8C+1dhF+t23Giuq4sykFDRGgCM7A8KsEtMY7uh8JWhhM6SNBH\r\nHM9bykf4PBMR0mo1f5xL9SLc2WUfEjaF6y2mNY/nj59sYQqe13mFZcSoeLMy\r\npP/ANlVVp/FSoa5Z1uIJyRBdkZu3hyG9LVxJbIO5OSybj6JklCGHilg3oRGx\r\n0XQXQicnUr787o1lzgULwUkl1cn/FrhXLEU+59GmBdZpXnWhEPnmc5zLz1xR\r\nZnGxXvhjfsJ9f+GYNxcoqFgZ9JB0nFx4PgHdBnbxgpB3YVBYVzy0pgmtIyWB\r\nmhuZ0/XqabJsyQECstiIhRxgfPVkfhfKv2qfmrpittoow1BQvSxcwq8y1kad\r\nuPgV2dP/C7tLka2cktIS5VFYV6s/1apn2+SY3EjS3IeQmnYUjML19KcTwwaJ\r\nlS2mheStD9zV6nZGK+mUYCGYi2TRk3b8N+8VuRVxhJLWBwEpuh2Cf3V/qzG7\r\nwFRpZPovz8VjFsGqNsUBhVmRGif1Qqi3M9oB4bRjBJZsmgr3d1xid6/6Eejg\r\n5Q6AYzD/OitIPt3/lA8RB1xQxskrDAHUow1fLUOrF8xBv3l/PhtaMFN/AJuk\r\np7jdSTSOd12SVZvlHRdJpB2oARMIGvt0+RaL/bQUss+KC0R7iBipV4/6CHrA\r\nHv5ydoAeO7RGZ5D0PNZ/duaoKkofR5/TitU=\r\n=lzCB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0k1JycreMSlpKJvpf6KjsT4FFhYGHnH0SHnhxpY10GAIhAOIQPZYuUEZO6lv82NlLK/79GHif0MBVCs8diSTlfPj9"}],"size":5215,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.8.8.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.8_1647268103666_0.6193585243127917"},"_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":1647268103819,"_cnpm_publish_time":1647268103819,"dist-tags":{"latest":"2.10.0"}}