gaesup-world 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor.cjs +1 -1
- package/dist/editor.js +2 -2
- package/dist/flow-BnFTzumT.cjs +1 -0
- package/dist/flow-DJRTbNvJ.js +144 -0
- package/dist/index.cjs +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +40 -40
- package/dist/shell-BRQStYy9.cjs +1 -0
- package/dist/{shell-CdnYaUXk.js → shell-aiiC8SLL.js} +1280 -1413
- package/package.json +3 -3
- package/dist/shell-Bkt0gci9.cjs +0 -1
package/dist/editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./useClicker-0Ln5ZSz0.cjs"),t=require("./shell-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./useClicker-0Ln5ZSz0.cjs"),t=require("./shell-BRQStYy9.cjs"),n=require("./WorldProps-L3Izutxz.cjs"),r=require("./plugin-BUKo4q0N.cjs"),i=require("./loader-shJVRMj9.cjs");exports.ANIMATION_PANEL_DEFAULT_CLASSES=t.en,exports.ANIMATION_PANEL_DEFAULT_LABELS=t.tn,exports.ANIMATION_PANEL_DEFAULT_TABS=t.nn,exports.AnimationPanel=t.rn,exports.BUILDING_BASIC_OBJECT_OPTIONS=e.Yt,exports.BUILDING_FLAG_STYLE_OPTIONS=e.Xt,exports.BUILDING_PLACED_OBJECT_OPTIONS=e.Zt,exports.BUILDING_STORE_SERVICE=e.Vt,exports.BUILDING_TILE_GROUP_DRAG_TYPE=e.Qt,exports.BUILDING_TILE_OBJECT_OPTIONS=e.$t,exports.BUILDING_TILE_PRESETS=e.en,exports.BUILDING_TILE_PRESET_DRAG_TYPE=e.tn,exports.BUILDING_TILE_SHAPE_OPTIONS=e.nn,exports.BUILDING_TREE_COLOR_PRESETS=e.rn,exports.BUILDING_TREE_OPTIONS=e.in,exports.BUILDING_WALL_KIND_OPTIONS=e.an,exports.BUILDING_WALL_PRESETS=e.on,exports.BUILDING_WEATHER_EFFECT_OPTIONS=e.sn,exports.BUILDING_WORLD_SURFACE_OPTIONS=e.cn,exports.Billboard=r.U,exports.BlockSystem=r.K,exports.BuildingController=r.h,exports.BuildingGpuCullingDriver=r.f,exports.BuildingGpuMirrorDriver=r.m,exports.BuildingGpuUploadDriver=r.p,exports.BuildingIndirectArgsUploadDriver=r.u,exports.BuildingIndirectDrawDriver=r.d,exports.BuildingNavigationObstacleDriver=r.tt,exports.BuildingPanel=t.O,exports.BuildingRenderStateDriver=r._,exports.BuildingSystem=r.x,exports.BuildingUI=r.s,exports.BuildingVisibilityDriver=r.g,exports.CAMERA_PANEL_DEFAULT_CLASSES=t.sn,exports.CAMERA_PANEL_DEFAULT_LABELS=t.cn,exports.CAMERA_PANEL_DEFAULT_TABS=t.ln,exports.CAMERA_SETTINGS_DEFAULT_CLASSES=t.Tn,exports.CAMERA_SETTINGS_DEFAULT_LABELS=t.En,exports.CAMERA_SETTINGS_DEFAULT_SECTIONS=t.Dn,exports.CONTENT_SCHEMA_VERSION=i.o,exports.CameraPanel=t.un,exports.CameraSettingsTab=t.wn,exports.CinematicPanel=t.E,exports.CommandPalette=t.On,exports.DEFAULT_BUILDING_GRID_EXTENSION_ID=r.t,exports.DEFAULT_BUILDING_OBJECT_CATALOG=r.rt,exports.DEFAULT_BUILDING_PLACEMENT_EXTENSION_ID=r.n,exports.DEFAULT_BUILDING_SAVE_EXTENSION_ID=r.r,exports.DEFAULT_BUILDING_STORE_SERVICE_ID=r.i,exports.DEFAULT_EDITOR_SHORTCUTS=t.An,exports.DRAW_CLUSTER_BILLBOARD=n.rt,exports.DRAW_CLUSTER_BLOCK=n.it,exports.DRAW_CLUSTER_COUNT=n.at,exports.DRAW_CLUSTER_DESCRIPTORS=n.Z,exports.DRAW_CLUSTER_FIRE=n.ot,exports.DRAW_CLUSTER_FLAG=n.st,exports.DRAW_CLUSTER_GRASS=n.ct,exports.DRAW_CLUSTER_MODEL=n.lt,exports.DRAW_CLUSTER_SAKURA=n.ut,exports.DRAW_CLUSTER_SAND=n.dt,exports.DRAW_CLUSTER_SNOWFIELD=n.ft,exports.DRAW_CLUSTER_TILE=n.pt,exports.DRAW_CLUSTER_WALL=n.mt,exports.DRAW_CLUSTER_WATER=n.ht,exports.EDITOR_PANEL_COMPONENT_KIND=t.Wn,exports.EMPTY_EDITOR_SELECTION=t.u,exports.Editor=t.C,exports.EditorLayout=t.w,exports.FLAG_STYLE_META=e.ln,exports.Fire=r.H,exports.GPU_META_STRIDE=n.K,exports.GPU_SPATIAL_STRIDE=n.q,exports.GameplayEventPanel=t.D,exports.GpuBatchBridge=r.J,exports.Grass=r.O,exports.GrassDriver=r.z,exports.GrassManagerProvider=r.B,exports.GridHelper=r.W,exports.HierarchyPanel=t.Kt,exports.HttpContentBundleSource=i.t,exports.INDIRECT_DRAW_STRIDE=n.Q,exports.InspectorPanel=t.L,exports.MOTION_PANEL_DEFAULT_CLASSES=t.Jt,exports.MOTION_PANEL_DEFAULT_LABELS=t.Yt,exports.MOTION_PANEL_DEFAULT_TABS=t.Xt,exports.MaterialManager=r.q,exports.MotionPanel=t.Zt,exports.PROJECT_ASSETS_PANEL_DEFAULT_CLASSES=t.N,exports.PROJECT_ASSETS_PANEL_DEFAULT_KIND_OPTIONS=t.P,exports.PROJECT_ASSETS_PANEL_DEFAULT_LABELS=t.F,exports.PROJECT_ASSETS_PANEL_DEFAULT_TABS=t.I,exports.PerformancePanel=t.qt,exports.ProjectAssetsPanel=t.M,exports.ResizablePanel=t.S,exports.Sakura=r.L,exports.SakuraBatch=r.R,exports.Sand=r.E,exports.SandBatch=r.D,exports.SceneObjectTransformGizmo=t.v,exports.Snow=r.I,exports.Snowfield=r.w,exports.SnowfieldBatch=r.T,exports.StudioPanel=t.T,exports.TileSystem=r.C,exports.VehiclePanel=t.j,exports.WallSystem=r.S,exports.Water=r.A,exports.applyBuildingNavigationObstacles=r.nt,exports.applySceneTransform=t.y,exports.blockToPlacementEntry=e.un,exports.buildBuildingGpuMirror=n.J,exports.buildBuildingIndirectDrawMirror=n.$,exports.buildingCellToWorld=e.dn,exports.buildingGridAdapter=e.fn,exports.buildingGroupsToPlacementEntries=e.pn,exports.buildingPlacementAdapter=e.mn,exports.buildingPlugin=r.a,exports.cellToTilePosition=e.hn,exports.clearEditorSelection=t.d,exports.createBlockFootprint=e.gn,exports.createBuildingCullingStore=n.Ct,exports.createBuildingGpuUploadPlan=n.Y,exports.createBuildingIndirectDrawUploadPlan=n.et,exports.createBuildingPlacementEngine=e._n,exports.createBuildingPlugin=r.o,exports.createBuildingRenderStore=n.R,exports.createBuildingScopeId=r.l,exports.createBuildingStore=e.Ht,exports.createBuildingVisibilityStore=n.F,exports.createContentBundleFromSaveSystem=i.a,exports.createCustomMeshId=r.c,exports.createEditorCommandStack=t.t,exports.createEditorPlayModeController=t.a,exports.createEditorSaveStatus=t.In,exports.createEditorSelectionState=t.f,exports.createEditorShell=t.n,exports.createEditorShortcutRegistry=t.jn,exports.createEditorSlice=t.c,exports.createEditorTransaction=t.r,exports.createEmptyBuildingGpuUploadResources=n.V,exports.createEmptyBuildingIndirectDrawMirror=n.tt,exports.createEmptyGpuMirror=n.X,exports.createGrassManager=n.Et,exports.createSceneObjectEditorCommands=t.i,exports.createShoreField=r.M,exports.createTerrainBlockMaterial=r.v,exports.createTileFootprint=e.vn,exports.createTileSampler=r.Z,exports.destroyBuildingGpuUploadResources=n.H,exports.edgeKey=e.yn,exports.edgeSideToWallRotation=e.bn,exports.edgeToWallTransform=e.xn,exports.editorSlice=t.l,exports.findTerrainBlockMaterial=r.y,exports.formatEditorShortcut=t.Mn,exports.getActiveSceneObject=t.p,exports.getBlockSupportHeight=e.Sn,exports.getBuildingSupportHeight=e.Cn,exports.getDefaultBuildingObject=r.it,exports.getDrawClusterForSnapshotEntry=n.gt,exports.getEditorSaveStatusLabel=t.Ln,exports.getGrassManager=n.Dt,exports.getIndirectInstanceCount=n.nt,exports.getNextAutosaveAt=t.Rn,exports.getTileSupportHeight=e.wn,exports.getWallMaterialKey=r.G,exports.getWebGPUDeviceFromRenderer=n.U,exports.hasTileCollision=e.Tn,exports.hasWallCollision=e.En,exports.indexAabb=e.Dn,exports.isEditableShortcutTarget=t.Nn,exports.isEditorPanelComponentExtension=t.Gn,exports.isSceneObjectSelected=t.m,exports.loadContentBundleFromManifest=i.n,exports.markEditorDirty=t.zn,exports.markEditorSaveError=t.Bn,exports.markEditorSaved=t.Vn,exports.markEditorSaving=t.Hn,exports.matchesEditorShortcut=t.Pn,exports.normalizeQuarterTurnRotation=e.On,exports.object3DToSceneTransform=t.b,exports.pair=e.kn,exports.parseBuildingGpuVisibilityFlags=n._t,exports.queryAabbIds=e.An,exports.resolveEditorPanelComponentExtensions=t.Kn,exports.selectSceneObject=t.h,exports.selectSceneObjectRange=t.g,exports.setSceneObjectHover=t._,exports.shouldRunEditorAutosave=t.Un,exports.snapBuildingPosition=e.jn,exports.snapSceneTransform=t.x,exports.supportsGpuInstanceBatches=r.Y,exports.syncBuildingGpuBuffers=n.W,exports.syncBuildingIndirectArgsBuffer=n.G,exports.tileFootprintKeys=e.Mn,exports.tileGroupToPlacementEntries=e.Nn,exports.tileHalfSize=e.Pn,exports.tileOverlaps=e.Fn,exports.tilePositionToCell=e.In,exports.tileToPlacementEntry=e.Ln,exports.unindexId=e.Rn,exports.useBuildingEditor=r.b,exports.useBuildingGpuCullingStore=n.wt,exports.useBuildingGpuCullingStoreApi=n.Tt,exports.useBuildingRenderStateStore=n.z,exports.useBuildingRenderStateStoreApi=n.B,exports.useBuildingStore=e.Ut,exports.useBuildingStoreApi=e.Wt,exports.useBuildingVisibilityStore=n.I,exports.useBuildingVisibilityStoreApi=n.L,exports.useEditor=t.o,exports.useEditorAutosave=t.Fn,exports.useEditorShortcuts=t.kn,exports.useEditorStore=t.s,exports.useGrassManager=r.V,exports.useShoreField=r.j,exports.validateContentBundle=i.r,exports.validateContentBundleManifest=i.i,exports.wallGroupToPlacementEntries=e.zn,exports.wallToPlacementEntry=e.Bn,exports.wallTransformToEdge=e.Vn,exports.worldToBuildingCell=e.Hn,exports.zigZag=e.Un;
|
package/dist/editor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $t as e, An as t, Bn as n, Cn as r, Dn as i, En as a, Fn as o, Hn as s, Ht as c, In as l, Ln as u, Mn as d, Nn as f, On as p, Pn as m, Qt as h, Rn as g, Sn as _, Tn as v, Un as y, Ut as b, Vn as x, Vt as S, Wt as C, Xt as w, Yt as T, Zt as E, _n as D, an as O, bn as k, cn as A, dn as j, en as M, fn as N, gn as P, hn as F, in as I, jn as L, kn as R, ln as z, mn as B, nn as V, on as H, pn as U, rn as W, sn as G, tn as K, un as q, vn as J, wn as Y, xn as X, yn as Z, zn as Q } from "./useClicker-DZrb1I0b.js";
|
|
2
|
-
import {
|
|
2
|
+
import { An as $, Bn as ee, C as te, D as ne, Dn as re, E as ie, En as ae, F as oe, Fn as se, Gn as ce, Hn as le, I as ue, In as de, Jt as fe, Kn as pe, Kt as me, L as he, Ln as ge, M as _e, Mn as ve, N as ye, Nn as be, O as xe, On as Se, P as Ce, Pn as we, Rn as Te, S as Ee, T as De, Tn as Oe, Un as ke, Vn as Ae, Wn as je, Xt as Me, Yt as Ne, Zt as Pe, _ as Fe, a as Ie, b as Le, c as Re, cn as ze, d as Be, en as Ve, f as He, g as Ue, h as We, i as Ge, j as Ke, jn as qe, kn as Je, l as Ye, ln as Xe, m as Ze, n as Qe, nn as $e, o as et, p as tt, qt as nt, r as rt, rn as it, s as at, sn as ot, t as st, tn as ct, u as lt, un as ut, v as dt, w as ft, wn as pt, x as mt, y as ht, zn as gt } from "./shell-aiiC8SLL.js";
|
|
3
3
|
import { $ as _t, B as vt, Ct as yt, Dt as bt, Et as xt, F as St, G as Ct, H as wt, I as Tt, J as Et, K as Dt, L as Ot, Q as kt, R as At, Tt as jt, U as Mt, V as Nt, W as Pt, X as Ft, Y as It, Z as Lt, _t as Rt, at as zt, ct as Bt, dt as Vt, et as Ht, ft as Ut, gt as Wt, ht as Gt, it as Kt, lt as qt, mt as Jt, nt as Yt, ot as Xt, pt as Zt, q as Qt, rt as $t, st as en, tt as tn, ut as nn, wt as rn, z as an } from "./WorldProps-CQrtF4CO.js";
|
|
4
4
|
import { A as on, B as sn, C as cn, D as ln, E as un, G as dn, H as fn, I as pn, J as mn, K as hn, L as gn, M as _n, O as vn, R as yn, S as bn, T as xn, U as Sn, V as Cn, W as wn, Y as Tn, Z as En, _ as Dn, a as On, b as kn, c as An, d as jn, f as Mn, g as Nn, h as Pn, i as Fn, it as In, j as Ln, l as Rn, m as zn, n as Bn, nt as Vn, o as Hn, p as Un, q as Wn, r as Gn, rt as Kn, s as qn, t as Jn, tt as Yn, u as Xn, v as Zn, w as Qn, x as $n, y as er, z as tr } from "./plugin-Dsf9EwPP.js";
|
|
5
5
|
import { a as nr, i as rr, n as ir, o as ar, r as or, t as sr } from "./loader-ILIhPMOR.js";
|
|
6
|
-
export {
|
|
6
|
+
export { Ve as ANIMATION_PANEL_DEFAULT_CLASSES, ct as ANIMATION_PANEL_DEFAULT_LABELS, $e as ANIMATION_PANEL_DEFAULT_TABS, it as AnimationPanel, T as BUILDING_BASIC_OBJECT_OPTIONS, w as BUILDING_FLAG_STYLE_OPTIONS, E as BUILDING_PLACED_OBJECT_OPTIONS, S as BUILDING_STORE_SERVICE, h as BUILDING_TILE_GROUP_DRAG_TYPE, e as BUILDING_TILE_OBJECT_OPTIONS, M as BUILDING_TILE_PRESETS, K as BUILDING_TILE_PRESET_DRAG_TYPE, V as BUILDING_TILE_SHAPE_OPTIONS, W as BUILDING_TREE_COLOR_PRESETS, I as BUILDING_TREE_OPTIONS, O as BUILDING_WALL_KIND_OPTIONS, H as BUILDING_WALL_PRESETS, G as BUILDING_WEATHER_EFFECT_OPTIONS, A as BUILDING_WORLD_SURFACE_OPTIONS, Sn as Billboard, hn as BlockSystem, Pn as BuildingController, Mn as BuildingGpuCullingDriver, zn as BuildingGpuMirrorDriver, Un as BuildingGpuUploadDriver, Xn as BuildingIndirectArgsUploadDriver, jn as BuildingIndirectDrawDriver, Yn as BuildingNavigationObstacleDriver, xe as BuildingPanel, Dn as BuildingRenderStateDriver, $n as BuildingSystem, qn as BuildingUI, Nn as BuildingVisibilityDriver, ot as CAMERA_PANEL_DEFAULT_CLASSES, ze as CAMERA_PANEL_DEFAULT_LABELS, Xe as CAMERA_PANEL_DEFAULT_TABS, Oe as CAMERA_SETTINGS_DEFAULT_CLASSES, ae as CAMERA_SETTINGS_DEFAULT_LABELS, re as CAMERA_SETTINGS_DEFAULT_SECTIONS, ar as CONTENT_SCHEMA_VERSION, ut as CameraPanel, pt as CameraSettingsTab, ie as CinematicPanel, Se as CommandPalette, Jn as DEFAULT_BUILDING_GRID_EXTENSION_ID, Kn as DEFAULT_BUILDING_OBJECT_CATALOG, Bn as DEFAULT_BUILDING_PLACEMENT_EXTENSION_ID, Gn as DEFAULT_BUILDING_SAVE_EXTENSION_ID, Fn as DEFAULT_BUILDING_STORE_SERVICE_ID, $ as DEFAULT_EDITOR_SHORTCUTS, $t as DRAW_CLUSTER_BILLBOARD, Kt as DRAW_CLUSTER_BLOCK, zt as DRAW_CLUSTER_COUNT, Lt as DRAW_CLUSTER_DESCRIPTORS, Xt as DRAW_CLUSTER_FIRE, en as DRAW_CLUSTER_FLAG, Bt as DRAW_CLUSTER_GRASS, qt as DRAW_CLUSTER_MODEL, nn as DRAW_CLUSTER_SAKURA, Vt as DRAW_CLUSTER_SAND, Ut as DRAW_CLUSTER_SNOWFIELD, Zt as DRAW_CLUSTER_TILE, Jt as DRAW_CLUSTER_WALL, Gt as DRAW_CLUSTER_WATER, je as EDITOR_PANEL_COMPONENT_KIND, lt as EMPTY_EDITOR_SELECTION, te as Editor, ft as EditorLayout, z as FLAG_STYLE_META, fn as Fire, Dt as GPU_META_STRIDE, Qt as GPU_SPATIAL_STRIDE, ne as GameplayEventPanel, mn as GpuBatchBridge, vn as Grass, tr as GrassDriver, sn as GrassManagerProvider, wn as GridHelper, me as HierarchyPanel, sr as HttpContentBundleSource, kt as INDIRECT_DRAW_STRIDE, he as InspectorPanel, fe as MOTION_PANEL_DEFAULT_CLASSES, Ne as MOTION_PANEL_DEFAULT_LABELS, Me as MOTION_PANEL_DEFAULT_TABS, Wn as MaterialManager, Pe as MotionPanel, ye as PROJECT_ASSETS_PANEL_DEFAULT_CLASSES, Ce as PROJECT_ASSETS_PANEL_DEFAULT_KIND_OPTIONS, oe as PROJECT_ASSETS_PANEL_DEFAULT_LABELS, ue as PROJECT_ASSETS_PANEL_DEFAULT_TABS, nt as PerformancePanel, _e as ProjectAssetsPanel, Ee as ResizablePanel, gn as Sakura, yn as SakuraBatch, un as Sand, ln as SandBatch, dt as SceneObjectTransformGizmo, pn as Snow, Qn as Snowfield, xn as SnowfieldBatch, De as StudioPanel, cn as TileSystem, Ke as VehiclePanel, bn as WallSystem, on as Water, Vn as applyBuildingNavigationObstacles, ht as applySceneTransform, q as blockToPlacementEntry, Et as buildBuildingGpuMirror, _t as buildBuildingIndirectDrawMirror, j as buildingCellToWorld, N as buildingGridAdapter, U as buildingGroupsToPlacementEntries, B as buildingPlacementAdapter, On as buildingPlugin, F as cellToTilePosition, Be as clearEditorSelection, P as createBlockFootprint, yt as createBuildingCullingStore, It as createBuildingGpuUploadPlan, Ht as createBuildingIndirectDrawUploadPlan, D as createBuildingPlacementEngine, Hn as createBuildingPlugin, At as createBuildingRenderStore, Rn as createBuildingScopeId, c as createBuildingStore, St as createBuildingVisibilityStore, nr as createContentBundleFromSaveSystem, An as createCustomMeshId, st as createEditorCommandStack, Ie as createEditorPlayModeController, de as createEditorSaveStatus, He as createEditorSelectionState, Qe as createEditorShell, qe as createEditorShortcutRegistry, Re as createEditorSlice, rt as createEditorTransaction, Nt as createEmptyBuildingGpuUploadResources, tn as createEmptyBuildingIndirectDrawMirror, Ft as createEmptyGpuMirror, xt as createGrassManager, Ge as createSceneObjectEditorCommands, _n as createShoreField, Zn as createTerrainBlockMaterial, J as createTileFootprint, En as createTileSampler, wt as destroyBuildingGpuUploadResources, Z as edgeKey, k as edgeSideToWallRotation, X as edgeToWallTransform, Ye as editorSlice, er as findTerrainBlockMaterial, ve as formatEditorShortcut, tt as getActiveSceneObject, _ as getBlockSupportHeight, r as getBuildingSupportHeight, In as getDefaultBuildingObject, Wt as getDrawClusterForSnapshotEntry, ge as getEditorSaveStatusLabel, bt as getGrassManager, Yt as getIndirectInstanceCount, Te as getNextAutosaveAt, Y as getTileSupportHeight, dn as getWallMaterialKey, Mt as getWebGPUDeviceFromRenderer, v as hasTileCollision, a as hasWallCollision, i as indexAabb, be as isEditableShortcutTarget, ce as isEditorPanelComponentExtension, Ze as isSceneObjectSelected, ir as loadContentBundleFromManifest, gt as markEditorDirty, ee as markEditorSaveError, Ae as markEditorSaved, le as markEditorSaving, we as matchesEditorShortcut, p as normalizeQuarterTurnRotation, Le as object3DToSceneTransform, R as pair, Rt as parseBuildingGpuVisibilityFlags, t as queryAabbIds, pe as resolveEditorPanelComponentExtensions, We as selectSceneObject, Ue as selectSceneObjectRange, Fe as setSceneObjectHover, ke as shouldRunEditorAutosave, L as snapBuildingPosition, mt as snapSceneTransform, Tn as supportsGpuInstanceBatches, Pt as syncBuildingGpuBuffers, Ct as syncBuildingIndirectArgsBuffer, d as tileFootprintKeys, f as tileGroupToPlacementEntries, m as tileHalfSize, o as tileOverlaps, l as tilePositionToCell, u as tileToPlacementEntry, g as unindexId, kn as useBuildingEditor, rn as useBuildingGpuCullingStore, jt as useBuildingGpuCullingStoreApi, an as useBuildingRenderStateStore, vt as useBuildingRenderStateStoreApi, b as useBuildingStore, C as useBuildingStoreApi, Tt as useBuildingVisibilityStore, Ot as useBuildingVisibilityStoreApi, et as useEditor, se as useEditorAutosave, Je as useEditorShortcuts, at as useEditorStore, Cn as useGrassManager, Ln as useShoreField, or as validateContentBundle, rr as validateContentBundleManifest, Q as wallGroupToPlacementEntries, n as wallToPlacementEntry, x as wallTransformToEdge, s as worldToBuildingCell, y as zigZag };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-Chgba0Kb.cjs"),t=require("./shell-BRQStYy9.cjs");let n=require("react");n=e.n(n,1);let r=require("react/jsx-runtime"),i=require("@xyflow/react");var a=240,o=130,s={"node.a11yDescription.default":`Enter 또는 스페이스 키로 노드를 선택하세요. Delete 키로 삭제하고 Escape 키로 선택을 해제합니다.`,"node.a11yDescription.keyboardDisabled":`Enter 또는 스페이스 키로 노드를 선택하고 방향키로 이동하세요. Delete 키로 삭제하고 Escape 키로 선택을 해제합니다.`,"node.a11yDescription.ariaLiveMessage":({x:e,y:t})=>`선택한 노드를 이동했습니다. 위치: 가로 ${e}, 세로 ${t}`,"edge.a11yDescription.default":`Enter 또는 스페이스 키로 연결을 선택하세요. Delete 키로 삭제하고 Escape 키로 선택을 해제합니다.`,"handle.ariaLabel":`노드 연결점`,"controls.ariaLabel":`행동 그래프 조작`,"controls.zoomIn.ariaLabel":`그래프 확대`,"controls.zoomOut.ariaLabel":`그래프 축소`,"controls.fitView.ariaLabel":`그래프 전체 보기`,"controls.interactive.ariaLabel":`그래프 조작 잠금 전환`,"minimap.ariaLabel":`행동 그래프 미니맵`},c={borderRadius:10,border:`1px solid #3b4258`,padding:`8px 10px`,color:`#e5e7eb`,background:`#182033`,minWidth:140,textAlign:`center`,fontSize:12,fontWeight:600},l={start:{background:`#1b2f2a`,borderColor:`#2f6d5b`},condition:{background:`#2d2435`,borderColor:`#6b4f81`},action:{background:`#1f2b44`,borderColor:`#4366a9`}},u={next:`#8b9bb4`,true:`#34d399`,false:`#f87171`},d=(e,n)=>e.nodes.map((e,r)=>{let i=r%4,s=Math.floor(r/4);return{id:e.id,position:{x:i*a,y:s*o},data:{label:t.k(e)},draggable:!0,deletable:e.type!==`start`,style:{...c,...l[e.type],...n===e.id?{boxShadow:`0 0 0 2px #60a5fa`}:{}}}}),f=(e,n)=>e.edges.map(e=>{let r=e.branch??`next`;return{id:e.id,source:e.source,target:e.target,label:t.A(r),animated:n===e.id,markerEnd:{type:i.MarkerType.ArrowClosed,color:u[r]},style:{stroke:u[r],strokeWidth:n===e.id?2.5:1.6},labelStyle:{fill:`#d1d5db`,fontSize:11,fontWeight:700},labelBgStyle:{fill:`#111827`,fillOpacity:.85},labelBgPadding:[4,2],labelBgBorderRadius:4}});function p({blueprint:e,selectedNodeId:t,selectedEdgeId:a,onSelectNode:o,onSelectEdge:c,onDelete:l}){let u=n.default.useMemo(()=>d(e,t),[e,t]),p=n.default.useMemo(()=>f(e,a),[e,a]),[m,h,g]=(0,i.useNodesState)(u),[_,v,y]=(0,i.useEdgesState)(p);n.default.useEffect(()=>{h(e=>{let t=new Map(e.map(e=>[e.id,e.position]));return u.map(e=>{let n=t.get(e.id);return n?{...e,position:n}:e})})},[u,h]),n.default.useEffect(()=>{v(p)},[p,v]);let b=n.default.useCallback((e,t)=>{o(t.id)},[o]),x=n.default.useCallback((e,t)=>{c(t.id),o(t.source)},[c,o]);return(0,r.jsxs)(i.ReactFlow,{nodes:m,edges:_,onNodesChange:g,onEdgesChange:y,onNodeClick:b,onEdgeClick:x,onDelete:({nodes:e,edges:t})=>l(e.map(e=>e.id),t.map(e=>e.id)),deleteKeyCode:[`Backspace`,`Delete`],fitView:!0,fitViewOptions:{padding:.2},minZoom:.2,maxZoom:2,colorMode:`dark`,ariaLabelConfig:s,proOptions:{hideAttribution:!0},children:[(0,r.jsx)(i.MiniMap,{zoomable:!0,pannable:!0,nodeColor:`#64748b`}),(0,r.jsx)(i.Controls,{}),(0,r.jsx)(i.Background,{gap:20,size:1,color:`#334155`})]})}exports.BrainFlow=p;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { A as e, k as t } from "./shell-aiiC8SLL.js";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { Background as a, Controls as o, MarkerType as s, MiniMap as c, ReactFlow as l, useEdgesState as u, useNodesState as d } from "@xyflow/react";
|
|
5
|
+
//#region src/core/editor/components/panels/BuildingPanel/flow.tsx
|
|
6
|
+
var f = 240, p = 130, m = {
|
|
7
|
+
"node.a11yDescription.default": "Enter 또는 스페이스 키로 노드를 선택하세요. Delete 키로 삭제하고 Escape 키로 선택을 해제합니다.",
|
|
8
|
+
"node.a11yDescription.keyboardDisabled": "Enter 또는 스페이스 키로 노드를 선택하고 방향키로 이동하세요. Delete 키로 삭제하고 Escape 키로 선택을 해제합니다.",
|
|
9
|
+
"node.a11yDescription.ariaLiveMessage": ({ x: e, y: t }) => `선택한 노드를 이동했습니다. 위치: 가로 ${e}, 세로 ${t}`,
|
|
10
|
+
"edge.a11yDescription.default": "Enter 또는 스페이스 키로 연결을 선택하세요. Delete 키로 삭제하고 Escape 키로 선택을 해제합니다.",
|
|
11
|
+
"handle.ariaLabel": "노드 연결점",
|
|
12
|
+
"controls.ariaLabel": "행동 그래프 조작",
|
|
13
|
+
"controls.zoomIn.ariaLabel": "그래프 확대",
|
|
14
|
+
"controls.zoomOut.ariaLabel": "그래프 축소",
|
|
15
|
+
"controls.fitView.ariaLabel": "그래프 전체 보기",
|
|
16
|
+
"controls.interactive.ariaLabel": "그래프 조작 잠금 전환",
|
|
17
|
+
"minimap.ariaLabel": "행동 그래프 미니맵"
|
|
18
|
+
}, h = {
|
|
19
|
+
borderRadius: 10,
|
|
20
|
+
border: "1px solid #3b4258",
|
|
21
|
+
padding: "8px 10px",
|
|
22
|
+
color: "#e5e7eb",
|
|
23
|
+
background: "#182033",
|
|
24
|
+
minWidth: 140,
|
|
25
|
+
textAlign: "center",
|
|
26
|
+
fontSize: 12,
|
|
27
|
+
fontWeight: 600
|
|
28
|
+
}, g = {
|
|
29
|
+
start: {
|
|
30
|
+
background: "#1b2f2a",
|
|
31
|
+
borderColor: "#2f6d5b"
|
|
32
|
+
},
|
|
33
|
+
condition: {
|
|
34
|
+
background: "#2d2435",
|
|
35
|
+
borderColor: "#6b4f81"
|
|
36
|
+
},
|
|
37
|
+
action: {
|
|
38
|
+
background: "#1f2b44",
|
|
39
|
+
borderColor: "#4366a9"
|
|
40
|
+
}
|
|
41
|
+
}, _ = {
|
|
42
|
+
next: "#8b9bb4",
|
|
43
|
+
true: "#34d399",
|
|
44
|
+
false: "#f87171"
|
|
45
|
+
}, v = (e, n) => e.nodes.map((e, r) => {
|
|
46
|
+
let i = r % 4, a = Math.floor(r / 4);
|
|
47
|
+
return {
|
|
48
|
+
id: e.id,
|
|
49
|
+
position: {
|
|
50
|
+
x: i * f,
|
|
51
|
+
y: a * p
|
|
52
|
+
},
|
|
53
|
+
data: { label: t(e) },
|
|
54
|
+
draggable: !0,
|
|
55
|
+
deletable: e.type !== "start",
|
|
56
|
+
style: {
|
|
57
|
+
...h,
|
|
58
|
+
...g[e.type],
|
|
59
|
+
...n === e.id ? { boxShadow: "0 0 0 2px #60a5fa" } : {}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}), y = (t, n) => t.edges.map((t) => {
|
|
63
|
+
let r = t.branch ?? "next";
|
|
64
|
+
return {
|
|
65
|
+
id: t.id,
|
|
66
|
+
source: t.source,
|
|
67
|
+
target: t.target,
|
|
68
|
+
label: e(r),
|
|
69
|
+
animated: n === t.id,
|
|
70
|
+
markerEnd: {
|
|
71
|
+
type: s.ArrowClosed,
|
|
72
|
+
color: _[r]
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
stroke: _[r],
|
|
76
|
+
strokeWidth: n === t.id ? 2.5 : 1.6
|
|
77
|
+
},
|
|
78
|
+
labelStyle: {
|
|
79
|
+
fill: "#d1d5db",
|
|
80
|
+
fontSize: 11,
|
|
81
|
+
fontWeight: 700
|
|
82
|
+
},
|
|
83
|
+
labelBgStyle: {
|
|
84
|
+
fill: "#111827",
|
|
85
|
+
fillOpacity: .85
|
|
86
|
+
},
|
|
87
|
+
labelBgPadding: [4, 2],
|
|
88
|
+
labelBgBorderRadius: 4
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
function b({ blueprint: e, selectedNodeId: t, selectedEdgeId: s, onSelectNode: f, onSelectEdge: p, onDelete: h }) {
|
|
92
|
+
let g = n.useMemo(() => v(e, t), [e, t]), _ = n.useMemo(() => y(e, s), [e, s]), [b, x, S] = d(g), [C, w, T] = u(_);
|
|
93
|
+
n.useEffect(() => {
|
|
94
|
+
x((e) => {
|
|
95
|
+
let t = new Map(e.map((e) => [e.id, e.position]));
|
|
96
|
+
return g.map((e) => {
|
|
97
|
+
let n = t.get(e.id);
|
|
98
|
+
return n ? {
|
|
99
|
+
...e,
|
|
100
|
+
position: n
|
|
101
|
+
} : e;
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
}, [g, x]), n.useEffect(() => {
|
|
105
|
+
w(_);
|
|
106
|
+
}, [_, w]);
|
|
107
|
+
let E = n.useCallback((e, t) => {
|
|
108
|
+
f(t.id);
|
|
109
|
+
}, [f]), D = n.useCallback((e, t) => {
|
|
110
|
+
p(t.id), f(t.source);
|
|
111
|
+
}, [p, f]);
|
|
112
|
+
return /* @__PURE__ */ i(l, {
|
|
113
|
+
nodes: b,
|
|
114
|
+
edges: C,
|
|
115
|
+
onNodesChange: S,
|
|
116
|
+
onEdgesChange: T,
|
|
117
|
+
onNodeClick: E,
|
|
118
|
+
onEdgeClick: D,
|
|
119
|
+
onDelete: ({ nodes: e, edges: t }) => h(e.map((e) => e.id), t.map((e) => e.id)),
|
|
120
|
+
deleteKeyCode: ["Backspace", "Delete"],
|
|
121
|
+
fitView: !0,
|
|
122
|
+
fitViewOptions: { padding: .2 },
|
|
123
|
+
minZoom: .2,
|
|
124
|
+
maxZoom: 2,
|
|
125
|
+
colorMode: "dark",
|
|
126
|
+
ariaLabelConfig: m,
|
|
127
|
+
proOptions: { hideAttribution: !0 },
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ r(c, {
|
|
130
|
+
zoomable: !0,
|
|
131
|
+
pannable: !0,
|
|
132
|
+
nodeColor: "#64748b"
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ r(o, {}),
|
|
135
|
+
/* @__PURE__ */ r(a, {
|
|
136
|
+
gap: 20,
|
|
137
|
+
size: 1,
|
|
138
|
+
color: "#334155"
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
export { b as BrainFlow };
|