/** * Small factories for writing project documents by hand (the seed scripts). They produce the * exact shape `src/core/store/serialize.ts` reads; optional fields get their defaults. */ /** A scene object (also a container template entry). Position defaults to the origin. */ export const sceneObject = ( id, assetId, { name = '', x = 0, y = 0, z = 0, overrides = {}, parentId = '', instanceEdits, editorOffset } = {}, ) => ({ id, assetId, name, position: { x, y, z }, overrides, parentId, ...(instanceEdits ? { instanceEdits } : {}), ...(editorOffset ? { editorOffset } : {}), }); /** * The id an object of a placed container resolves to: `~