MCPcopy
hub / github.com/exceljs/exceljs / addImage

Method addImage

lib/doc/workbook.js:143–148  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

141 }
142
143 addImage(image) {
144 // TODO: validation?
145 const id = this.media.length;
146 this.media.push(Object.assign({}, image, {type: 'image'}));
147 return id;
148 }
149
150 getImage(id) {
151 return this.media[id];

Callers 1

testFunction · 0.95

Calls 2

assignMethod · 0.80
pushMethod · 0.45

Tested by 1

testFunction · 0.76