Skip to content
Permalink
Browse files

Merge pull request #304 from koenbok/feature/canvasExtension

Canvas backgroundColor and image
  • Loading branch information...
Jonas Treub
Jonas Treub committed Feb 3, 2016
2 parents c182568 + 16a9d6e commit 68b52f473bc79079bb85556c0d14a5f59b94bb3b
Showing with 12 additions and 0 deletions.
  1. +12 −0 framer/Canvas.coffee
@@ -8,6 +8,18 @@ class CanvasClass extends BaseClass
@define "size", get: -> {width:@width, height:@height}
@define "frame", get: -> {x:0, y:0, width:@width, height:@height}

@define "backgroundColor",
importable: false
exportable: false
get: -> Framer.Device.background.backgroundColor
set: (value) -> Framer.Device.background.backgroundColor = value

@define "image",
importable: false
exportable: false
get: -> Framer.Device.background.image
set: (value) -> Framer.Device.background.image = value

addListener: (eventName, listener) =>
if eventName is "resize"
Events.wrap(window).addEventListener "resize", =>

0 comments on commit 68b52f4

Please sign in to comment.
You can’t perform that action at this time.