Skip to content

Commit 6945b24

Browse files
committed
Update MIGRATING.md
1 parent 9ec49ff commit 6945b24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MIGRATING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Migrating to Morphic2 and Snap!6
22

3-
Jens Mönig, July 10, 2020
3+
Jens Mönig, July 11, 2020
44

55
This document gives a very brief overview of the Morphic changes from v1 to v2 without explaining the architectural changes. It is meant to help you move your existing Morphic application, such as a fork of the Snap! programming environment, to the new Morphic kernel quickly and successfully.
66

@@ -51,7 +51,7 @@ Search your code for these words and replace them according to the instructions.
5151

5252
* **drawNew**
5353
- rename method definitions to `render`, notice that the first argument needs to be the 2D context, therefore remove the part in the code that makes a new canvas and queries its context.
54-
- factor out the parts of the code that determine and set the extent and move them into a - possibly new - method named `fixLayout()`
54+
- factor out the parts of the code that determine and set the extent and add or arrange submorphs and move them into a - possibly new - method named `fixLayout()`
5555
- rename function calls to `drawNew()` to `fixLayout()` and/or `rerender()`, check whether the call is at all needed as it might be redundant in the new system
5656
* **wantsRedraw** => replace with `rerender()`
5757
* **noticesTransparentClick** => replace with `!isFreeForm`, use with caution, as free forms should also cache their image for performance reason, which in turn strains memory usage


0 commit comments

Comments
 (0)