From fcfebdc43bd316f419eed33bf736436b70ba7f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 11 Apr 2019 19:37:26 +0200 Subject: [PATCH] Include Raster.context accessor --- src/item/Raster.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/item/Raster.js b/src/item/Raster.js index 29dce15f..0a8b81fa 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -18,6 +18,7 @@ * @extends Item */ var Raster = Item.extend(/** @lends Raster# */{ +}, /** @lends Raster# */{ _class: 'Raster', _applyMatrix: false, _canApplyMatrix: false, @@ -31,6 +32,9 @@ var Raster = Item.extend(/** @lends Raster# */{ // Prioritize `crossOrigin` over `source`: _prioritize: ['crossOrigin'], _smoothing: true, + // Enforce creation of beans, as bean getters have hidden parameters. + // See #getContext(modify) below. + beans: true, // TODO: Implement type, width, height. // TODO: Have SymbolItem & Raster inherit from a shared class?