-
Notifications
You must be signed in to change notification settings - Fork 563
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
[UWP Renderer] Parse for SVG width and height #8256
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anna-dingler
commented
Jan 24, 2023
anna-dingler
commented
Jan 24, 2023
beervoley
reviewed
Jan 24, 2023
beervoley
reviewed
Jan 24, 2023
beervoley
reviewed
Jan 24, 2023
beervoley
reviewed
Jan 24, 2023
beervoley
reviewed
Jan 27, 2023
* Temp branch * svg updates * Pass by value * Remove temp var * Use make_weak * Fix spacing
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
dmachaj
reviewed
Feb 10, 2023
beervoley
reviewed
Feb 16, 2023
beervoley
reviewed
Feb 16, 2023
beervoley
reviewed
Feb 16, 2023
beervoley
reviewed
Feb 16, 2023
beervoley
approved these changes
Feb 22, 2023
anna-dingler
added a commit
that referenced
this pull request
Feb 28, 2023
* WIP: set raster height and width * WIP: add template method * WIP: parse svg for size * Update resources and spacing * update visualizer csproj * Only set height * Resolve PR comments * Remove try catch blocks * [UWP] Remove weak_ref from method headers and pass by value (#8295) * Temp branch * svg updates * Pass by value * Remove temp var * Use make_weak * Fix spacing * Resolve PR comments * Use image properties struct * Resolve PR comments and handle errors * Add test json
anna-dingler
added a commit
that referenced
this pull request
Mar 21, 2023
* Switch to gotFocus (#8148) (#8150) * Update custom.props * [UWP] Update custom.props for object model release (#8225) * Update custom.props for object model release * Updated Xcode version (#8222) * removed build step as they are redundant (#8201) * removed build step as they are redundant * added pod installation step Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com> * [UWP Renderer] Add a null check to inline action rendering (#8228) * Update custom.props for object model release * Updated Xcode version (#8222) * removed build step as they are redundant (#8201) * removed build step as they are redundant * added pod installation step * Add a null check for inline Actions Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com> * [UWP][Infra] Update nuget files for release (#6576) (#8240) * [UWP][Infra] Update nuget files for release (#6576) * Add new nuspec files * Fix nuspec * Update build copy script * Add dependency to renderer * 1.5 website schema explorer updates (#6550) * Updating schema explorer properties * adding tableCell to toc and attempting whitespace fix * indentation fix indentation fix * Removing filtered prop Removing filtered prop - it's auto generated in our build Co-authored-by: RahulAmlekar <raamleka@microsoft.com> * Custom.props to 1.0.0 for Object model build * Update dependency version Co-authored-by: Rahul Amlekar <rahul.amlekar@mail.mcgill.ca> Co-authored-by: RahulAmlekar <raamleka@microsoft.com> Co-authored-by: Rebecca Muraira <rebecch@microsoft.com> * Remove blank lines Co-authored-by: almedina-ms <35784165+almedina-ms@users.noreply.github.com> Co-authored-by: Rahul Amlekar <rahul.amlekar@mail.mcgill.ca> Co-authored-by: RahulAmlekar <raamleka@microsoft.com> Co-authored-by: Rebecca Muraira <rebecch@microsoft.com> * [UWP Renderer] Parse for SVG width and height (#8256) * WIP: set raster height and width * WIP: add template method * WIP: parse svg for size * Update resources and spacing * update visualizer csproj * Only set height * Resolve PR comments * Remove try catch blocks * [UWP] Remove weak_ref from method headers and pass by value (#8295) * Temp branch * svg updates * Pass by value * Remove temp var * Use make_weak * Fix spacing * Resolve PR comments * Use image properties struct * Resolve PR comments and handle errors * Add test json * Update custom props (#8329) * Update the object model dependency (#8331) --------- Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com> Co-authored-by: almedina-ms <35784165+almedina-ms@users.noreply.github.com> Co-authored-by: Rahul Amlekar <rahul.amlekar@mail.mcgill.ca> Co-authored-by: RahulAmlekar <raamleka@microsoft.com> Co-authored-by: Rebecca Muraira <rebecch@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related Issue
Fixes #8243
Description
RasterizedWidth
and/orRasterizedHeight
need to be set for all SVG images if possible. This PR addresses this in two ways:RasterizedWidth
and/orRasterizedHeight
. Once this is complete, we continue setting the image source.RasterizedWidth
and/orRasterizedHeight
with those values.Note: Values set in 1 take priority over those set in 2.
This PR also includes refactoring for duplicate code in AdaptiveImageRenderer.
Sample Card
URL with size property
URL with explicit height & width
Resource resolver: fixed width & person style
Resource resolver: size property
Data URI: size property
Data URI: explicit height and width
How Verified
Verified manually on the AdaptiveCards Visualizer.
Microsoft Reviewers: Open in CodeFlow