view nodejs/examples/testsvg/svgviewer.js @ 1333:3cbc1ab15541

Implement the function to create a link to a component. - It creates a svg:use for a component in the component list. - The svg:use node is inserted into current layer.
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 31 Jan 2011 18:19:23 +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();