Support click and drag for svgs, as well as scene fragment caching #244
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reopen of #236 after it was accidentally closed by GitHub UX.
The new svg example, in
with_winit
, now caches theSceneFragment
, and allows dragging and scaling the svg (click and drag, and mouse wheel).The scaling is centred on the top left, which isn't ideal, but it works for demonstration. Doing the correct maths centered on the cursor should be reasonably easy, but it takes some thinking
I also added support for closing the window with
Escape
, whilst I was editing it.There are two new CLI flags implemented,
scene
andsvg
.I have also increased a buffer size to be sufficient for paris-30k (as rendered partially incorrectly currently), until we get #175.