Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`getPlacementInside > childrenOrientation={ type: 'horizontal', reverse: false } 1`] = `
{
"direction": "vertical",
"length": 90,
"parentRect": {
"height": 100,
"left": 0,
"top": 0,
"width": 100,
},
"type": "inside-parent",
"x": 5,
"y": 5,
}
`;
exports[`getPlacementInside > childrenOrientation={ type: 'horizontal', reverse: true } 1`] = `
{
"direction": "vertical",
"length": 90,
"parentRect": {
"height": 100,
"left": 0,
"top": 0,
"width": 100,
},
"type": "inside-parent",
"x": 5,
"y": 5,
}
`;
exports[`getPlacementInside > childrenOrientation={ type: 'mixed' } 1`] = `
{
"direction": "horizontal",
"length": 90,
"parentRect": {
"height": 100,
"left": 0,
"top": 0,
"width": 100,
},
"type": "inside-parent",
"x": 5,
"y": 5,
}
`;
exports[`getPlacementInside > childrenOrientation={ type: 'vertical', reverse: false } 1`] = `
{
"direction": "horizontal",
"length": 90,
"parentRect": {
"height": 100,
"left": 0,
"top": 0,
"width": 100,
},
"type": "inside-parent",
"x": 5,
"y": 5,
}
`;
exports[`getPlacementInside > childrenOrientation={ type: 'vertical', reverse: true } 1`] = `
{
"direction": "horizontal",
"length": 90,
"parentRect": {
"height": 100,
"left": 0,
"top": 0,
"width": 100,
},
"type": "inside-parent",
"x": 5,
"y": 5,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=backward > child almost same as parent 1`] = `
{
"direction": "vertical",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 2,
"y": 4,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=backward > child bigger than parent 1`] = `
{
"direction": "vertical",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": -10,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=backward > child same as parent 1`] = `
{
"direction": "vertical",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 0,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=backward > child smaller than parent 1`] = `
{
"direction": "vertical",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 95,
"y": 100,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=forward > child almost same as parent 1`] = `
{
"direction": "vertical",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 298,
"y": 4,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=forward > child bigger than parent 1`] = `
{
"direction": "vertical",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 300,
"y": -10,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=forward > child same as parent 1`] = `
{
"direction": "vertical",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 300,
"y": 0,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: false } > direction=forward > child smaller than parent 1`] = `
{
"direction": "vertical",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 205,
"y": 100,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=backward > child almost same as parent 1`] = `
{
"direction": "vertical",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 298,
"y": 4,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=backward > child bigger than parent 1`] = `
{
"direction": "vertical",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 300,
"y": -10,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=backward > child same as parent 1`] = `
{
"direction": "vertical",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 300,
"y": 0,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=backward > child smaller than parent 1`] = `
{
"direction": "vertical",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 205,
"y": 100,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=forward > child almost same as parent 1`] = `
{
"direction": "vertical",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 2,
"y": 4,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=forward > child bigger than parent 1`] = `
{
"direction": "vertical",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": -10,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=forward > child same as parent 1`] = `
{
"direction": "vertical",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 0,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'horizontal', reverse: true } > direction=forward > child smaller than parent 1`] = `
{
"direction": "vertical",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 95,
"y": 100,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=backward > child almost same as parent 1`] = `
{
"direction": "horizontal",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 4,
"y": 2,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=backward > child bigger than parent 1`] = `
{
"direction": "horizontal",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": -10,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=backward > child same as parent 1`] = `
{
"direction": "horizontal",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 0,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=backward > child smaller than parent 1`] = `
{
"direction": "horizontal",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 100,
"y": 95,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=forward > child almost same as parent 1`] = `
{
"direction": "horizontal",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 4,
"y": 298,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=forward > child bigger than parent 1`] = `
{
"direction": "horizontal",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": 300,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=forward > child same as parent 1`] = `
{
"direction": "horizontal",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 300,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'mixed' } > direction=forward > child smaller than parent 1`] = `
{
"direction": "horizontal",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 100,
"y": 205,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=backward > child almost same as parent 1`] = `
{
"direction": "horizontal",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 4,
"y": 2,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=backward > child bigger than parent 1`] = `
{
"direction": "horizontal",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": -10,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=backward > child same as parent 1`] = `
{
"direction": "horizontal",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 0,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=backward > child smaller than parent 1`] = `
{
"direction": "horizontal",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 100,
"y": 95,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=forward > child almost same as parent 1`] = `
{
"direction": "horizontal",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 4,
"y": 298,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=forward > child bigger than parent 1`] = `
{
"direction": "horizontal",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": 300,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=forward > child same as parent 1`] = `
{
"direction": "horizontal",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 300,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: false } > direction=forward > child smaller than parent 1`] = `
{
"direction": "horizontal",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 100,
"y": 205,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=backward > child almost same as parent 1`] = `
{
"direction": "horizontal",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 4,
"y": 298,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=backward > child bigger than parent 1`] = `
{
"direction": "horizontal",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": 300,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=backward > child same as parent 1`] = `
{
"direction": "horizontal",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 300,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=backward > child smaller than parent 1`] = `
{
"direction": "horizontal",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 100,
"y": 205,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=forward > child almost same as parent 1`] = `
{
"direction": "horizontal",
"length": 292,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 4,
"y": 2,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=forward > child bigger than parent 1`] = `
{
"direction": "horizontal",
"length": 310,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": -10,
"y": -10,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=forward > child same as parent 1`] = `
{
"direction": "horizontal",
"length": 300,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 0,
"y": 0,
}
`;
exports[`getPlacementNextTo > childrenOrientation={ type: 'vertical', reverse: true } > direction=forward > child smaller than parent 1`] = `
{
"direction": "horizontal",
"length": 100,
"parentRect": {
"height": 300,
"left": 0,
"top": 0,
"width": 300,
},
"type": "next-to-child",
"x": 100,
"y": 95,
}
`;