{"id":15601836,"url":"https://github.com/wklili/canvas_interview","last_synced_at":"2026-05-14T23:12:40.285Z","repository":{"id":39441078,"uuid":"199913771","full_name":"WKlili/canvas_Interview","owner":"WKlili","description":"原生js实现canvas点控制bezier曲线","archived":false,"fork":false,"pushed_at":"2023-01-07T08:18:37.000Z","size":3124,"stargazers_count":0,"open_issues_count":22,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T11:34:01.630Z","etag":null,"topics":["bezier","canvas","javascript","mark"],"latest_commit_sha":null,"homepage":"https://wklili.github.io/canvas_Interview/","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/WKlili.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}},"created_at":"2019-07-31T19:04:23.000Z","updated_at":"2019-08-02T23:35:58.000Z","dependencies_parsed_at":"2023-02-06T16:00:32.082Z","dependency_job_id":null,"html_url":"https://github.com/WKlili/canvas_Interview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WKlili/canvas_Interview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WKlili%2Fcanvas_Interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WKlili%2Fcanvas_Interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WKlili%2Fcanvas_Interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WKlili%2Fcanvas_Interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WKlili","download_url":"https://codeload.github.com/WKlili/canvas_Interview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WKlili%2Fcanvas_Interview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278955755,"owners_count":26075220,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bezier","canvas","javascript","mark"],"created_at":"2024-10-03T02:26:29.791Z","updated_at":"2025-10-08T13:44:48.319Z","avatar_url":"https://github.com/WKlili.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 原生 js 控制 bezier 曲线\n\ndemo 访问地址：https://wklili.github.io/canvas_Interview/\n\n## 实现贝塞尔曲线的基本控制\n\n#### 1.canvas 内部元素与鼠标事件绑定\n\n#### 2.动态修改控制点与 bezier\n\n## 动态添加控制点的 label 描述\n\n#### 1.初始化自定义注释\n\n#### 2.可以双击点进行添加注释\n\n#### 3.点击注释可以进行修改\n\n## 对控制点周围的样式进行修改\n\n#### 1.背景颜色渐变\n\n#### 2.采用滤镜做周围样式颜色变化(采用计算圆的方式去用滤镜在周围生成样式)\n\n## 根据屏幕的分辨率不同绘制出高清的 canvas 图形\n\n#### 1.尺寸改变后导致绑定的鼠标事件需要一起变动\n\n#### 2.绘制图形的接口需要加上 ratio\n\n#### 待完善：canvas 事件自动绑定类（现在是每添加一个元素则手动添加到观察数组中）\n\n```\nnpm run start\n```\n\nto start your application\n\n```\nnpm run build\n```\n\nto bundle your application\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwklili%2Fcanvas_interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwklili%2Fcanvas_interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwklili%2Fcanvas_interview/lists"}