Skip to content

Commit

Permalink
added api endpoints for drawing stuff clientside (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav-Renz authored Jun 13, 2024
1 parent 655f4c1 commit eaa3bba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { useMessenger } from './system/messenger.js';
import { useProxyFetch } from './system/proxyFetch.js';
import { useRaycast } from './system/raycasts.js';
import { isWorldMenuOpen, useWorldMenu } from './menus/world/index.js';
import { drawText2D, drawText3D } from './screen/textlabel.js';
import { draw, drawSimple } from './screen/marker.js';

export function useRebarClient() {
return {
Expand Down Expand Up @@ -50,6 +52,16 @@ export function useRebarClient() {
useCamera,
useRaycast,
},
screen: {
text: {
drawText2D,
drawText3D,
},
marker: {
draw,
drawSimple,
},
},
useProxyFetch,
utility: {
math,
Expand Down

0 comments on commit eaa3bba

Please sign in to comment.