{"name":"@aomao/plugin-alignment","version":"2.8.17","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.8.17","@babel/runtime":"^7.13.10"},"gitHead":"e6e7d86e7d219c90eb5dc94b96964e32b695321e","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@2.8.17","_nodeVersion":"14.19.1","_npmVersion":"lerna/3.22.1/node@v14.19.1+x64 (win32)","dist":{"integrity":"sha512-IZUkMNh6TpmZ4QAQ5zdpIvaufdTkJ76x+Tr3iZZpjrHDbn3Yo7ply7LffdYkEFKdyHs81jI3wUzsTfR9nFpuYA==","shasum":"d1ef3098c8c30283619c59fc66884da8b8da03cd","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-2.8.17.tgz","fileCount":7,"unpackedSize":19942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuIcxOAcBmtdiFTOp7mPy+tCBYbz9I4IjtgRuAOhq18AIgRBdyC//+5rj7iLj6JkYEJu1UgrGdWyyJH71LkcHjh6E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiV/A+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6Kw//S6b+8sR4AJ5cV7c72xTPoQlPEM26ApYz38GPtak9RwwQzjkZ\r\nM3Jmo6ysy72R1MohHDTiCoFNY6yCCHfRHYMv7jPBEjI3z5IenVBaAcUDxak7\r\n+b0TTnCZpdj9Hcqs/c/hkIHIoPQXVxtvU887BPBcjwSZkKMhST5EO79DKotH\r\nBwQZXxSX6GJgGTI6K0o09T+sMJY2W2FJ34vb5MPKCFhM2h+iItVFAS0wjkeF\r\nUpyFJwVjtVIpvcZrz73u40IDHSvhG1jzmYiLfSM+6i55tHVClbSXkYlGuyxP\r\nqD/n7pS6P11xO5h7/guLTEmgSmW+kGWoXF1UYKjK3bB/XaXREI+mpJEG6xvc\r\n3+vDo3NMmiseHOoaFwxYUKBvfUgzeXbfuMS9OWJ3BZokNJl4O7cTpIHryNxY\r\n2fjwKgACX+8nLuGfcBxJ1U/TZK4kPI9+W8jc7+jcJtWAOYk5brQg9O5GpKC2\r\n4yS0qfRgVd5uUPadj6YNzZpB7lyjYj3E/xPaqh5J0OOvG8NTFkALs5TDKTy/\r\ncUm80p12KXWfoMWgcdNvWvOnYg9XSXdfZNjAgHqwKcWC1OD3AEKs3MmZB89D\r\nPb1i5ITImCn9cqQFPywm0OL7oYFa6C3aaPP/mbOr2fWQgZyfajQHDwTFJGyO\r\n1O882Krj+l7c1j40Frv80x1B7x/q47BWXrc=\r\n=B3R3\r\n-----END PGP SIGNATURE-----\r\n","size":5215,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-2.8.17.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.8.17_1649930302248_0.7691446634424641"},"_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":1649930302439,"_cnpm_publish_time":1649930302439,"dist-tags":{"latest":"2.10.0"}}