Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
test
Function · 0.95
Calls
2
assign
Method · 0.80
push
Method · 0.45
Tested by
1
test
Function · 0.76