mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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
|
* @extends Item
|
||||||
*/
|
*/
|
||||||
var Raster = Item.extend(/** @lends Raster# */{
|
var Raster = Item.extend(/** @lends Raster# */{
|
||||||
|
}, /** @lends Raster# */{
|
||||||
_class: 'Raster',
|
_class: 'Raster',
|
||||||
_applyMatrix: false,
|
_applyMatrix: false,
|
||||||
_canApplyMatrix: false,
|
_canApplyMatrix: false,
|
||||||
|
@ -31,6 +32,9 @@ var Raster = Item.extend(/** @lends Raster# */{
|
||||||
// Prioritize `crossOrigin` over `source`:
|
// Prioritize `crossOrigin` over `source`:
|
||||||
_prioritize: ['crossOrigin'],
|
_prioritize: ['crossOrigin'],
|
||||||
_smoothing: true,
|
_smoothing: true,
|
||||||
|
// Enforce creation of beans, as bean getters have hidden parameters.
|
||||||
|
// See #getContext(modify) below.
|
||||||
|
beans: true,
|
||||||
|
|
||||||
// TODO: Implement type, width, height.
|
// TODO: Implement type, width, height.
|
||||||
// TODO: Have SymbolItem & Raster inherit from a shared class?
|
// TODO: Have SymbolItem & Raster inherit from a shared class?
|
||||||
|
|
Loading…
Reference in a new issue