Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching to SVG with Raphael #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Switching to SVG with Raphael #1

wants to merge 1 commit into from

Conversation

axelstudios
Copy link
Collaborator

@kbenne See what you think - SVG is a million times easier to debug than canvas, but the commands will be slightly more low-level than Easeljs.

Fixed active tab on refresh
@kbenne
Copy link
Owner

kbenne commented Jul 4, 2015

Most excellent. It doesn't look too low level. Browsing through your PR it appears relatively straightforward. A couple of things easeljs brings to the table are events (mouse clicks and drop events which we will need), and containers which let you nest shapes and move around according to a local coordinate system. Does Raphael do anything like that? The containers are nice, but not critical. It has let me port my mental model from the QWebView over easily here. Let me commit a couple of changes I have to master so you can get a sense for how I am using the containers.

I will say I'm not happy with the crispness of easeljs. I'm not sure if I'm doing something wrong, if it is antialising or what. We need to get some of the icons in here to really see how things perform.

In any case this is cruising along really well. This is a fraction of the code I had to write to get this far in Qt!

@kbenne
Copy link
Owner

kbenne commented Jul 5, 2015

I read up. Seems Raphael has what I'm looking for. I'm going to play this out a little more with Raphael. It seems much lighter weight, although one comfort I get from Easel is that there is no fear of running out of power. Easel seems to have strong momentum as a project, capable of almost an entire flash replacement. But Raphel is worth an experiment. If the lines look crisper I think I'll be sold.

@axelstudios
Copy link
Collaborator Author

Yeah, Raphael should be able to do all of those things. The crispness was originally fuzzy with Raphael, too, that's why I added the half pixel offsets (it's a common issue). Same thing goes for EaselJS: http://stackoverflow.com/a/7502673/2730450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants