Skip to content

Commit

Permalink
Merge pull request #417 from koenbok/waterkant
Browse files Browse the repository at this point in the history
NavComponent
  • Loading branch information
koenbok committed Nov 28, 2016
2 parents 9eeeb09 + 17336ac commit 64e9597
Show file tree
Hide file tree
Showing 113 changed files with 5,280 additions and 316 deletions.
25 changes: 25 additions & 0 deletions extras/Studio.framer/app.coffee
@@ -0,0 +1,25 @@
# Card
class Card extends Layer
constructor: (options={}) ->
options.size ?= Screen
options.backgroundColor ?= Utils.randomColor()
options.visible = false
super options
Utils.labelLayer(@, "Card #{@id}")

c1 = new Card()
c2 = new Card()
c3 = new Card(size: 400)

nav = new NavComponent(c1)

nav.header = new Layer
height: 80
width: Screen.width

nav.header.onClick -> nav.showPrevious()

Utils.labelLayer(nav.header, "Header")

c1.onClick -> nav.showNext(c2)
c2.onClick -> nav.showOverlayCenter(c3)
9 changes: 5 additions & 4 deletions extras/Studio.framer/framer/config.json
Expand Up @@ -5,12 +5,13 @@
"deviceOrientation" : 0, "deviceOrientation" : 0,
"sharedPrototype" : 1, "sharedPrototype" : 1,
"contentScale" : 1, "contentScale" : 1,
"deviceType" : "fullscreen", "deviceType" : "apple-iphone-7-silver",
"selectedHand" : "", "selectedHand" : "",
"updateDelay" : 0.3, "updateDelay" : 0.3,
"deviceScale" : 1, "deviceScale" : "fit",
"foldedCodeRanges" : [ "foldedCodeRanges" : [

"{0, 215}"
], ],
"orientation" : 0 "orientation" : 0,
"fullScreen" : false
} }
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 64e9597

Please sign in to comment.