1.1.0 • Published 5 years ago

vuc-picture-contrast v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

vuc-picture-contrast


链接
中文文档👁️
Example👁️

Install

    npm install --save vuc-picture-contrast
    
    yarn add vuc-picture-contrast

Basic use

    // Global
    
    import vucPictureContrast from 'vuc-picture-contrast'
    Vue.use(vucPictureContrast)
    
    // Local
    
    import {vucPictureContrast} from 'vuc-picture-contrast'
    export default {
      components: {vucPictureContrast}
    }
    

Global Attribute Method

AttributeTypeDefault valueExplain
Hnumber300height
Wnumber500width
typestringblackWhiteImage mode (blur inverse blackWhite monochrome prints blur watermark cameo)
modestringredColor value selection in monochrome mode (red green blue
tonenumber126prints contrast value in mode
imgageModebooleanfalseImage mode
waterTextstringloo41Watermark Text in Watermark Mode
waterLocationarray30, 100Initial coordinates of watermark pattern text
fontstring30px GeorgiaWatermark pattern text style
fontColorstringwhiteWatermark mode text color
cameoConstnumber128cameo Contrast value in mode
clickFunPicture Click Event
proArray250, 150Control the size of the display chart
dirstringtoptop / left
imgArray[](must) The first value must be a custom image, and the second value must be a custom image

Tip

  • canvas cross domain issues
  • support for scrolling and moving
1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago