{"name":"@aomao/plugin-alignment","version":"2.4.5","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.4.5","@babel/runtime":"^7.13.10"},"gitHead":"032d808ace365b698f83449e6abd25f15d51905d","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.4.5","_nodeVersion":"12.18.4","_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-ABwPAkVRXJWveKkvgFiwgqlBr+s3SIIbLwI2J8k7iWFk3W4jtSgWP6/EO+mVCKgJ2qSYRQbEiuUbu5owwgylQQ==","shasum":"bdba3ae947dc71c6299f798d703dcf903bd96aa4","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.4.5.tgz","fileCount":7,"unpackedSize":19610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ18UCRA9TVsSAnZWagAAxs0P/33B6KN1eCuEYWuw0MR4\nY8WGZohWNW5ShkRmWv/5/pkQQfdDDFKApHeWenp07mamo1GY6XAXcpwdDFE1\n4zol+prQ8QADzOQzLdgnBe+/dAIozHmsOW+2LViUs47MFyVBsxtQfQKW3py3\nfbWoffDYbOvJjpb7CqRwVHdtpKjHZtUtna5+Weaxi+u22ABO0aW0QXRRcvsv\nqcjS5BOtC9H8ugXEcOZp3YHAy/F2KpKutteVhYvWe6e4BGAbSzFlDVxXlgoS\nCl7wW9VLJfuyg1uZzelc1LSghjNUC0/yetrUDszo8j353YObUvp4nJ1aj9u4\nLTJyfHnVAcfU7q1unHUSUVvGIk9Ae7cv2bDuOctEfy2KhR8kdTAHFTpU0kh9\n2wfzJQlxEthqGTpW1KtokRYXdPXyqqGsu+pLfoxh78KtzhWB0/ULBVyr77/D\n2+p80l6yt82iRhkxJdufdxrhc+L5bUaUfZC/DrjyTvKLa9p+3MZQrgMB9er+\nnSuT3FuSTz3A2X8o1hWLMmWS9KxxR822z9MykLn00vkh5eLHy/UdttUsrcPp\n4kgSlP4un+X7NmGK1TxLmupoOq14zWSSDxd25Loru0CbDfVhGXeD6MMYYt80\nWv6v6OQFovAF7OwVs9NN/h76QDxDGyWMi73KeoMPq60d4/bVIgCFks6I942P\nAkWk\r\n=LvSQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4dkzmyywR0/OzjjxY1hUIqzpLPVqrM5QN/sWWG3ywkAIgEiQ8zMmh0DV6Gk1FBhjLbusb/SoD3rQ2HT1JU4QIwWk="}],"size":5134,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.4.5.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.4.5_1631805204583_0.3418078750147142"},"_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":1631805204711,"_cnpm_publish_time":1631805204711,"dist-tags":{"latest":"2.10.0"}}