{"name":"@aomao/plugin-alignment","version":"2.7.36","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.7.36","@babel/runtime":"^7.13.10"},"gitHead":"59a8fd2dd1757c3466bf080504347f599d5417e4","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.7.36","_nodeVersion":"14.19.0","_npmVersion":"lerna/3.22.1/node@v14.19.0+x64 (win32)","dist":{"integrity":"sha512-HNMZNRiGcntom36rZrB8W9OiOHSCIrs4xbS6A3NkdpxbzrJ6HQQOz468jwOk6zpO/N9X+ikt9RbrifrVdnev6w==","shasum":"890ac9a102022a8393655d334737e604f0338d1b","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.7.36.tgz","fileCount":7,"unpackedSize":19942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGvAnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1WRAAl6tnQrYaYTjLkvhAtIZGNMvlpfgGD6Jl4XHsUPWYjiYtFQvV\r\nhMBvYbBjujvoTv5J8gm7WdszMDTnCFOv8d0eYz0X6J7mW4+JL5c0IRHJdhbW\r\n+g4jtzL91TJSlWSRWWrohycZ8lHJPN/KrfyrDIpcY+I2uxfLob6Q97rdXjLY\r\npRu/6o/4hjiM2Ry8yOxLWT8MIgeqIQ0rNNNWPWNzsiI/G/ga7fIKm0qzdKgN\r\nSvnsnCjtYUuUbQZHZWj779p+6HAGTDZejXQcHDskoLYA6zeGrvQLRmNWIIgx\r\n/EJOU3tEIb9gBb+LcH1x0yDdRrvBps7EAQ/rSSrFhpRk/i26yDSr48UzEKsS\r\nxtoMxLGTEzpgMg6U0NUDX1B9MpS8G3UdGGekiMzjgGxa31HjuiJVRozywc4l\r\nWg7UTT+/Cnlv7Phe7ycudMhqkHbimoUnL1t0RpM2NKdZc8A5b3xBUgQDWlU9\r\nugXr19kZcnNdikwRL/65XCnDtB5G/ET3HyQ7uESQwlafZ7DZO0ruePzwrVpW\r\nEr++bWxXv6p++XHAipANczrXJPPTy0Mp8S3RF5iT2Xp3P5EnZi+pToJfxUYS\r\ngBfiSKe4aA5v56ceL47Tk0Kcz2YKiXfvES8DtdsxwY6CGFTo5CZwKtuZbw0k\r\nKvXzLnFTsDmLdKjDp75LeSclRvuNrrJdjys=\r\n=p605\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGO/0vugsxgExtENJ/k3G1yQaSopVliddtBQVGks+VnmAiAGqVEJvZBO6YvN1bn9lrB2WGZ2Ab8p2UhCODA7Dp0TyA=="}],"size":5221,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.7.36.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.7.36_1645932583081_0.7881187576811379"},"_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":1645932583219,"_cnpm_publish_time":1645932583219,"dist-tags":{"latest":"2.10.0"}}