UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

19 lines 920 B
import { curveHelperSpherePointMap } from "../collections/curveHelperSpherePointMap"; import HelperSphere from "../display/core/utils/HelperSphere"; import createSharedPool from "../pools/utils/createSharedPool"; import { addCurveHelperSphereTransformEditSystem } from "../systems/eventSystems/curveHelperSphereTransformEditSystem"; import { getSelectionCandidates } from "../throttle/getSelectionCandidates"; import computeOnce from "./utils/computeOnce"; export default computeOnce((self) => createSharedPool((_, pt) => { const helper = new HelperSphere(undefined); self.append(helper); helper.scale = 0.2; helper.x = pt.x; helper.y = pt.y; helper.z = pt.z; curveHelperSpherePointMap.set(helper, pt); addCurveHelperSphereTransformEditSystem(helper); getSelectionCandidates(); return helper; }, (helper) => helper.dispose())); //# sourceMappingURL=getCurveHelperSpherePool.js.map