You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All props and the slot mentioned above are functioning according to how they are defined in the epic issue
All 'centerInside', 'contain', and 'fitXY' scale types are implemented
KImg throws a warning when aspectRatio prop value is provided in an unsupported format
KImg throws a warning when unsupported scaleType prop value is provided
The placeholder area respects sizing (could be set for example with width, height, maxWidth props, etc.), aspectRatio, and borderRadius settings the same way an image would if it were available
The placeholder slot's content is centered and shows behind a loading image (progressive UI), when an image could not be loaded, or when there is no or empty image src provided. It is rendered on top of the container filled with the placeholderColor.
Documentation is updated with all new features. Contains guidance and examples whenever relevant.
Summary
Implement placeholder and scaling logic for
KImg
.This includes the following props:
aspectRatio
scaleType
placeholderColor
borderRadius
and the
placeholder
slot.See the epic issue for more details about those props and the slot, as well as for the description and illustration of scale types to be implemented.
Epic
Acceptance criteria
'centerInside'
,'contain'
, and'fitXY'
scale types are implementedKImg
throws a warning whenaspectRatio
prop value is provided in an unsupported formatKImg
throws a warning when unsupportedscaleType
prop value is providedwidth
,height
,maxWidth
props, etc.),aspectRatio
, andborderRadius
settings the same way an image would if it were availableplaceholder
slot's content is centered and shows behind a loading image (progressive UI), when an image could not be loaded, or when there is no or empty imagesrc
provided. It is rendered on top of the container filled with theplaceholderColor
.Linked issues
Blocked by
Blocking
The text was updated successfully, but these errors were encountered: