Add grid checkbox

This commit is contained in:
Vince
2012-09-08 23:43:16 +02:00
parent 6b9904935f
commit df945e10dd
6 changed files with 63 additions and 11 deletions

View File

@ -6,14 +6,14 @@
// TODO(vincz): Store user prefs in a localstorage string ?
var renderingOptions = {
"dpi": dpi,
"gridStrokeWidth" : 1,
"gridStrokeColor" : "lightgray"
"hasGrid" : true
};
// jQuery deep copy of the rendering config:
overlayRenderingOptions = $.extend(true, {}, renderingOptions);
overlayRenderingOptions.gridStrokeColor = "transparent";
overlayRenderingOptions.hasGrid = false;
/**
* @public
*/