{"id":31654722,"url":"https://github.com/robleto/snap-45_90","last_synced_at":"2025-10-07T12:15:41.463Z","repository":{"id":316259904,"uuid":"1062586209","full_name":"robleto/Snap-45_90","owner":"robleto","description":"A Figma plug-in to convert lines to a clean 45 or 90 degree angle.","archived":false,"fork":false,"pushed_at":"2025-09-23T14:39:57.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-23T16:28:07.466Z","etag":null,"topics":["figma","figma-plugin","pen-tool","vector"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/robleto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T13:03:36.000Z","updated_at":"2025-09-23T14:40:00.000Z","dependencies_parsed_at":"2025-09-23T16:28:12.662Z","dependency_job_id":null,"html_url":"https://github.com/robleto/Snap-45_90","commit_stats":null,"previous_names":["robleto/snap-45_90"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/robleto/Snap-45_90","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleto%2FSnap-45_90","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleto%2FSnap-45_90/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleto%2FSnap-45_90/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleto%2FSnap-45_90/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robleto","download_url":"https://codeload.github.com/robleto/Snap-45_90/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleto%2FSnap-45_90/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278772780,"owners_count":26043247,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["figma","figma-plugin","pen-tool","vector"],"created_at":"2025-10-07T12:15:40.462Z","updated_at":"2025-10-07T12:15:41.457Z","avatar_url":"https://github.com/robleto.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snap 45/90 — Figma Plugin\n\n## Overview\nSnap lines and straight vector segments to clean angles. Use it live while drawing or on demand.\n\n- Modes:\n  - Default: 15° increments\n  - Strict: 0° / 45° / 90° / 135° only\n- Two ways to work:\n  - Live: auto-snap while you select/move vector points\n  - On-demand: press \"Snap Selection Now\"\n\n---\n\n## Installation (Development)\n\n1. Open Figma → **Plugins → Development → New Plugin… → Link existing plugin**.\n2. Point to the folder containing this plugin’s `manifest.json`.\n3. Run from **Plugins → Development → Snap 45/90**.\n\n---\n\n## Files\n\n- `manifest.json` — plugin metadata; points to `code.js` and `ui.html`.\n- `code.js` — main plugin logic (snapping lines and vectors).\n- `ui.html` — control panel UI with Actions and Settings.\n- `README.md` — you’re reading it.\n\n---\n\n## Usage\n\n1. Run **Snap 45/90** from the Figma Plugins menu.\n2. In the UI:\n   - Actions\n     - \"Snap Selection Now\" — snaps current selection immediately.\n     - \"Close\" — closes the panel.\n   - Settings\n     - \"45° only\" — restricts snapping to 0/45/90/135.\n     - \"Auto-snap\" — live snapping while you select/move points.\n     - \"Batch undo\" — group rapid edits into one undo step.\n3. Draw or edit vectors as usual. With Auto-snap on, straight segments align automatically; or use the action to snap once.\n\n---\n\n## Limitations\n\n- Snapping happens after edits are applied (post-change). It cannot constrain the Pen tool mid-draw.\n- Works on lines and straight segments of vectors; curves are ignored.\n- If a vector node itself is rotated, the plugin prefers rotating the node; otherwise it adjusts vertices to keep segment length.\n\n---\n\n## Tips \u0026 Troubleshooting\n\n- Nothing happens? Select a Line or Vector (straight segments) and try again.\n- Undo granularity: enable \"Batch undo\" to coalesce frequent auto-snaps.\n- To fix a single middle segment: nudge one endpoint or select and press \"Snap Selection Now\".\n- Visual precision: zoom in—guides can look off at low zoom.\n\n---\n\n## License\n\nMIT — free to use and modify.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobleto%2Fsnap-45_90","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobleto%2Fsnap-45_90","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobleto%2Fsnap-45_90/lists"}