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 🙏

© 2024 – Pkg Stats / Ryan Hefner

redraws-vue2-images

v1.5.2

Published

redraw image from url to canvas or imgs ,add Fuzzy processing

Downloads

36

Readme

redraws-vue2-images

install

yarn add redraws-vue2-images
or
npm install redraws-vue2-images

use

<RedrawImage :type="**" :url="**"></RedrawImage>

gitgub

https://github.com/newdayss/redraws-vue2-images

doc

  • type | 默认值1 | 1:简易模糊模式,2:canvas模糊模式 *(canvas 模糊需要后端图片支持跨域(即Access-Control-Allow-Origin: 模式),否则只能绘制同源图片, 同时本组件提供传入url转base64接口地址参数,配合后端接口方式实现绘制跨域绘制)

  • blurOn | 默认值true | true:打开模糊,false:关闭模糊

  • gauss | 默认值1 | canvas 模糊程度,数值越大程度越高


本区间为dev调试模式开关,pro环境一般不适用,除非在服务器上配置了相应的ngnix

  • isDev | 默认为false | false:关闭dev模式,true:打开dev模式
  • localhost | 默认为"" | 值为空时,读取本地localhost域名替换图片路径,有值时用值替换图片路径
  • proxyName | 默认为"" | 设置的代理路径,值为空时需要设置代理为"/",有值时读取/proxyName为代理路径
  • vue.config.js配置为
 proxy: {
   "/proxyName": {
        target: "http://********:port/",
        changeOrigin: true,
        pathRewrite: {
          "/proxyName": ""
        }
      }
   }
  • httpType | 默认为http | http:图片模式替换为http模式,https:图片模式替换为https模式

isBase64

  • 此模式与isdev 相关配置为互斥事件,isBase64模式生效时isdev
  • (接受接口为code为0,data为base64图片的返回值,即{code:0,success:true,data:"***"})
  • isBase64 | 默认为fasle | false:关闭使用接口转换为base64,true:打开使用接口转换为base64 (循环时慎用)
  • base64Api | 默认为"" | 后端提供的url转base64接口地址
  • methodType | 默认为"get" | base64Api该接口的请求方式

author

wangbo