mirror of
https://github.com/optilude/xlsx-template.git
synced 2026-07-02 08:27:39 +08:00
740534d7e2
* first version * can insert image - first version * fix more than 9 images, with a parseInt on the '10' string. Otherwise, '9' if greater than '10' * update Buffer() to Buffer.from() * existing test if now ok, go to make test for insert image * add first test * add test for 100 insert images * update readme.md, but need to be reread :) * update index.d.ts * convert tabulation to space * remove fr - 0.0.1-security from package.json * remove comment line * remove condition not nescessary * add percent ratio for single image * Update Readme and add imageRatio option * readd package-lock.json * readd package-lock.json * catch error if image does not exists * change some comment console.log to console.error * fix formatting * test if imageToBuffer return a true image buffer, otherwise, throw an error - add handleImageError function : this function handle the image error and throw it by default; developers can override this function * Move handleImageError function to an option * remove useless ligne space in this commit