Sha256: 8b538c870ad8fa87a5d3141e42934d29322a05dadc72ffa2baf4a3e9476c6163

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

<% # Clients of this partial must supply the following variables:
   # id
   # value
   #
   # Additionally, they may override the following variables:
   show_menu ||= false
   hide_image_tool ||= false
   canvas_width ||= 640,
   canvas_height ||= 480,
   canvas_expansion ||= 3
   hide_rulers ||= false
   width ||= "750px"
   height ||= "650px" %>

<%= javascript_include_tag "embedapi" %>
<%= javascript_include_tag "svgutils" %>

<script type="text/javascript">
  <%= render :partial => "sketchily/embed",
             :formats => :js,
             :locals => {:id => id,
                         :value => value,
                         :show_menu => show_menu,
                         :hide_image_tool => hide_image_tool} %>
</script>

<iframe src="/assets/svg-editor.html?source=&dimensions=<%= "#{canvas_width},#{canvas_height}" %>&canvas_expansion=<%= canvas_expansion %>&showRulers=<%= !hide_rulers %>"
  width="<%= width %>" height="<%= height %>" id="svgedit_<%= id %>" onload="initEmbed_<%= id %>();"></iframe>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sketchily-0.0.2 app/views/sketchily/_embed.html.erb~