Giter Site home page Giter Site logo

a7med-hussien / vue-draggable-resizable-rotatable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tmrcui/vue-draggable-resizable-rotatable

0.0 1.0 0.0 31 KB

Vue2 Component for draggable, resizable and rotatable elements.

JavaScript 48.87% HTML 0.69% Vue 50.43%

vue-draggable-resizable-rotatable's Introduction

vue-draggable-resizable-rotatable

Vue2 Component for draggable, resizable and rotatable elements.
vue-draggable-resizable的基础上支持了旋转功能和其他属性。

Install and basic usage

$ npm install --save vue-draggable-resizable-rotatable

下面是新增的属性和事件,原有属性请在vue-draggable-resizable中查看。

Props

rotatable

Type: Boolean
Required: false
Default: true

定义组件是否支持旋转

<vue-draggable-resizable-rotatable :rotatable="true">

r

Type: Number
Required: false
Default: 0

定义初始旋转角度

<vue-draggable-resizable-rotatable :r="0">

deselectCancel

Type: String
Required: false

定义点击组件外的其他区域时阻止取消选中的选择器

<vue-draggable-resizable-rotatable :deselect-cancel=".selector">

Events

rotating

Required: false
Parameters:

  • rotate 旋转的角度

旋转时触发

<vue-draggable-resizable-rotatable :rotating="onRotating">

rotatestop

Required: false
Parameters:

  • rotate 旋转的角度

旋转结束时触发

<vue-draggable-resizable-rotatable :rotatestop="onRotateStop">

vue-draggable-resizable-rotatable's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.