Feedback

5 views
Skip to first unread message

Straun

unread,
Dec 18, 2008, 11:13:16 AM12/18/08
to js-mindmap
You asked for some feedback...

I like the technique of overlaying absolutely positioned html elements
on a canvas. Good workaround.

But...

You need to allow for bugs in the scaling of the canvas, check out IE
where 100,100 are not the same screen location on the canvas as for
the html. I suspect that there is a bug in the canvas somewhere.

Put in a config object so that you can run multiple canvases etc. and
change the styles and line drawing. Try to avoid having global
objects.

One critical config factor should be the loop speed (I like using my
cpu, please tell your demo to leave it alone). Have a look at how
processing.js handles its FPS.

Good luck with the project.

kenneth

unread,
Dec 23, 2008, 4:47:56 PM12/23/08
to js-mindmap
Thanks Straun!

I hadn't seen any bugs in the canvas. Can you screenshot + browser
detail for me?

Multiple Canvases. Check.
Remove globals. Check.
Loop speed. Interesting. I tend to grill CPUs hard. (what else are
you doing, rendering? :)

I'll add to the project shortly.

Cheers
K
Reply all
Reply to author
Forward
0 new messages