{"id":20461387,"url":"https://github.com/antvis/attr","last_synced_at":"2025-04-13T06:17:28.453Z","repository":{"id":44492292,"uuid":"138139120","full_name":"antvis/attr","owner":"antvis","description":"Attribute mapping module for  @antvis.","archived":false,"fork":false,"pushed_at":"2023-03-23T02:37:47.000Z","size":827,"stargazers_count":12,"open_issues_count":2,"forks_count":6,"subscribers_count":41,"default_branch":"master","last_synced_at":"2024-10-29T21:05:30.225Z","etag":null,"topics":["attribute","mapping"],"latest_commit_sha":null,"homepage":"","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/antvis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-06-21T08:04:08.000Z","updated_at":"2023-04-10T06:33:44.000Z","dependencies_parsed_at":"2022-08-20T18:10:31.795Z","dependency_job_id":null,"html_url":"https://github.com/antvis/attr","commit_stats":{"total_commits":40,"total_committers":7,"mean_commits":5.714285714285714,"dds":0.575,"last_synced_commit":"06282f20580ff0cf37fbc8b98b3a5e1007ed15a7"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fattr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fattr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fattr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fattr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antvis","download_url":"https://codeload.github.com/antvis/attr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245233474,"owners_count":20581815,"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":["attribute","mapping"],"created_at":"2024-11-15T12:25:08.943Z","updated_at":"2025-04-13T06:17:28.432Z","avatar_url":"https://github.com/antvis.png","language":"TypeScript","readme":"# @antv/attr\n\n\u003e Mapping data to visual AES.\n\n\n![](https://img.shields.io/badge/language-javascript-red.svg)\n![](https://img.shields.io/badge/license-MIT-000000.svg)\n[![npm package](https://img.shields.io/npm/v/@antv/attr.svg)](https://www.npmjs.com/package/@antv/attr)\n[![NPM downloads](http://img.shields.io/npm/dm/@antv/attr.svg)](https://npmjs.org/package/@antv/attr)\n[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/attr.svg)](http://isitmaintained.com/project/antvis/attr \"Percentage of issues still open\")\n\n\n## Installing\n\n```bash\nnpm install @antv/attr\n```\n\n\n## Usage\n\n\n```js\nimport { getAttribute } from '@antv/adjust';\n\n// contains Color, Opacity, Position, Shape, Size\nconst Color = getAttribute('color');\n\nconst color = new Color({/* ... */});\n\n// mapping data to color\nconst r = color.mapping('杭州');\n```\n\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantvis%2Fattr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantvis%2Fattr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantvis%2Fattr/lists"}