{"id":14973171,"url":"https://github.com/reklino/angular-resizable","last_synced_at":"2025-05-16T02:10:38.161Z","repository":{"id":29415893,"uuid":"32951468","full_name":"Reklino/angular-resizable","owner":"Reklino","description":"A lightweight directive for creating resizable containers.","archived":false,"fork":false,"pushed_at":"2021-05-10T17:54:40.000Z","size":2684,"stargazers_count":314,"open_issues_count":43,"forks_count":114,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-08T13:15:42.040Z","etag":null,"topics":["angular","angularjs","javascript","resizable","resize"],"latest_commit_sha":null,"homepage":"http://codepen.io/Reklino/pen/raRaXq/","language":"CSS","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/Reklino.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}},"created_at":"2015-03-26T20:56:23.000Z","updated_at":"2025-03-15T15:19:16.000Z","dependencies_parsed_at":"2022-08-26T08:30:26.962Z","dependency_job_id":null,"html_url":"https://github.com/Reklino/angular-resizable","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reklino%2Fangular-resizable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reklino%2Fangular-resizable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reklino%2Fangular-resizable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reklino%2Fangular-resizable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reklino","download_url":"https://codeload.github.com/Reklino/angular-resizable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453667,"owners_count":22073618,"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":["angular","angularjs","javascript","resizable","resize"],"created_at":"2024-09-24T13:48:15.812Z","updated_at":"2025-05-16T02:10:38.081Z","avatar_url":"https://github.com/Reklino.png","language":"CSS","readme":"# angular-resizable\nA directive for creating resizable containers.\n\n## Why?\nAll other resizable directive concepts I came across include layout logic in the directive. I wanted a directive that only handled the resize logic. This way, the layout logic is quarantined to the CSS.\n\n## Usage\n\n1. `npm install angular-resizable` or `bower install angular-resizable` or clone/download this repo\n2. Include `angular-resizable.min.js` in your project.\n3. Include `angular-resizable.min.css` in your project as well (this provides default styling for the resize handles).\n4. Then include the module in your app: `angular.module('app', ['angularResizable'])`\n5. Use it: `\u003csection resizable r-directions=\"['bottom', 'right']\" r-flex=\"true\"\u003e`\n\nInclude any sides you want to be resizable in an array inside `r-directions`. Accepts 'top','right','bottom', and 'left'. You can style the handles however you want. Just override the styles in the css in your own stylesheet.\n\n## Options\n\nAttributes  | Default | Accepts | Description\n--- | --- | --- | ---\nrDirections | ['right'] | ['top', 'right', 'bottom', 'left',] | Determines which sides of the element are resizable.\nrFlex | false | boolean | Set as true if you are using flexbox. [See this codepen](http://codepen.io/Reklino/pen/raRaXq).\nrCenteredX | false | boolean | If set as true, the velocity of horizontal resizing will be doubled.\nrCenteredY | false | boolean | If set as true, the velocity of vertical resizing will be doubled.\nrWidth | false | integer or $scope variable | If set, the resizable element will be rendered with a predefined width relative to this value in pixels and a watcher will be set on the 'rWidth' attribute. [See this codepen](http://codepen.io/Reklino/pen/EjKXqg).\nrHeight | false | integer or $scope variable | If set, the resizable element will be rendered with a predefined height relative to this value in pixels and a watcher will be set on the 'rHeight' attribute. [See this codepen](http://codepen.io/Reklino/pen/EjKXqg).\nrGrabber | `\u003cspan\u003e\u003c/span\u003e` | string | Defines custom inner html for the grabber.\nrNoThrottle | false | boolean | Disables `angular-resizable.resizing` throttling (see events section below).\n\n## Events\n\nFor an example using the events, [see this codepen](http://codepen.io/Reklino/pen/EjKXqg).\n\n### angular-resizable.resizeStart\n\nThis event is emitted at the beginning of a resize with the following info object:\n- `info.width` : The width of the directive at time of resize start. **Will be false if resizing vertically**\n- `info.height` : The height of the directive at time of resize start. **Will be false if resizing horizontally**\n- `info.id` : The id of the directive. **Will be false if there is no id set.**\n- `info.evt` : original mouse event object\n\n### angular-resizable.resizing\n\nCalled repeatedly while the mouse is being moved. By default, only calls once every 100ms to keep CPU usage low. For smooth resizing, use the `rNoThrottle` attribute. This event is emitted during the resizing of the element with the following object as an argument:\n- `info.width` : The width of the directive at time of resize end. **Will be false if resizing vertically**\n- `info.height` : The height of the directive at time of resize end. **Will be false if resizing horizontally**\n- `info.id` : The id of the directive. **Will be false if there is no id set.**\n- `info.evt` : original mouse event object\n\n### angular-resizable.resizeEnd\n\nThis event is emitted at the end of a resize with the following object as an argument:\n- `info.width` : The width of the directive at time of resize end. **Will be false if resizing vertically**\n- `info.height` : The height of the directive at time of resize end. **Will be false if resizing horizontally**\n- `info.id` : The id of the directive. **Will be false if there is no id set.**\n- `info.evt` : original mouse event object\n\n## version notes\n\n### 1.2.0\n- Add angular-resizable.resizing event (see pull request #7)\n- Add attribute for providing custom inner html to the grabber element (see pull request #7)\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freklino%2Fangular-resizable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freklino%2Fangular-resizable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freklino%2Fangular-resizable/lists"}