view nodejs/examples/testsvg/svgviewer.js @ 1412:3e80b5cf8da2

Testcase for redrawing image. There is a report from wycc that redrawing is not working for image (maybe other shapes). This testcase shows that he may forget to call redraw_changed() after updating transform matrix.
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 06 Apr 2011 10:44:15 +0800
parents a74b4d986a91
children
line wrap: on
line source

// -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
// vim: sw=4:ts=8:sts=4
var svg = require("svg");
var mbapp = require("mbapp");

app = new mbapp.app();
app.loadSVG("test.svg");
app.loop();