Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape rework #315

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Shape rework #315

merged 1 commit into from
Jul 18, 2023

Conversation

noahgibbs
Copy link
Collaborator

@noahgibbs noahgibbs commented Jul 13, 2023

This is built on top of #309.

Description

This isn't a 100% full shape rework. For starters, shapes are kind of a weird thing with a lot of interesting Shoes rules about how multiple art-shapes inside work. Instead, this is a mostly functionality-preserving rework to separate Shape properly between display-independent Shoes code and Webview-specific WebviewShape SVG code. I've changed a couple of minor things that were at odds with Shoes3, but mostly not extended the functionality or even changed it much.

Image(if needed, helps for a faster review)

Screenshot 2023-07-13 at 10 59 33

Checklist

  • Run tests locally
  • Run linter(check for linter errors)

@Schwad
Copy link
Collaborator

Schwad commented Jul 14, 2023

I don't think I'll get to this review today but have it queued up for tomorrow. thanks! shapes are fun

@noahgibbs noahgibbs force-pushed the lacci_shape_rework branch from 3ed574a to 5cf5363 Compare July 14, 2023 13:37
Add draw_context tracking to Shoes::App.

Remove ShapeHelper in favour of recording draw commands
on the Shoes side and turning it into an SVG path only
on the WebviewShape side.

With the new draw_context, remove the fill widget, and an
incorrect example for it that doesn't work in Shoes3 either.
@noahgibbs noahgibbs force-pushed the lacci_shape_rework branch from 5cf5363 to 850513f Compare July 15, 2023 11:07
@Schwad Schwad merged commit aab40e6 into main Jul 18, 2023
@noahgibbs noahgibbs deleted the lacci_shape_rework branch August 1, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants