sketchily 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/app/assets/javascripts/sketchily.js +10 -10
- data/app/assets/javascripts/sketchily.js~ +10 -2
- data/app/assets/javascripts/{base64.js → sketchily/base64.js} +0 -0
- data/app/assets/javascripts/sketchily_embed.js +2 -2
- data/app/assets/javascripts/sketchily_embed.js~ +1 -4
- data/app/assets/stylesheets/sketchily.css +4 -4
- data/app/assets/stylesheets/sketchily.css~ +3 -2
- data/app/helpers/sketchily_helper.rb +1 -3
- data/app/helpers/sketchily_helper.rb~ +1 -1
- data/app/views/sketchily/_embed.html.erb +1 -1
- data/app/views/sketchily/_embed.html.erb~ +0 -1
- data/lib/sketchily.rb +1 -1
- data/lib/sketchily.rb~ +2 -2
- data/lib/sketchily/version.rb +1 -1
- data/lib/sketchily/version.rb~ +1 -1
- data/spec/dummy/log/test.log +120 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1bf464000fcdb546c383cf7f69d46662 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/23e9024449d6fb482717441645b0cd8c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2dda36ccc70570f77ad22a659af00a7e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/413a1ea244e0c08b931057c16bfe0bc2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/56a18313459a66878cdaf82c4915f8f5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e839e441b04ffc4a0f153b037b0c69b2 +0 -0
- data/vendor/assets/{svg-edit-2.6/browser-not-supported.html~ → javascripts/svg-edit-2.6/browser-not-supported.html} +3 -3
- data/vendor/assets/{svg-edit-2.6/browser-not-supported.html → javascripts/svg-edit-2.6/browser-not-supported.html~} +1 -1
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/browser.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/canvg/canvg.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/canvg/rgbcolor.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/contextmenu.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/contextmenu/jquery.contextMenu.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/draw.js +0 -0
- data/vendor/assets/{svg-edit-2.6/embedapi.html~ → javascripts/svg-edit-2.6/embedapi.html} +1 -1
- data/vendor/assets/{svg-edit-2.6/embedapi.html → javascripts/svg-edit-2.6/embedapi.html~} +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/embedapi.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/closepath_icons.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-arrows.js +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-closepath.js +92 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-closepath.js → javascripts/svg-edit-2.6/extensions/ext-closepath.js~} +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-connector.js +587 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-connector.js → javascripts/svg-edit-2.6/extensions/ext-connector.js~} +1 -1
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-eyedropper.js +109 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-eyedropper.js → javascripts/svg-edit-2.6/extensions/ext-eyedropper.js~} +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-foreignobject.js +277 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-foreignobject.js → javascripts/svg-edit-2.6/extensions/ext-foreignobject.js~} +0 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-grid.js~ → javascripts/svg-edit-2.6/extensions/ext-grid.js} +2 -2
- data/vendor/assets/{svg-edit-2.6/extensions/ext-grid.js → javascripts/svg-edit-2.6/extensions/ext-grid.js~} +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-helloworld.js +78 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-helloworld.js → javascripts/svg-edit-2.6/extensions/ext-helloworld.js~} +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-imagelib.js +2 -2
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-imagelib.js~ +1 -1
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-imagelib.xml +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-markers.js +572 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-markers.js → javascripts/svg-edit-2.6/extensions/ext-markers.js~} +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-server_moinsave.js +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-server_opensave.js +180 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-server_opensave.js → javascripts/svg-edit-2.6/extensions/ext-server_opensave.js~} +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/ext-shapes.js +387 -0
- data/vendor/assets/{svg-edit-2.6/extensions/ext-shapes.js → javascripts/svg-edit-2.6/extensions/ext-shapes.js~} +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/ext-shapes.xml +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/eyedropper-icon.xml +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/eyedropper.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/fileopen.php +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/filesave.php +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/foreignobject-icons.xml +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/grid-icon.xml +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/helloworld-icon.xml +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/extensions/imagelib/index.html +64 -0
- data/vendor/assets/{svg-edit-2.6/extensions/imagelib/index.html → javascripts/svg-edit-2.6/extensions/imagelib/index.html~} +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/imagelib/smiley.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/markers-icons.xml +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/animal.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/arrow.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/dialog_balloon.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/electronics.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/flowchart.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/game.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/math.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/misc.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/music.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/object.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/raphael.txt +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/raphael_1.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/raphael_2.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/extensions/shapelib/symbol.json +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/history.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/README.txt +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-bottom.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-bottom.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-center.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-center.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-left.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-left.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-middle.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-middle.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-right.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-right.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-top.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/align-top.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/bold.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/cancel.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/circle.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/clear.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/clone.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/conn.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/copy.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/cut.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/delete.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/document-properties.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/dropdown.gif +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/ellipse.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/eye.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/fhpath.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/flyouth.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/flyup.gif +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/freehand-circle.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/freehand-square.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/go-down.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/go-up.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/image.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/italic.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/line.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/link_controls.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/logo.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/logo.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/move_bottom.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/move_top.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/node_clone.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/node_delete.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/none.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/open.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/paste.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/path.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/polygon.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/polygon.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/rect.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/redo.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/reorient.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/rotate.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/save.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/select.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/select_node.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/sep.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/shape_group.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/shape_ungroup.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/source.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/spinbtn_updn_big.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/square.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/svg_edit_icons.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/svg_edit_icons.svgz +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/text.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/text.svg +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/to_path.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/undo.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/view-refresh.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/wave.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/wireframe.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/images/zoom.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/LICENSE +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/README +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/css/jPicker.css +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/css/jgraduate.css +3 -3
- data/vendor/assets/javascripts/svg-edit-2.6/jgraduate/css/jgraduate.css~ +351 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/AlphaBar.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/Bars.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/Maps.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/NoColor.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/bar-opacity.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/map-opacity.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/mappoint.gif +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/mappoint_c.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/mappoint_f.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/picker.gif +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/preview-opacity.png +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/rangearrows.gif +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/images/rangearrows2.gif +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jpicker.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jpicker.min.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jquery.jgraduate.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jgraduate/jquery.jgraduate.min.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquery-ui/jquery-ui-1.8.17.custom.min.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquery-ui/jquery-ui-1.8.custom.min.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquery.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/jquerybbq/jquery.bbq.min.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/js-hotkeys/README.md +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/js-hotkeys/jquery.hotkeys.min.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/README.txt +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.af.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ar.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.az.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.be.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.bg.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ca.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.cs.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.cy.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.da.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.de.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.el.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.en.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.es.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.et.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fa.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fi.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fr.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.fy.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ga.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.gl.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.he.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hi.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hr.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hu.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.hy.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.id.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.is.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.it.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ja.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ko.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.lt.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.lv.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.mk.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ms.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.mt.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.nl.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.no.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.pl.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.pt-BR.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.pt-PT.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ro.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ro.js~ +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.ru.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sk.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sl.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sq.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sr.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sv.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.sw.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.test.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.th.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.tl.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.tr.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.uk.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.vi.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.yi.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.zh-CN.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.zh-HK.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/lang.zh-TW.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/locale/locale.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/math.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/path.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/sanitize.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/select.js +0 -0
- data/vendor/assets/{svg-edit-2.6/spinbtn/JQuerySpinBtn.css~ → javascripts/svg-edit-2.6/spinbtn/JQuerySpinBtn.css} +1 -1
- data/vendor/assets/{svg-edit-2.6/spinbtn/JQuerySpinBtn.css → javascripts/svg-edit-2.6/spinbtn/JQuerySpinBtn.css~} +1 -1
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/spinbtn/JQuerySpinBtn.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/spinbtn/JQuerySpinBtn.min.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/spinbtn/spinbtn_updn.png +0 -0
- data/vendor/assets/javascripts/svg-edit-2.6/svg-editor.css +1494 -0
- data/vendor/assets/{svg-edit-2.6/svg-editor.css → javascripts/svg-edit-2.6/svg-editor.css~} +0 -0
- data/vendor/assets/{svg-edit-2.6/svg-editor.html~ → javascripts/svg-edit-2.6/svg-editor.html} +1 -2
- data/vendor/assets/{svg-edit-2.6/svg-editor.html → javascripts/svg-edit-2.6/svg-editor.html~} +0 -0
- data/vendor/assets/{svg-edit-2.6/svg-editor.js~ → javascripts/svg-edit-2.6/svg-editor.js} +9 -9
- data/vendor/assets/{svg-edit-2.6/svg-editor.js → javascripts/svg-edit-2.6/svg-editor.js~} +4 -4
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svg-editor.manifest +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgcanvas.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgcanvas.js~ +0 -0
- data/vendor/assets/{svg-edit-2.6/svgedit.compiled.js~ → javascripts/svg-edit-2.6/svgedit.compiled.js} +4 -4
- data/vendor/assets/{svg-edit-2.6/svgedit.compiled.js → javascripts/svg-edit-2.6/svgedit.compiled.js~} +2 -2
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgicons/jquery.svgicons.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgtransformlist.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/svgutils.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/touch.js +0 -0
- data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/units.js +0 -0
- metadata +259 -254
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e7f2cd0164ff73faab23b939478f168a48de5b
|
4
|
+
data.tar.gz: c2072e3e892e70f6e89aec7970a358b179efac13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54afeffd563d8a22c86ec27cd91dda819b9121befe280550756ecf4edaa16648765b5a87079f390075413d3565e35d017780c0782ee53119af4fb1982591d82f
|
7
|
+
data.tar.gz: 5ab0934864678e4ad1cd426319950ea67aff9786be37778de05bd55038937b3ba46eca9a0bcef6e36fbfb3ea04d18e506b8966da3c98943225701956492804b9
|
data/README.md
CHANGED
@@ -24,15 +24,17 @@ Or install it yourself:
|
|
24
24
|
$ gem install sketchily
|
25
25
|
```
|
26
26
|
|
27
|
-
Also make sure your `application.js`
|
27
|
+
Also make sure your `application.js` includes some version of jquery. It usually does by default.
|
28
|
+
If you use the jquery-rails gem, you will have something like this:
|
28
29
|
|
29
30
|
```js
|
30
31
|
//= require jquery
|
32
|
+
//= require jquery_ujs
|
31
33
|
```
|
32
34
|
|
33
35
|
**Note:** sketchily will **automatically** add the following files to your asset precompilation list:
|
34
36
|
|
35
|
-
sketchily.css sketchily.js sketchily_embed.js canvg/canvg.js canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js
|
37
|
+
sketchily.css sketchily.js sketchily_embed.js svg-edit-2.6/canvg/canvg.js svg-edit-2.6/canvg/rgbcolor.js svg-edit-2.6/extensions/ext-*.js svg-edit-2.6/locale/lang.*.js
|
36
38
|
|
37
39
|
Other html files and images used by svg-edit will also be precompiled.
|
38
40
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
//= require jquery
|
2
|
-
//= require js-hotkeys/jquery.hotkeys.min
|
3
|
-
//= require jquerybbq/jquery.bbq.min
|
4
|
-
//= require svgicons/jquery.svgicons
|
5
|
-
//= require jgraduate/jquery.jgraduate.min
|
6
|
-
//= require spinbtn/JQuerySpinBtn.min
|
7
|
-
//= require touch
|
8
|
-
//= require svgedit.compiled
|
9
|
-
//= require jquery-ui/jquery-ui-1.8.17.custom.min
|
10
|
-
//= require jgraduate/jpicker
|
1
|
+
//= require svg-edit-2.6/jquery
|
2
|
+
//= require svg-edit-2.6/js-hotkeys/jquery.hotkeys.min
|
3
|
+
//= require svg-edit-2.6/jquerybbq/jquery.bbq.min
|
4
|
+
//= require svg-edit-2.6/svgicons/jquery.svgicons
|
5
|
+
//= require svg-edit-2.6/jgraduate/jquery.jgraduate.min
|
6
|
+
//= require svg-edit-2.6/spinbtn/JQuerySpinBtn.min
|
7
|
+
//= require svg-edit-2.6/touch
|
8
|
+
//= require svg-edit-2.6/svgedit.compiled
|
9
|
+
//= require svg-edit-2.6/jquery-ui/jquery-ui-1.8.17.custom.min
|
10
|
+
//= require svg-edit-2.6/jgraduate/jpicker
|
@@ -1,2 +1,10 @@
|
|
1
|
-
//= require jquery
|
2
|
-
//= require
|
1
|
+
//= require svg-edit-2.6/jquery
|
2
|
+
//= require js-hotkeys/jquery.hotkeys.min
|
3
|
+
//= require jquerybbq/jquery.bbq.min
|
4
|
+
//= require svgicons/jquery.svgicons
|
5
|
+
//= require jgraduate/jquery.jgraduate.min
|
6
|
+
//= require spinbtn/JQuerySpinBtn.min
|
7
|
+
//= require touch
|
8
|
+
//= require svgedit.compiled
|
9
|
+
//= require jquery-ui/jquery-ui-1.8.17.custom.min
|
10
|
+
//= require jgraduate/jpicker
|
File without changes
|
@@ -1,11 +1,10 @@
|
|
1
|
-
//= require embedapi
|
1
|
+
//= require svg-edit-2.6/embedapi
|
2
2
|
//= require base64
|
3
3
|
|
4
4
|
var svgCanvas = svgCanvas || {};
|
5
5
|
|
6
6
|
function submitHandler(event) {
|
7
7
|
var id = event.data;
|
8
|
-
alert('sub' + id);
|
9
8
|
svgCanvas[id].getSvgString()(function (data, error) {
|
10
9
|
handleSvgData(data, error, id);
|
11
10
|
});
|
@@ -15,7 +14,6 @@ alert('sub' + id);
|
|
15
14
|
|
16
15
|
function attachSubmitHandler(event) {
|
17
16
|
var id = event.data;
|
18
|
-
alert('attach' + id);
|
19
17
|
$("input#" + id).closest("form").on("submit.svgedit_" + id, null, id, submitHandler);
|
20
18
|
}
|
21
19
|
|
@@ -24,7 +22,6 @@ function handleSvgData(data, error, id) {
|
|
24
22
|
alert('Error: ' + error);
|
25
23
|
}
|
26
24
|
else {
|
27
|
-
alert('handle' + id);
|
28
25
|
var input = $("input#" + id);
|
29
26
|
var form = input.closest("form");
|
30
27
|
input.attr("value", sketchily_encode64("<?xml version=\"1.0\"?>\n" + data));
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
*= require_self
|
3
|
-
*= require jgraduate/css/jPicker
|
4
|
-
*= require jgraduate/css/jgraduate
|
5
|
-
*= require svg-editor
|
6
|
-
*= require spinbtn/JQuerySpinBtn
|
3
|
+
*= require svg-edit-2.6/jgraduate/css/jPicker
|
4
|
+
*= require svg-edit-2.6/jgraduate/css/jgraduate
|
5
|
+
*= require svg-edit-2.6/svg-editor
|
6
|
+
*= require svg-edit-2.6/spinbtn/JQuerySpinBtn
|
7
7
|
*/
|
@@ -30,8 +30,6 @@ module SketchilyHelper
|
|
30
30
|
"<img src='data:image/svg+xml;base64,#{uri}' #{"width='#{options[:width]}'" if options[:width]} #{"height='#{options[:height]}'" if options[:height]}/>".html_safe
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
sketchily_show(uri, options)
|
35
|
-
end
|
33
|
+
alias_method :svg_show, :sketchily_show
|
36
34
|
end
|
37
35
|
|
@@ -11,7 +11,7 @@ module SketchilyHelper
|
|
11
11
|
xml.title 'Background Image Layer'
|
12
12
|
xml.image :id => 'background_image', :width => '100%', :height => '100%', :preserveAspectRatio => 'xMinYMin', 'xlink:href' => data_uri
|
13
13
|
end
|
14
|
-
doc.root.add_namespace "
|
14
|
+
doc.root.add_namespace "xlink", "http://www.w3.org/1999/xlink"
|
15
15
|
doc.at('g').before(bkgd_file_node)
|
16
16
|
end
|
17
17
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
extensions ||= nil
|
20
20
|
%>
|
21
21
|
|
22
|
-
<% iframe_src = URI.parse("/assets/svg-editor.html")
|
22
|
+
<% iframe_src = URI.parse("/assets/svg-edit-2.6/svg-editor.html")
|
23
23
|
|
24
24
|
query_hash = {:dimensions => [canvas_width, canvas_height].join(','),
|
25
25
|
:bkgd_color => bkgd_color,
|
data/lib/sketchily.rb
CHANGED
@@ -3,7 +3,7 @@ require "sketchily/sketchily"
|
|
3
3
|
require "sketchily/sketchily_tag"
|
4
4
|
|
5
5
|
module Sketchily
|
6
|
-
ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js canvg/canvg.js canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js)
|
6
|
+
ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js svg-edit-2.6/canvg/canvg.js svg-edit-2.6/canvg/rgbcolor.js svg-edit-2.6/extensions/ext-*.js svg-edit-2.6/locale/lang.*.js)
|
7
7
|
|
8
8
|
SKETCHILY_OPTIONS = [:width, :height, :bkgd_color, :bkgd_url, :canvas_width, :canvas_height, :canvas_expansion, :hide_rulers, :hide_menu, :hide_image_tool, :show_hyperlink_tool, :show_layers, :url, :extensions]
|
9
9
|
TAG_OPTIONS = [:id, :value, :index]
|
data/lib/sketchily.rb~
CHANGED
@@ -3,9 +3,9 @@ require "sketchily/sketchily"
|
|
3
3
|
require "sketchily/sketchily_tag"
|
4
4
|
|
5
5
|
module Sketchily
|
6
|
-
ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js canvg/canvg.js canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js)
|
6
|
+
ASSET_FILES = %w(sketchily.css sketchily.js sketchily_embed.js svg-edit-2.6/canvg/canvg.js svg-edit-2.6/canvg/rgbcolor.js extensions/ext-*.js locale/lang.*.js)
|
7
7
|
|
8
|
-
SKETCHILY_OPTIONS = [:width, :height, :bkgd_color, :bkgd_url, :canvas_width, :canvas_height, :canvas_expansion, :hide_rulers, :hide_menu, :hide_image_tool, :show_hyperlink_tool, :show_layers, :url, ]
|
8
|
+
SKETCHILY_OPTIONS = [:width, :height, :bkgd_color, :bkgd_url, :canvas_width, :canvas_height, :canvas_expansion, :hide_rulers, :hide_menu, :hide_image_tool, :show_hyperlink_tool, :show_layers, :url, :extensions]
|
9
9
|
TAG_OPTIONS = [:id, :value, :index]
|
10
10
|
OPTIONS = SKETCHILY_OPTIONS + TAG_OPTIONS
|
11
11
|
|
data/lib/sketchily/version.rb
CHANGED
data/lib/sketchily/version.rb~
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -1611,3 +1611,123 @@ SketchilyHelper: test_0001_must show svg image
|
|
1611
1611
|
[1m[35m (0.0ms)[0m begin transaction
|
1612
1612
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1613
1613
|
[1m[35m (4.2ms)[0m commit transaction
|
1614
|
+
[1m[36m (15.4ms)[0m [1mCREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text) [0m
|
1615
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1616
|
+
[1m[36m (3.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1617
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1618
|
+
[1m[36m (3.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1620
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "drawings" DEFAULT VALUES
|
1621
|
+
[1m[36m (12.6ms)[0m [1mcommit transaction[0m
|
1622
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1623
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1624
|
+
[1m[35m (3.7ms)[0m commit transaction
|
1625
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (7.4ms)
|
1626
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (9.7ms)
|
1627
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
|
1628
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.6ms)
|
1629
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1630
|
+
-------------------------------------------------------------------------------
|
1631
|
+
Sketchily Feature Test Feature Test: test_0001_should render the sketchily html
|
1632
|
+
-------------------------------------------------------------------------------
|
1633
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1634
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1635
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1636
|
+
Started GET "/drawings/3/sketchily" for 127.0.0.1 at 2013-10-10 17:55:47 -0500
|
1637
|
+
Processing by DrawingsController#sketchily as HTML
|
1638
|
+
Parameters: {"id"=>"3"}
|
1639
|
+
[1m[36mDrawing Load (0.1ms)[0m [1mSELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1[0m [["id", "3"]]
|
1640
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
|
1641
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.9ms)
|
1642
|
+
Rendered drawings/sketchily.html.erb within layouts/application (2.1ms)
|
1643
|
+
Completed 200 OK in 28ms (Views: 26.4ms | ActiveRecord: 0.1ms)
|
1644
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1645
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1646
|
+
---------------------------------------------------------------------------------------
|
1647
|
+
Sketchily Tag Feature Test Feature Test: test_0001_should render the sketchily_tag html
|
1648
|
+
---------------------------------------------------------------------------------------
|
1649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1650
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1651
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1652
|
+
Started GET "/drawings/3/sketchily_tag" for 127.0.0.1 at 2013-10-10 17:55:47 -0500
|
1653
|
+
Processing by DrawingsController#sketchily_tag as HTML
|
1654
|
+
Parameters: {"id"=>"3"}
|
1655
|
+
[1m[36mDrawing Load (0.0ms)[0m [1mSELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1[0m [["id", "3"]]
|
1656
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
|
1657
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.7ms)
|
1658
|
+
Rendered drawings/sketchily_tag.html.erb within layouts/application (1.7ms)
|
1659
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
1660
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1661
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1662
|
+
----------------------------------------------
|
1663
|
+
SketchilyHelper: test_0001_must show svg image
|
1664
|
+
----------------------------------------------
|
1665
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1666
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1667
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "drawings" DEFAULT VALUES
|
1668
|
+
[1m[36m (7.6ms)[0m [1mcommit transaction[0m
|
1669
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1670
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1671
|
+
[1m[35m (3.5ms)[0m commit transaction
|
1672
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
|
1673
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.9ms)
|
1674
|
+
[1m[36m (15.3ms)[0m [1mCREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text) [0m
|
1675
|
+
[1m[35m (5.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1676
|
+
[1m[36m (5.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1677
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1678
|
+
[1m[36m (4.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1679
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1680
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "drawings" DEFAULT VALUES
|
1681
|
+
[1m[36m (12.0ms)[0m [1mcommit transaction[0m
|
1682
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1683
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1684
|
+
[1m[35m (4.8ms)[0m commit transaction
|
1685
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (4.5ms)
|
1686
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (6.6ms)
|
1687
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.2ms)
|
1688
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.4ms)
|
1689
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1690
|
+
-------------------------------------------------------------------------------
|
1691
|
+
Sketchily Feature Test Feature Test: test_0001_should render the sketchily html
|
1692
|
+
-------------------------------------------------------------------------------
|
1693
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1694
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1695
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1696
|
+
Started GET "/drawings/3/sketchily" for 127.0.0.1 at 2013-10-10 18:01:58 -0500
|
1697
|
+
Processing by DrawingsController#sketchily as HTML
|
1698
|
+
Parameters: {"id"=>"3"}
|
1699
|
+
[1m[36mDrawing Load (0.1ms)[0m [1mSELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1[0m [["id", "3"]]
|
1700
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
|
1701
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (0.9ms)
|
1702
|
+
Rendered drawings/sketchily.html.erb within layouts/application (2.1ms)
|
1703
|
+
Completed 200 OK in 27ms (Views: 25.4ms | ActiveRecord: 0.1ms)
|
1704
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1705
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1706
|
+
---------------------------------------------------------------------------------------
|
1707
|
+
Sketchily Tag Feature Test Feature Test: test_0001_should render the sketchily_tag html
|
1708
|
+
---------------------------------------------------------------------------------------
|
1709
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1710
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1711
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1712
|
+
Started GET "/drawings/3/sketchily_tag" for 127.0.0.1 at 2013-10-10 18:01:58 -0500
|
1713
|
+
Processing by DrawingsController#sketchily_tag as HTML
|
1714
|
+
Parameters: {"id"=>"3"}
|
1715
|
+
[1m[36mDrawing Load (0.0ms)[0m [1mSELECT "drawings".* FROM "drawings" WHERE "drawings"."id" = ? LIMIT 1[0m [["id", "3"]]
|
1716
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
|
1717
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.7ms)
|
1718
|
+
Rendered drawings/sketchily_tag.html.erb within layouts/application (1.6ms)
|
1719
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
1720
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1721
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1722
|
+
----------------------------------------------
|
1723
|
+
SketchilyHelper: test_0001_must show svg image
|
1724
|
+
----------------------------------------------
|
1725
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1726
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1727
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "drawings" DEFAULT VALUES
|
1728
|
+
[1m[36m (6.9ms)[0m [1mcommit transaction[0m
|
1729
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (0.3ms)
|
1730
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (0.8ms)
|
1731
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1732
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drawings" DEFAULT VALUES[0m
|
1733
|
+
[1m[35m (4.1ms)[0m commit transaction
|
Binary file
|
Binary file
|
@@ -3,15 +3,15 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
6
|
-
<link rel="icon" type="image/png" href="/assets/images/logo.png"/>
|
6
|
+
<link rel="icon" type="image/png" href="/assets/svg-edit-2.6/images/logo.png"/>
|
7
7
|
<link rel="stylesheet" href="/assets/sketchily.css" type="text/css"/>
|
8
|
-
<script type="text/javascript" src="/assets/
|
8
|
+
<script type="text/javascript" src="/assets/sketchily.js"></script>
|
9
9
|
<title>Browser does not support SVG | SVG-edit</title>
|
10
10
|
</head>
|
11
11
|
<body>
|
12
12
|
|
13
13
|
<div id="browser-not-supported">
|
14
|
-
<img style="float:left;padding:10px;" src="/assets/images/logo.png" width="48" height="48" alt="SVG-edit logo" /><br />
|
14
|
+
<img style="float:left;padding:10px;" src="/assets/svg-edit-2.6/images/logo.png" width="48" height="48" alt="SVG-edit logo" /><br />
|
15
15
|
<p>Sorry, but your browser does not support SVG. Below is a list of alternate browsers and versions that support SVG and SVG-edit (from <a href="http://caniuse.com/#cats=SVG">caniuse.com</a>).</p>
|
16
16
|
<p>Try the latest version of <a href="http://www.getfirefox.com">Firefox</a>, <a href="http://www.google.com/chrome/">Google Chrome</a>, <a href="http://www.apple.com/safari/download/">Safari</a>, <a href="http://www.opera.com/download/">Opera</a> or <a href="http://windows.microsoft.com/ie9">Internet Explorer<a/>.</p>
|
17
17
|
<p>If you are unable to install one of these and must use an old version of Internet Explorer, you can install the <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame plugin</a>.</p>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
6
|
-
<link rel="icon" type="image/png" href="/assets/images/logo.png"/>
|
6
|
+
<link rel="icon" type="image/png" href="/assets/svg-edit-2.6/images/logo.png"/>
|
7
7
|
<link rel="stylesheet" href="/assets/sketchily.css" type="text/css"/>
|
8
8
|
<script type="text/javascript" src="/assets/sketchily.js"></script>
|
9
9
|
<title>Browser does not support SVG | SVG-edit</title>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/vendor/assets/{svg-edit-2.6 → javascripts/svg-edit-2.6}/contextmenu/jquery.contextMenu.js
RENAMED
File without changes
|
File without changes
|
@@ -51,6 +51,6 @@
|
|
51
51
|
<button onclick="saveSvg();">Save data</button>
|
52
52
|
<br/>
|
53
53
|
|
54
|
-
<iframe src="/assets/svg-editor" width="900px" height="600px" id="svgedit" onload="init_embed()"></iframe>
|
54
|
+
<iframe src="/assets/svg-edit-2.6/svg-editor.html" width="900px" height="600px" id="svgedit" onload="init_embed()"></iframe>
|
55
55
|
</body>
|
56
56
|
</html>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,92 @@
|
|
1
|
+
/*
|
2
|
+
* ext-closepath.js
|
3
|
+
*
|
4
|
+
* Licensed under the MIT License
|
5
|
+
*
|
6
|
+
* Copyright(c) 2010 Jeff Schiller
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
// This extension adds a simple button to the contextual panel for paths
|
11
|
+
// The button toggles whether the path is open or closed
|
12
|
+
svgEditor.addExtension("ClosePath", function(S) {
|
13
|
+
var selElems,
|
14
|
+
updateButton = function(path) {
|
15
|
+
var seglist = path.pathSegList,
|
16
|
+
closed = seglist.getItem(seglist.numberOfItems - 1).pathSegType==1,
|
17
|
+
showbutton = closed ? '#tool_openpath' : '#tool_closepath',
|
18
|
+
hidebutton = closed ? '#tool_closepath' : '#tool_openpath';
|
19
|
+
$(hidebutton).hide();
|
20
|
+
$(showbutton).show();
|
21
|
+
},
|
22
|
+
showPanel = function(on) {
|
23
|
+
$('#closepath_panel').toggle(on);
|
24
|
+
if (on) {
|
25
|
+
var path = selElems[0];
|
26
|
+
if (path) updateButton(path);
|
27
|
+
}
|
28
|
+
},
|
29
|
+
|
30
|
+
toggleClosed = function() {
|
31
|
+
var path = selElems[0];
|
32
|
+
if (path) {
|
33
|
+
var seglist = path.pathSegList,
|
34
|
+
last = seglist.numberOfItems - 1;
|
35
|
+
// is closed
|
36
|
+
if(seglist.getItem(last).pathSegType == 1) {
|
37
|
+
seglist.removeItem(last);
|
38
|
+
}
|
39
|
+
else {
|
40
|
+
seglist.appendItem(path.createSVGPathSegClosePath());
|
41
|
+
}
|
42
|
+
updateButton(path);
|
43
|
+
}
|
44
|
+
};
|
45
|
+
|
46
|
+
return {
|
47
|
+
name: "ClosePath",
|
48
|
+
svgicons: "/assets/svg-edit-2.6/extensions/closepath_icons.svg",
|
49
|
+
buttons: [{
|
50
|
+
id: "tool_openpath",
|
51
|
+
type: "context",
|
52
|
+
panel: "closepath_panel",
|
53
|
+
title: "Open path",
|
54
|
+
events: {
|
55
|
+
'click': function() {
|
56
|
+
toggleClosed();
|
57
|
+
}
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
id: "tool_closepath",
|
62
|
+
type: "context",
|
63
|
+
panel: "closepath_panel",
|
64
|
+
title: "Close path",
|
65
|
+
events: {
|
66
|
+
'click': function() {
|
67
|
+
toggleClosed();
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}],
|
71
|
+
callback: function() {
|
72
|
+
$('#closepath_panel').hide();
|
73
|
+
},
|
74
|
+
selectedChanged: function(opts) {
|
75
|
+
selElems = opts.elems;
|
76
|
+
var i = selElems.length;
|
77
|
+
|
78
|
+
while(i--) {
|
79
|
+
var elem = selElems[i];
|
80
|
+
if(elem && elem.tagName == 'path') {
|
81
|
+
if(opts.selectedElement && !opts.multiselected) {
|
82
|
+
showPanel(true);
|
83
|
+
} else {
|
84
|
+
showPanel(false);
|
85
|
+
}
|
86
|
+
} else {
|
87
|
+
showPanel(false);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
};
|
92
|
+
});
|