feat: renderable events
This commit is contained in:
parent
446610a394
commit
a79ce5daf6
|
@ -1,6 +1,14 @@
|
|||
export class Renderable {
|
||||
import {compose} from '@avocado/core';
|
||||
import {EventEmitter} from '@avocado/mixins';
|
||||
|
||||
const decorate = compose(
|
||||
EventEmitter,
|
||||
);
|
||||
|
||||
export class Renderable extends decorate(class {}) {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.parent = null;
|
||||
this._zIndex = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user