Mercurial > MadButterfly
view nodejs/INSTALL.txt @ 1205:1af64bcdfd7d
Move to MBScene._make_layers_integral()
- Old MBScene.parseScene()/create_framelines()/update_framelines() is
too fragile and inefficiently.
- MBScene._make_layers_integral() is more robust that
- separate logic into removing layer group nodes and adding layer
group nodes
- refactory code of create framelines and layers into methods
- it make logic into layers
- framelines and layers are incremental updated to avoid overhead
of creating/destroying all framelines and layer objects.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 03 Jan 2011 22:12:30 +0800 |
parents | a74b4d986a91 |
children |
line wrap: on
line source
svg.js: =============== The sample code to load an SVG file. It requires the libxmljs, which is available at http://github.com/polotek/libxmljs/tree/refactor. Please copy the libxmljs.node to the objs/default if you want to test the libxmljs+mbfly without installing them into the system. The path can be defined by the NODE_PATH environment variable. (1) Compile MadButterfly with nodejs support ~user/MadButterfly$ ./configure --enable-nodejs; make (2) Compile libxmljs ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git ~user/MadButterfly/nodejs$ cd libxmljs; make; cd .. (3) Copy the libxmljs.node to the nodejs build directory ~user/MadButterfly/nodejs$ cp libxmljs/libjsxml.node objs/default (4) Set the path ~user/MadButterfly/nodejs$ export NODE_PATH=objs/default (5) Execute testsvg.js ~user/MadButterfly/nodejs$ ./run examples/testsvg/testsvg.js