Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
export function createFullscreenControl({element,document,onChange,onError}){
const sync=()=>onChange(document.fullscreenElement===element);document.addEventListener('fullscreenchange',sync);sync();
return {async toggle(){try{if(document.fullscreenElement===element)await document.exitFullscreen();else await element.requestFullscreen();sync();}catch{onError('Fullscreen is unavailable in this browser. You can continue in the page.');}},dispose(){document.removeEventListener('fullscreenchange',sync);}};
}