Skip to content

Instantly share code, notes, and snippets.

@nrafter
Created February 2, 2015 07:30
Show Gist options
  • Save nrafter/5c52fecc84f1c9fb7357 to your computer and use it in GitHub Desktop.
Save nrafter/5c52fecc84f1c9fb7357 to your computer and use it in GitHub Desktop.
minisketch html elements for tabs
<li>
<input type="radio" checked name="tabs" id="tab-minisketch">
<label for="tab-minisketch">Minisketch</label>
<div id="tab-content-minisketch" class="tab-content animated fadeIn">
<div id="minisketch" style="position:relative">
</div>
</div>
</li>
@nrafter
Copy link
Author

nrafter commented Feb 2, 2015

style="position:relative;height: 515px;width: 475px;background-color: black;

@nrafter
Copy link
Author

nrafter commented Feb 2, 2015

curConfig = {
  canvas_expansion: 1,
  dimensions: [580,400],
  initFill: {color: 'fff', opacity: 1},
  initStroke: {width: 1.5, color: '000', opacity: 1},
  initOpacity: 1,
  imgPath: 'images/',
  extPath: 'extensions/',
  // WSL temp adjusted path
  //jGraduatePath: 'jgraduate/images/',
  jGraduatePath: 'images/',
  extensions: [],
  initTool: 'select',
  wireframe: false,
  colorPickerCSS: false,
  gridSnapping: false,
  gridColor: "#000",
  baseUnit: 'px',
  snappingStep: 10,
  showRulers: (svgedit.browser.isTouch()) ? false : true,
  show_outside_canvas: false,
  no_save_warning: true,
  initFont: 'Helvetica, Arial, sans-serif'
},

@nrafter
Copy link
Author

nrafter commented Feb 2, 2015

Minisketch.canvas = minisvgCanvas = new $.SvgCanvas(document.getElementById("minisketch"), curConfig);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment