Skip to content

Commit

Permalink
Move beginning of wand rotation into viewDidLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
linusha committed Jul 31, 2023
1 parent b8c0d37 commit e5f541c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"lively": {
"projectDependencies": [],
"boundLivelyVersion": "5b41156054ea4d84263190432d45b773b780ca31"
"boundLivelyVersion": "34f27b39a9805265b86369a67ee0ffe665dc1f8e"
},
"version": "0.4.1"
"version": "0.5.1"
}
5 changes: 2 additions & 3 deletions ui/magic-wand.cp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { component, ConstraintLayout, ViewModel } from 'lively.morphic';
import { component, ViewModel } from 'lively.morphic';
import { pt } from 'lively.graphics/geometry-2d.js';
import { Color } from 'lively.graphics/color.js';
import { Polygon } from 'lively.morphic/morph.js';
Expand All @@ -14,9 +14,8 @@ class MagicWandModel extends ViewModel {
};
}

openInWorld () {
viewDidLoad () {
const { star } = this.ui;
this.withoutExposedPropsDo(() => this.view.openInWorld());
star.startStepping(5, 'rotateBy', Math.PI / 180);
}
}
Expand Down

0 comments on commit e5f541c

Please sign in to comment.