Page
is a container for elements in the store
. The store
may have several pages.
page.set(attrs)
You can use set()
method to change some properties of the page container. For now use can change background
and custom
attributes
page.setSize({ width, height, useMagic })
Change size of specified page. If useMagic
is true
, all elements will be resized proportionally.
page.addElement(attrs)
Creates an element with specified attributes. It is important to provide type
attribute of the element.
page.clone()
Duplicate the page.
page.setZIndex(index)
Change order of pages
page.children
You can use children
property to access elements inside the page
page.computedWidth
Return width of the page in pixels.
page.computedHeight
Return height of the page in pixels.