{"id":28683688,"url":"https://github.com/shhdharmen/cdk-drag-snap-to-point","last_synced_at":"2026-01-17T06:59:55.855Z","repository":{"id":294646103,"uuid":"984679302","full_name":"shhdharmen/cdk-drag-snap-to-point","owner":"shhdharmen","description":"A demo to showcase cdkDarg features to achieve drop only on certain points","archived":false,"fork":false,"pushed_at":"2025-05-21T11:06:49.000Z","size":165,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T23:37:06.441Z","etag":null,"topics":["angular","angular-cdk","angular-drag-and-drop"],"latest_commit_sha":null,"homepage":"","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/shhdharmen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["shhdharmen"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-05-16T10:23:21.000Z","updated_at":"2025-05-21T16:51:59.000Z","dependencies_parsed_at":"2025-05-21T12:24:01.661Z","dependency_job_id":"44eddc99-9dcf-41e0-ab3d-c016d8135512","html_url":"https://github.com/shhdharmen/cdk-drag-snap-to-point","commit_stats":null,"previous_names":["shhdharmen/cdk-drag-snap-to-point"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shhdharmen/cdk-drag-snap-to-point","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Fcdk-drag-snap-to-point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Fcdk-drag-snap-to-point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Fcdk-drag-snap-to-point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Fcdk-drag-snap-to-point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shhdharmen","download_url":"https://codeload.github.com/shhdharmen/cdk-drag-snap-to-point/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shhdharmen%2Fcdk-drag-snap-to-point/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259752029,"owners_count":22905968,"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","angular-cdk","angular-drag-and-drop"],"created_at":"2025-06-14T03:01:11.348Z","updated_at":"2026-01-17T06:59:55.801Z","avatar_url":"https://github.com/shhdharmen.png","language":"JavaScript","funding_links":["https://github.com/sponsors/shhdharmen"],"categories":["Third Party Components"],"sub_categories":["Drag and Drop"],"readme":"# Angular CDkDrag Demo - Stick cdkDrag only to allowed points\n\nhttps://github.com/user-attachments/assets/3a7c39f4-6408-4e74-8a37-7c80bef5c5c4\n\nThis project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.12.\n\n## Development server\n\nTo start a local development server, run:\n\n```bash\nng serve\n```\n\nOnce the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.\n\n## Code scaffolding\n\nAngular CLI includes powerful code scaffolding tools. To generate a new component, run:\n\n```bash\nng generate component component-name\n```\n\nFor a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:\n\n```bash\nng generate --help\n```\n\n## Building\n\nTo build the project run:\n\n```bash\nng build\n```\n\nThis will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.\n\n## Running unit tests\n\nTo execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:\n\n```bash\nng test\n```\n\n## Running end-to-end tests\n\nFor end-to-end testing with Playwright, we have two test scripts:\n\n### Basic Drag Tests\nTo run the basic drag tests:\n\n```bash\nnpm run test:e2e\n```\n\n### Comprehensive Corner Tests\nTo run tests for all drag scenarios from all corners:\n\n```bash\nnpm run test:corners\n```\n\n**Note:** Make sure the development server is running at `http://localhost:4200` before executing these tests.\n\n## Test Coverage\n\nThe comprehensive corner tests verify drag behavior from all four corners (TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT) in all eight directions:\n- RIGHT\n- DOWN\n- LEFT\n- UP\n- DOWN_RIGHT\n- DOWN_LEFT\n- UP_RIGHT\n- UP_LEFT\n\nThis ensures the drag-snap component correctly predicts and snaps to the final position in all possible scenarios.\n\n## Additional Resources\n\nFor more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshhdharmen%2Fcdk-drag-snap-to-point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshhdharmen%2Fcdk-drag-snap-to-point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshhdharmen%2Fcdk-drag-snap-to-point/lists"}