{"id":16384714,"url":"https://github.com/saber2pr/interval","last_synced_at":"2025-02-22T02:43:55.082Z","repository":{"id":65492255,"uuid":"163840657","full_name":"Saber2pr/interval","owner":"Saber2pr","description":"Interval use requestAnimationFrame.","archived":false,"fork":false,"pushed_at":"2019-05-07T06:36:34.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T11:09:31.474Z","etag":null,"topics":["interval","requestanimationframe","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Saber2pr.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}},"created_at":"2019-01-02T12:52:01.000Z","updated_at":"2023-07-19T12:05:18.000Z","dependencies_parsed_at":"2023-01-25T19:35:12.913Z","dependency_job_id":null,"html_url":"https://github.com/Saber2pr/interval","commit_stats":null,"previous_names":["saber2pr/saber-interval","saber2pr/-saber2pr-interval"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Finterval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Finterval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Finterval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Finterval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saber2pr","download_url":"https://codeload.github.com/Saber2pr/interval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118329,"owners_count":19750471,"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":["interval","requestanimationframe","typescript"],"created_at":"2024-10-11T04:12:10.974Z","updated_at":"2025-02-22T02:43:55.059Z","avatar_url":"https://github.com/Saber2pr.png","language":"TypeScript","readme":"# @saber2pr/interval\n\n\u003e Interval use requestAnimationFrame.\n\n```bash\nnpm install @saber2pr/interval\n```\n\n# API\n\n```ts\nconst interval = new Interval() // delta is 16\n\nconst interval = new Interval(1000) // delta is 1000\n```\n\n## Interval.push\n\n```ts\nconst update1 = time =\u003e console.log('update1', time)\nconst update2 = time =\u003e console.log('update2', time)\n\ninterval.push(update1, update2)\n```\n\n## interval.remove\n\n```ts\nconst update1 = time =\u003e console.log('update1', time)\n\ninterval.remove(update1)\n```\n\n## interval.setDelta\n\n```ts\ninterval.setDelta(500) // delta is changed to 500\n```\n\n## interval.execute\n\n```ts\ninterval.execute() // interval is starting...\n```\n\n## interval.cancel\n\n```ts\ninterval.cancel() // interval is canceled.\n```\n\n# Author\n\n\u003e saber2pr\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Finterval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaber2pr%2Finterval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Finterval/lists"}