npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-slider-gif-maker

v1.0.0

Published

基于[gif](https://github.com/jnordberg/gif.js)和[vue-slider-component](https://github.com/NightCatSama/vue-slider-component)二次封装的拖拽截图生成gif的vue组件

Downloads

9

Readme

vue-slider-gif-maker

基于gifvue-slider-component二次封装的拖拽截图生成gif的vue组件

Todo

  • [x] 拖拽截图
  • [x] 生成gif
  • [x] 手动拖动选择画面截取
  • [x] 选择范围后自动截取
  • [x] 继承vue-slider-component入参
  • [x] 支持gif帧率入参

Run example

npm i

npm run dev

Use it

由于组件需要依赖放置于静态资源目录下的worker文件。安装后将会自动收到copy文件到本地静态资源目录的提示。

或者也可手动获取本repositorie中asset目录下的gif.worker.js文件,并放置在本地项目的静态资源目录下。

为什么需要有一个worker文件,点击这里了解更多

npm install vue-slider-gif-maker --save

// 按照提示输入本地应用的静态资源目录,请以提示的路径为为基础。
What`s your static asset dir(Current dir is "/current")? Please base on current dir!:public

"gif.worker.js" had copied to " /current/public"
<template>
  <div>
    <vue-slider-gif-maker maker-type="drop" href=""></vue-slider>
  </div>
</template>
<script>
import vueSliderGifMaker from 'vue-slider-gif-maker'

自动截取生成GIF

mergeGifVideo

最终输出结果

gifResult

Props

| Props | 类型 | 默认值 | 描述 | 参数描述 | |-|-|-|-|-| | href | String | "" | 视频链接地址 | | | maker-type | String | drop | 截取方式 | drop:拖拽范围后自动截取;click:选择画面截取 | |vue-slider-config|Object|{} | vue-slider组件的参数透传 | vue-slider组件入参 |

Methods

| Methods | 使用条件 | 入参 | 效果 | 返回 | |-|-|-|-|-| | screenShot | maker-type='click' |无 | 截图 | {img:(Img DOM),blob:(图片二进制内容)} | | mergeGif | maker-type='click' | 同 https://github.com/jnordberg/gif.js | 生成gif | {gif:(Img DOM),blob:(图片二进制内容)} | | autoMergeGif | maker-type='drop' | {frame:截取时间段内取几张图片}其他参数同上 | 选定区间后自动截图并生成gif | {gif:(Img DOM),blob:(图片二进制内容),imgMap:(ImgDom的Array)} |