{"name":"@aomao/plugin-alignment","version":"2.2.3","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.3","@babel/runtime":"^7.13.10"},"gitHead":"3abb92262749221f3d5bf5b776d7160d8627fd9f","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.2.3","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-0mMiP+7wQT4y8oZv01lMd5Bo+2K2kidJw/zJeLpMae3KXsGm2Tw1FSjqGmPQOWP90RtUq4eMSWOg40Stgm4F1Q==","shasum":"751a05ee1b862a22590f6de0b4978dbcdb552b95","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.2.3.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\nwsFcBAEBCAAQBQJg0hgdCRA9TVsSAnZWagAAVFQQAJ9az/ikS4h0uV3OKiX0\nyMh04m31TCR8AdOM85Yz+xzRimP3Q5RLerrvFbZnPG/JQ3I7y2F/BALOph2D\nqIJQcv4tQVY+/BKI7QpXdEzX5V3bIEScFJ7eEv2XmIy74oN2Gv+4cUW5O3d5\ny1sU9s139dNvrq/fhrRfqkpKcnaerXJahUuovVB4SVwwSHOLyVEa6L/XERuY\npkAYJglAW2dkK1njOFUNmeP5yFYXzX3QUmyLFI6udK4GP1GP+CunJd9aiFyd\nxcxrHSOcFv+Rlc4U1nL1wpz3tPJuc0uk7i/hfAgEWBPC4GC2ipoVSHVFA+o+\nfAeVIC1ohsFEuLZ0R2zuchwDE3WdgtVrm6Wd4a8GBdG4yw48Eff/ff5xh/Ed\nAhTytCKS5JAd/UujXzo50x1Ei0WA9SZjKHZB+YZ3/R/lh3Jk6sDozzQ5mN70\noRi0lrro+4fPZvtQOfRMcuDZBWK9mmygk9QdS213P6Lz8Stvujr75Gn6fjxj\nP2vIkTBcCnb3f68W92sHONWhY24krkHJegYelNe/iq61FHx8R+Uysdjm+xm+\nXrWGQy/FTsolqrPCQlpAMl2zNRMsnguFjHS5y/dGS44n8Y/ZhujwWYM3IWKc\nyr40F9q2lqiZnfFsrdMCHADuixOB7FbwzhMq1Agkd6rrNmnLs9t9q0/huqZQ\nwoOG\r\n=r+7R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIERrJiOyWXPemWk+VwGNU3fhT4lPUvz/TuAv0k26CrGrAiEAlvWuHTiR8tj1LqL1a3UESkXC7ZCL64ea9s88qPeG3Lc="}],"size":5068,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.2.3.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.3_1624381469357_0.6516297090881964"},"_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":1624381469465,"_cnpm_publish_time":1624381469465,"dist-tags":{"latest":"2.10.0"}}