{"id":16125714,"url":"https://github.com/dy/resizable","last_synced_at":"2025-04-04T20:09:37.357Z","repository":{"id":22689972,"uuid":"26033762","full_name":"dy/resizable","owner":"dy","description":"Resizable behavior for elements","archived":false,"fork":false,"pushed_at":"2024-10-18T20:28:15.000Z","size":112,"stargazers_count":73,"open_issues_count":0,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T19:07:40.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dy.github.io/resizable/test","language":"JavaScript","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/dy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-31T21:30:51.000Z","updated_at":"2024-11-06T22:58:41.000Z","dependencies_parsed_at":"2025-01-18T18:13:16.035Z","dependency_job_id":"885534f6-36d2-434a-ac40-b4061ebb36ce","html_url":"https://github.com/dy/resizable","commit_stats":{"total_commits":59,"total_committers":3,"mean_commits":"19.666666666666668","dds":0.03389830508474578,"last_synced_commit":"fc5bbf9d7e22899f836a12ee36b45687a8591ec0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fresizable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fresizable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fresizable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fresizable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/resizable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242678,"owners_count":20907134,"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-09T21:30:54.339Z","updated_at":"2025-04-04T20:09:37.340Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resizable\n\nResizable behaviour for elements. [Demo](https://dy.github.io/resizable).\n\n[![npm install resizable](https://nodei.co/npm/resizable.png?mini=true)](https://nodei.co/npm/resizable/)\n\n\n```js\nimport Resizable from 'resizable';\n\nvar resizable = new Resizable(document.querySelector('.my-element'), {\n\twithin: 'parent',\n\thandles: 's, se, e',\n\tthreshold: 10,\n\tdraggable: false\n});\n\nresizable.on('resize', function(){\n\t//...\n});\n```\n\n## Options\n\n| Parameter | Default | Description |\n|---|:---:|---|\n| `handles` | * | List of handles to support. Valid handles: `s`, `se`, `e`, `ne`, `n`, `nw`, `w`, `sw`. May be specified as an object, array, or comma-separated string. |\n| `resize` | `undefined` | Resize event handler. |\n| `threshold` | `10` | A movement threshold required to start resize - whether array, number or function. |\n| `within` | `document` | Restrict movement within the container. Pass `'parent'` to take parent node. |\n| `draggable` | `false` | Make element [draggable](http://github.com/dfcreative/draggy) as well. Set an object to pass options to draggable. |\n| `css3` | `true` | Use `translate3d` for defining position. |\n\n\\* Default handles are dependent on the styling of the given element. Inline\nelements will default to `s`, `se`, `e`, while elements that can support full\nresize will default to all handles being enabled.\n\n## Events\n\n| Name | Description |\n|---|---|\n| `resizestart` | Element resize started. |\n| `resize` | Element resized. |\n| `resizeend` | Element resize ended. |\n\n## License\n\nMIT\n\n\u003cp align=center\u003e\u003ca href=\"https://github.com/krishnized/license/\"\u003e🕉\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fresizable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fresizable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fresizable/lists"}