Skip to content

Add useTemplateLayout option to honour template body placeholder bounds#224

Open
troutrot wants to merge 1 commit into
MartinPacker:mainfrom
troutrot:feat/use-template-layout
Open

Add useTemplateLayout option to honour template body placeholder bounds#224
troutrot wants to merge 1 commit into
MartinPacker:mainfrom
troutrot:feat/use-template-layout

Conversation

@troutrot
Copy link
Copy Markdown
Contributor

Closes #222

Changes

  • getContentRect: when useTemplateLayout: yes, content rect
    follows the template body placeholder's left/width (clamped
    to slide margins) instead of deriving them from marginBase
  • applyBodyIndentation (new helper): copies marL/marR/indent
    from the template body's first paragraph to generated text boxes
    (code blocks, abstract slides); no-op when option is off
  • Default is no — existing behaviour is fully preserved

Usage

useTemplateLayout: yes

Closes MartinPacker#222

When useTemplateLayout: yes is set, getContentRect uses the
template's body placeholder left/width instead of slide margins,
and applyBodyIndentation copies paragraph indentation attributes
from the placeholder to generated text boxes.

Default is no, so existing behaviour is fully preserved.
@MartinPacker
Copy link
Copy Markdown
Owner

Question: What happens if there are multiple blocks horizontally arranged?

BTW I will need to write some documentation.

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.

Feature request: useTemplateLayout option to honour template body placeholder bounds

2 participants