Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Best way to have client-side interactive graphics?
I was hoping someone could point me in the right direction on what to search for to solve this problem:
I want to have a box, say 400x400, where I will display a graphic of a car. In that graphic there will be dotted outlines of components (engine, tires, etc.). Based on user interaction elsewhere on the page an engine will appear in the top right corner. The user can then click and drag the engine into it's outlined area, where it will "snap" to its position. And so on, until the car is finished. Then it will drive away (or whatever, the details aren't important, just the interaction with the mouse and the graphics).
Should I make:
- A custom GWT widget?
- a custom GWT widget based on an HTML5 canvas?
- an HTML5 canvas and handle all the "mouse down" "mouse drag" "mouse up" events server side? (That might be too laggy, wouldn't it?)
- something else I don't know about yet?