{"name":"@aomao/plugin-alignment","version":"2.7.0","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.0","@babel/runtime":"^7.13.10"},"gitHead":"96e80b254fdad1a3826c0e75f0b7a18a9e42fc73","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.7.0","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (win32)","dist":{"integrity":"sha512-uZY6k7Q8BRL31O7HNollBSCdpnLRVUl8rQHcOHNqf4ycy0R/RJrj1WZRIrV0HiQdnrGhEKCMvABAMOFiU/t70w==","shasum":"8c37cacac06de97d6ec64d7af58cd5a33f916c83","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.7.0.tgz","fileCount":7,"unpackedSize":19740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyIxMCRA9TVsSAnZWagAA23cQAJ8yD04Q/WHDeBXdJGXH\nVY3jVSC3emYqrWpJ9g2ZwSxF7YVdpcsqgMtXJoj8x3lvi1QJMcDQ5OWqFeYv\nO9E47N+s8bhCTnBzrlm2ctYqrCwKRDcpb7QKqcuAPXPMF27feUTEYnCZgeiB\nSzDLk/VRXh9FrtBYa+paoQ+lVe71wQtjxzxKzjW3iOdXLDWNOEw53p6eniNt\ng6FBExFhzQFc5RCeg9q2Ha92mVtxyxy6JceowpBlP0Wvf0BAxhrguXLbAaI+\nZtZ1zOvftIGSur0AFAFg9LESWlgN7PIZDDYk1bN4aGzFWIgeE10i4G3yNXf3\nD3ojbYnUrfAOOZvGfvQQVK3Amfhhe5U+HKYiVs3NwFCcKlY8uuRF7SnuJV62\nHmm/KVyC8bx7kV14jqFDz6qRb17BxNgJ7WVZ4GEgqUnaxznOjtNgcPWRWsHT\nQ7nzhL/a8bGIdszwGS/ekwmR2dekCNZZyH96KgpsGOE2UwnwzqXfjKHVQt6d\nooL2foCizbEZ94Iwul2xJFjH4cw15hK97hqo9tJ313r3MqYaD+Pjz4wfP8eM\nbN9UWmxSYv5AaZ9VlDSvlYpnIpu5dAi+oXyTxppS+Kt0ccP+wfOPPbyiE3cf\nv4J5ifTQllnRzD3oyOnUqwnb1NdbV/dnDR/gC1SURZVUE765+QN8XeJGH9ga\n0xko\r\n=epvL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB91pAnMMYkBMIYmxKlWd+1S4uo9ubzoOtfa1/kyoF3vAiEA+vXaaXBaEheLN2cEXLF16Du/PslLqwqDvJ5IGIhNn1Y="}],"size":5176,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.7.0.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.0_1640533068725_0.7460664130680059"},"_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":1640533068878,"_cnpm_publish_time":1640533068878,"dist-tags":{"latest":"2.10.0"}}