{"id":16885452,"url":"https://github.com/matthewmueller/unmatrix","last_synced_at":"2025-04-11T12:32:12.945Z","repository":{"id":66124505,"uuid":"13706651","full_name":"matthewmueller/unmatrix","owner":"matthewmueller","description":"Parse and normalize the individual values of a css transform","archived":false,"fork":false,"pushed_at":"2015-08-20T11:26:26.000Z","size":166,"stargazers_count":21,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T08:51:19.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/matthewmueller.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.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":"2013-10-19T18:46:44.000Z","updated_at":"2023-03-03T14:30:28.000Z","dependencies_parsed_at":"2023-02-19T23:00:46.356Z","dependency_job_id":null,"html_url":"https://github.com/matthewmueller/unmatrix","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Funmatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Funmatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Funmatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Funmatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewmueller","download_url":"https://codeload.github.com/matthewmueller/unmatrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401973,"owners_count":21097328,"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-13T16:35:25.040Z","updated_at":"2025-04-11T12:32:12.907Z","avatar_url":"https://github.com/matthewmueller.png","language":"JavaScript","readme":"\n# unmatrix\n\n  Parse and normalize the individual values of a css transform.\n  Uses the same algorithm that Firefox uses to parse the transform string.\n  Only parses the 2D transform attributes. This library is intentionally low-level\n  and should probably be used within another library.\n\n  If you'd like to parse 3D transforms take a look at:\n  http://www.w3.org/TR/css3-transforms/#matrix-decomposing.\n\n## Example\n\n```js\nvar unmatrix = require('unmatrix');\nvar t = unmatrix(box);\nbox.style.webkitTransform = toString(t);\n```\n\n## Installation\n\n  Install with [component(1)](http://component.io):\n\n    $ component install matthewmueller/unmatrix\n\n## API\n\n### unmatrix(el)\n\nParse the individual values of a CSS transform. Returns the following object:\n\n```js\n{\n  \"translateX\": 400, // px\n  \"translateY\": 200, // px\n  \"rotate\": 60, // deg\n  \"skew\": 20, // deg\n  \"scaleX\": 2,\n  \"scaleY\": 2\n}\n```\n\n## TODO\n\n- support for transform matrix parsing\n- tests would be nice\n\n## License\n\n  MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Funmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewmueller%2Funmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Funmatrix/lists"}