Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type:
Enhancement
PR Description:
This PR enables image support in the ExcelJS-Lite library. It includes:
PR Main Files Walkthrough:
files:
lib/xlsx/xform/sheet/worksheet-xform.js
: Un-commented a large block of code related to image handling in worksheets.lib/doc/anchor.js
: Un-commented the entire file which provides a class to handle worksheet cell anchors, used for positioning images.lib/doc/worksheet.js
: Un-commented methods related to image handling in worksheets, such as 'addImage', 'getImages', 'addBackgroundImage', and 'getBackgroundImageId'.lib/doc/image.js
: Un-commented the entire file which provides a class to handle images in worksheets.lib/xlsx/xlsx.js
: Added a new method 'addMedia' to add images to the zip file of the workbook. Also, un-commented lines in the 'write' method to handle media.lib/xlsx/xform/book/workbook-xform.js
: Un-commented lines in the 'prepare' and 'reconcile' methods to handle media in the workbook.lib/doc/workbook.js
: Added a new method 'addImage' to add an image to the workbook's media collection.lib/xlsx/xform/core/content-types-xform.js
: Added new content types for images in the 'render' method.lib/xlsx/xform/drawing/base-cell-anchor-xform.js
: Un-commented lines in the 'prepare' method to handle images in cell anchors.lib/utils/u-zip.js
: Added a new method 'append' to add an entry to the zip file.User Description:
Summary
Test plan
Related to source code (for typings update)