{"id":16347087,"url":"https://github.com/ospoon/canvas2d-ts","last_synced_at":"2025-07-07T07:12:01.528Z","repository":{"id":105556459,"uuid":"378009069","full_name":"OSpoon/canvas2d-ts","owner":"OSpoon","description":"面向对象使用 Canvas2D,采用链式调用的方式更加适合熟悉原生 canvas 相关 API","archived":false,"fork":false,"pushed_at":"2021-06-19T07:47:05.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T05:05:48.298Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OSpoon.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-06-18T02:08:27.000Z","updated_at":"2021-06-19T07:47:07.000Z","dependencies_parsed_at":"2024-03-30T18:48:41.514Z","dependency_job_id":null,"html_url":"https://github.com/OSpoon/canvas2d-ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OSpoon/canvas2d-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2Fcanvas2d-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2Fcanvas2d-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2Fcanvas2d-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2Fcanvas2d-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSpoon","download_url":"https://codeload.github.com/OSpoon/canvas2d-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2Fcanvas2d-ts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264032305,"owners_count":23546808,"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-10-11T00:39:37.190Z","updated_at":"2025-07-07T07:12:01.511Z","avatar_url":"https://github.com/OSpoon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Canvas2D-TS\n\n\u003e 面向对象使用 Canvas2D,采用链式调用的方式更加适合熟悉原生 canvas 相关 API\n\n##### 示例\n\n```html\n\u003cscript type=\"module\"\u003e\n  import { Canvas2D } from \"../dist/canvas2d.js\";\n  let canvas2d = new Canvas2D(\"#app\");\n  canvas2d\n    .initStyle()\n    .setStrokeStyle(\"#555\")\n    .end()\n    .initRect()\n    .setLTPoint(0, 0)\n    .setRBPoint(100, 100)\n    .buildRectPath()\n    .stroke();\n\u003c/script\u003e\n```\n\n##### 提示:\n\u003e 在vscode中安装Live Server插件来启动test中的index.html文件进行预览\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Fcanvas2d-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fospoon%2Fcanvas2d-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Fcanvas2d-ts/lists"}