summaryrefslogtreecommitdiff
path: root/src/svg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg.h')
-rw-r--r--src/svg.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/svg.h b/src/svg.h
index 2351288..91d9bc6 100644
--- a/src/svg.h
+++ b/src/svg.h
@@ -9,11 +9,13 @@ namespace OpenSCAD {
// currently for debugging, not necessarily pretty or useful for users. (yet)
+#define SVG_PXW 480;
+#define SVG_PXH 480;
static int svg_cursor_py = 0;
-static int svg_px_width = 480;
-static int svg_px_height = 480;
+static int svg_px_width = SVG_PXW;
+static int svg_px_height = SVG_PXH;
-std::string svg_header();
+std::string svg_header( int widthpx = SVG_PXW, int heightpx = SVG_PXH );
std::string svg_label( std::string s );
std::string svg_border();
std::string svg_axes();
contact: Jan Huwald // Impressum