Mercurial > MadButterfly
annotate nodejs/INSTALL.txt @ 1224:5d731460b32c
Remove search_by_id() from frameline.
- frameline is only responsible for drawing a row of frames.
- layers and scenes are managed by MBScene_dom. So, function of
search_by_id() must move to MBScene_dom class.
- onCellClick() and _change_active_frame() are responsible for
handling GUI event.
- It should not be used with workaround to implement some function.
- Solutions
- MBScene_dom.find_layer_n_scene_of_nod() is used to replace
search_by_id().
- MBScene_framelines.active_frame() is used to replace the
workaround.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 06 Jan 2011 11:11:27 +0800 |
parents | a74b4d986a91 |
children |
rev | line source |
---|---|
624 | 1 svg.js: |
2 =============== | |
3 | |
705
efcbcb750d63
Fix typos in nodejs/README.svg
Thinker K.F. Li <thinker@branda.to>
parents:
702
diff
changeset
|
4 The sample code to load an SVG file. It requires the libxmljs, which is |
700
8f49e0235097
Reformat README for nodejs binding
Thinker K.F. Li <thinker@branda.to>
parents:
624
diff
changeset
|
5 available at http://github.com/polotek/libxmljs/tree/refactor. Please |
8f49e0235097
Reformat README for nodejs binding
Thinker K.F. Li <thinker@branda.to>
parents:
624
diff
changeset
|
6 copy the libxmljs.node to the objs/default if you want to test the |
705
efcbcb750d63
Fix typos in nodejs/README.svg
Thinker K.F. Li <thinker@branda.to>
parents:
702
diff
changeset
|
7 libxmljs+mbfly without installing them into the system. The path can be |
700
8f49e0235097
Reformat README for nodejs binding
Thinker K.F. Li <thinker@branda.to>
parents:
624
diff
changeset
|
8 defined by the NODE_PATH environment variable. |
624 | 9 |
10 (1) Compile MadButterfly with nodejs support | |
11 ~user/MadButterfly$ ./configure --enable-nodejs; make | |
12 | |
705
efcbcb750d63
Fix typos in nodejs/README.svg
Thinker K.F. Li <thinker@branda.to>
parents:
702
diff
changeset
|
13 (2) Compile libxmljs |
624 | 14 ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git |
705
efcbcb750d63
Fix typos in nodejs/README.svg
Thinker K.F. Li <thinker@branda.to>
parents:
702
diff
changeset
|
15 ~user/MadButterfly/nodejs$ cd libxmljs; make; cd .. |
624 | 16 |
705
efcbcb750d63
Fix typos in nodejs/README.svg
Thinker K.F. Li <thinker@branda.to>
parents:
702
diff
changeset
|
17 (3) Copy the libxmljs.node to the nodejs build directory |
efcbcb750d63
Fix typos in nodejs/README.svg
Thinker K.F. Li <thinker@branda.to>
parents:
702
diff
changeset
|
18 ~user/MadButterfly/nodejs$ cp libxmljs/libjsxml.node objs/default |
624 | 19 (4) Set the path |
20 ~user/MadButterfly/nodejs$ export NODE_PATH=objs/default | |
21 | |
715 | 22 (5) Execute testsvg.js |
939
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
812
diff
changeset
|
23 ~user/MadButterfly/nodejs$ ./run examples/testsvg/testsvg.js |
624 | 24 |