PageSourceSearch

https://app.spaitial.ai/assets/drawing-toolbar-COXrGzTv-344d37dac6c1.js

js spaitial.ai collected 2026-10-02 05:15:32 UTC 3,499 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f713-a05e-7871-953b-f85a5413cdaa")}catch(e){}}();import{j as e}from"./react-D8xgUSms-344d37dac6c1.js";import{B as r,c as o}from"./index-_TbRVc-i-344d37dac6c1.js";import{u as t,B as m}from"./_worldId_.edit-DlH_q7sb-344d37dac6c1.js";import{ah as c,a5 as l,H as u,p as g,X as x}from"./icons-rJxGrmf1-344d37dac6c1.js";import"./posthog-CTdkyuxI-344d37dac6c1.js";import"./tanstack-router-CEQu-TrB-344d37dac6c1.js";import"./tanstack-query-DTiRSa1W-344d37dac6c1.js";import"./radix-Dn5s4LcD-344d37dac6c1.js";import"./supabase-BcuDcHL0-344d37dac6c1.js";import"./equirectangular-viewer-CdVWEob1-344d37dac6c1.js";import"./skeleton-BQA6KeYg-344d37dac6c1.js";import"./modal-deployments.query-QOLrPAwt-344d37dac6c1.js";import"./textarea-Bxh9D9rR-344d37dac6c1.js";import"./worlds-cache-wZpiVSgF-344d37dac6c1.js";const h=["S","M","L"];function H(){const n=t(s=>s.tool),a=t(s=>s.brushSize),i=t(s=>s.isOrbiting);return e.jsxs("div",{className:"flex items-center gap-1.5 border-b border-border/30 pb-2.5 sm:gap-2 sm:pb-3",children:[e.jsxs("div",{className:"flex items-center gap-0.5 rounded-lg bg-muted/50 p-0.5",children:[e.jsx(r,{variant:"ghost",size:"icon",className:o("flex h-7 w-7 items-center justify-center rounded-md",n==="brush"&&!i?"bg-background text-primary shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>{t.getState().setOrbiting(!1),t.getState().setTool("brush")},children:e.jsx(c,{className:"size-3.5"})}),e.jsx(r,{variant:"ghost",size:"icon",className:o("flex h-7 w-7 items-center justify-center rounded-md",n==="text"&&!i?"bg-background text-primary shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>{t.getState().setOrbiting(!1),t.getState().setTool("text")},children:e.jsx(l,{className:"size-3.5"})})]}),e.jsx("div",{className:"flex items-center gap-0.5 rounded-lg bg-muted/50 p-0.5",children:m.map((s,d)=>e.jsx(r,{variant:"ghost",size:"icon",className:o("flex h-7 w-7 items-center justify-center rounded-md text-[10px] font-semibold",a===s?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>t.getState().setBrushSize(s),children:h[d]},s))}),e.jsxs("div",{className:"flex items-center gap-0.5 rounded-lg bg-muted/50 p-0.5",children:[e.jsx(r,{variant:"ghost",size:"icon",className:o("flex h-7 w-7 items-center justify-center rounded-md",i?"bg-background text-primary shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>{const s=!t.getState().isOrbiting;t.getState().setOrbiting(s)},children:e.jsx(u,{className:"size-3.5"})}),e.jsx(r,{variant:"ghost",size:"icon",className:"flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:text-foreground",onClick:()=>t.getState().undoLast(),children:e.jsx(g,{className:"size-3.5 -scale-x-100"})})]}),e.jsx("span",{className:"ml-auto hidden text-[10px] text-muted-foreground/50 sm:inline",children:"Hold Space to orbit"}),e.jsx(r,{variant:"ghost",size:"icon",className:"flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-destructive/10 hover:text-destructive sm:ml-0.5",onClick:()=>t.getState().exitDrawMode(),children:e.jsx(x,{className:"size-3.5"})})]})}export{H as DrawingToolbar};
2
3//# chunkId=01a0f713-a05e-7871-953b-f85a5413cdaa

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.