{"id":20041599,"url":"https://github.com/ryinner/ts-enjoy-hint","last_synced_at":"2026-04-12T22:34:42.044Z","repository":{"id":182535114,"uuid":"668656539","full_name":"ryinner/ts-enjoy-hint","owner":"ryinner","description":"Typescript enjoy hints.","archived":false,"fork":false,"pushed_at":"2024-01-30T10:49:28.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T19:27:25.064Z","etag":null,"topics":["npm-package","package","typescript"],"latest_commit_sha":null,"homepage":"https://ryinner.github.io/ts-enjoy-hint/","language":"TypeScript","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/ryinner.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-20T10:01:32.000Z","updated_at":"2023-07-28T03:54:29.000Z","dependencies_parsed_at":"2024-01-30T11:45:13.258Z","dependency_job_id":null,"html_url":"https://github.com/ryinner/ts-enjoy-hint","commit_stats":null,"previous_names":["ryinner/ts-enjoy-hint"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryinner%2Fts-enjoy-hint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryinner%2Fts-enjoy-hint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryinner%2Fts-enjoy-hint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryinner%2Fts-enjoy-hint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryinner","download_url":"https://codeload.github.com/ryinner/ts-enjoy-hint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241470401,"owners_count":19968041,"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":["npm-package","package","typescript"],"created_at":"2024-11-13T10:47:13.390Z","updated_at":"2025-10-09T03:09:32.926Z","avatar_url":"https://github.com/ryinner.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-enjoy-hint\nTypescript enjoy hints.\n\nThat a simple library based on canvas drawing.\n\n## Settings\n\n```typescript\n// All settings.\nsetSettings({\n    nextBtn: 'Next',\n    nextBtnClass: 'ts-enjoy-hint-button--next',\n    previousBtn: 'Previous',\n    previousBtnClass: 'ts-enjoy-hint-button--previous',\n    closeBtn: 'X',\n    closeBtnClass: 'ts-enjoy-hint-button--close',\n    scrollBehavior: 'smooth',\n    zIndex: 10\n});\n```\n\n## Create\n\n```typescript\nconst tsEnjoyHintInstance = new TsEnjoyHint();\n```\n\n## Hint list\n\n```typescript\nconst target = document.querySelector('#target');\n\ntsEnjoyHintInstance.apply({ target });\n//or\ntsEnjoyHintInstance.apply({ target: '#target' });\n//multiply\ntsEnjoyHintInstance.apply([{ target: '#target' }, { target: '#second-target' }]);\n```\n\n## Hint item setting\n\n| setting   |   description                   |        value        |\n| --------- | ------------------------------- | ------------------- |\n| target    | target for hint                 | Element \\| selector |\n| shape     | selection shape                 | circle \\| rectangle |\n| onEnter   | before enter hint               | (element) =\u003e void   |\n| onLeave   | before leave hint               | (element) =\u003e void   |\n| nextEvent | target event for show next hint | string              |\n\n\n## Style\n\n```typescript\nimport '@ryinner/ts-enjoy-hint/style.css'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryinner%2Fts-enjoy-hint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryinner%2Fts-enjoy-hint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryinner%2Fts-enjoy-hint/lists"}