x1-scale

dom zoom(scale) in pc browser

Usage no npm install needed!

<script type="module">
  import x1Scale from 'https://cdn.skypack.dev/x1-scale';
</script>

README

x1-scale

dom zoom(scale) in pc browser

Installation

npm i --save x1-scale or down index.js

Example

./example/index.html

Usage

// browser
var x1Scale = new X1Scale({
  id: "seat"
})
x1Scale.realize() 

// npm i --save x1-scale
var X1Scale = require('x1-scale');
var x1Scale = new X1Scale({
  id: "seat"
})
x1Scale.realize()