react_clip_canvas
v0.0.6
Published
This example was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Downloads
9
Readme
This example was bootstrapped with Create React App.
It is linked to the react_clip package in the parent directory for development purposes.
You can run npm install
and then npm start
to test your package.
const EpubPages: page[] = [ { id: '11111111', width: 200, height: 300, overlays: [ { id: 'e_245656', iType: 'text', message: { text: 'ceshiwfnonfcknfcjmckm ', width: 100, height: 200, x: 60, y: 44 } }, { id: 'e_223456', iType: 'text', message: { text: '多文本渲染时,显示测试文本', width: 100, height: 200, x: 20, y: 44 } }, { id: 'e_78878', iType: 'image', message: { src: 'https://konvajs.org/assets/yoda.jpg', x: 10, y: 40 } }, { id: 'e_78378', iType: 'image', message: { src: 'https://konvajs.org/assets/yoda.jpg', x: 20, y: 60 } } ] } ]
let dom :document.getElementById('root') canvas2img(epubPages:any,dom:any)