// drei/src/web/Html.tsx
const v1 = new Vector3()
function defaultCalculatePosition(el: Object3D, camera: Camera, size: { width: number; height: number }) {
const objectPos = v1.setFromMatrixPosition(el.matrixWorld)
objectPos.project(camera)
const widthHalf = size.width / 2
const heightHalf = size.height / 2
return [objectPos.x * widthHalf + widthHalf, -(objectPos.y * heightHalf) + heightHalf]
}
...