Mercurial > MadButterfly
view nodejs/examples/testsvg/svgviewer.js @ 1433:7bd6c0e88ec8
Fix issue of showing image incorrectly.
- It is discussed in ticket #23 that objects are refreshed partially.
- It is actually only for image since multiple image share a image
paint, it will modify sampling matrix when they transforming.
Values of later ones would over-write eariler ones.
- It is fixed by move matrix setting until drawing.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 11 Apr 2011 12:45:20 +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();