Skip to content

Commit

Permalink
Merge pull request #4350 from guardian/expose-aspect-ratio-on-asset-h…
Browse files Browse the repository at this point in the history
…andle

expose aspect ratio and crop type on `asset-handle` elements (used by Pinboard)
  • Loading branch information
twrichards authored Oct 15, 2024
2 parents 50a5220 + 66b5b06 commit 0e2fd0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kahuna/public/js/image/crop.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
data-source-type="crop"
data-thumbnail="{{:: extremeAssets.smallest | assetFile}}"
data-embeddable-url="{{:: ctrl.image.data.id | embeddableUrl:crop.id}}"
data-aspect-ratio="{{:: crop.specification.aspectRatio}}"
data-crop-type="{{:: crop.specification.aspectRatio | asCropType}}"
></asset-handle>
</div>

0 comments on commit 0e2fd0c

Please sign in to comment.