Skip to content

refactor: Cleanup shapes on Wasm - #13220

Merged
jeromelaban merged 5 commits into
unoplatform:masterfrom
Youssef1313:cleanup-shapes-wasm2
Sep 1, 2023
Merged

jeromelaban merged 5 commits into
unoplatform:masterfrom
Youssef1313:cleanup-shapes-wasm2

Conversation

@Youssef1313

@Youssef1313 Youssef1313 commented Aug 12, 2023 •

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): Follow-up to #13209 (will wait until #13209 is merged and then rebase this PR).

Fixes #2983
Fixes #9655
Fixes #9353
Had a fix for #4563, but reverted it as it caused issues for ui tests.

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

image

image

Copilot Summary

🤖 Generated by Copilot at 85338b9

This pull request cleans up and unifies the logic for measuring and arranging shapes on the Wasm platform. It removes the legacy code and the LEGACY_SHAPE_MEASURE symbol, and uses helper methods from the Shape class to handle shapes that have an absolute or relative size. It also updates the PackageDiffIgnore.xml file to ignore some public API changes that are not meant for external use. It affects the following files: build/PackageDiffIgnore.xml, src/Uno.UI/UI/Xaml/Shapes/*.cs, and src/Uno.UI/Mock/ArbitraryShapeBase.*.cs.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@github-actions github-actions Bot added platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/build Categorizes an issue or PR as relevant to build infrastructure labels Aug 12, 2023
@Youssef1313
Youssef1313 force-pushed the cleanup-shapes-wasm2 branch from 29dbd98 to b27f254 Compare August 13, 2023 08:55
Comment thread src/Uno.UI/UI/Xaml/Shapes/Ellipse.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Ellipse.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Line.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Line.wasm.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Rectangle.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Shape.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Shape.wasm.cs Resolved
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Aug 15, 2023
@Youssef1313
Youssef1313 force-pushed the cleanup-shapes-wasm2 branch from eb71d63 to 000da92 Compare August 15, 2023 12:37
@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform area/automation Categorizes an issue or PR as relevant to project automation and removed area/automation Categorizes an issue or PR as relevant to project automation labels Aug 15, 2023
Comment thread src/Uno.UI/UI/Xaml/Shapes/Line.wasm.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Path.wasm.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Path.wasm.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Shape.wasm.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Shape.wasm.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Shape.wasm.cs Resolved
Comment thread src/Uno.UI/UI/Xaml/Shapes/Shape.wasm.cs Resolved
@Youssef1313

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@Youssef1313
Youssef1313 force-pushed the cleanup-shapes-wasm2 branch from a2790f6 to 146eb2b Compare August 28, 2023 19:30
@Youssef1313
Youssef1313 marked this pull request as ready for review August 30, 2023 07:55
@Youssef1313

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@jeromelaban
jeromelaban merged commit 78a5a7f into unoplatform:master Sep 1, 2023
@Youssef1313
Youssef1313 deleted the cleanup-shapes-wasm2 branch September 1, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure area/skia ✏️ Categorizes an issue or PR as relevant to Skia platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WASM] Shapes' border getting clipped [WASM] RenderTransform not working as expected Refactor shapes to remove legacy ArbritaryShapeBase on WASM

3 participants