{"name":"@aomao/plugin-alignment","version":"1.1.6","main":"dist/index.ts","module":"dist/index.esm.js","typings":"dist/index.d.ts","author":{"name":"me@aomao.com"},"license":"MIT","homepage":"https://github.com/itellyou-com/am-editor#readme","repository":{"type":"git","url":"git+https://github.com/itellyou-com/am-editor.git"},"bugs":{"url":"https://github.com/itellyou-com/am-editor/issues"},"dependencies":{"@aomao/engine":"^1.1.6"},"gitHead":"83ae6de9bf6abe35134607096ec86645414149e4","description":"对齐方式：左对齐、居中对齐、右对齐、两端对齐","_id":"@aomao/plugin-alignment@1.1.6","_nodeVersion":"13.12.0","_npmVersion":"lerna/3.22.1/node@v13.12.0+x64 (darwin)","dist":{"integrity":"sha512-RrHKiSoDkRm1qe4yG1we4UNbmOiU3enqCpuAB6vunhbJgKF83e8bqzRjxjGOLrgyVo5pykkRZdBzS3AS2dyf2g==","shasum":"af5cbc8a97f87566e12b312bb282edfc1bcfca5d","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-alignment/download/@aomao/plugin-alignment-1.1.6.tgz","fileCount":7,"unpackedSize":22343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaBCHCRA9TVsSAnZWagAA0S0P/RGK7soI1hqAPHw310pm\nvcn75KuVBCciZQlrzRSFmvigyJVeQAINu5Jj7i3sbdPuDybSKBQZ/iu4eTQd\nW6feQRMcCrjkAatJTsBWepak1v81NBE6pUdlsPW6TgpXyPHOqPUqmo+uYzaG\ngHTMZnFRQV4ok6FT0lfAL2R6JlTTMF4f8d0r+dkoesRc9XTfOlqIWVjW6NYi\nS/DehJB06B//19MA4l0qtv5sDiWO8NAUl+WHuh6cb73nwBvJ2hFDHWOQ/6CW\nOxz2wX9tRyXZgXb9uSQP/Q3bXLp3fgOvQFu5PQdAWLcefZhGohhP8mbQEjJF\nXbCTK0WTMjfrLXGzT6xJURAl3z6QejhAwHk6xeerJXcWQfl+jCEZLW5TJl6Z\nfVqjenpH7+b1K4wxBvkvUp51M2O/l/aQ9VoYy4byXgXrI7R/GznzaHM8wuYb\nNTOjrJo42IgStsbgZZEShr+4lBbIlVhkd/++CLbuxSd5WLGUEQBOqHJYU5cj\nkqsbm9UhWMlN4pJKPQfB2C8IhFSNud/DghXSrNshcb3YVPCqdP3PTgy+1KKJ\nwZb0iI3+IeVUyVmOrLC/kfnVu0xS6SwM7a2awziWjoJq3SfOESCqJsftuL2C\nEyEOixjd2DMwdV+QhjNN/eI+tPrJ/k08a6UH4waqQjMCEHR6ArtXDOWHMKxN\n5Bc6\r\n=SqdV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEU85AmJXWZodm0gAtcMdVvSa9eFXYFmU12lbnTEtOI8AiBK5qmOmD4pa5VKR72K76huQAea70/st8bLFKmnDquNUg=="}],"size":4913,"noattachment":false,"key":"/@aomao/plugin-alignment/-/@aomao/plugin-alignment-1.1.6.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_1.1.6_1617432710251_0.5267402779743924"},"_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":1617432710387,"_cnpm_publish_time":1617432710387,"dist-tags":{"latest":"2.10.0"}}