Files
Migu2.0/MiGu.Server/wwwroot/assets/useMapEditStream-BgR6WvRg.js
T
zhaowei.huangandCursor 7db98c18b2 chore(web): 重新构建前端静态资源
同步工作流编辑器组件的 Vite 构建产物与 components.d.ts 自动声明。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 18:40:52 +08:00

2 lines
767 B
JavaScript

import{u as n}from"./useProjectionStream-BBHmpNXC.js";import{b7 as r,b6 as s}from"./index-Dg4NaXsE.js";function u(e){const c=n({autoConnect:!1});function o(a){const t=a?.payload;if(t)switch(a.kind){case"alarm":e.onAlarm?.(t);break;case"object-created":e.onObjectCreated?.(t);break;case"object-deleted":e.onObjectDeleted?.(t);break;case"object-patched":e.onObjectPatched?.(t);break;case"object-batch-changed":e.onObjectBatchChanged?.(t);break;case"pick-result":e.onPickResult?.(t);break;case"selection-detail":e.onSelectionDetail?.(t);break;case"workspace-shortcut":e.onWorkspaceShortcut?.(t);break;case"viewport-style-updated":e.onViewportStyleUpdated?.();break}}return r(()=>{c.on(o),c.connect()}),s(()=>{c.off(o),c.disconnect()}),{connected:c.connected}}export{u};