Class: SC.BaseTheme.canvasImageRenderDelegate
Renders and updates DOM representations of an image.
Parameters
Expects these properties on the data source:
- image: An Image object which has completed loading
If any of these are not present in the data source, the render delegate will throw an error.
Optional Parameters:
If present, these properties will be used.
- width: Used on the canvas element. If not provided, 0 is used and the canvas will not be visible.
- height: Used on the canvas element. If not provided, 0 is used and the canvas will not be visible.
- scale: If provided, the image will maintain aspect ratio as specified by this
property. One of
-
SC.SCALE_NONE-SC.FILL-SC.BEST_FILL-SC.BEST_FIT-SC.BEST_FIT_DOWN_ONLY- percentage {Number} If not provided,SC.FILLwill be the default (ie. expected image behaviour) - align: If provided, the image will align itself within its frame. One of
-
SC.ALIGN_CENTER-SC.ALIGN_TOP_LEFT-SC.ALIGN_TOP-SC.ALIGN_TOP_RIGHT-SC.ALIGN_RIGHT-SC.ALIGN_BOTTOM_RIGHT-SC.ALIGN_BOTTOM-SC.ALIGN_BOTTOM_LEFT-SC.ALIGN_LEFT backgroundColor: If provided, the canvas will render abackgroundColor
Defined in: canvas_image.js
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:20 GMT-0600 (CST)
