{"id":20596057,"url":"https://github.com/davidfig/spotlight","last_synced_at":"2025-04-14T23:44:06.986Z","repository":{"id":57367901,"uuid":"142733914","full_name":"davidfig/spotlight","owner":"davidfig","description":"a simple canvas-based spotlight that can be used to highlight elements","archived":false,"fork":false,"pushed_at":"2018-09-28T02:04:45.000Z","size":1139,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T23:44:03.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/davidfig.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":"2018-07-29T05:34:56.000Z","updated_at":"2020-12-30T03:40:53.000Z","dependencies_parsed_at":"2022-08-23T20:11:00.679Z","dependency_job_id":null,"html_url":"https://github.com/davidfig/spotlight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fspotlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fspotlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fspotlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fspotlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfig","download_url":"https://codeload.github.com/davidfig/spotlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981259,"owners_count":21193143,"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-11-16T08:14:54.271Z","updated_at":"2025-04-14T23:44:06.967Z","avatar_url":"https://github.com/davidfig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spotlight-canvas\r\na simple canvas-based spotlight that can be used to highlight elements\r\n\r\nFeatures:\r\n* a canvas that darkens the screen\r\n* spotlight areas based on circles or polygons\r\n* spotlight areas can be dynamically changed or cleared\r\n* the canvas includes fadeIn and fadeOut functions\r\n\r\n## Live Example\r\n[davidfig.github.io/spotlight/](https://davidfig.github.io/spotlight/)\r\n\r\n## Rationale\r\nI needed a way to highlight elements in my UI. \r\n\r\n## Simple Example\r\n```js\r\nvar Spotlight = require('spotlight-canvas');\r\n\r\n// create the scrollbox\r\nvar spotlight = new Spotlight();\r\n\r\n// create a circle spotlight\r\nspotlight.circle(100, 100, 200);\r\n\r\n```\r\n\r\n## Installation\r\n\r\n```\r\nnpm i spotlight-canvas\r\n```\r\n\r\n## API Documentation\r\n[https://davidfig.github.io/spotlight/jsdoc/](https://davidfig.github.io/spotlight/jsdoc/)\r\n\r\n## license  \r\nMIT License  \r\n(c) 2018 [YOPEY YOPEY LLC](https://yopeyopey.com/) by [David Figatner](https://twitter.com/yopey_yopey/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fspotlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfig%2Fspotlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fspotlight/lists"}