{"name":"@aomao/plugin-redo","version":"2.4.15","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.15","@babel/runtime":"^7.13.10"},"gitHead":"f15161a062800cdfe9ce8f644c96c9e6370d1139","description":"重做历史插件","_id":"@aomao/plugin-redo@2.4.15","_nodeVersion":"12.18.4","_npmVersion":"lerna/3.22.1/node@v12.18.4+x64 (win32)","dist":{"integrity":"sha512-neozc80a8v5vNJ2MLTG+d8iI24jME2y/z3RE1SxavIBqXUSepCYQVPGHx7up1T0BfhR3FNrEZtyG/hfrYAns1w==","shasum":"7f3b2d4c2b4a019da64977de6a9b887c38a4af05","tarball":"http://registry-npm.ywwl.com/@aomao/plugin-redo/download/@aomao/plugin-redo-2.4.15.tgz","fileCount":7,"unpackedSize":8338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbaZZ6u5ZTbQHWSufB6uMO/ZF/FJsHLSOurwuVK6YXpQIgcH6BXLsb2lGYZm0j4s/q2oXA8yY8G01HKjlzFWeDWuw="}],"size":3201,"noattachment":false,"key":"/@aomao/plugin-redo/-/@aomao/plugin-redo-2.4.15.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-redo_2.4.15_1634018538292_0.7062628775501751"},"_hasShrinkwrap":false,"readme":"# @aomao/plugin-redo\n\n重做历史插件\n\n## 安装\n\n```bash\n$ yarn add @aomao/plugin-redo\n```\n\n添加到引擎\n\n```ts\nimport Engine, { EngineInterface } from '@aomao/engine';\nimport Redo from '@aomao/plugin-redo';\n\nnew Engine(...,{ plugins:[Redo] })\n```\n\n## 可选项\n\n### 快捷键\n\n默认快捷键为 `mod+y` `shift+mod+y`\n\n```ts\n//快捷键\nhotkey?: string | Array<string>;\n//使用配置\nnew Engine(...,{\n    config:{\n        \"redo\":{\n            //修改快捷键\n            hotkey:\"快捷键\"\n        }\n    }\n })\n```\n\n## 命令\n\n```ts\n//使用 command 执行插件、并传入所需参数\nengine.command.execute('redo');\n//使用 command 执行查询当前状态，返回 boolean | undefined\nengine.command.queryState('redo');\n```\n","publish_time":1634018538435,"_cnpm_publish_time":1634018538435,"dist-tags":{"latest":"2.10.0"}}