Canvas add-on for Vaadin 7

I’ve located a bug which should be fixed. Please, see github. Thanks!

I have troubles with the performance when drag and drop canvas component. It seems that this is du to the fact that the location calculation and moving is carried out through the server which introduces some latency.

Any approach to to the drag and drop without remote calls to the server ?
Thanks

How can I save canvas as image?

Is there a spesific reason version 2.1 isn’t passing MouseEventDetails to CanvasMouseDownListeners and CanvasMouseUpListeners even though the CanvasMouseMoveListeners get the positional information.
As far as I can see, this would be quite trivial to add my passing this object to methods fireMouseDown() and fireMouseUp() in rows 48 and 53 of Canvas.java.

Hi,

I even created pull request for issue mentioned above by Niko.
Please look at this Henri

Regards!

please,

How can I save the image created with canvas from the server?

Hi,

I have two questions to the plugin:

  1. how can I zoom the content in and out?
  2. Move objects (rects) with the mouse held down.

thanks

hi again,

The addon is great, I like working with it very much.
Therefore also my question:
I have a canvas with very many rectangles.
I would like to reduce this to a quick way, smaller and bigger.
Best on the client side.

Somehow in the way:

canvas.getContext();
canvas.transform(scale, 0, 0, scale, offsetX, offsetY);
canvas.draw/refresh();