resize
Introduction
resize
The drawing view size can be modified again
Arguments
{object}
options
{number}
options.width
{number}
options.height
{number}
options.devicePixelRatio
Returns
N/A
Usage
js
import { iDraw } from 'idraw';
const app = document.querySelector('#app');
const options = {
width: 600,
height: 400,
devicePixelRatio: 2
};
const idraw = new iDraw(app, options);
idraw.setData({
element: [
/* ... */
]
});
idraw.resize({
width: 300,
height: 200,
devicePixelRatio: 2
});