import{definePlugin}from"../../core/extension";import{REQUEST_TYPE}from"../../unity/model-api";export default definePlugin("tool",{setup(a,b){return{toScreenPoint:async a=>b.unity.invoke(REQUEST_TYPE.ConvertToScreenPosition,{worldPosition:{X:a.x,Y:a.y,Z:a.z}}).then(({screenPosition:a})=>({x:a.X,y:a.Y})),dispose:()=>{}}},destroyed(){this.dispose()}});