If you want "zoom controls", that won't work nicely with a raster format 
like canvas, unless you either are ready to draw everything in waaay too 
much detail so that zoom works at all, or have some hooks to redraw at each 
zoom (which... no longer would be about "drawing", but about managing what 
is visible, what is clipped out of view, etc?). Or, you want a vector 
graphics tool, either like SVG, or some abstraction on top of canvas that 
rasterizes your set of infinite-precision lines/shapes to the canvas at 
each frame.

The only zoom I see in smartgwt's canvas is "zoom overflow" settings, which 
looks to be more about browser zoom level (controlled by the user, outside 
the page) than zooming in to your own view. If that is specifically what 
you are after, I _believe_ you can simplify that down to just correctly 
handle hdpi, as a distinct operation from overflow? 
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas#scaling_for_high_resolution_displays
 
shows that this is pretty straightforward to manage? It has been a few 
years since I worked on low-level canvas operations, but I think that is 
the common setup to need, depending on how you want to handle a user trying 
to zoom in this way (e.g. "let the user zoom like they would an image" vs 
"try to stop them from changing the actual format" vs "try to scale only 
text, but keep absolute positions the same", etc).

If I were designing/picking a drawing tool, I'd want a lot more clarity on 
exactly what is required, because there's a lot of wiggle room in what 
these terms could mean.
On Wednesday, February 5, 2025 at 11:38:06 AM UTC-6 [email protected] 
wrote:

> > "what do you expect in a canvas widget"
>
>  
>
> I am not exactly sure.  This is all a bit new to me.
>
>  
>
> When I look at the canvas class in GWT, it does not have
> methods to support zoom so I would have
> to write my own code for that functionality.
>
>  
>
> Looking at the canvas class in SmartGWT, it has methods
> for zoom so I can let the library handle it.
>
>  
>
> Thank you,
>
>  Neil 
>
>  
>
> --
>
> Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
>
> We offer 30 year loans on single family houses!
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/61482f4a-db23-4b0d-83c4-342902cf5ba8n%40googlegroups.com.

Reply via email to