{"name":"@aomao/plugin-alignment","version":"2.3.14","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.14","@babel/runtime":"^7.13.10"},"gitHead":"5a120ce48369594b931014410a0098274cd607e1","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.3.14","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-M1uiC7upvoE6n18DKyNpqlXnaQg0ju4pubTMnZMBLLJ8ZkoDLWMYM9wMP5miCpP5f4DYuMs5m5CTwkvRAIJuNQ==","shasum":"d9cbe188e806ab05a2caea75262362df77eb62c4","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.3.14.tgz","fileCount":7,"unpackedSize":19912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhF7dkCRA9TVsSAnZWagAATcIP/0lm+59jiyiPwzeeWnkb\nnHaVctwh9GTdmnIuiM7VQDGYxvOVfku0OVZoJzWKw4aFsB945c1GG6mMJAxP\nww0R4SgGHlPSGiWpuKGXNc3zIDh0J3VCFeIkTYn0FeT0wrrOjnHWb+i+3O1p\noL3djwufpqfWghl5ZHE/bdkPaxouIuOzSLpKAwuDtZ35ce/BfUTiuDFJIC/R\nkz0ZcBvoFAbO8rItPKv4i0h0nmnvPZ7qrMPbe3mhTzNYyhP0zgVpelE6DPnc\nX6A2d5ZjTYe9M8TDxcwjlzzQKSfuJCbvN0ZWRjH5FsLmokUpWHflEsiayt8n\nAjPD1qkZCVURLRTjbCo4iW00L2+Gmr9ahaEJDk/HWBZxdHA55znq8UB7MYbg\n7zi9iH1YxN42JqQWxIMI5wW0oENno0PfV4cmcL3BWI61IGQJ7cOTHZKL4H0c\nLy6S9rYQSdUvfDah7qfMxbdCRWqqpAybo6yu5L3O/Y58UoCGo8XM392F2TjU\nApg2hWNL2wnHpO6okRyuFhFYl4NF0Kpf3U9oCUKy9kBzuzOjDVJJa7e2TttP\n9e61YDUn5WnujgmAyejttZh/X1yVzZ548gNoXbzYvfElTny46206gc/MEr+h\nd/A8QJ+KheW3kWGCgFiWFBMBRN7335mNVeRlenoijopgZDhChkStwG7Oc7j+\n4aXh\r\n=i35j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGjZ9pvSLMzY3ziWOxe2oWeQ5m8mLuD7yxnXRtNevY8gIhAORnqp7VHx7dDyN3PiOQZ/KQPNyT4tLCTaexk0qQYjpU"}],"size":5092,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.3.14.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.14_1628944228713_0.0635228258599625"},"_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":1628944228830,"_cnpm_publish_time":1628944228830,"dist-tags":{"latest":"2.10.0"}}