{"name":"@aomao/plugin-alignment","version":"2.3.29","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.3.29","@babel/runtime":"^7.13.10"},"gitHead":"9840e3847d50fe8fcd4897981bb1d68a14c84dea","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.3.29","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-kB0kbUGHTHkJxiyVdu7iDgOHPld1Q9Ce5Zpqm1pW+BfmxDLX92CR+LRzFoQ2YJioefAqfmMl5CySfTM29Rnpyg==","shasum":"691b86865c2a1736767b429b1d7062d9f468d133","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.3.29.tgz","fileCount":7,"unpackedSize":19612,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMv8dCRA9TVsSAnZWagAA14IP/2RKaA6MjCkC1/NH4XIB\nwfeOqyPn5G6C7xjz1mzjJPObB5pgA5WATxm5DyyleR5x3LPxqUNPrTFg25Bk\ncRFw5yVm2crrhPTIfFMHivYAFd6g3XEyN/pHi5bAHYlMwDZLqriXjeDf+JuO\nM1xGuS/11/4knDqeMiG26c79AJcXMFLwzQ0vX/OEBVdy+jhzyg/prc+mYUbM\nMyUT6W+bqAOKC5CF5TssDEo8vNRI5SLGMlmfK0QW5z0Rq8EIVgq30H2r+gw3\nf9bo4iU6jWKnXFRePRTE5ldPSbhW4gkJVPKyphIzK0U4jBm0yeg3mEThu37r\njqhBADEE7uR3zGmZwjT76K+IHxrCF1+8vlK4K8mfja6u8VKZR0GjKcPSs6f2\nHRfqoqbnvodDPbYRXbNSfvx6VtyCSt2dKUQvB28SzoeNMXw47mQn4Gmunre/\nhCft/IggvKSzwzCdMGMp9+w+jFEZE7R7s1zwammahMMk3U/RWajNCU75Lwz0\nWNdgwcajNmYfVfOr1++5Fx8djXANq2uRVRPY9Vqbr7B2VMVBmEDxq/i5Qf4o\n02E4iQVjjS5goI2CaBV/QIRb6EDtc5hs0LdKfwtxaeLNh12d0acGUuNAuCHb\nudKQ0CSVHyOup2KvGIllnn6PG4hgAEceuaqlf1hEdsNSA3VHEMYwynlapMf1\n0PQy\r\n=+MGU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtbX65hDTxJ8qOq3M+IeHzOPYVxb6r/bPhsBWMOvlKJwIgO21yvjrwakN2TtwlESRgUfmVro87tnMjLyiyLCcDRwE="}],"size":5137,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.3.29.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.3.29_1630732060816_0.07736992653062957"},"_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":1630732061018,"_cnpm_publish_time":1630732061018,"dist-tags":{"latest":"2.10.0"}}