Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Summary

Separated Removed layout functions from BlockView and moved them to BlockLayout.BlockViewDesc and created a new class for them called BlockLayout. The test only involved checking whether each function still works, not if they result in the expected outcome.

Inserting elements from the template drawer

parent

inserted

main container
empty

main container
not empty

group

elements, aspect ratio
(image, video, shape)

free

column

free

column

free

column

elements, inline
(paragraph, heading)

free

column

free

column

free

column

elements, static layout
(form fields)

free

column

free

column

free

column

groups, column layout
(article templates)

free

column

free

column

free

column

Duplicating elements

parent

duplicated

main container

group

elements, aspect ratio
(image, video, shape)

free

column

free

column

elements, inline
(paragraph, heading)

free

column

free

column

elements, static layout
(form fields)

free

column

free

column

elements, no layout
(image, shape, video without aspect ratio)

free

column

free

column

any, invisible

free

column

free

column

groups, free layout

free

column

free

column

groups, column layout

free

column

free

column

Deleting elements

parent

deleted

main container
empty

main container
not empty

group
empty

group
not empty

any

free

column

free

column

free

column

free

column

Moving/resizing elements

parent

moved/resized

main container

group

elements, aspect ratio
(image, video, shape)

free

column

free

column

elements, inline
(paragraph, heading)

free

column

free

column

elements, static layout
(form fields)

free

column

free

column

elements, no layout
(image, shape, video without aspect ratio)

free

column

free

column

any, invisibleshape, video without aspect ratio)

free

column

free

column

groups, free layout

free

column

free

column

groups, column layout

free

column

free

column

Grouping elements

contents

group
(layout inherited from parent)

elements, aspect ratio
(image, shape, video)

free

column

elements, inline
(paragraph, heading)

free

column

elements, static layout
(form fields)

free

column

elements, no layout
(image, shape, video without aspect ratio)

free

column

any, invisible

free

column

groups, column layout

free

column

groups, free layout

free

column

Ungrouping groups

parent

group type

main container

group

group, column layout

free

column

free

column

group, free layout

free

column

free

column

group, invisible

free

column

free

column

Changing group layout

freecolumncolumn to invisible

parent

change type

main container

group

column to free

free

column

column

free to column free

free

column

free

free

column

free

column

free to column
invisible

free

column

free

column

Styles

parent

style

main container

group

font-style (bold, italic)
font-size

free

column

free

column

line-height

free

column

free

column

padding, border

free

column

free

column

aspect-ratio

free

column

free

column

vertical/horizontal align

free

column

free

column

Inline content

parent

style

main container

group

text

free

column

free

column

font style (bold, italic)
font size

free

column

free

column

other marks
(p14n, color, link)

free

column

free

column

Image

main container

group

change image

free

column

free

column