Progress commit

This commit is contained in:
2015-03-01 16:04:57 +01:00
parent 9cba5a11ff
commit d172b28850
16 changed files with 106 additions and 24 deletions
@@ -63,7 +63,7 @@ class SvgElementClass
else
results.text(window.compiledJS)
results.removeClass 'error'
window.evaluator = new SnapDsl(window.compiledJS, target: @target)
window.evaluator = new SnapDsl(window.compiledJS, target: @target, width: @box_width.val(), height: @box_height.val())
evaluator.result()
$('.minibutton.run').removeClass 'error'
catch {location, message}
@@ -76,8 +76,8 @@ class SnapDsl
@js_code = code
@options = options
@t = $(options.target)
@width = @t.width()
@height = @t.height()
@width = options.width
@height = options.height
$(options.target).html('')
result: ->
@snap = Snap(@options.target)