Elements hierarchy meaning
ivan-kleshnin opened this issue · 1 comments
ivan-kleshnin commented
What element hierarchy is meant to represent?
In other words, how
rect({children: [
rect({
x: 10, y: 10, width: 160, height: 100,
children: [
text({x: 15, y: 25, ...})
]
})
]})
is different from
rect({children: [
rect({
x: 10, y: 10, width: 160, height: 100,
})
text({x: 15, y: 25, ...})
]})
In DOM tree there is a particular meaning of node hierarchies described by "block model".
What it represents here?
- Some overlay rules?
- Grouping for transformations?
- User-level classification stuff?
- Nothing but reserved for future?
Widdershin commented
My original intention was to have children's position be relative to parents, to have a grouping structure similar to that of SVG.