Gist e083a79675354e15292c0628307c723f
✓ Published0🌍 Public
UUtopiah
Last edited May 21, 2020
Created on May 21, 2020
This example demonstrates a workflow for converting live Networked Drawings into pinned 3D objects within a Three.js-based scene. It shows how each drawing element, selected via `document.querySelectorAll("[networked-drawing]")`, is serialized through the component’s `serializeDrawing()` method and then removed from the view. The resulting GLB data is applied to the most recent networked entity by setting its `pinnable` attribute with `pinned:true`, effectively freezing the drawing as a persistent object. The code relies on the A-Frame component API and JavaScript promises to handle asynchronous serialization.
AI-generated description