{"id":18965628,"url":"https://github.com/cczx/matrix","last_synced_at":"2026-04-03T18:30:18.002Z","repository":{"id":42495361,"uuid":"510802762","full_name":"CCZX/matrix","owner":"CCZX","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-27T15:11:58.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T05:45:27.999Z","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/CCZX.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-07-05T15:55:08.000Z","updated_at":"2022-07-05T15:56:17.000Z","dependencies_parsed_at":"2022-09-10T03:21:08.346Z","dependency_job_id":null,"html_url":"https://github.com/CCZX/matrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Fmatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Fmatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Fmatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Fmatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CCZX","download_url":"https://codeload.github.com/CCZX/matrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239964497,"owners_count":19725950,"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-08T14:30:37.663Z","updated_at":"2026-04-03T18:30:17.952Z","avatar_url":"https://github.com/CCZX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matrix\n\n\u003e 变换矩阵可视化工具\n\n可以将一个或者多个矩阵作用于一个矢量或者形状节点，查看矢量、形状节点的变化。\n\n## 实现思路\n\n**核心**：使用变换矩阵变换 canvas 的坐标系\n\n首先先对 canvas 坐标系进行如下变换，使其符合我们常见的直角坐标系。\n\n```js\ntransform(1, 0, 0, -1, width / 2, height / 2);\n```\n\n变换之后保存当前坐标系的绘制状态，防止我们后续的变换矩阵不影响坐标的位置。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcczx%2Fmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcczx%2Fmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcczx%2Fmatrix/lists"}