{"name":"@aomao/plugin-alignment","version":"2.9.10","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.9.10","@babel/runtime":"^7.13.10"},"gitHead":"05055af534d7643746cdacb36366ba742a0219ba","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.9.10","_nodeVersion":"16.14.2","_npmVersion":"lerna/3.22.1/node@v16.14.2+x64 (win32)","dist":{"integrity":"sha512-fcK++VEZow/Pd4IJ1xVD3Zl21fUohahN1XtY1GoL6kY1UHt0dam87C+qSDCn4uEZAhlmhNUdj0m4dXCyht0YQA==","shasum":"5a63efa15305672e99db8fab99ac68bf7a587afc","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.9.10.tgz","fileCount":7,"unpackedSize":19926,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6UYDAxMDQBAAoB15pjeeAj1gVkXm5xCm8uwRZhH2OSQIhANOSGiTN+saHBvoAG2geP3FLKtIxKqLoDhtIjib9FTsG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilDx9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZpw//cD16epdpF8GOh+xqI/6XRaBNcm6bpKN3o2Fuio8T2tEY9Ubx\r\n6/U/2ZhdOplgPwGXMhg8rC9ocSt4lxRbG1Eg3t3miT+SG38czXO0/Vo8iWdc\r\nCE4RpgT/LTJRKRa1rONyTOESfxXTVJ7ww1FRVVpjCz0opn4SW1CQvUv20ORH\r\nSjjCi7KJvAOBktOBSE4n/LAi3/4w3gvBwjTem0LpYi9YFD5nEm9ojnmfURiX\r\nFK3Z18nNOAyYpXW9SYuzN0Jq8R/SIOLS3Ev/zR6IfFicUIY99Eu71J80PZGU\r\nED20CDHq58uMPTbcMOxpvMayaV6eBS8leeQQmNvoOqQOp678s5cS8sc8zxQQ\r\nyfuBTXRzxItbVKhAGKriGzcTqQz5NUsfS0m2DpEVwzu3GzLoLR34CpjW65AA\r\no5jp60ORV4NtYXNS0KxGS+Uu4Ci9Zp1Rl8JNICR8cF32WH2hEOn9gnbi0CIK\r\n8p9qXEvRHpFXDE6j/HWPUflJvau5y3kkMw/RKVIyRBPgtXqgqSH00LhZ5xW/\r\n7lvDG6zSFSHP3wvks6SKg16CkTIwB6vueMRN46fvvV/F6ZHuecPZ2FF2ZgA1\r\nWNQptwcgm7821Gxr/sTdu1pECTN8rJlPGOWVtFCu2JplCaTM0+/0B+Yl46Wm\r\nRzwoKYarrIh/irqEFXUsynk1iF3Un2aD4b8=\r\n=VWy2\r\n-----END PGP SIGNATURE-----\r\n","size":5213,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.9.10.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.9.10_1653881981749_0.6235862431703572"},"_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":1653881981944,"_cnpm_publish_time":1653881981944,"dist-tags":{"latest":"2.10.0"}}