New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vuc-identify

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuc-identify

A vue-canvas effects components

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

vuc-identify

Install

    npm install --save vuc-identify
    
    yarn add vuc-identify

Basic use

    全局
    
    import vucIdentify from 'vuc-identify'
    Vue.use(vucIdentify)
    
    局部
    import {vucIdentify} from 'vuc-identify'
    export default {
      components: {vucIdentify}
    }
    

全局属性方法

属性类型默认值说明
colorArray[]绘制粒子和干扰线效果颜色
Hnumber150
Wnumber300
particleNumnumber150粒子数量
fontArray[60, 80]绘制字体大小的区间
textStringloo41文本
textColorArray[]绘制文本的颜色 如果不存在 会使用随机色
randomBooleanfalse在点击切换的时候开启随机生成模式
randomTypeString''随机模式的类型 (math, string '')
randomLengthnumber4随机生成模式文本的长度
backgroundstringrgba(0, 0, 0, 0.2)背景色
fontFamilystringArial文本字体
clickStatusBooleantrue点击状态下是否更改会执行changeQr事件 自定义更改
typestringrect粒子的类型 (arc square rect icon) icon可实现自定义效果
styleTypestringfill粒子是描边还是填充样式 (stroke 可选)
sizenumber10粒子的尺寸
drawImgArray[]icon模式下绘制的图片 (建议是icon的png图片)
interfereNumnumber5干扰线的数量
interfereWidthArray[1, 5]干扰线的宽度区间
textValueFun每次更改的事件 参数是渲染的文本
clickQrFun点击事件为true时候执行的函数 (可在该函数下做文本的调整渲染)

欢迎 pr issues star

Keywords

vue

FAQs

Package last updated on 14 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts