{"id":13562552,"url":"https://github.com/ronffy/JumpBubble","last_synced_at":"2025-04-03T18:33:54.641Z","repository":{"id":93092719,"uuid":"76433377","full_name":"ronffy/JumpBubble","owner":"ronffy","description":"🎨 酷炫实用的点赞态度表情气泡，通过h5的canvas实现，原生JS无依赖，API丰富，使用简单","archived":false,"fork":false,"pushed_at":"2019-01-10T05:55:47.000Z","size":757,"stargazers_count":24,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-04T14:45:25.205Z","etag":null,"topics":["canvas","es6","h5","webpack"],"latest_commit_sha":null,"homepage":"https://ronffy.github.io/JumpBubble","language":"JavaScript","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/ronffy.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}},"created_at":"2016-12-14T06:56:48.000Z","updated_at":"2022-10-16T13:06:14.000Z","dependencies_parsed_at":"2023-06-04T19:00:37.092Z","dependency_job_id":null,"html_url":"https://github.com/ronffy/JumpBubble","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/ronffy%2FJumpBubble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2FJumpBubble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2FJumpBubble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2FJumpBubble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronffy","download_url":"https://codeload.github.com/ronffy/JumpBubble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247057138,"owners_count":20876520,"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":["canvas","es6","h5","webpack"],"created_at":"2024-08-01T13:01:09.829Z","updated_at":"2025-04-03T18:33:49.628Z","avatar_url":"https://github.com/ronffy.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# JumpBubble\n\n酷炫实用的态度气泡，通过canvas实现\n\n## 介绍\n\n-   态度气泡，冒泡功能，仿直播间特效功能\n-   API丰富，使用简单，可设置气泡的大小、气泡浮动效果、位置等多种自定义效果\n-   创建态度气泡时，你只需关心数据，即用于创建气泡的src的相对或绝对路径或cnd地址，无需手动创建img标签，JumpBubble会帮你生成为指定大小表情\n-   冒泡的生命周期完善\n-   兼容IE9+\n-   webpack + ES6 跑项目\n\n-   目前master是第二版，而v1版本是原生JS写的，无需任何依赖和webpack环境，如需可[查看](https://github.com/hironi/JumpBubble/tree/v1)\n\n## 项目怎么跑起来？  HOW TO RUN\n\n```javascript\n\n//安装\nnpm install  \n\n//启动\nnpm start\n\n//产出\nnpm run build\n\n```\n\n## 怎么使用插件？ HOW TO USE\n\n```javascript\n\n//初始化\nconst bubble = new JumpBubble(canvasNode);\n\n//调用实例的create方法，每次传入想要冒泡的图像的src即可，无需手动创建多余的img标签\n//src可以是cdn地址，也可以是相对路径（相对路径是相对html文件）或绝对路径\nbubble.create(imgsrcStr);\n\n```\n\n### 实例\n\n#### html \n\n```html\n\n\u003c!-- 注意指定宽高 --\u003e\n\u003ccanvas id=\"cavs\" width=\"150\" height=\"400\" \u003e您的浏览器不支持canvas标签~\u003c/canvas\u003e\n\n```\n\n#### JS\n\n```javascript\n\nconst bubble = new JumpBubble(document.getElementById('cavs'));\n\nbubble.create('http://p8.qhimg.com/t01053ab4d4d6510abd.png'); //此处src为cnd地址(亦可以为本地的相对或绝对路径)\n\n```\n\n### 好了，完成了，快去看看效果吧\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronffy%2FJumpBubble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronffy%2FJumpBubble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronffy%2FJumpBubble/lists"}