Skip to content

Correct the scale and origin in the freeform shape examples - #1160

Open
AmanBoronbaev wants to merge 1 commit into
scanny:masterfrom
AmanBoronbaev:docs-fix-freeform-scale-and-origin
Open

AmanBoronbaev wants to merge 1 commit into
scanny:masterfrom
AmanBoronbaev:docs-fix-freeform-scale-and-origin

Conversation

@AmanBoronbaev

Copy link
Copy Markdown

The freeform examples use the inverse scale for 1,000 local units per inch. This produces a one-EMU triangle where the example describes a one-inch triangle. The translated example also passes top and left to build_freeform(), which raises TypeError.

Use EMUs per local unit and supply the slide origin to convert_to_shape(). I ran the three examples, saved and reopened each presentation, and checked the resulting positions and sizes. The translated triangle starts at (3 in, 2 in) and measures 1 in in both dimensions. All 42 freeform unit tests passed.

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.

1 participant