Add falling animation
This commit is contained in:
parent
938f3def1f
commit
db6a31dd85
20 changed files with 211 additions and 152 deletions
|
|
@ -41,11 +41,17 @@ export class DataService extends Root<Page> {
|
|||
childrenConstructor: null
|
||||
}
|
||||
};
|
||||
|
||||
for (let page of pages) {
|
||||
new Page(this, page);
|
||||
}
|
||||
setTimeout(() => {
|
||||
this.children$.subscribe(value => {
|
||||
this.log();
|
||||
});
|
||||
}, 0);
|
||||
|
||||
this.children$.subscribe(value => {
|
||||
this.log();
|
||||
this._safeChildren.next(value);
|
||||
this.save(0);
|
||||
});
|
||||
|
|
@ -60,11 +66,12 @@ export class DataService extends Root<Page> {
|
|||
}
|
||||
|
||||
addPage(name: string) {
|
||||
new Page(this, {
|
||||
const page = new Page(this, {
|
||||
name,
|
||||
userData: {},
|
||||
towers: []
|
||||
});
|
||||
page.addTower();
|
||||
}
|
||||
|
||||
removePage(page: Page) {
|
||||
|
|
|
|||
|
|
@ -49,13 +49,13 @@ export class StoreService<T> {
|
|||
isDone: false
|
||||
},
|
||||
{
|
||||
created: new Date(2020, 2, 15),
|
||||
created: new Date(2019, 3, 15),
|
||||
tag: 'go to school',
|
||||
description: 'done it',
|
||||
isDone: true
|
||||
},
|
||||
{
|
||||
created: new Date(2021, 2, 15),
|
||||
created: new Date(2019, 3, 15, 19),
|
||||
tag: 'go to school',
|
||||
isDone: false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue