Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ie-dialog

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ie-dialog

基于 konva.js 的简易编辑图片弹窗组件

  • 0.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ie-dialog(Image edit dialog)

基于 konva.js 的简易编辑图片弹窗组件

功能

  • 添加文字
  • 图片旋转
  • Filters
    • blur
    • invert
    • enhance
    • grayscale
    • posterize
    • sepia
  • 输出处理
    • base64
    • blob
    • image
  • 配置上传处理
  • 构建 npm 包

使用

# yarn
yarn add ie-dialog
# npm
npm install ie-dialog
#pnpm
pnpm install ie-dialog

属性

参数是否必填类型默认可选值
visibleBooleanfalsefalse ro true
outTypeStringtoDataURLtoDataURL, toBlob, toJSON konva 支持的导出类型
canvasWString, Number500width
imgHNumber370图片的高度
imgSrcString‘’base 64 or url
// main.js
import ieDialog from 'ie-dialog';
import 'ie-dialog/dist/style.css';

app.use(ieDialog);

<ie-dialog
    v-model:imgSrc="state.imageUrl"
    v-model:visible="state.show"
    @result="editOnChange"
/>

Keywords

FAQs

Package last updated on 05 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc