Permalink
Browse files

Removed debug overlay

We now have the layer inspector. Fixes framer/company#381
  • Loading branch information...
koenbok committed Jul 9, 2015
1 parent 7c13491 commit 1c5bb79ee04f459a4215a5c8149a638bc453b21e
Showing with 0 additions and 37 deletions.
  1. +0 −37 framer/Debug.coffee
View
@@ -2,43 +2,6 @@ Utils = require "./Utils"
{Context} = require "./Context"
###############################################################
# Debug overview
_debugStyle =
border: "1px solid rgba(50,150,200,.35)"
backgroundColor: "rgba(50,150,200,.35)"
showDebug = ->
for layer in Framer.CurrentContext.getLayers()
layer._debugStyle = _.pick(layer.style, _.keys(_debugStyle))
layer.style = _debugStyle
layer._debugElement = document.createElement("div")
layer._debugElement.innerHTML = layer.name or layer.id
layer._debugElement.classList.add("framerDebug")
layer._element.appendChild(layer._debugElement)
hideDebug = ->
for layer in Framer.CurrentContext.getLayers()
layer.style = layer._debugStyle
layer._debugElement.parentElement.removeChild(layer._debugElement)
layer._debugElement = null
toggleDebug = Utils.toggle(showDebug, hideDebug)
EventKeys =
Shift: 16
Escape: 27
# window.document.onkeyup = (event) ->
# if event.keyCode == EventKeys.Escape
# toggleDebug()()
###############################################################
# Error warning

0 comments on commit 1c5bb79

Please sign in to comment.