{"name":"@aomao/plugin-alignment","version":"2.7.13","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.13","@babel/runtime":"^7.13.10"},"gitHead":"98d8d66e88a94518e0a8732174eecd92d5841b61","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.7.13","_nodeVersion":"16.13.1","_npmVersion":"lerna/3.22.1/node@v16.13.1+x64 (win32)","dist":{"integrity":"sha512-Rby9dmDKQEJ5LIKZmJsUQnplI38GfDY5LFbaMqOET6blplFIqkcneyzPBL2sUdcpfOY66LsX0plZw9XuLfAW3w==","shasum":"30c4938849eda419745ac745a786eef2d4a0b347","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.7.13.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\nwsFcBAEBCAAQBQJh3oioCRA9TVsSAnZWagAA3uAP/iHCqEB2eK5/uBJLRm+/\n+5DQGNc6XUFxdCDYGtjUUwewDUPT58mfkxrXSo2SxtCuW2KECE5D46EYBVnv\nxUUMjrKAV9vMwA5HfAO6Is5FiVpnCbp4P4n0y9qKWM1EdJnVPIHBrcvLkYIV\ndqUx3AewQW1C2HwGn0fKG6f6CM33/WXwAmY1sT+KBEPuKfVJeaqSb1Y/b/2e\nnnnJ8vpwtDcYV+LPVOcFHFkQ2aTijmtWaeJ5J3pzkdzc44yZoUBOn6MpJhMI\niIe0aF5w/LAqPSMS8BJcUYS9Efly0bxHRoCVHb0Ifr/My7aXkMJy13OTU50p\nDoCJGyDyvqt52j1ZZtI4Rfmj+IjX+uv51vahqGljA6kxm6pr71GHJLSrMqbN\noG++sVPeAr9kV2acoop/iaH9HsxCle/D/+9x/LI+qtaQ1NoJy7/XhSV09eQO\nI/vSlf1gMaez6xY2PH4E0Xkgbi3pZaVReESYUpA+KP9yFAER5D3HCfdHyVzs\naxL8YzRSIcs9eHPCeLgREYVU9V9GH48/Rpo9sIlOYNZNL9Q4xFDUThbT+QFF\nGEtLbD+ECl7oCy5Qm7wkP0Kg6a01mSS8a0DjpAlk1cIn5gRFaW/McaIJMc/k\nMg5i1WSjV6lDIUTfn1xokzRWxQsK6ZPerJ6U2M0tjQ8f08m38PrmAGZC/BFq\nPwhC\r\n=zxl5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETnrnqojwYPkGYEDqxSAJ7rX9mJu0SprH5Y55o0AosXAiB+Bd/WMqL249Qgty8wxU94JBUv5ZkpP2UW/m79fuGnTQ=="}],"size":5207,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.7.13.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.13_1641973928231_0.19900104094733773"},"_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":1641973928402,"_cnpm_publish_time":1641973928402,"dist-tags":{"latest":"2.10.0"}}