{"name":"@aomao/plugin-alignment","version":"2.2.7","main":"dist/index.ts","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"me@aomao.com"},"license":"MIT","homepage":"https://github.com/itellyou-com/am-editor#readme","repository":{"type":"git","url":"git+https://github.com/itellyou-com/am-editor.git"},"bugs":{"url":"https://github.com/itellyou-com/am-editor/issues"},"dependencies":{"@aomao/engine":"^2.2.7","@babel/runtime":"^7.13.10"},"gitHead":"0a92da4584daf47386176a1447a671f5b7e37662","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.2.7","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-dHT/lNTY1Fy6gtskpErfqHRPDixxF+uSEEu2UNR4LrQZOfvI6mSn3Loyeco8UgD9txLymecy9tKjO+S1RhLe4Q==","shasum":"e2f258728f20a09d79509b92858b4a16ac8740d2","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.2.7.tgz","fileCount":7,"unpackedSize":19900,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2ujECRA9TVsSAnZWagAAQmsP+weH4a3cCfhfZ6GfDteX\nfIUxphElqvlynKbksRr3pDly3fmtcYdBG0M1FHCI0QDG+d+mXKfSMa010Lwe\nstDdx3Vad9NJXs4Y3DL3yWs2YU8roZrvnJ5j7mcJ7e0LW6rIMwd+nf80krL+\nRI0wM/0jU/U3CBMebcWJ998TA1Hv1f51846AGW8V2bdSKCYyMa/8ySpqle/F\n89nQ7dRbrTGdIevzOK4+l9fDhN4GMgwcj29kzSvbprUL5dxIR8DfXGc7dvLg\nc4teLBfhfCv54i3uao4xOc+WzA5u91bpsnrFNXMntxI03UqLEbx1V8RcZbU6\niuIjQkhjiHp3+FxfKVvZ5GGyS/uHLGM6NVTv6acYZlqCGxodEUhUfg2Sur//\ndVwVIsyyU6xU1/63kRLPCCdGCcI2LdOsC2eyusKyGeNcX7zAFuvt9TB0tsMs\nOcRFTUAF8JtstCR078t7CqR9fY4pvTRa6lD8r3NPsbdp/He/QeKRODaOgwui\nLLzK0QfJW9yguX8OmrYmNnHi+5JoUk0yOi7K7dVJstuZfN7z9wYVDOPlQoqZ\nVmBuO1Dg82eqKA5TLPgjqZK+lNv7qrUIJo07jefy8CmMBUurGwxy1IIi18GF\n76MmWIEkIBUPrnJK3Zy85LBdasAiXeddNpKN0Jsl+mJ0vdZX6zcpgV7CwOe7\nqYmT\r\n=LqoH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZ1c3FzmhghCmIaC7utCQ9cPmO6hZZcT29K73Xa2bgVAiEA4KgKfcO0t/YGKkJGTGddXTMCyfdKFJFNrtFXHHduGHI="}],"size":5069,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.2.7.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.2.7_1624959172445_0.5781477221261415"},"_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":1624959172554,"_cnpm_publish_time":1624959172554,"dist-tags":{"latest":"2.10.0"}}