Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/images/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ module.exports = templatedArray('image', {
dflt: 'contain',
editType: 'arraydraw',
description: [
'Specifies which dimension of the image to constrain.'
'Sets how the source image fits inside the container defined by',
'*sizex* and *sizey*. With *contain*, the whole image fits',
'inside the container and may leave unused space. With *fill*,',
'the image covers the container and may be cropped. Both',
'preserve the aspect ratio of the source image. With *stretch*,',
'the image fills both dimensions independently. Use *stretch*',
'when both image edges must follow their respective data axes during zoom.'
].join(' ')
},

Expand Down