{"name":"@aomao/plugin-alignment","version":"2.7.27","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.27","@babel/runtime":"^7.13.10"},"gitHead":"1489340fcde40dda70730d166789de7e4570c422","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.7.27","_nodeVersion":"16.13.2","_npmVersion":"lerna/3.22.1/node@v16.13.2+x64 (darwin)","dist":{"integrity":"sha512-5cCMnnPvNhTrJA2V5owD4b4S2y0sByii80t4LGGm/cCEVxVaUi3nO2f5FqT1+wflmw+xIR0FhlVLhBkhcA0eag==","shasum":"571c7dfbe5c53e2b7649bbae983c9cf646ec3d62","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.7.27.tgz","fileCount":7,"unpackedSize":19933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8mNHCRA9TVsSAnZWagAADmEP/jhqoKrZVTPaykB4tIZV\nYZMc934jS7wFgPrR5LhFUO3K6t2MwmTVESuWTWHjuWkH5tCTeMnB9/ilAsyd\n5XYY2crAlgKHWHL62/a8zqiKwGavjU43rrnjmNbwNIWmUwRVzkNrknMGw77h\n3TfkIFGKqQu4TriiLSPpm1sRaV8y6ow5q/tbDfqlq1GK/5+jXpcXHBwDSntJ\nSg1erj9ZxDbEPLOHAWtAF586V/0CvZgF49pZfI5b5jh6gJxeZoNDeD4RUiXl\n7KtVu8biSdTifExH8PtZVYCAThotMx1xCB3rfe7+roBLJ7S/ggMXuPLrJvMA\naNFEtxpKBHnSqQ5lc6OnTWZzpPvREprUgxdkMea6W7wlhrqR1mY+OIeRqFYa\nIAqBRTNN/rj2BNmnwmoYx9Di/f1NDXT6RTdi0p99XSejjd436wRO7Fo8JHwl\nvjJ7A7fnK6IalKJgs8SNOQ1HhF9UkOcTNXsnOxZA+YYO7KKkY9LperM0siRY\nDvvSt3HhkYkWpZ0B/SvUjDYdfk0sEWDaE1N5goAdWEeSzKe8rVnVPaGyFLNa\n575hGvyTAKocwTPyWkfvJhPLgy1ksRld6fWl6lTzNHh6VsxAQr89IohIB64o\nqio7ehRnkrX4mYDwIPGtCSK/5V6l0ysXLYAGIKWBGxO1I0C8U4C3vtj/Kme6\nXM5U\r\n=6kkK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1uoD76eSHZBVilvywsbBO/uGtTZEteGv/tHpghnxnnAiBss4sW7/evGYNyLXeEs030akohsR2ucs8+AQCVmBgEoA=="}],"size":5223,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.7.27.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.27_1643275078978_0.8351854028383763"},"_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":1643275079133,"_cnpm_publish_time":1643275079133,"dist-tags":{"latest":"2.10.0"}}