KristofferStrube / Blazor.SVGEditor

A basic SVG editor written in Blazor.
https://kristofferstrube.github.io/Blazor.SVGEditor/
MIT License
306 stars 51 forks source link

Feature: Background graphics #17

Open KristofferStrube opened 1 year ago

KristofferStrube commented 1 year ago

It seems sensible that it should be possible to add some background graphics/shapes to either serve as context for what is being edited or to give an idea of the zoom level/placement of the viewport.

This can be implemented in many ways, so I will start off by describing some simple cases and then later try to come up with an implementation that can support these cases.

For both cases, the background shapes/grid would need to be transformed according to where the viewport is, so we can't simply place some static SVG/HTML in the background.

Before specifying any solution further, I would love to get feedback from the library users to see what concrete cases you have.

nedimm commented 1 year ago

At the moment I do have an use case where Static Shape is needed, exactly as you said, to sketch over something. Regarding the "Grid" use case, it would be nice to have, but I don't have such an use case at the moment. What I could not find until now are commands to align shapes toward the "canvas" or other shapes on the page.

czaban commented 7 months ago

It will be usefull for adding zones over security camera view - without adding the snapshot in background you have no idea where to put the polygon.