{"id":20163823,"url":"https://github.com/systemlight/livecut","last_synced_at":"2026-06-09T10:31:47.534Z","repository":{"id":125645425,"uuid":"502234334","full_name":"SystemLight/livecut","owner":"SystemLight","description":":eyeglasses: Real time design drawing comparison web tool.","archived":false,"fork":false,"pushed_at":"2022-07-09T14:35:42.000Z","size":9431,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-21T03:02:52.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SystemLight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-11T02:51:48.000Z","updated_at":"2022-07-09T14:35:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fdfd382-8813-443c-a529-773189af46c2","html_url":"https://github.com/SystemLight/livecut","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"71aa9f0bdc7e7fd941fe3316f98696e3a055fe0b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Flivecut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Flivecut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Flivecut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemLight%2Flivecut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SystemLight","download_url":"https://codeload.github.com/SystemLight/livecut/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600492,"owners_count":19988715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T00:31:58.396Z","updated_at":"2026-06-09T10:31:47.489Z","avatar_url":"https://github.com/SystemLight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# livecut\n\n\u003e 轻量的网页切图设计稿对比工具\n\n### 效果展示\n\n\u003cimg src=\"./docs/tian.gif\" alt=\"tian.gif\" width=\"50%\" /\u003e\n\u003cimg src=\"./docs/baoxiaohe.gif\" alt=\"baoxiaohe.gif\" width=\"50%\" /\u003e\n\u003cimg src=\"./docs/tencent.gif\" alt=\"tencent.gif\" width=\"50%\" /\u003e\n\n### 引入方法\n\n```javascript\n\u003cscript src=\"./index.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    // 第一个参数：图片对象 | URL网址\n    // 第二个参数：可选，object{w:切稿宽度,h:切稿高度}\n\n    // 使用图片对比，创建方法一\n    let img = new Image();\n    img.src = './cut.png';\n    new LiveCut('./cut.png');\n\n    // 使用图片对比，创建方法二\n     LiveCut.img('./华硕无双_作业_效果图示例.png');\n\n    // 使用网址最对比，创建方法一\n    // url模式创建对比，第二个参数必须填写，获取网址的大小，可以打开目标网址控制台，\n    // 输入：`{w:document.body.scrollWidth,h:document.body.scrollHeight}`，复制结果填入\n    new LiveCut('https://bing.com/', {w: 1920, h: 1000});\n\n    // 使用网址最对比，创建方法二\n    LiveCut.iframe('https://bing.com/', {w: 1920, h: 1000});\n  \n    // 网页复刻，4361指定网站高度\n    LiveCut.reprint('https://lol.qq.com/main.shtml', 4361)\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemlight%2Flivecut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemlight%2Flivecut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemlight%2Flivecut/lists"}