UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

17 lines (16 loc) 620 B
"use strict"; import { ref } from "@vue/reactivity"; export var GetPointPropertyJsNodeInputName = /* @__PURE__ */ ((GetPointPropertyJsNodeInputName2) => { GetPointPropertyJsNodeInputName2["ptnum"] = "ptnum"; GetPointPropertyJsNodeInputName2["position"] = "position"; return GetPointPropertyJsNodeInputName2; })(GetPointPropertyJsNodeInputName || {}); const ptnumRefByObjectUuid = /* @__PURE__ */ new Map(); export function getObjectPtnumRef(object3D) { let _ref = ptnumRefByObjectUuid.get(object3D.uuid); if (!_ref) { _ref = ref(-1); ptnumRefByObjectUuid.set(object3D.uuid, _ref); } return _ref; }