mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Include Raster.context accessor
This commit is contained in:
parent
6fc1b122d6
commit
fcfebdc43b
1 changed files with 4 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue