Extends
Properties
Map media tags to source attributes
Methods
getHashObjectForRendering()
#
getRdfa(mediaClass, frameType, isError) → {string}
#
Get RDFa type
Parameters:
Name | Type | Description |
---|---|---|
mediaClass |
string | Media class, one of 'File', 'Image', 'Video' or 'Audio' |
frameType |
string | Frame type, one of 'none', 'frameless', 'thumb' or 'frame' |
isError |
boolean | Whether the included media file is missing |
- Mixes in:
- Source:
Returns:
RDFa type
- Type
- string
Get RDFa type
getScalablePromise(filename) → {jQuery.Promise}
#
Get the scalable promise which fetches original dimensions from the API
Parameters:
Name | Type | Description |
---|---|---|
filename |
string | The image filename whose details the scalable will represent |
- Mixes in:
- Source:
Returns:
Promise which resolves after the image size details are fetched from the API
- Type
- jQuery.Promise
Get the scalable promise which fetches original dimensions from the API
resizeToBoundingBox(imageDimensions, boundingBox) → {Object}
#
Translate the image dimensions into new ones according to the bounding box.
scaleToThumbnailSize(dimensions, [mediaType]) → {Object}
#
Take the given dimensions and scale them to thumbnail size.
syncScalableToType(type, mediaType, scalable)
#
Update image scalable properties according to the image type.
Parameters:
Name | Type | Description |
---|---|---|
type |
string | The new image type |
mediaType |
string | Image media type 'DRAWING' or 'BITMAP' |
scalable |
ve.dm.Scalable | The scalable object to update |
Update image scalable properties according to the image type.