vue3-transform-dom
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

vue-tranform-dom

A component based on Vue that can scale and drag dom.

Install

npm install vue3-transform-dom --save

Usage

<template>
  <transform-dom :width="1024" :height="1024">
    <template #inner>
        <div class="inner">
          inner dom
        </div>
    </template>
    <template #outer>
        <div class="outer">
          outer dom
        </div>
    </template>
  </transform-dom>
</template>

Props

  • width
    • type: Number
    • description: The width of the dom being transformed.
  • height
    • type: Number
    • description: The height of the dom being transformed.
  • disableMove
    • type: Boolean
    • default: false
    • description: Prohibit move the dom.
  • disableScale
    • type: Boolean
    • default: false
    • description: Prohibit scale the dom.
  • minScale
    • type: Number
    • default: 0.1
    • description: Minimum zoom ratio of dom.
  • maxScale
    • type: Number
    • default: 10
    • description: Maximum zoom ratio of dom.
  • scaleStep
    • type: Number
    • default: 0.1
    • description: Scale step size.

/vue3-transform-dom/

    Package Sidebar

    Install

    npm i vue3-transform-dom

    Weekly Downloads

    0

    Version

    0.0.1

    License

    none

    Unpacked Size

    11.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • huaweimian