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

rainbow-waves

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rainbow-waves

z7xisoo rainbow-waves vue

latest
npmnpm
Version
1.2.5
Version published
Maintainers
1
Created
Source

rainbow-waves

rainbow-waves is a wave component on Vue by z7xisoo in github.

Install

npm i --save rainbow-waves
import RainbowWaves from 'rainbow-waves'

Usage

<rainbow-waves :config="config"></rainbow-waves>

Options

  • config
keytypedefaultuse
elString"rainbow-waves"canvas id
newBooleantruecreate new canvas
clearBooleantrueclear canvas when animation
widthNumber1920canvas width
heightNumber1080canvas height
directionString"bottom"waves direction
backgroundObject{...}canvas background
  • waves
keytypedefaultuserange
jitterNumber0.04波浪抖动频率[0.01 - 1.00]
restoreNumber0.03波峰差值恢复速度[0.01 - 1.00]
waveGapNumber80波浪峰差-
waterGapNumber20水位差-
waveUpsNumber6波浪起伏频率[1 - 10]
bitNumber0.45波浪占比[0.01 - 1.00]
backgroundObject{...}canvas background-
  • background
keytypedefaultuserange
typeString""type"color","image","gradient"
colorString Array""color-
positionArray""image-gradient-positon[0,0,width,0]
srcString""image-url"color","image","gradient"
repetitionString""image-repetition"color","image","gradient"
import image from "rainbow-waves.png";

background = {
  type: "gradient",
  color: ["red", "orange", "green", "blue"],
  position:[0,0,1920,1080]
};

background = {
  type: "image",
  src:image,
  repetition:"repeat", // "repeat","repeat-x","repeat-y","no-repeat"
};

background = {
  type: "color",
  color: "green",
};

LICENSE

MIT

Keywords

z7xisoo

FAQs

Package last updated on 09 Sep 2020

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