@woosh/meep-engine 2.169.6 → 2.170.0
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/build/bundle-worker-terrain.js +1 -1
- package/editor/Editor.d.ts +161 -65
- package/editor/Editor.d.ts.map +1 -1
- package/editor/Editor.js +669 -794
- package/editor/EditorCameraNavigation.d.ts +21 -0
- package/editor/EditorCameraNavigation.d.ts.map +1 -0
- package/editor/EditorCameraNavigation.js +191 -0
- package/editor/EditorKeyMap.d.ts +28 -0
- package/editor/EditorKeyMap.d.ts.map +1 -0
- package/editor/EditorKeyMap.js +182 -0
- package/editor/REWORK_PLAN_2026_08.md +692 -0
- package/editor/SelectionVisualizer.d.ts +48 -19
- package/editor/SelectionVisualizer.d.ts.map +1 -1
- package/editor/SelectionVisualizer.js +163 -156
- package/editor/actions/concrete/ActionUpdateTexture.d.ts +11 -11
- package/editor/actions/concrete/ArrayCopyAction.d.ts +19 -19
- package/editor/actions/concrete/ArrayCopyAction.d.ts.map +1 -1
- package/editor/actions/concrete/ArrayCopyAction.js +7 -7
- package/editor/actions/concrete/ComponentAddAction.d.ts +14 -14
- package/editor/actions/concrete/ComponentAddAction.d.ts.map +1 -1
- package/editor/actions/concrete/ComponentAddAction.js +6 -5
- package/editor/actions/concrete/ComponentRemoveAction.d.ts +10 -10
- package/editor/actions/concrete/ComponentRemoveAction.d.ts.map +1 -1
- package/editor/actions/concrete/ComponentRemoveAction.js +10 -12
- package/editor/actions/concrete/EntityCreateAction.d.ts +17 -17
- package/editor/actions/concrete/EntityCreateAction.d.ts.map +1 -1
- package/editor/actions/concrete/EntityCreateAction.js +11 -14
- package/editor/actions/concrete/EntityRemoveAction.d.ts +10 -10
- package/editor/actions/concrete/EntityRemoveAction.d.ts.map +1 -1
- package/editor/actions/concrete/EntityRemoveAction.js +2 -1
- package/editor/actions/concrete/ModifyPatchSampler2DAction.d.ts +46 -46
- package/editor/actions/concrete/ModifyPatchTextureArray2DAction.d.ts +37 -37
- package/editor/actions/concrete/ModifyPatchTextureArray2DAction.d.ts.map +1 -1
- package/editor/actions/concrete/ModifyPatchTextureArray2DAction.js +3 -1
- package/editor/actions/concrete/PaintTerrainOverlayAction.d.ts +22 -22
- package/editor/actions/concrete/PaintTerrainOverlayAction.d.ts.map +1 -1
- package/editor/actions/concrete/PaintTerrainOverlayAction.js +3 -3
- package/editor/actions/concrete/PatchTerrainHeightAction.d.ts +31 -18
- package/editor/actions/concrete/PatchTerrainHeightAction.d.ts.map +1 -1
- package/editor/actions/concrete/PatchTerrainHeightAction.js +28 -9
- package/editor/actions/concrete/SelectionAddAction.d.ts +18 -18
- package/editor/actions/concrete/SelectionAddAction.d.ts.map +1 -1
- package/editor/actions/concrete/SelectionAddAction.js +2 -1
- package/editor/actions/concrete/SelectionClearAction.d.ts +8 -8
- package/editor/actions/concrete/SelectionClearAction.d.ts.map +1 -1
- package/editor/actions/concrete/SelectionClearAction.js +1 -4
- package/editor/actions/concrete/SelectionRemoveAction.d.ts +9 -9
- package/editor/actions/concrete/SelectionRemoveAction.d.ts.map +1 -1
- package/editor/actions/concrete/SelectionRemoveAction.js +2 -1
- package/editor/actions/concrete/TransformModifyAction.d.ts +16 -16
- package/editor/actions/concrete/TransformModifyAction.d.ts.map +1 -1
- package/editor/actions/concrete/TransformModifyAction.js +8 -8
- package/editor/actions/concrete/WriteGridValueAction.d.ts +13 -14
- package/editor/actions/concrete/WriteGridValueAction.d.ts.map +1 -1
- package/editor/actions/concrete/WriteGridValueAction.js +3 -3
- package/editor/camera/camera_framing.d.ts +30 -0
- package/editor/camera/camera_framing.d.ts.map +1 -0
- package/editor/camera/camera_framing.js +98 -0
- package/editor/clipboard.d.ts +19 -0
- package/editor/clipboard.d.ts.map +1 -0
- package/editor/clipboard.js +184 -0
- package/editor/ecs/EditorEntity.d.ts +15 -15
- package/editor/ecs/EditorEntitySystem.d.ts +7 -7
- package/editor/ecs/EditorEntitySystem.d.ts.map +1 -1
- package/editor/ecs/EditorEntitySystem.js +1 -6
- package/editor/ecs/component/FieldDescriptor.d.ts +26 -26
- package/editor/ecs/component/FieldDescriptor.d.ts.map +1 -1
- package/editor/ecs/component/FieldDescriptor.js +20 -22
- package/editor/ecs/component/FieldValueAdapter.d.ts +6 -6
- package/editor/ecs/component/FieldValueAdapter.d.ts.map +1 -1
- package/editor/ecs/component/FieldValueAdapter.js +2 -5
- package/editor/ecs/component/TypeEditor.d.ts +24 -24
- package/editor/ecs/component/createFieldEditor.d.ts +8 -8
- package/editor/ecs/component/createObjectEditor.d.ts +13 -13
- package/editor/ecs/component/editors/ColorEditor.d.ts +6 -6
- package/editor/ecs/component/editors/HTMLElementEditor.d.ts +6 -6
- package/editor/ecs/component/editors/HTMLElementEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ImagePathEditor.d.ts +6 -6
- package/editor/ecs/component/editors/LargeStringEditor.d.ts +15 -15
- package/editor/ecs/component/editors/NumericIntervalEditor.d.ts +6 -6
- package/editor/ecs/component/editors/NumericIntervalEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ObservedBooleanEditor.d.ts +6 -6
- package/editor/ecs/component/editors/ObservedEnumEditor.d.ts +6 -6
- package/editor/ecs/component/editors/ObservedIntegerEditor.d.ts +6 -6
- package/editor/ecs/component/editors/ObservedIntegerEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ObservedStringEditor.d.ts +6 -6
- package/editor/ecs/component/editors/ObservedStringEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/Sampler2DEditor.d.ts +6 -6
- package/editor/ecs/component/editors/collection/ListEditor.d.ts +7 -7
- package/editor/ecs/component/editors/common/BitFlagsEditor.d.ts +11 -11
- package/editor/ecs/component/editors/common/EnumEditor.d.ts +7 -7
- package/editor/ecs/component/editors/common/makeV3_editor.d.ts +14 -14
- package/editor/ecs/component/editors/common/makeV3_editor.d.ts.map +1 -1
- package/editor/ecs/component/editors/common/noEditor.d.ts +2 -2
- package/editor/ecs/component/editors/common/two_way_sync.d.ts +22 -0
- package/editor/ecs/component/editors/common/two_way_sync.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/GridObstacleEditor.d.ts +6 -6
- package/editor/ecs/component/editors/ecs/GridObstacleEditor.js +1 -1
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts +19 -66
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.js +35 -239
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts +11 -11
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ecs/ParameterTrackEditor.js +17 -17
- package/editor/ecs/component/editors/ecs/ParameterTrackSetEditor.d.ts +13 -13
- package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.d.ts +51 -51
- package/editor/ecs/component/editors/ecs/ParticleEmitterEditor.js +1 -1
- package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts +46 -47
- package/editor/ecs/component/editors/ecs/ParticleEmitterLayerEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/ecs/SimulationStepDefinitionEditor.d.ts +15 -15
- package/editor/ecs/component/editors/ecs/Trail2DEditor.d.ts +29 -29
- package/editor/ecs/component/editors/ecs/Trail3DEditor.d.ts +42 -0
- package/editor/ecs/component/editors/ecs/Trail3DEditor.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/TransformEditor.d.ts +19 -19
- package/editor/ecs/component/editors/ecs/buildGridObstaclePreview.d.ts +8 -0
- package/editor/ecs/component/editors/ecs/buildGridObstaclePreview.d.ts.map +1 -0
- package/editor/ecs/component/editors/ecs/buildGridObstaclePreview.js +19 -0
- package/editor/ecs/component/editors/ecs/terrain/SplatMappingEditor.d.ts +18 -18
- package/editor/ecs/component/editors/ecs/terrain/TerrainEditor.d.ts +38 -38
- package/editor/ecs/component/editors/ecs/terrain/TerrainLayerEditor.d.ts +15 -15
- package/editor/ecs/component/editors/ecs/terrain/TerrainLayersEditor.d.ts +18 -18
- package/editor/ecs/component/editors/ecs/terrain/TerrainOverlayEditor.d.ts +17 -17
- package/editor/ecs/component/editors/geom/QuaternionEditor.d.ts +5 -5
- package/editor/ecs/component/editors/geom/QuaternionEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/geom/Vector1Editor.d.ts +6 -6
- package/editor/ecs/component/editors/geom/Vector1Editor.d.ts.map +1 -1
- package/editor/ecs/component/editors/geom/Vector2Editor.d.ts +5 -5
- package/editor/ecs/component/editors/geom/Vector3Editor.d.ts +5 -5
- package/editor/ecs/component/editors/geom/Vector4Editor.d.ts +5 -5
- package/editor/ecs/component/editors/primitive/ArrayEditor.d.ts +7 -7
- package/editor/ecs/component/editors/primitive/BooleanEditor.d.ts +6 -6
- package/editor/ecs/component/editors/primitive/FunctionEditor.d.ts +6 -6
- package/editor/ecs/component/editors/primitive/NumberEditor.d.ts +7 -7
- package/editor/ecs/component/editors/primitive/NumberEditor.d.ts.map +1 -1
- package/editor/ecs/component/editors/primitive/ObjectEditor.d.ts +5 -5
- package/editor/ecs/component/editors/primitive/StringEditor.d.ts +6 -6
- package/editor/ecs/component/editors/three/BufferGeometryEditor.d.ts +6 -6
- package/editor/ecs/component/editors/three/MaterialEditor.d.ts +6 -6
- package/editor/ecs/component/editors/three/MeshEditor.d.ts +6 -6
- package/editor/ecs/component/editors/three/TextureEditor.d.ts +6 -6
- package/editor/ecs/component/findNearestRegisteredType.d.ts +7 -7
- package/editor/ecs/component/registerEngineComponentEditors.d.ts +8 -0
- package/editor/ecs/component/registerEngineComponentEditors.d.ts.map +1 -0
- package/editor/ecs/component/registerEngineComponentEditors.js +85 -0
- package/editor/enableEditor.d.ts +13 -13
- package/editor/enableEditor.d.ts.map +1 -1
- package/editor/enableEditor.js +14 -4
- package/editor/library/MeshLibrary.d.ts +12 -12
- package/editor/library/MeshLibrary.d.ts.map +1 -1
- package/editor/library/MeshLibrary.js +4 -7
- package/editor/particles/lut_ops.d.ts +34 -0
- package/editor/particles/lut_ops.d.ts.map +1 -0
- package/editor/particles/lut_ops.js +148 -0
- package/editor/particles/particleEditEvents.d.ts +11 -0
- package/editor/particles/particleEditEvents.d.ts.map +1 -0
- package/editor/particles/particleEditEvents.js +12 -0
- package/editor/particles/rebuildParticleEmitter.d.ts +11 -0
- package/editor/particles/rebuildParticleEmitter.d.ts.map +1 -0
- package/editor/particles/rebuildParticleEmitter.js +49 -0
- package/editor/persistence/EditorLayoutStore.d.ts +30 -0
- package/editor/persistence/EditorLayoutStore.d.ts.map +1 -0
- package/editor/persistence/EditorLayoutStore.js +71 -0
- package/editor/persistence/SceneMetadata.d.ts +38 -0
- package/editor/persistence/SceneMetadata.d.ts.map +1 -0
- package/editor/persistence/SceneMetadata.js +52 -0
- package/editor/persistence/SceneSlotManager.d.ts +40 -0
- package/editor/persistence/SceneSlotManager.d.ts.map +1 -0
- package/editor/persistence/SceneSlotManager.js +144 -0
- package/editor/persistence/buildNewSceneDataset.d.ts +10 -0
- package/editor/persistence/buildNewSceneDataset.d.ts.map +1 -0
- package/editor/persistence/buildNewSceneDataset.js +67 -0
- package/editor/persistence/files.d.ts +24 -0
- package/editor/persistence/files.d.ts.map +1 -0
- package/editor/persistence/files.js +68 -0
- package/editor/persistence/scene_import.d.ts +45 -0
- package/editor/persistence/scene_import.d.ts.map +1 -0
- package/editor/persistence/scene_import.js +143 -0
- package/editor/persistence/scene_serialization.d.ts +36 -0
- package/editor/persistence/scene_serialization.d.ts.map +1 -0
- package/editor/persistence/scene_serialization.js +79 -0
- package/editor/persistence/string_buffer_codec.d.ts +20 -0
- package/editor/persistence/string_buffer_codec.d.ts.map +1 -0
- package/editor/persistence/string_buffer_codec.js +41 -0
- package/editor/process/DisableGameUIProcess.d.ts +7 -7
- package/editor/process/DisableGameUIProcess.d.ts.map +1 -1
- package/editor/process/DisableGameUIProcess.js +1 -5
- package/editor/process/EditorProcess.d.ts +18 -18
- package/editor/process/GridDisplayProcess.d.ts +16 -0
- package/editor/process/GridDisplayProcess.d.ts.map +1 -0
- package/editor/process/GridDisplayProcess.js +53 -0
- package/editor/process/ObstacleGridDisplayProcess.d.ts +12 -12
- package/editor/process/ObstacleGridDisplayProcess.d.ts.map +1 -1
- package/editor/process/ObstacleGridDisplayProcess.js +7 -9
- package/editor/process/ParticleEmitterRebuildProcess.d.ts +66 -0
- package/editor/process/ParticleEmitterRebuildProcess.d.ts.map +1 -0
- package/editor/process/ParticleEmitterRebuildProcess.js +217 -0
- package/editor/process/ProcessEngine.d.ts +29 -29
- package/editor/process/ProcessEngine.d.ts.map +1 -1
- package/editor/process/ProcessEngine.js +11 -4
- package/editor/process/SymbolicDisplayProcess.d.ts +18 -18
- package/editor/process/SymbolicDisplayProcess.js +2 -2
- package/editor/process/symbolic/ComponentSymbolicDisplay.d.ts +10 -10
- package/editor/process/symbolic/SymbolicDisplayInternalAPI.d.ts +67 -64
- package/editor/process/symbolic/SymbolicDisplayInternalAPI.d.ts.map +1 -1
- package/editor/process/symbolic/SymbolicDisplayInternalAPI.js +42 -45
- package/editor/process/symbolic/buildThreeJSHelperEntity.d.ts +8 -8
- package/editor/process/symbolic/make3DSymbolicDisplay.d.ts +9 -9
- package/editor/process/symbolic/makeCameraSymbolicDisplay.d.ts +6 -6
- package/editor/process/symbolic/makeGridPositionSymbolDisplay.d.ts +5 -5
- package/editor/process/symbolic/makeHelperBoxGeometry.d.ts +2 -2
- package/editor/process/symbolic/makeHelperSphereGeometry.d.ts +8 -8
- package/editor/process/symbolic/makeLightSymbolicDisplay.d.ts +6 -6
- package/editor/process/symbolic/makeParticleEmitterSymbolicDisplay.d.ts +5 -5
- package/editor/process/symbolic/makeParticleEmitterSymbolicDisplay.d.ts.map +1 -1
- package/editor/process/symbolic/makeParticleEmitterSymbolicDisplay.js +21 -1
- package/editor/process/symbolic/makePathSymbolicDisplay.d.ts +6 -6
- package/editor/process/symbolic/makePositionedIconDisplaySymbol.d.ts +8 -8
- package/editor/process/symbolic/makePositionedIconDisplaySymbol.d.ts.map +1 -1
- package/editor/process/symbolic/makePositionedIconDisplaySymbol.js +3 -0
- package/editor/process/symbolic/makeSocketsSymbolicDisplay.d.ts +6 -6
- package/editor/process/symbolic/makeSolidArrowGeometry.d.ts +25 -25
- package/editor/process/symbolic/makeSoundEmitterSymbolicDisplay.d.ts +5 -5
- package/editor/process/symbolic/synchronizeTransform.d.ts +11 -11
- package/editor/prototypeEditorShell.js +102 -0
- package/editor/style/controls.scss +168 -0
- package/editor/style/editor.scss +313 -0
- package/editor/style/inspector.scss +223 -0
- package/editor/templates/entity_templates.d.ts +19 -0
- package/editor/templates/entity_templates.d.ts.map +1 -0
- package/editor/templates/entity_templates.js +167 -0
- package/editor/tools/GridPaintTool.d.ts +17 -16
- package/editor/tools/GridPaintTool.d.ts.map +1 -1
- package/editor/tools/GridPaintTool.js +13 -14
- package/editor/tools/SelectionTool.d.ts +25 -26
- package/editor/tools/SelectionTool.d.ts.map +1 -1
- package/editor/tools/SelectionTool.js +46 -13
- package/editor/tools/TransformToolV2.d.ts +76 -0
- package/editor/tools/TransformToolV2.d.ts.map +1 -0
- package/editor/tools/TransformToolV2.js +396 -0
- package/editor/tools/engine/Tool.d.ts +87 -63
- package/editor/tools/engine/Tool.d.ts.map +1 -1
- package/editor/tools/engine/Tool.js +72 -28
- package/editor/tools/engine/ToolEngine.d.ts +21 -22
- package/editor/tools/engine/ToolEngine.d.ts.map +1 -1
- package/editor/tools/engine/ToolEngine.js +52 -54
- package/editor/tools/engine/ToolState.d.ts +6 -6
- package/editor/tools/paint/TerrainHeightPaintTool.d.ts +17 -17
- package/editor/tools/paint/TerrainHeightPaintTool.d.ts.map +1 -1
- package/editor/tools/paint/TerrainHeightPaintTool.js +12 -7
- package/editor/tools/paint/TerrainPaintTool.d.ts +81 -30
- package/editor/tools/paint/TerrainPaintTool.d.ts.map +1 -1
- package/editor/tools/paint/TerrainPaintTool.js +58 -21
- package/editor/tools/paint/TerrainTexturePaintTool.d.ts +18 -17
- package/editor/tools/paint/TerrainTexturePaintTool.d.ts.map +1 -1
- package/editor/tools/paint/TerrainTexturePaintTool.js +75 -12
- package/editor/tools/v2/BlenderCameraOrientationGizmo.js +24 -26
- package/editor/tools/v2/GizmoNode.d.ts.map +1 -1
- package/editor/tools/v2/GizmoNode.js +14 -13
- package/editor/tools/v2/TransformControls.d.ts.map +1 -1
- package/editor/tools/v2/TransformControls.js +18 -45
- package/editor/tools/v2/TransformControlsGizmo.d.ts.map +1 -1
- package/editor/tools/v2/TransformControlsGizmo.js +3 -6
- package/editor/tools/v2/TransformControlsPlane.d.ts.map +1 -1
- package/editor/tools/v2/TransformControlsPlane.js +3 -5
- package/editor/tools/v2/TransformMode.d.ts +6 -6
- package/editor/view/ecs/ComponentControlView.d.ts +23 -23
- package/editor/view/ecs/ComponentControlView.d.ts.map +1 -1
- package/editor/view/ecs/ComponentControlView.js +4 -4
- package/editor/view/ecs/EntityEditor.d.ts +24 -29
- package/editor/view/ecs/EntityEditor.d.ts.map +1 -1
- package/editor/view/ecs/EntityEditor.js +34 -10
- package/editor/view/ecs/EntityList.js +2 -3
- package/editor/view/ecs/HierarchicalEntityListView.d.ts +24 -7
- package/editor/view/ecs/HierarchicalEntityListView.d.ts.map +1 -1
- package/editor/view/ecs/HierarchicalEntityListView.js +339 -191
- package/editor/view/ecs/components/DatGuiController.js +2 -216
- package/editor/view/ecs/components/color/GaugeView.d.ts +12 -12
- package/editor/view/ecs/components/common/AutoCanvasView.d.ts +29 -19
- package/editor/view/ecs/components/common/AutoCanvasView.d.ts.map +1 -1
- package/editor/view/ecs/components/common/LineView.d.ts +11 -11
- package/editor/view/ecs/components/common/LineView.d.ts.map +1 -1
- package/editor/view/ecs/components/common/LineView.js +2 -1
- package/editor/view/ecs/components/common/NumberController.d.ts +17 -17
- package/editor/view/ecs/components/common/TextController.d.ts +21 -0
- package/editor/view/ecs/components/common/TextController.d.ts.map +1 -0
- package/editor/view/library/MeshLibraryView.d.ts +17 -0
- package/editor/view/library/MeshLibraryView.d.ts.map +1 -0
- package/editor/view/library/MeshLibraryView.js +35 -20
- package/editor/view/node-graph/NodeGraphCamera.d.ts +48 -0
- package/editor/view/node-graph/NodeGraphCamera.d.ts.map +1 -0
- package/editor/view/node-graph/NodeGraphCamera.js +88 -90
- package/editor/view/node-graph/NodeGraphEditorView.d.ts +25 -2
- package/editor/view/node-graph/NodeGraphEditorView.d.ts.map +1 -1
- package/editor/view/node-graph/NodeGraphSelection.d.ts +56 -0
- package/editor/view/node-graph/NodeGraphSelection.d.ts.map +1 -0
- package/editor/view/node-graph/NodeGraphView.d.ts +35 -18
- package/editor/view/node-graph/NodeGraphView.d.ts.map +1 -1
- package/editor/view/node-graph/NodeGraphView.js +666 -669
- package/editor/view/node-graph/NodeView.d.ts +3 -2
- package/editor/view/node-graph/NodeView.d.ts.map +1 -1
- package/editor/view/node-graph/PortView.d.ts +2 -2
- package/editor/view/node-graph/PortView.d.ts.map +1 -1
- package/editor/view/node-graph/PortView.js +2 -2
- package/editor/view/node-graph/actions/ConnectionCreateAction.d.ts +34 -0
- package/editor/view/node-graph/actions/ConnectionCreateAction.d.ts.map +1 -0
- package/editor/view/node-graph/actions/ConnectionCreateAction.js +53 -53
- package/editor/view/node-graph/actions/ConnectionDeleteAction.d.ts +26 -0
- package/editor/view/node-graph/actions/ConnectionDeleteAction.d.ts.map +1 -0
- package/editor/view/node-graph/actions/NodeDeleteAction.d.ts +47 -0
- package/editor/view/node-graph/actions/NodeDeleteAction.d.ts.map +1 -0
- package/editor/view/node-graph/actions/NodeDeleteAction.js +88 -88
- package/editor/view/node-graph/actions/NodeParameterSetAction.d.ts +34 -0
- package/editor/view/node-graph/actions/NodeParameterSetAction.d.ts.map +1 -0
- package/editor/view/node-graph/actions/NodeParameterSetAction.js +52 -52
- package/editor/view/node-graph/actions/NodesMoveAction.d.ts +38 -0
- package/editor/view/node-graph/actions/NodesMoveAction.d.ts.map +1 -0
- package/editor/view/node-graph/actions/SelectionSetAction.d.ts +38 -0
- package/editor/view/node-graph/actions/SelectionSetAction.d.ts.map +1 -0
- package/editor/view/node-graph/actions/SelectionSetAction.js +60 -60
- package/editor/view/node-graph/connection_wire_geometry.d.ts +46 -0
- package/editor/view/node-graph/connection_wire_geometry.d.ts.map +1 -0
- package/editor/view/particles/ColorLutGradientView.d.ts +19 -0
- package/editor/view/particles/ColorLutGradientView.d.ts.map +1 -0
- package/editor/view/particles/ColorLutGradientView.js +291 -0
- package/editor/view/particles/ScalarLutCurveView.d.ts +19 -0
- package/editor/view/particles/ScalarLutCurveView.d.ts.map +1 -0
- package/editor/view/particles/ScalarLutCurveView.js +279 -0
- package/editor/view/prepareMeshLibrary.d.ts +7 -0
- package/editor/view/prepareMeshLibrary.d.ts.map +1 -0
- package/editor/view/prepareMeshLibrary.js +34 -14
- package/editor/view/shell/EditorShellView.d.ts +18 -0
- package/editor/view/shell/EditorShellView.d.ts.map +1 -0
- package/editor/view/shell/EditorShellView.js +442 -0
- package/editor/view/shell/SceneTreePanelView.d.ts +17 -0
- package/editor/view/shell/SceneTreePanelView.d.ts.map +1 -0
- package/editor/view/shell/SceneTreePanelView.js +119 -0
- package/editor/view/shell/ViewportPanelView.d.ts +18 -0
- package/editor/view/shell/ViewportPanelView.d.ts.map +1 -0
- package/editor/view/shell/ViewportPanelView.js +64 -0
- package/editor/view/tools/ToolSettingsView.d.ts +21 -10
- package/editor/view/tools/ToolSettingsView.d.ts.map +1 -1
- package/editor/view/tools/ToolSettingsView.js +114 -100
- package/editor/view/tools/ToolView.d.ts +12 -12
- package/editor/view/v2/SplitView.js +2 -104
- package/package.json +7 -1
- package/samples/terrain/editor.js +9 -13
- package/src/core/binary/BitSet.d.ts.map +1 -1
- package/src/core/binary/BitSet.js +7 -7
- package/src/core/binary/type/Field.d.ts +2 -2
- package/src/core/binary/type/Field.d.ts.map +1 -1
- package/src/core/binary/type/Field.js +3 -2
- package/src/core/binary/type/Type.d.ts +5 -5
- package/src/core/binary/type/Type.d.ts.map +1 -1
- package/src/core/binary/type/Type.js +18 -15
- package/src/core/binary/type/TypeBuilder.d.ts +1 -1
- package/src/core/binary/type/TypeBuilder.d.ts.map +1 -1
- package/src/core/binary/type/TypeBuilder.js +2 -1
- package/src/core/binary/type/TypeRegistry.d.ts.map +1 -1
- package/src/core/binary/type/TypeRegistry.js +1 -3
- package/src/core/cache/Cache.d.ts +8 -8
- package/src/core/cache/Cache.d.ts.map +1 -1
- package/src/core/cache/Cache.js +14 -15
- package/src/core/cache/CacheV2.d.ts.map +1 -1
- package/src/core/cache/CacheV2.js +15 -20
- package/src/core/cache/LoadingCache.d.ts.map +1 -1
- package/src/core/cache/LoadingCache.js +3 -2
- package/src/core/collection/CuckooFilter.d.ts +23 -23
- package/src/core/collection/CuckooFilter.d.ts.map +1 -1
- package/src/core/collection/CuckooFilter.js +27 -26
- package/src/core/collection/PairUint32Map.d.ts +1 -1
- package/src/core/collection/PairUint32Map.d.ts.map +1 -1
- package/src/core/collection/PairUint32Map.js +322 -321
- package/src/core/collection/RingBuffer.d.ts +5 -5
- package/src/core/collection/RingBuffer.d.ts.map +1 -1
- package/src/core/collection/RingBuffer.js +18 -18
- package/src/core/collection/Uint32Map.d.ts +5 -5
- package/src/core/collection/Uint32Map.d.ts.map +1 -1
- package/src/core/collection/Uint32Map.js +346 -345
- package/src/core/collection/Uint32MinHeap.d.ts +4 -4
- package/src/core/collection/Uint32MinHeap.d.ts.map +1 -1
- package/src/core/collection/Uint32MinHeap.js +109 -109
- package/src/core/collection/array/iterator/ArrayIteratorRandom.d.ts.map +1 -1
- package/src/core/collection/array/iterator/ArrayIteratorRandom.js +3 -8
- package/src/core/collection/heap/FibonacciHeap.d.ts +6 -6
- package/src/core/collection/heap/FibonacciHeap.d.ts.map +1 -1
- package/src/core/collection/heap/FibonacciHeap.js +586 -586
- package/src/core/collection/heap/IndexedFloatMaxHeap.d.ts +1 -1
- package/src/core/collection/heap/IndexedFloatMaxHeap.d.ts.map +1 -1
- package/src/core/collection/heap/IndexedFloatMaxHeap.js +261 -261
- package/src/core/collection/heap/IndexedFloatMinHeap.d.ts +1 -1
- package/src/core/collection/heap/IndexedFloatMinHeap.d.ts.map +1 -1
- package/src/core/collection/heap/IndexedFloatMinHeap.js +268 -268
- package/src/core/collection/heap/Uint32Heap.d.ts +6 -6
- package/src/core/collection/heap/Uint32Heap.d.ts.map +1 -1
- package/src/core/collection/heap/Uint32Heap.js +7 -7
- package/src/core/collection/heap/Uint32Heap4.d.ts +6 -6
- package/src/core/collection/heap/Uint32Heap4.d.ts.map +1 -1
- package/src/core/collection/heap/Uint32Heap4.js +490 -490
- package/src/core/collection/list/FilteredListProjection.d.ts +7 -7
- package/src/core/collection/list/FilteredListProjection.d.ts.map +1 -1
- package/src/core/collection/list/FilteredListProjection.js +12 -12
- package/src/core/collection/list/SortedListProjection.d.ts +2 -2
- package/src/core/collection/list/SortedListProjection.d.ts.map +1 -1
- package/src/core/collection/list/SortedListProjection.js +6 -6
- package/src/core/collection/table/RowFirstTable.d.ts +5 -5
- package/src/core/collection/table/RowFirstTable.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTable.js +6 -7
- package/src/core/collection/table/RowFirstTableSpec.d.ts +10 -2
- package/src/core/collection/table/RowFirstTableSpec.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTableSpec.js +10 -1
- package/src/core/function/FunctionCompiler.d.ts.map +1 -1
- package/src/core/function/FunctionCompiler.js +13 -15
- package/src/core/geom/3d/shape/BoxShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/BoxShape3D.js +171 -175
- package/src/core/geom/3d/shape/CapsuleShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/CapsuleShape3D.js +238 -242
- package/src/core/geom/3d/shape/ConvexHullShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/ConvexHullShape3D.js +43 -44
- package/src/core/geom/3d/shape/CylinderShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/CylinderShape3D.js +220 -224
- package/src/core/geom/3d/shape/HeightMapShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/HeightMapShape3D.js +58 -61
- package/src/core/geom/3d/shape/MeshShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/MeshShape3D.js +76 -80
- package/src/core/geom/3d/shape/PosedShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/PosedShape3D.js +160 -159
- package/src/core/geom/3d/shape/SphereShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/SphereShape3D.js +143 -146
- package/src/core/geom/3d/shape/TransformedShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/TransformedShape3D.js +20 -24
- package/src/core/geom/3d/shape/Triangle3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/Triangle3D.js +293 -297
- package/src/core/geom/3d/shape/UnionShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/UnionShape3D.js +15 -19
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts +15 -15
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +21 -21
- package/src/core/geom/3d/topology/simplify/EdgeCollapseCandidate.d.ts.map +1 -1
- package/src/core/geom/3d/topology/simplify/EdgeCollapseCandidate.js +36 -36
- package/src/core/geom/packing/max-rect/MaxRectanglesPacker.d.ts +6 -6
- package/src/core/geom/packing/max-rect/MaxRectanglesPacker.d.ts.map +1 -1
- package/src/core/geom/packing/max-rect/MaxRectanglesPacker.js +8 -8
- package/src/core/graph/layout/Connection.d.ts +2 -2
- package/src/core/graph/layout/Connection.d.ts.map +1 -1
- package/src/core/graph/layout/Connection.js +6 -6
- package/src/core/graph/metis/native/MetisGraph.d.ts.map +1 -1
- package/src/core/graph/metis/native/MetisGraph.js +232 -231
- package/src/core/graph/metis/native/bisection/BisectionScratch.d.ts +3 -3
- package/src/core/graph/metis/native/bisection/BisectionScratch.d.ts.map +1 -1
- package/src/core/graph/metis/native/bisection/BisectionScratch.js +104 -103
- package/src/core/localization/Localization.d.ts.map +1 -1
- package/src/core/localization/Localization.js +35 -37
- package/src/core/model/BooleanVector3.d.ts +1 -1
- package/src/core/model/BooleanVector3.d.ts.map +1 -1
- package/src/core/model/BooleanVector3.js +2 -2
- package/src/core/model/ObservedValue.d.ts +2 -2
- package/src/core/model/ObservedValue.d.ts.map +1 -1
- package/src/core/model/ObservedValue.js +8 -6
- package/src/core/model/object/ImmutableObjectPool.d.ts +5 -5
- package/src/core/model/object/ImmutableObjectPool.d.ts.map +1 -1
- package/src/core/model/object/ImmutableObjectPool.js +6 -7
- package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.d.ts +5 -5
- package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.d.ts.map +1 -1
- package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.js +93 -96
- package/src/core/model/reactive/model/terminal/ReactiveReference.d.ts +4 -4
- package/src/core/model/reactive/model/terminal/ReactiveReference.d.ts.map +1 -1
- package/src/core/model/reactive/model/terminal/ReactiveReference.js +6 -6
- package/src/core/model/stat/LinearModifier.d.ts +10 -10
- package/src/core/model/stat/LinearModifier.d.ts.map +1 -1
- package/src/core/model/stat/LinearModifier.js +12 -12
- package/src/core/process/Future.d.ts +1 -1
- package/src/core/process/Future.d.ts.map +1 -1
- package/src/core/process/Future.js +6 -7
- package/src/core/process/action/AsynchronousActionSequence.d.ts +5 -5
- package/src/core/process/action/AsynchronousActionSequence.d.ts.map +1 -1
- package/src/core/process/action/AsynchronousActionSequence.js +9 -9
- package/src/core/process/executor/profile/ConcurrentExecutorProfiler.d.ts.map +1 -1
- package/src/core/process/executor/profile/ConcurrentExecutorProfiler.js +19 -20
- package/src/core/process/filter/MutableFilter.d.ts.map +1 -1
- package/src/core/process/filter/MutableFilter.js +1 -6
- package/src/core/process/task/RemainingTimeEstimator.d.ts +1 -1
- package/src/core/process/task/RemainingTimeEstimator.d.ts.map +1 -1
- package/src/core/process/task/RemainingTimeEstimator.js +2 -1
- package/src/core/process/undo/ActionProcessor.d.ts +36 -17
- package/src/core/process/undo/ActionProcessor.d.ts.map +1 -1
- package/src/core/process/undo/ActionProcessor.js +131 -136
- package/src/core/science/units/UnitMatrix.d.ts.map +1 -1
- package/src/core/science/units/UnitMatrix.js +249 -251
- package/src/engine/EngineHarness.d.ts +5 -5
- package/src/engine/EngineHarness.d.ts.map +1 -1
- package/src/engine/EngineHarness.js +6 -6
- package/src/engine/achievements/Achievement.d.ts.map +1 -1
- package/src/engine/achievements/Achievement.js +35 -35
- package/src/engine/achievements/AchievementManager.d.ts.map +1 -1
- package/src/engine/achievements/AchievementManager.js +33 -35
- package/src/engine/achievements/gateway/StorageAchievementGateway.d.ts +1 -1
- package/src/engine/achievements/gateway/StorageAchievementGateway.d.ts.map +1 -1
- package/src/engine/achievements/gateway/StorageAchievementGateway.js +2 -2
- package/src/engine/animation/EntityAnimation.d.ts +5 -5
- package/src/engine/animation/EntityAnimation.d.ts.map +1 -1
- package/src/engine/animation/EntityAnimation.js +6 -6
- package/src/engine/animation/curve/editor/CurveEditorView.d.ts +2 -2
- package/src/engine/animation/curve/editor/CurveEditorView.d.ts.map +1 -1
- package/src/engine/animation/curve/editor/CurveEditorView.js +3 -3
- package/src/engine/animation/curve/editor/DragHandler.d.ts +1 -1
- package/src/engine/animation/curve/editor/DragHandler.d.ts.map +1 -1
- package/src/engine/animation/curve/editor/DragHandler.js +2 -2
- package/src/engine/animation/curve/editor/OperationRouter.d.ts +1 -1
- package/src/engine/animation/curve/editor/OperationRouter.d.ts.map +1 -1
- package/src/engine/animation/curve/editor/OperationRouter.js +2 -2
- package/src/engine/animation/keyed2/AnimationTrack.d.ts +10 -10
- package/src/engine/animation/keyed2/AnimationTrack.d.ts.map +1 -1
- package/src/engine/animation/keyed2/AnimationTrack.js +27 -27
- package/src/engine/animation/keyed2/AnimationTrackPlayback.d.ts +4 -4
- package/src/engine/animation/keyed2/AnimationTrackPlayback.d.ts.map +1 -1
- package/src/engine/animation/keyed2/AnimationTrackPlayback.js +6 -9
- package/src/engine/asset/Asset.d.ts +10 -10
- package/src/engine/asset/Asset.d.ts.map +1 -1
- package/src/engine/asset/Asset.js +13 -14
- package/src/engine/asset/AssetRequest.d.ts +14 -14
- package/src/engine/asset/AssetRequest.d.ts.map +1 -1
- package/src/engine/asset/AssetRequest.js +18 -18
- package/src/engine/asset/PendingAsset.d.ts +5 -5
- package/src/engine/asset/PendingAsset.d.ts.map +1 -1
- package/src/engine/asset/PendingAsset.js +108 -108
- package/src/engine/asset/loaders/GLTFAssetLoader.d.ts +2 -2
- package/src/engine/asset/loaders/GLTFAssetLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/GLTFAssetLoader.js +16 -18
- package/src/engine/asset/loaders/JavascriptAssetLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/JavascriptAssetLoader.js +30 -31
- package/src/engine/asset/loaders/gltf/extensions/MSFT_texture_dds.d.ts.map +1 -1
- package/src/engine/asset/loaders/gltf/extensions/MSFT_texture_dds.js +2 -2
- package/src/engine/asset/loaders/material/StaticMaterialCache.d.ts.map +1 -1
- package/src/engine/asset/loaders/material/StaticMaterialCache.js +9 -12
- package/src/engine/control/StatefulController.d.ts +4 -4
- package/src/engine/control/StatefulController.d.ts.map +1 -1
- package/src/engine/control/StatefulController.js +6 -6
- package/src/engine/control/first-person/FirstPersonPlayerController.d.ts.map +1 -1
- package/src/engine/control/first-person/FirstPersonPlayerController.js +31 -33
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts.map +1 -1
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.js +2052 -2028
- package/src/engine/control/first-person/abilities/Ability.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/Ability.js +117 -119
- package/src/engine/control/first-person/abilities/AbilitySet.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/AbilitySet.js +183 -185
- package/src/engine/control/first-person/abilities/LedgeGrab.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/LedgeGrab.js +404 -405
- package/src/engine/control/first-person/abilities/Mantle.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/Mantle.js +24 -23
- package/src/engine/control/first-person/abilities/ScrambleUp.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/ScrambleUp.js +181 -182
- package/src/engine/control/first-person/abilities/Slide.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/Slide.js +164 -166
- package/src/engine/control/first-person/abilities/WallJump.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/WallJump.js +136 -139
- package/src/engine/control/first-person/abilities/WallRun.d.ts.map +1 -1
- package/src/engine/control/first-person/abilities/WallRun.js +7 -9
- package/src/engine/control/first-person/collision/KinematicMover.d.ts +7 -13
- package/src/engine/control/first-person/collision/KinematicMover.d.ts.map +1 -1
- package/src/engine/control/first-person/collision/KinematicMover.js +11 -10
- package/src/engine/control/first-person/composer/EyeOffsetStack.d.ts.map +1 -1
- package/src/engine/control/first-person/composer/EyeOffsetStack.js +58 -60
- package/src/engine/control/first-person/mastery/BreathRhythmEvaluator.d.ts +2 -2
- package/src/engine/control/first-person/mastery/BreathRhythmEvaluator.d.ts.map +1 -1
- package/src/engine/control/first-person/mastery/BreathRhythmEvaluator.js +133 -133
- package/src/engine/control/first-person/mastery/FootAsymmetryTurnEvaluator.d.ts.map +1 -1
- package/src/engine/control/first-person/mastery/FootAsymmetryTurnEvaluator.js +106 -109
- package/src/engine/control/first-person/mastery/MasteryEvaluator.d.ts.map +1 -1
- package/src/engine/control/first-person/mastery/MasteryEvaluator.js +43 -45
- package/src/engine/control/first-person/mastery/MasteryScore.d.ts +6 -6
- package/src/engine/control/first-person/mastery/MasteryScore.d.ts.map +1 -1
- package/src/engine/control/first-person/mastery/MasteryScore.js +100 -100
- package/src/engine/control/first-person/mastery/MasterySet.d.ts.map +1 -1
- package/src/engine/control/first-person/mastery/MasterySet.js +84 -86
- package/src/engine/control/first-person/mastery/SlideInitiationTimingEvaluator.d.ts.map +1 -1
- package/src/engine/control/first-person/mastery/SlideInitiationTimingEvaluator.js +80 -83
- package/src/engine/control/first-person/mastery/StrideTimingJumpEvaluator.d.ts.map +1 -1
- package/src/engine/control/first-person/mastery/StrideTimingJumpEvaluator.js +106 -109
- package/src/engine/control/first-person/sensors/FirstPersonSensors.d.ts.map +1 -1
- package/src/engine/control/first-person/sensors/FirstPersonSensors.js +45 -40
- package/src/engine/control/first-person/sensors/FirstPersonSensorsSystem.d.ts.map +1 -1
- package/src/engine/control/first-person/sensors/FirstPersonSensorsSystem.js +35 -39
- package/src/engine/development/performance/monitor/PeriodicConsolePrinter.d.ts +1 -1
- package/src/engine/development/performance/monitor/PeriodicConsolePrinter.d.ts.map +1 -1
- package/src/engine/development/performance/monitor/PeriodicConsolePrinter.js +2 -2
- package/src/engine/ecs/ASYNC_SYSTEMS_PROPOSAL.md +531 -0
- package/src/engine/ecs/EntityManager.d.ts +16 -0
- package/src/engine/ecs/EntityManager.d.ts.map +1 -1
- package/src/engine/ecs/EntityManager.js +81 -0
- package/src/engine/ecs/animation/Animation.d.ts.map +1 -1
- package/src/engine/ecs/animation/Animation.js +8 -8
- package/src/engine/ecs/async/SystemWorkerHost.d.ts +98 -0
- package/src/engine/ecs/async/SystemWorkerHost.d.ts.map +1 -0
- package/src/engine/ecs/async/SystemWorkerHost.js +329 -0
- package/src/engine/ecs/async/SystemWorkerLoopback.d.ts +80 -0
- package/src/engine/ecs/async/SystemWorkerLoopback.d.ts.map +1 -0
- package/src/engine/ecs/async/SystemWorkerLoopback.js +143 -0
- package/src/engine/ecs/async/WORKER_SYSTEM_PLAN.md +246 -0
- package/src/engine/ecs/async/WorkerSystem.d.ts +173 -0
- package/src/engine/ecs/async/WorkerSystem.d.ts.map +1 -0
- package/src/engine/ecs/async/WorkerSystem.js +702 -0
- package/src/engine/ecs/async/WorkerSystemProtocol.d.ts +62 -0
- package/src/engine/ecs/async/WorkerSystemProtocol.d.ts.map +1 -0
- package/src/engine/ecs/async/WorkerSystemProtocol.js +150 -0
- package/src/engine/ecs/binding/EntityProxyScope.d.ts.map +1 -1
- package/src/engine/ecs/binding/EntityProxyScope.js +11 -12
- package/src/engine/ecs/components/PropertySet.d.ts.map +1 -1
- package/src/engine/ecs/components/PropertySet.js +2 -2
- package/src/engine/ecs/components/TagSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/ecs/components/TagSerializationUpgrader_0_1.js +2 -6
- package/src/engine/ecs/components/Timer.d.ts +7 -7
- package/src/engine/ecs/components/Timer.d.ts.map +1 -1
- package/src/engine/ecs/components/Timer.js +18 -18
- package/src/engine/ecs/dynamic_actions/DataScope.d.ts.map +1 -1
- package/src/engine/ecs/dynamic_actions/DataScope.js +6 -8
- package/src/engine/ecs/evaluation/PointFitnessBinary.d.ts.map +1 -1
- package/src/engine/ecs/evaluation/PointFitnessBinary.js +10 -13
- package/src/engine/ecs/evaluation/PointFitnessConstant.d.ts.map +1 -1
- package/src/engine/ecs/evaluation/PointFitnessConstant.js +5 -9
- package/src/engine/ecs/evaluation/world/ReadTerrainLayerWeightPointFitness.d.ts.map +1 -1
- package/src/engine/ecs/evaluation/world/ReadTerrainLayerWeightPointFitness.js +5 -9
- package/src/engine/ecs/fow/FogOfWarRevealerSystem.d.ts.map +1 -1
- package/src/engine/ecs/fow/FogOfWarRevealerSystem.js +6 -8
- package/src/engine/ecs/fow/FogOfWarSystem.d.ts +2 -2
- package/src/engine/ecs/fow/FogOfWarSystem.d.ts.map +1 -1
- package/src/engine/ecs/fow/FogOfWarSystem.js +5 -6
- package/src/engine/ecs/fow/FogOfWarVisibilityPredicate.d.ts.map +1 -1
- package/src/engine/ecs/fow/FogOfWarVisibilityPredicate.js +11 -14
- package/src/engine/ecs/fow/serialization/FogOfWarSerializationUpdater_0_1.d.ts.map +1 -1
- package/src/engine/ecs/fow/serialization/FogOfWarSerializationUpdater_0_1.js +2 -6
- package/src/engine/ecs/gui/position/ViewportPositionSystem.d.ts.map +1 -1
- package/src/engine/ecs/gui/position/ViewportPositionSystem.js +5 -6
- package/src/engine/ecs/gui/view/LocalizedLabelViewEntity.d.ts.map +1 -1
- package/src/engine/ecs/gui/view/LocalizedLabelViewEntity.js +2 -2
- package/src/engine/ecs/parent/ChildEntities.d.ts.map +1 -1
- package/src/engine/ecs/parent/ChildEntities.js +6 -8
- package/src/engine/ecs/parent/FaceEditor.d.ts.map +1 -1
- package/src/engine/ecs/parent/FaceEditor.js +42 -41
- package/src/engine/ecs/parent/ParentEntity.d.ts.map +1 -1
- package/src/engine/ecs/parent/ParentEntity.js +4 -9
- package/src/engine/ecs/parent/ParentEntitySystem.d.ts.map +1 -1
- package/src/engine/ecs/parent/ParentEntitySystem.js +2 -2
- package/src/engine/ecs/sockets/AttachmentSocket.d.ts.map +1 -1
- package/src/engine/ecs/sockets/AttachmentSocket.js +12 -14
- package/src/engine/ecs/sockets/AttachmentSockets.d.ts.map +1 -1
- package/src/engine/ecs/sockets/AttachmentSockets.js +5 -7
- package/src/engine/ecs/sockets/BoneAttachmentSocket.d.ts.map +1 -1
- package/src/engine/ecs/sockets/BoneAttachmentSocket.js +1 -5
- package/src/engine/ecs/speaker/VoiceSystem.d.ts +5 -5
- package/src/engine/ecs/speaker/VoiceSystem.d.ts.map +1 -1
- package/src/engine/ecs/speaker/VoiceSystem.js +42 -45
- package/src/engine/ecs/storage/binary/object/BinaryObjectSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/storage/binary/object/BinaryObjectSerializationAdapter.js +17 -19
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.d.ts +11 -0
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.d.ts.map +1 -0
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.js +260 -0
- package/src/engine/ecs/system/AbstractContextSystem.d.ts +8 -8
- package/src/engine/ecs/system/AbstractContextSystem.d.ts.map +1 -1
- package/src/engine/ecs/system/AbstractContextSystem.js +14 -14
- package/src/engine/ecs/systems/AnimationSystem.d.ts.map +1 -1
- package/src/engine/ecs/systems/AnimationSystem.js +2 -2
- package/src/engine/ecs/systems/ScriptSystem.d.ts.map +1 -1
- package/src/engine/ecs/systems/ScriptSystem.js +3 -6
- package/src/engine/ecs/terrain/ecs/Terrain.d.ts +27 -27
- package/src/engine/ecs/terrain/ecs/Terrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/Terrain.js +35 -38
- package/src/engine/ecs/terrain/ecs/layers/TerrainLayers.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/layers/TerrainLayers.js +11 -13
- package/src/engine/ecs/terrain/ecs/makeTerrainWorkerProxy.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/makeTerrainWorkerProxy.js +4 -2
- package/src/engine/ecs/terrain/ecs/splat/SplatMapping.d.ts +5 -5
- package/src/engine/ecs/terrain/ecs/splat/SplatMapping.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/splat/SplatMapping.js +6 -7
- package/src/engine/ecs/terrain/overlay/TerrainOverlay.d.ts +9 -9
- package/src/engine/ecs/terrain/overlay/TerrainOverlay.d.ts.map +1 -1
- package/src/engine/ecs/terrain/overlay/TerrainOverlay.js +13 -12
- package/src/engine/ecs/terrain/serialization/TerrainSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/ecs/terrain/serialization/TerrainSerializationUpgrader_0_1.js +2 -6
- package/src/engine/ecs/terrain/serialization/TerrainSerializationUpgrader_1_2.d.ts.map +1 -1
- package/src/engine/ecs/terrain/serialization/TerrainSerializationUpgrader_1_2.js +2 -6
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts +44 -3
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts.map +1 -1
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.js +81 -17
- package/src/engine/ecs/terrain/util/obtainTerrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/util/obtainTerrain.js +2 -0
- package/src/engine/ecs/tooltip/TooltipComponentSystem.d.ts +20 -20
- package/src/engine/ecs/tooltip/TooltipComponentSystem.d.ts.map +1 -1
- package/src/engine/ecs/tooltip/TooltipComponentSystem.js +36 -38
- package/src/engine/ecs/transform/TransformSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/ecs/transform/TransformSerializationUpgrader_0_1.js +2 -6
- package/src/engine/ecs/transform-attachment/TransformAttachmentSystem.d.ts.map +1 -1
- package/src/engine/ecs/transform-attachment/TransformAttachmentSystem.js +34 -41
- package/src/engine/graphics/camera/CameraShake.d.ts.map +1 -1
- package/src/engine/graphics/camera/CameraShake.js +12 -16
- package/src/engine/graphics/camera/CameraShakeBehavior.d.ts +2 -2
- package/src/engine/graphics/camera/CameraShakeBehavior.d.ts.map +1 -1
- package/src/engine/graphics/camera/CameraShakeBehavior.js +3 -4
- package/src/engine/graphics/camera/CameraShakeTraumaBehavior.d.ts +2 -2
- package/src/engine/graphics/camera/CameraShakeTraumaBehavior.d.ts.map +1 -1
- package/src/engine/graphics/camera/CameraShakeTraumaBehavior.js +3 -5
- package/src/engine/graphics/composit/CompositLayer.d.ts.map +1 -1
- package/src/engine/graphics/composit/CompositLayer.js +6 -6
- package/src/engine/graphics/composit/LayerCompositer.d.ts.map +1 -1
- package/src/engine/graphics/composit/LayerCompositer.js +17 -19
- package/src/engine/graphics/debug/VisualSymbolLine.d.ts.map +1 -1
- package/src/engine/graphics/debug/VisualSymbolLine.js +11 -13
- package/src/engine/graphics/ecs/animation/AnimationControllerSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/AnimationControllerSystem.js +2 -5
- package/src/engine/graphics/ecs/animation/AnimationRule.d.ts +2 -2
- package/src/engine/graphics/ecs/animation/AnimationRule.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/AnimationRule.js +3 -2
- package/src/engine/graphics/ecs/animation/animator/AnimationClip.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/AnimationClip.js +20 -22
- package/src/engine/graphics/ecs/animation/animator/AnimationClipDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/AnimationClipDefinition.js +23 -25
- package/src/engine/graphics/ecs/animation/animator/AnimationGraphSystem.d.ts +4 -4
- package/src/engine/graphics/ecs/animation/animator/AnimationGraphSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/AnimationGraphSystem.js +32 -33
- package/src/engine/graphics/ecs/animation/animator/AnimationNotification.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/AnimationNotification.js +10 -12
- package/src/engine/graphics/ecs/animation/animator/AnimationNotificationDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/AnimationNotificationDefinition.js +10 -12
- package/src/engine/graphics/ecs/animation/animator/blending/BlendSpace.d.ts +1 -1
- package/src/engine/graphics/ecs/animation/animator/blending/BlendSpace.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/blending/BlendSpace.js +10 -12
- package/src/engine/graphics/ecs/animation/animator/blending/BlendSpaceDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/blending/BlendSpaceDefinition.js +5 -7
- package/src/engine/graphics/ecs/animation/animator/blending/BlendSpacePoint.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/blending/BlendSpacePoint.js +10 -12
- package/src/engine/graphics/ecs/animation/animator/blending/BlendState.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/blending/BlendState.js +5 -7
- package/src/engine/graphics/ecs/animation/animator/blending/BlendStateDatabase.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/blending/BlendStateDatabase.js +18 -21
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationGraph.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationGraph.js +75 -77
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationState.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationState.js +35 -38
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationTransition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationTransition.js +30 -32
- package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationStateDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationStateDefinition.js +31 -33
- package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationTransitionDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationTransitionDefinition.js +20 -23
- package/src/engine/graphics/ecs/camera/Camera.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/Camera.js +45 -47
- package/src/engine/graphics/ecs/camera/CameraSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/camera/CameraSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/CameraSystem.js +8 -9
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.js +37 -41
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.js +8 -10
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationUpgrader_0_1.js +2 -6
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.js +5 -10
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.js +20 -25
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.js +2 -2
- package/src/engine/graphics/ecs/highlight/HighlightSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/HighlightSerializationUpgrader_0_1.js +2 -6
- package/src/engine/graphics/ecs/highlight/plugin/OutlineRenderPlugin.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/plugin/OutlineRenderPlugin.js +23 -25
- package/src/engine/graphics/ecs/highlight/renderer/HighlightRenderElement.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/renderer/HighlightRenderElement.js +13 -16
- package/src/engine/graphics/ecs/highlight/renderer/HighlightRenderGroup.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/renderer/HighlightRenderGroup.js +5 -7
- package/src/engine/graphics/ecs/highlight/renderer/OutlineRenderer.d.ts +12 -12
- package/src/engine/graphics/ecs/highlight/renderer/OutlineRenderer.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/renderer/OutlineRenderer.js +54 -57
- package/src/engine/graphics/ecs/highlight/system/HighlightSystemBase.js +205 -205
- package/src/engine/graphics/ecs/light/Light.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/Light.js +59 -65
- package/src/engine/graphics/ecs/light/LightSystem.d.ts +16 -16
- package/src/engine/graphics/ecs/light/LightSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/LightSystem.js +23 -25
- package/src/engine/graphics/ecs/light/binding/LightBinding.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/binding/LightBinding.js +13 -14
- package/src/engine/graphics/ecs/light/binding/fp/FPLightBinding.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/binding/fp/FPLightBinding.js +11 -15
- package/src/engine/graphics/ecs/light/shadow/ShadowMap.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/shadow/ShadowMap.js +5 -9
- package/src/engine/graphics/ecs/light/three/ThreeLightCache.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/three/ThreeLightCache.js +20 -22
- package/src/engine/graphics/ecs/mesh/Mesh.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh/Mesh.js +35 -37
- package/src/engine/graphics/ecs/mesh/MeshSystem.d.ts +15 -15
- package/src/engine/graphics/ecs/mesh/MeshSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh/MeshSystem.js +21 -22
- package/src/engine/graphics/ecs/mesh/skeleton/BoneMapping.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh/skeleton/BoneMapping.js +1 -3
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometry.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometry.js +51 -52
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts +6 -6
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.js +37 -37
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshAnimationControllerSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshAnimationControllerSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshAnimationControllerSystem.js +9 -11
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshHighlightSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshHighlightSystem.js +1 -5
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshSystem.d.ts +10 -10
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshSystem.js +22 -22
- package/src/engine/graphics/ecs/mesh-v2/render/SGThreeObjectCache.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/render/SGThreeObjectCache.js +6 -8
- package/src/engine/graphics/ecs/mesh-v2/render/ShadedGeometryRendererContext.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/render/ShadedGeometryRendererContext.js +8 -10
- package/src/engine/graphics/ecs/mesh-v2/render/adapters/AbstractRenderAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/render/adapters/AbstractRenderAdapter.js +12 -15
- package/src/engine/graphics/ecs/mesh-v2/render/adapters/GenericRendererAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/render/adapters/GenericRendererAdapter.js +6 -10
- package/src/engine/graphics/ecs/mesh-v2/render/optimization/RuntimeDrawMethodOptimizer.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/render/optimization/RuntimeDrawMethodOptimizer.js +12 -15
- package/src/engine/graphics/ecs/path/PathDisplay.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/PathDisplay.js +5 -7
- package/src/engine/graphics/ecs/path/PathDisplaySpec.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/PathDisplaySpec.js +10 -12
- package/src/engine/graphics/ecs/path/PathDisplaySystem.d.ts +6 -6
- package/src/engine/graphics/ecs/path/PathDisplaySystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/PathDisplaySystem.js +12 -17
- package/src/engine/graphics/ecs/path/entity/EntityPath.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/entity/EntityPath.js +15 -17
- package/src/engine/graphics/ecs/path/entity/EntityPathMarker.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/entity/EntityPathMarker.js +15 -17
- package/src/engine/graphics/ecs/path/entity/EntityPathMarkerDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/entity/EntityPathMarkerDefinition.js +15 -17
- package/src/engine/graphics/ecs/path/entity/EntityPathStyle.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/entity/EntityPathStyle.js +20 -23
- package/src/engine/graphics/ecs/path/highlight/PathDisplayHighlightSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/highlight/PathDisplayHighlightSystem.js +1 -5
- package/src/engine/graphics/ecs/path/ribbon/RibbonPathBuilder.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/ribbon/RibbonPathBuilder.js +15 -17
- package/src/engine/graphics/ecs/path/ribbon/RibbonPathStyle.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/ribbon/RibbonPathStyle.js +15 -17
- package/src/engine/graphics/ecs/path/tube/MatcapMaterialDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/tube/MatcapMaterialDefinition.js +5 -7
- package/src/engine/graphics/ecs/path/tube/StandardMaterialDefinition.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/tube/StandardMaterialDefinition.js +2 -4
- package/src/engine/graphics/ecs/path/tube/TubePathStyle.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/tube/TubePathStyle.js +84 -86
- package/src/engine/graphics/ecs/path/tube/build/StreamGeometryBuilder.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/tube/build/StreamGeometryBuilder.js +37 -36
- package/src/engine/graphics/ecs/path/tube/build/TubePathBuilder.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/tube/build/TubePathBuilder.js +23 -25
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.d.ts.map +1 -1
- package/src/engine/graphics/ecs/sprite/SpriteSystemPE.js +2 -3
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.d.ts +5 -5
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.js +6 -9
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.d.ts +4 -4
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.js +5 -5
- package/src/engine/graphics/ecs/water/WaterSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/graphics/ecs/water/WaterSerializationUpgrader_0_1.js +2 -6
- package/src/engine/graphics/ecs/water/WaterSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/water/WaterSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/water/WaterSystem.js +13 -15
- package/src/engine/graphics/geometry/MikkT/MikkTSpace.d.ts.map +1 -1
- package/src/engine/graphics/geometry/MikkT/MikkTSpace.js +97 -95
- package/src/engine/graphics/geometry/MikkT/SSubGroup.d.ts.map +1 -1
- package/src/engine/graphics/geometry/MikkT/SSubGroup.js +10 -12
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.d.ts.map +1 -1
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.js +103 -110
- package/src/engine/graphics/geometry/optimization/geometry_optimize_uv_tension.d.ts +18 -3
- package/src/engine/graphics/geometry/optimization/geometry_optimize_uv_tension.d.ts.map +1 -1
- package/src/engine/graphics/geometry/optimization/geometry_optimize_uv_tension.js +135 -85
- package/src/engine/graphics/geometry/optimization/merge/merge_geometry_hierarchy.d.ts.map +1 -1
- package/src/engine/graphics/geometry/optimization/merge/merge_geometry_hierarchy.js +3 -5
- package/src/engine/graphics/geometry/ribbon/Quad.d.ts +2 -2
- package/src/engine/graphics/geometry/ribbon/Quad.d.ts.map +1 -1
- package/src/engine/graphics/geometry/ribbon/Quad.js +17 -17
- package/src/engine/graphics/material/manager/ManagedMaterial.d.ts +6 -6
- package/src/engine/graphics/material/manager/ManagedMaterial.d.ts.map +1 -1
- package/src/engine/graphics/material/manager/ManagedMaterial.js +20 -20
- package/src/engine/graphics/material/optimization/MaterialDescriptor.d.ts.map +1 -1
- package/src/engine/graphics/material/optimization/MaterialDescriptor.js +11 -14
- package/src/engine/graphics/material/optimization/MaterialOptimizationContext.d.ts.map +1 -1
- package/src/engine/graphics/material/optimization/MaterialOptimizationContext.js +20 -23
- package/src/engine/graphics/material/optimization/UvContext.d.ts.map +1 -1
- package/src/engine/graphics/material/optimization/UvContext.js +10 -12
- package/src/engine/graphics/particles/node-based/editor/ParticleSpecificationEditorView.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/editor/ParticleSpecificationEditorView.js +23 -23
- package/src/engine/graphics/particles/node-based/rendering/AbstractParticleRenderer.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/rendering/AbstractParticleRenderer.js +5 -7
- package/src/engine/graphics/particles/node-based/rendering/billboard/BillboardParticleRenderer.d.ts +11 -11
- package/src/engine/graphics/particles/node-based/rendering/billboard/BillboardParticleRenderer.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/rendering/billboard/BillboardParticleRenderer.js +21 -23
- package/src/engine/graphics/particles/node-based/simulation/EmitterAttributeData.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/simulation/EmitterAttributeData.js +17 -19
- package/src/engine/graphics/particles/node-based/simulation/GLDataBuffer.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/simulation/GLDataBuffer.js +25 -27
- package/src/engine/graphics/particles/node-based/simulation/GLSLSimulationShader.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/simulation/GLSLSimulationShader.js +12 -16
- package/src/engine/graphics/particles/node-based/simulation/TransformFeedback.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/simulation/TransformFeedback.js +64 -67
- package/src/engine/graphics/particles/particular/engine/MovingBoundingBox.d.ts +3 -0
- package/src/engine/graphics/particles/particular/engine/MovingBoundingBox.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/MovingBoundingBox.js +36 -39
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationUpgrader_0_1.js +2 -6
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSet.js +5 -7
- package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.d.ts +10 -10
- package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.js +12 -12
- package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/simulator/AbstractSimulationStep.js +35 -37
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepCurlNoiseVelocity.js +1 -5
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/simulator/SimulationStepDefinition.js +11 -12
- package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.js +199 -201
- package/src/engine/graphics/particles/particular/engine/utils/volume/ParticleVolume.d.ts +11 -11
- package/src/engine/graphics/particles/particular/engine/utils/volume/ParticleVolume.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/utils/volume/ParticleVolume.js +13 -13
- package/src/engine/graphics/particles/particular/group/ParticleGroup.d.ts +6 -6
- package/src/engine/graphics/particles/particular/group/ParticleGroup.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/group/ParticleGroup.js +33 -34
- package/src/engine/graphics/particles/particular/group/ParticleSpecification.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/group/ParticleSpecification.js +2 -8
- package/src/engine/graphics/render/Lines.d.ts.map +1 -1
- package/src/engine/graphics/render/Lines.js +2 -2
- package/src/engine/graphics/render/buffer/FrameBufferManager.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/FrameBufferManager.js +20 -22
- package/src/engine/graphics/render/buffer/simple-fx/DepthLimitedBlur.d.ts +2 -2
- package/src/engine/graphics/render/buffer/simple-fx/DepthLimitedBlur.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/simple-fx/DepthLimitedBlur.js +16 -19
- package/src/engine/graphics/render/buffer/simple-fx/SimplePostProcessEffect.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/simple-fx/SimplePostProcessEffect.js +5 -8
- package/src/engine/graphics/render/buffer/simple-fx/ao/AmbientOcclusionPostProcessEffect.d.ts +2 -2
- package/src/engine/graphics/render/buffer/simple-fx/ao/AmbientOcclusionPostProcessEffect.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/simple-fx/ao/AmbientOcclusionPostProcessEffect.js +37 -38
- package/src/engine/graphics/render/buffer/slot/ProgramSlotValue.d.ts +5 -5
- package/src/engine/graphics/render/buffer/slot/ProgramSlotValue.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/slot/ProgramSlotValue.js +8 -6
- package/src/engine/graphics/render/buffer/slot/ProgramValueSlotDefinition.d.ts +5 -5
- package/src/engine/graphics/render/buffer/slot/ProgramValueSlotDefinition.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/slot/ProgramValueSlotDefinition.js +6 -6
- package/src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameterSet.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameterSet.js +11 -13
- package/src/engine/graphics/render/forward_plus/LightManager.d.ts +6 -6
- package/src/engine/graphics/render/forward_plus/LightManager.d.ts.map +1 -1
- package/src/engine/graphics/render/forward_plus/LightManager.js +15 -18
- package/src/engine/graphics/render/forward_plus/LightRenderMetadata.d.ts +5 -5
- package/src/engine/graphics/render/forward_plus/LightRenderMetadata.d.ts.map +1 -1
- package/src/engine/graphics/render/forward_plus/LightRenderMetadata.js +7 -8
- package/src/engine/graphics/render/forward_plus/model/Decal.d.ts +1 -1
- package/src/engine/graphics/render/forward_plus/model/Decal.d.ts.map +1 -1
- package/src/engine/graphics/render/forward_plus/model/Decal.js +22 -22
- package/src/engine/graphics/render/gizmo/GizmoShapeRenderingInterface.d.ts.map +1 -1
- package/src/engine/graphics/render/gizmo/GizmoShapeRenderingInterface.js +8 -8
- package/src/engine/graphics/render/layers/RenderLayerManager.d.ts.map +1 -1
- package/src/engine/graphics/render/layers/RenderLayerManager.js +10 -12
- package/src/engine/graphics/render/layers/RenderLayerManagerState.d.ts.map +1 -1
- package/src/engine/graphics/render/layers/RenderLayerManagerState.js +5 -9
- package/src/engine/graphics/render/layers/RenderLayerState.d.ts.map +1 -1
- package/src/engine/graphics/render/layers/RenderLayerState.js +5 -7
- package/src/engine/graphics/render/utils/ThreeBypassRenderer.d.ts.map +1 -1
- package/src/engine/graphics/render/utils/ThreeBypassRenderer.js +6 -9
- package/src/engine/graphics/render/view/CameraView.d.ts.map +1 -1
- package/src/engine/graphics/render/view/CameraView.js +56 -59
- package/src/engine/graphics/render/view/CameraViewManager.d.ts.map +1 -1
- package/src/engine/graphics/render/view/CameraViewManager.js +18 -20
- package/src/engine/graphics/render/visibility/IncrementalDeltaSet.d.ts +6 -6
- package/src/engine/graphics/render/visibility/IncrementalDeltaSet.d.ts.map +1 -1
- package/src/engine/graphics/render/visibility/IncrementalDeltaSet.js +40 -39
- package/src/engine/graphics/render/visibility/VisibilityComputer.d.ts.map +1 -1
- package/src/engine/graphics/render/visibility/VisibilityComputer.js +19 -22
- package/src/engine/graphics/render/visibility/VisibilityFilter.d.ts +5 -5
- package/src/engine/graphics/render/visibility/VisibilityFilter.d.ts.map +1 -1
- package/src/engine/graphics/render/visibility/VisibilityFilter.js +6 -6
- package/src/engine/graphics/render/visibility/hiz/buffer/HierarchicalZBuffer.d.ts.map +1 -1
- package/src/engine/graphics/render/visibility/hiz/buffer/HierarchicalZBuffer.js +40 -43
- package/src/engine/graphics/render/visibility/hiz/query/BatchOcclusionQuery.d.ts +1 -1
- package/src/engine/graphics/render/visibility/hiz/query/BatchOcclusionQuery.d.ts.map +1 -1
- package/src/engine/graphics/render/visibility/hiz/query/BatchOcclusionQuery.js +2 -2
- package/src/engine/graphics/sh3/lpv/WebGLCubeProbeRenderer.d.ts.map +1 -1
- package/src/engine/graphics/sh3/lpv/WebGLCubeProbeRenderer.js +7 -9
- package/src/engine/graphics/sh3/path_tracer/BufferedGeometryBVH.d.ts.map +1 -1
- package/src/engine/graphics/sh3/path_tracer/BufferedGeometryBVH.js +24 -28
- package/src/engine/graphics/shadows/ShadowMapRenderer.d.ts.map +1 -1
- package/src/engine/graphics/shadows/ShadowMapRenderer.js +11 -15
- package/src/engine/graphics/texture/AttributeDataTexture.d.ts +11 -11
- package/src/engine/graphics/texture/AttributeDataTexture.d.ts.map +1 -1
- package/src/engine/graphics/texture/AttributeDataTexture.js +14 -14
- package/src/engine/graphics/texture/TextureBackedMemoryRegion.d.ts +6 -6
- package/src/engine/graphics/texture/TextureBackedMemoryRegion.d.ts.map +1 -1
- package/src/engine/graphics/texture/TextureBackedMemoryRegion.js +33 -32
- package/src/engine/graphics/texture/atlas/AtlasLookupTexture.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/AtlasLookupTexture.js +12 -12
- package/src/engine/graphics/texture/atlas/CachingTextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/CachingTextureAtlas.js +17 -20
- package/src/engine/graphics/texture/atlas/ReferencedTextureAtlas.d.ts +1 -1
- package/src/engine/graphics/texture/atlas/ReferencedTextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/ReferencedTextureAtlas.js +14 -14
- package/src/engine/graphics/texture/atlas/TextureAtlas.d.ts +10 -10
- package/src/engine/graphics/texture/atlas/TextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/TextureAtlas.js +13 -14
- package/src/engine/graphics/texture/atlas/gpu/WebGLTextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/gpu/WebGLTextureAtlas.js +49 -49
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts +5 -5
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/Sampler2D.js +6 -6
- package/src/engine/graphics/trail/tube/TubeX.d.ts +6 -6
- package/src/engine/graphics/trail/tube/TubeX.d.ts.map +1 -1
- package/src/engine/graphics/trail/tube/TubeX.js +3 -3
- package/src/engine/graphics/trail/x/RibbonX.d.ts.map +1 -1
- package/src/engine/graphics/trail/x/RibbonX.js +36 -39
- package/src/engine/grid/area/AreaTrigger.d.ts +1 -1
- package/src/engine/grid/area/AreaTrigger.d.ts.map +1 -1
- package/src/engine/grid/area/AreaTrigger.js +8 -7
- package/src/engine/grid/area/TriggerAction.d.ts.map +1 -1
- package/src/engine/grid/area/TriggerAction.js +2 -4
- package/src/engine/grid/grid2transform/GridPosition2TransformSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/grid/grid2transform/GridPosition2TransformSerializationUpgrader_0_1.js +3 -6
- package/src/engine/grid/grid2transform/GridPosition2TransformSystem.d.ts +3 -3
- package/src/engine/grid/grid2transform/GridPosition2TransformSystem.d.ts.map +1 -1
- package/src/engine/grid/grid2transform/GridPosition2TransformSystem.js +6 -9
- package/src/engine/grid/position/GridPositionSerializationUpdater_0_1.d.ts.map +1 -1
- package/src/engine/grid/position/GridPositionSerializationUpdater_0_1.js +2 -6
- package/src/engine/grid/position/GridPositionSystem.d.ts.map +1 -1
- package/src/engine/grid/position/GridPositionSystem.js +7 -11
- package/src/engine/grid/transform2grid/Transform2GridPositionSystem.d.ts.map +1 -1
- package/src/engine/grid/transform2grid/Transform2GridPositionSystem.js +32 -40
- package/src/engine/input/devices/PointerDevice.d.ts +8 -0
- package/src/engine/input/devices/PointerDevice.d.ts.map +1 -1
- package/src/engine/input/devices/PointerDevice.js +10 -4
- package/src/engine/input/ecs/systems/InputControllerSystem.d.ts.map +1 -1
- package/src/engine/input/ecs/systems/InputControllerSystem.js +9 -13
- package/src/engine/input/ecs/systems/InputSystem.d.ts +1 -1
- package/src/engine/input/ecs/systems/InputSystem.d.ts.map +1 -1
- package/src/engine/input/ecs/systems/InputSystem.js +8 -8
- package/src/engine/intelligence/behavior/SelectorBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/SelectorBehavior.js +13 -17
- package/src/engine/intelligence/behavior/composite/ParallelBehavior.d.ts +10 -10
- package/src/engine/intelligence/behavior/composite/ParallelBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/ParallelBehavior.js +12 -11
- package/src/engine/intelligence/behavior/composite/ParallelBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/ParallelBehaviorSerializationAdapter.js +2 -6
- package/src/engine/intelligence/behavior/composite/SequenceBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/SequenceBehavior.js +19 -22
- package/src/engine/intelligence/behavior/composite/SequenceBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/SequenceBehaviorSerializationAdapter.js +2 -6
- package/src/engine/intelligence/behavior/decorator/AbstractDecoratorBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/AbstractDecoratorBehavior.js +6 -10
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehaviorSerializationAdapter.js +2 -6
- package/src/engine/intelligence/behavior/decorator/RepeatBehavior.d.ts +5 -5
- package/src/engine/intelligence/behavior/decorator/RepeatBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/RepeatBehavior.js +7 -7
- package/src/engine/intelligence/behavior/decorator/RepeatBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/RepeatBehaviorSerializationAdapter.js +2 -6
- package/src/engine/intelligence/behavior/decorator/RepeatUntilSuccessBehavior.d.ts +2 -2
- package/src/engine/intelligence/behavior/decorator/RepeatUntilSuccessBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/RepeatUntilSuccessBehavior.js +7 -7
- package/src/engine/intelligence/behavior/ecs/BehaviorSystem.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/BehaviorSystem.js +3 -5
- package/src/engine/intelligence/behavior/primitive/PromiseBehavior.d.ts +2 -2
- package/src/engine/intelligence/behavior/primitive/PromiseBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/PromiseBehavior.js +3 -4
- package/src/engine/intelligence/behavior/util/RotationBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/util/RotationBehavior.js +8 -13
- package/src/engine/intelligence/blackboard/Blackboard.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/Blackboard.js +14 -14
- package/src/engine/intelligence/blackboard/BlackboardDynamicStorageAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/BlackboardDynamicStorageAdapter.js +52 -55
- package/src/engine/intelligence/blackboard/BlackboardStack.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/BlackboardStack.js +12 -16
- package/src/engine/intelligence/blackboard/BlackboardValue.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/BlackboardValue.js +6 -5
- package/src/engine/intelligence/controller/graph/StateGraph.d.ts +1 -1
- package/src/engine/intelligence/controller/graph/StateGraph.d.ts.map +1 -1
- package/src/engine/intelligence/controller/graph/StateGraph.js +2 -2
- package/src/engine/intelligence/controller/graph/StateGraphDescription.js +6 -8
- package/src/engine/intelligence/controller/graph/StateGraphSystem.d.ts.map +1 -1
- package/src/engine/intelligence/controller/graph/StateGraphSystem.js +1 -5
- package/src/engine/intelligence/mcts/MoveEdge.d.ts.map +1 -1
- package/src/engine/intelligence/mcts/MoveEdge.js +5 -8
- package/src/engine/intelligence/resource/ResourceAllocationBid.d.ts +5 -5
- package/src/engine/intelligence/resource/ResourceAllocationBid.d.ts.map +1 -1
- package/src/engine/intelligence/resource/ResourceAllocationBid.js +6 -6
- package/src/engine/interpolation/InterpolationLog.d.ts.map +1 -1
- package/src/engine/interpolation/InterpolationLog.js +564 -583
- package/src/engine/interpolation/InterpolationSystem.d.ts.map +1 -1
- package/src/engine/interpolation/InterpolationSystem.js +232 -233
- package/src/engine/knowledge/database/StaticKnowledgeDataTableDescriptor.d.ts.map +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTableDescriptor.js +17 -20
- package/src/engine/logging/elastic/ElasticSearchLogger.d.ts +6 -6
- package/src/engine/logging/elastic/ElasticSearchLogger.d.ts.map +1 -1
- package/src/engine/logging/elastic/ElasticSearchLogger.js +31 -32
- package/src/engine/metrics/ProxyMetricsGateway.d.ts.map +1 -1
- package/src/engine/metrics/ProxyMetricsGateway.js +5 -9
- package/src/engine/navigation/ecs/components/Path.d.ts.map +1 -1
- package/src/engine/navigation/ecs/components/Path.js +30 -32
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_0_1.js +2 -6
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_1_2.d.ts.map +1 -1
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_1_2.js +2 -6
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.d.ts.map +1 -1
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.js +34 -38
- package/src/engine/navigation/ecs/path_following/PathFollowerSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/navigation/ecs/path_following/PathFollowerSerializationUpgrader_0_1.js +2 -6
- package/src/engine/navigation/ecs/path_following/PathFollowerSerializationUpgrader_1_2.d.ts.map +1 -1
- package/src/engine/navigation/ecs/path_following/PathFollowerSerializationUpgrader_1_2.js +2 -6
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.d.ts.map +1 -1
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.js +12 -17
- package/src/engine/network/NetworkSession.d.ts.map +1 -1
- package/src/engine/network/NetworkSession.js +2037 -2036
- package/src/engine/network/PriorityFetch.d.ts +6 -6
- package/src/engine/network/PriorityFetch.d.ts.map +1 -1
- package/src/engine/network/PriorityFetch.js +14 -14
- package/src/engine/network/diagnostics/BandwidthMeter.d.ts.map +1 -1
- package/src/engine/network/diagnostics/BandwidthMeter.js +150 -155
- package/src/engine/network/diagnostics/ReplayLog.d.ts +2 -2
- package/src/engine/network/diagnostics/ReplayLog.d.ts.map +1 -1
- package/src/engine/network/diagnostics/ReplayLog.js +132 -137
- package/src/engine/network/diagnostics/SyncTest.d.ts.map +1 -1
- package/src/engine/network/diagnostics/SyncTest.js +146 -151
- package/src/engine/network/orchestrator/NetworkPeer.d.ts.map +1 -1
- package/src/engine/network/orchestrator/NetworkPeer.js +1202 -1209
- package/src/engine/network/orchestrator/ServerAuthoritativeClient.d.ts +4 -4
- package/src/engine/network/orchestrator/ServerAuthoritativeClient.d.ts.map +1 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeClient.js +8 -10
- package/src/engine/network/orchestrator/ServerAuthoritativeServer.d.ts +7 -7
- package/src/engine/network/orchestrator/ServerAuthoritativeServer.d.ts.map +1 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeServer.js +643 -654
- package/src/engine/network/replication/Replicator.d.ts +24 -24
- package/src/engine/network/replication/Replicator.d.ts.map +1 -1
- package/src/engine/network/replication/Replicator.js +405 -410
- package/src/engine/network/sim/ReplicatedComponentRegistry.d.ts.map +1 -1
- package/src/engine/network/sim/ReplicatedComponentRegistry.js +133 -140
- package/src/engine/network/sim/RewindEngine.d.ts.map +1 -1
- package/src/engine/network/sim/RewindEngine.js +179 -182
- package/src/engine/network/sim/SimActionExecutor.d.ts +34 -34
- package/src/engine/network/sim/SimActionExecutor.d.ts.map +1 -1
- package/src/engine/network/sim/SimActionExecutor.js +305 -306
- package/src/engine/network/sim/SimActionRegistry.d.ts.map +1 -1
- package/src/engine/network/sim/SimActionRegistry.js +121 -128
- package/src/engine/network/sim/SmoothingState.d.ts.map +1 -1
- package/src/engine/network/sim/SmoothingState.js +220 -222
- package/src/engine/network/sim/SpeculationLog.d.ts.map +1 -1
- package/src/engine/network/sim/SpeculationLog.js +79 -84
- package/src/engine/network/state/Baseline.d.ts.map +1 -1
- package/src/engine/network/state/Baseline.js +78 -83
- package/src/engine/network/state/ChangedEntitySet.d.ts.map +1 -1
- package/src/engine/network/state/ChangedEntitySet.js +253 -256
- package/src/engine/network/state/MutationLedger.d.ts.map +1 -1
- package/src/engine/network/state/MutationLedger.js +179 -182
- package/src/engine/network/state/ReplicationSlotTable.d.ts.map +1 -1
- package/src/engine/network/state/ReplicationSlotTable.js +206 -211
- package/src/engine/network/time/AdaptiveRenderDelay.d.ts.map +1 -1
- package/src/engine/network/time/AdaptiveRenderDelay.js +250 -258
- package/src/engine/network/time/JitterBuffer.d.ts.map +1 -1
- package/src/engine/network/time/JitterBuffer.js +113 -116
- package/src/engine/network/time/TimeSync.d.ts.map +1 -1
- package/src/engine/network/time/TimeSync.js +145 -152
- package/src/engine/network/transport/LoopbackTransport.d.ts.map +1 -1
- package/src/engine/network/transport/LoopbackTransport.js +165 -173
- package/src/engine/network/transport/ReliableCommandPipeline.d.ts.map +1 -1
- package/src/engine/network/transport/ReliableCommandPipeline.js +315 -320
- package/src/engine/network/transport/adapters/SimulatedTransport.d.ts.map +1 -1
- package/src/engine/network/transport/adapters/SimulatedTransport.js +235 -241
- package/src/engine/network/transport/adapters/WebSocketTransport.d.ts.map +1 -1
- package/src/engine/network/transport/adapters/WebSocketTransport.js +154 -154
- package/src/engine/network/transport/adapters/WebTransportTransport.d.ts.map +1 -1
- package/src/engine/network/transport/adapters/WebTransportTransport.js +195 -199
- package/src/engine/network/transport/fragments/FragmentAssembler.d.ts.map +1 -1
- package/src/engine/network/transport/fragments/FragmentAssembler.js +286 -291
- package/src/engine/network/transport/fragments/FragmentRetention.d.ts.map +1 -1
- package/src/engine/network/transport/fragments/FragmentRetention.js +191 -194
- package/src/engine/physics/body/BodyStorage.d.ts +2 -2
- package/src/engine/physics/body/BodyStorage.d.ts.map +1 -1
- package/src/engine/physics/body/BodyStorage.js +406 -406
- package/src/engine/physics/body/SolverBodyState.d.ts +8 -8
- package/src/engine/physics/body/SolverBodyState.d.ts.map +1 -1
- package/src/engine/physics/body/SolverBodyState.js +10 -10
- package/src/engine/physics/broadphase/PairList.d.ts +1 -1
- package/src/engine/physics/broadphase/PairList.d.ts.map +1 -1
- package/src/engine/physics/broadphase/PairList.js +98 -97
- package/src/engine/physics/contact/ManifoldStore.d.ts +2 -2
- package/src/engine/physics/contact/ManifoldStore.d.ts.map +1 -1
- package/src/engine/physics/contact/ManifoldStore.js +3 -4
- package/src/engine/physics/ecs/ColliderObserverSystem.d.ts +2 -2
- package/src/engine/physics/ecs/ColliderObserverSystem.d.ts.map +1 -1
- package/src/engine/physics/ecs/ColliderObserverSystem.js +102 -103
- package/src/engine/physics/ecs/PhysicsSystem.d.ts +2 -2
- package/src/engine/physics/ecs/PhysicsSystem.d.ts.map +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.js +248 -249
- package/src/engine/physics/events/ContactEventBuffer.d.ts +1 -1
- package/src/engine/physics/events/ContactEventBuffer.d.ts.map +1 -1
- package/src/engine/physics/events/ContactEventBuffer.js +2 -1
- package/src/engine/physics/fluid/FluidField.d.ts +54 -0
- package/src/engine/physics/fluid/FluidField.d.ts.map +1 -1
- package/src/engine/physics/fluid/FluidField.js +198 -15
- package/src/engine/physics/fluid/FluidSimulator.d.ts.map +1 -1
- package/src/engine/physics/fluid/FluidSimulator.js +14 -4
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts +0 -45
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidSystem.js +8 -144
- package/src/engine/physics/fluid/ecs/FluidWorkerCore.d.ts +43 -0
- package/src/engine/physics/fluid/ecs/FluidWorkerCore.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/FluidWorkerCore.js +123 -0
- package/src/engine/physics/fluid/ecs/WorkerFluidSystem.d.ts +119 -0
- package/src/engine/physics/fluid/ecs/WorkerFluidSystem.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/WorkerFluidSystem.js +395 -0
- package/src/engine/physics/fluid/ecs/fluid.worker.d.ts +2 -0
- package/src/engine/physics/fluid/ecs/fluid.worker.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/fluid.worker.js +12 -0
- package/src/engine/physics/fluid/ecs/fluid_build_world_to_grid.d.ts +20 -0
- package/src/engine/physics/fluid/ecs/fluid_build_world_to_grid.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/fluid_build_world_to_grid.js +32 -0
- package/src/engine/physics/fluid/ecs/fluid_gather_visible_effectors.d.ts +22 -0
- package/src/engine/physics/fluid/ecs/fluid_gather_visible_effectors.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/fluid_gather_visible_effectors.js +47 -0
- package/src/engine/physics/fluid/ecs/fluid_reanchor_field.d.ts +28 -0
- package/src/engine/physics/fluid/ecs/fluid_reanchor_field.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/fluid_reanchor_field.js +85 -0
- package/src/engine/physics/fluid/ecs/fluid_sync_effectors_from_transform.d.ts +11 -0
- package/src/engine/physics/fluid/ecs/fluid_sync_effectors_from_transform.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/fluid_sync_effectors_from_transform.js +16 -0
- package/src/engine/physics/fluid/ecs/fluid_worker_protocol.d.ts +51 -0
- package/src/engine/physics/fluid/ecs/fluid_worker_protocol.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/fluid_worker_protocol.js +111 -0
- package/src/engine/physics/fluid/ecs/makeFluidWorker.d.ts +17 -0
- package/src/engine/physics/fluid/ecs/makeFluidWorker.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/makeFluidWorker.js +18 -0
- package/src/engine/physics/island/IslandBuilder.d.ts.map +1 -1
- package/src/engine/physics/island/IslandBuilder.js +84 -86
- package/src/engine/physics/mls-mpm/MLS_MPM.d.ts.map +1 -1
- package/src/engine/physics/mls-mpm/MLS_MPM.js +24 -26
- package/src/engine/physics/queries/PhysicsSurfacePoint.d.ts.map +1 -1
- package/src/engine/physics/queries/PhysicsSurfacePoint.js +98 -100
- package/src/engine/physics/vehicle/RaycastVehicle.d.ts +6 -6
- package/src/engine/physics/vehicle/RaycastVehicle.d.ts.map +1 -1
- package/src/engine/physics/vehicle/RaycastVehicle.js +357 -344
- package/src/engine/plugin/PluginReferenceContext.d.ts +12 -12
- package/src/engine/plugin/PluginReferenceContext.d.ts.map +1 -1
- package/src/engine/plugin/PluginReferenceContext.js +24 -25
- package/src/engine/scene/Scene.d.ts +5 -5
- package/src/engine/scene/Scene.d.ts.map +1 -1
- package/src/engine/scene/Scene.js +24 -23
- package/src/engine/scene/SceneManager.d.ts +5 -5
- package/src/engine/scene/SceneManager.d.ts.map +1 -1
- package/src/engine/scene/SceneManager.js +13 -14
- package/src/engine/sound/SoundEngine.d.ts +2 -2
- package/src/engine/sound/SoundEngine.d.ts.map +1 -1
- package/src/engine/sound/SoundEngine.js +7 -8
- package/src/engine/sound/asset/SoundAssetPlaybackSpec.d.ts.map +1 -1
- package/src/engine/sound/asset/SoundAssetPlaybackSpec.js +16 -20
- package/src/engine/sound/ecs/SoundController.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundController.js +37 -33
- package/src/engine/sound/ecs/SoundControllerSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundControllerSystem.js +5 -11
- package/src/engine/sound/ecs/SoundListener.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundListener.js +4 -6
- package/src/engine/sound/ecs/SoundListenerSystem.d.ts +6 -6
- package/src/engine/sound/ecs/SoundListenerSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundListenerSystem.js +22 -23
- package/src/engine/sound/ecs/audio/AudioEmitter.d.ts +10 -4
- package/src/engine/sound/ecs/audio/AudioEmitter.d.ts.map +1 -1
- package/src/engine/sound/ecs/audio/AudioEmitter.js +131 -122
- package/src/engine/sound/ecs/audio/AudioEmitterSerializationAdapter.d.ts +34 -0
- package/src/engine/sound/ecs/audio/AudioEmitterSerializationAdapter.d.ts.map +1 -0
- package/src/engine/sound/ecs/audio/AudioEmitterSerializationAdapter.js +68 -0
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.d.ts +6 -6
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.js +314 -316
- package/src/engine/sound/ecs/emitter/SoundEmitterComponentContext.d.ts.map +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterComponentContext.js +31 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterSerializationUpgrader_0_1.d.ts.map +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterSerializationUpgrader_0_1.js +2 -6
- package/src/engine/sound/ecs/emitter/SoundEmitterSerializationUpgrader_1_2.d.ts.map +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterSerializationUpgrader_1_2.js +2 -6
- package/src/engine/sound/ecs/emitter/SoundEmitterSystem.d.ts +5 -5
- package/src/engine/sound/ecs/emitter/SoundEmitterSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterSystem.js +159 -159
- package/src/engine/sound/material/concrete/RandomSoundMaterial.d.ts.map +1 -1
- package/src/engine/sound/material/concrete/RandomSoundMaterial.js +5 -9
- package/src/engine/sound/material/concrete/SingleSoundMaterial.d.ts.map +1 -1
- package/src/engine/sound/material/concrete/SingleSoundMaterial.js +1 -6
- package/src/engine/sound/material/concrete/SoundMaterialComposition.d.ts.map +1 -1
- package/src/engine/sound/material/concrete/SoundMaterialComposition.js +18 -21
- package/src/engine/sound/material/detector/terrain/TerrainSoundMaterialSurfaceDetector.d.ts.map +1 -1
- package/src/engine/sound/material/detector/terrain/TerrainSoundMaterialSurfaceDetector.js +13 -15
- package/src/engine/sound/simulation/core/OccluderBody.d.ts +12 -12
- package/src/engine/sound/simulation/core/OccluderBody.d.ts.map +1 -1
- package/src/engine/sound/simulation/core/OccluderBody.js +74 -74
- package/src/engine/sound/simulation/prototypeAcousticSolver.js +5 -4
- package/src/engine/sound/sopra/definition/SopraPanningModel.d.ts +7 -3
- package/src/engine/sound/sopra/definition/SopraPanningModel.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/SopraPanningModel.js +34 -20
- package/src/engine/sound/sopra/legacy/soundEmitterToEventDescription.d.ts +15 -0
- package/src/engine/sound/sopra/legacy/soundEmitterToEventDescription.d.ts.map +1 -1
- package/src/engine/sound/sopra/legacy/soundEmitterToEventDescription.js +122 -106
- package/src/engine/sound/sopra/runtime/EventInstance.d.ts.map +1 -1
- package/src/engine/sound/sopra/runtime/EventInstance.js +852 -815
- package/src/engine/sound/sopra/util/buildAttenuationCurve.d.ts +20 -6
- package/src/engine/sound/sopra/util/buildAttenuationCurve.d.ts.map +1 -1
- package/src/engine/sound/sopra/util/buildAttenuationCurve.js +56 -21
- package/src/engine/ui/bindings/DomElementBinding.d.ts.map +1 -1
- package/src/engine/ui/bindings/DomElementBinding.js +15 -18
- package/src/engine/ui/bindings/DomElementBindingDescription.d.ts.map +1 -1
- package/src/engine/ui/bindings/DomElementBindingDescription.js +10 -14
- package/src/engine/ui/bindings/DomElementProcessor.d.ts.map +1 -1
- package/src/engine/ui/bindings/DomElementProcessor.js +5 -7
- package/src/engine/ui/bindings/DomElementProcessorManager.d.ts.map +1 -1
- package/src/engine/ui/bindings/DomElementProcessorManager.js +26 -26
- package/src/engine/ui/bindings/processors/DomElementProcessorTilt3D.d.ts.map +1 -1
- package/src/engine/ui/bindings/processors/DomElementProcessorTilt3D.js +15 -19
- package/src/engine/ui/cursor/CursorCoalescence.d.ts.map +1 -1
- package/src/engine/ui/cursor/CursorCoalescence.js +11 -14
- package/src/engine/ui/modal/ModalStack.d.ts.map +1 -1
- package/src/engine/ui/modal/ModalStack.js +19 -22
- package/src/engine/ui/notification/AnimatedObjectEmitter.d.ts +4 -4
- package/src/engine/ui/notification/AnimatedObjectEmitter.d.ts.map +1 -1
- package/src/engine/ui/notification/AnimatedObjectEmitter.js +68 -70
- package/src/engine/ui/notification/NotificationManager.d.ts +4 -4
- package/src/engine/ui/notification/NotificationManager.d.ts.map +1 -1
- package/src/engine/ui/notification/NotificationManager.js +27 -29
- package/src/engine/ui/notification/ViewEmitter.d.ts.map +1 -1
- package/src/engine/ui/notification/ViewEmitter.js +2 -2
- package/src/engine/ui/scene/SceneGUIContext.d.ts.map +1 -1
- package/src/engine/ui/scene/SceneGUIContext.js +20 -22
- package/src/engine/ui/tiles2d/TileMoveProgram.d.ts.map +1 -1
- package/src/engine/ui/tiles2d/TileMoveProgram.js +5 -7
- package/src/generation/GraphGenerationRule.d.ts.map +1 -1
- package/src/generation/GraphGenerationRule.js +10 -14
- package/src/generation/GridGeneratorConfig.d.ts.map +1 -1
- package/src/generation/GridGeneratorConfig.js +15 -19
- package/src/generation/filtering/CellFilterCellMatcher.d.ts.map +1 -1
- package/src/generation/filtering/CellFilterCellMatcher.js +5 -9
- package/src/generation/filtering/numeric/complex/CellFilterAngleToNormal.d.ts.map +1 -1
- package/src/generation/filtering/numeric/complex/CellFilterAngleToNormal.js +11 -15
- package/src/generation/grid/actions/ContinuousGridCellActionSetTerrainObstacle.d.ts.map +1 -1
- package/src/generation/grid/actions/ContinuousGridCellActionSetTerrainObstacle.js +11 -15
- package/src/generation/grid/actions/ContinuousGridCellActionWriteObstacle.d.ts +10 -10
- package/src/generation/grid/actions/ContinuousGridCellActionWriteObstacle.d.ts.map +1 -1
- package/src/generation/grid/actions/ContinuousGridCellActionWriteObstacle.js +20 -19
- package/src/generation/markers/matcher/MarkerNodeMatcherByType.d.ts.map +1 -1
- package/src/generation/markers/matcher/MarkerNodeMatcherByType.js +5 -9
- package/src/generation/placement/action/random/CellActionSelectRandom.d.ts.map +1 -1
- package/src/generation/placement/action/random/CellActionSelectRandom.js +11 -16
- package/src/view/ViewGroup.d.ts.map +1 -1
- package/src/view/ViewGroup.js +11 -14
- package/src/view/common/HTMLElementCacheKey.d.ts.map +1 -1
- package/src/view/common/HTMLElementCacheKey.js +21 -24
- package/src/view/common/TabbedView.d.ts +56 -26
- package/src/view/common/TabbedView.d.ts.map +1 -1
- package/src/view/common/TabbedView.js +128 -30
- package/src/view/common/dnd/DragAndDropContext.d.ts.map +1 -1
- package/src/view/common/dnd/DragAndDropContext.js +11 -12
- package/src/view/common/dnd/Draggable.d.ts +5 -5
- package/src/view/common/dnd/Draggable.d.ts.map +1 -1
- package/src/view/common/dnd/Draggable.js +6 -6
- package/src/view/controller/GuiController.d.ts +1 -1
- package/src/view/controller/GuiController.d.ts.map +1 -1
- package/src/view/controller/GuiController.js +3 -3
- package/src/view/controller/controls/BooleanVector3Control.d.ts.map +1 -1
- package/src/view/controller/controls/BooleanVector3Control.js +2 -2
- package/src/view/controller/controls/NumericIntervalControl.d.ts +1 -1
- package/src/view/controller/controls/NumericIntervalControl.d.ts.map +1 -1
- package/src/view/controller/controls/NumericIntervalControl.js +90 -90
- package/src/view/controller/controls/Vector2Control.d.ts +1 -1
- package/src/view/controller/controls/Vector2Control.d.ts.map +1 -1
- package/src/view/controller/controls/Vector2Control.js +83 -83
- package/src/view/controller/controls/Vector3Control.d.ts +1 -1
- package/src/view/controller/controls/Vector3Control.d.ts.map +1 -1
- package/src/view/controller/controls/Vector3Control.js +90 -90
- package/{editor/view/ecs/components → src/view/controller/dat}/DatGuiController.d.ts +45 -45
- package/src/view/controller/dat/DatGuiController.d.ts.map +1 -0
- package/src/view/controller/dat/DatGuiController.js +216 -0
- package/src/view/currency/CompositeCurrencyLabelView.d.ts.map +1 -1
- package/src/view/currency/CompositeCurrencyLabelView.js +2 -2
- package/src/view/currency/CurrencyDenominationLabelView.d.ts.map +1 -1
- package/src/view/currency/CurrencyDenominationLabelView.js +2 -3
- package/src/view/currency/CurrencyDenominationSpec.d.ts.map +1 -1
- package/src/view/currency/CurrencyDenominationSpec.js +11 -12
- package/src/view/currency/CurrencyDisplaySpec.d.ts.map +1 -1
- package/src/view/currency/CurrencyDisplaySpec.js +5 -9
- package/src/view/elements/ColorPickerView.js +1 -1
- package/src/view/elements/EmptyView.js +1 -1
- package/src/view/elements/MeshPreview.d.ts +1 -1
- package/src/view/elements/MeshPreview.d.ts.map +1 -1
- package/src/view/elements/MeshPreview.js +4 -10
- package/{editor/view/ecs/components/particles/ColorParameterLUTController.d.ts → src/view/elements/drawCheckers.d.ts} +13 -14
- package/src/view/elements/drawCheckers.d.ts.map +1 -0
- package/src/view/elements/drawCheckers.js +33 -0
- package/src/view/elements/progress/segmented/SegmentDefinition.d.ts.map +1 -1
- package/src/view/elements/progress/segmented/SegmentDefinition.js +1 -3
- package/src/view/elements/radial/RadialMenu.d.ts.map +1 -1
- package/src/view/elements/radial/RadialMenu.js +18 -19
- package/src/view/elements/radial/RadialMenuElementDefinition.d.ts.map +1 -1
- package/src/view/elements/radial/RadialMenuElementDefinition.js +95 -87
- package/src/view/elements/radial/RadialText.d.ts +3 -3
- package/src/view/elements/radial/RadialText.d.ts.map +1 -1
- package/src/view/elements/radial/RadialText.js +19 -22
- package/src/view/elements/tiles2d/Tile.d.ts +1 -1
- package/src/view/elements/tiles2d/Tile.d.ts.map +1 -1
- package/src/view/elements/tiles2d/Tile.js +2 -2
- package/src/view/elements/tiles2d/TileGrid.d.ts.map +1 -1
- package/src/view/elements/tiles2d/TileGrid.js +1 -4
- package/src/view/game/achievements/AchievementNotificationView.d.ts.map +1 -1
- package/src/view/game/achievements/AchievementNotificationView.js +2 -3
- package/src/view/interaction/InteractionCommandSet.d.ts.map +1 -1
- package/src/view/interaction/InteractionCommandSet.js +5 -7
- package/src/view/layout/DockDragOverlayView.d.ts +24 -0
- package/src/view/layout/DockDragOverlayView.d.ts.map +1 -0
- package/src/view/layout/DockDragOverlayView.js +63 -0
- package/src/view/layout/DockDropPlan.d.ts +46 -0
- package/src/view/layout/DockDropPlan.d.ts.map +1 -0
- package/src/view/layout/DockDropPlan.js +53 -0
- package/src/view/layout/DockGroupNode.d.ts +29 -0
- package/src/view/layout/DockGroupNode.d.ts.map +1 -0
- package/src/view/layout/DockGroupNode.js +38 -0
- package/src/view/layout/DockLayoutView.d.ts +125 -0
- package/src/view/layout/DockLayoutView.d.ts.map +1 -0
- package/src/view/layout/DockLayoutView.js +1193 -0
- package/src/view/layout/DockPanel.d.ts +38 -0
- package/src/view/layout/DockPanel.d.ts.map +1 -0
- package/src/view/layout/DockPanel.js +51 -0
- package/src/view/layout/DockSide.d.ts +48 -0
- package/src/view/layout/DockSide.d.ts.map +1 -0
- package/src/view/layout/DockSide.js +88 -0
- package/src/view/layout/DockSplitNode.d.ts +59 -0
- package/src/view/layout/DockSplitNode.d.ts.map +1 -0
- package/src/view/layout/DockSplitNode.js +78 -0
- package/src/view/layout/DrawerView.d.ts +53 -0
- package/src/view/layout/DrawerView.d.ts.map +1 -0
- package/src/view/layout/DrawerView.js +163 -0
- package/src/view/layout/FloatingPanelView.d.ts +38 -0
- package/src/view/layout/FloatingPanelView.d.ts.map +1 -0
- package/src/view/layout/FloatingPanelView.js +251 -0
- package/src/view/layout/SplitView.d.ts +73 -0
- package/src/view/layout/SplitView.d.ts.map +1 -0
- package/src/view/layout/SplitView.js +365 -0
- package/src/view/layout/layout.scss +236 -0
- package/src/view/layout/show_popup_menu.d.ts +19 -0
- package/src/view/layout/show_popup_menu.d.ts.map +1 -0
- package/src/view/layout/show_popup_menu.js +81 -0
- package/src/view/minimap/Minimap.d.ts.map +1 -1
- package/src/view/minimap/Minimap.js +2 -6
- package/src/view/minimap/dom/MinimapMarkerView.d.ts.map +1 -1
- package/src/view/minimap/dom/MinimapMarkerView.js +2 -3
- package/src/view/minimap/gl/MarkerGL.d.ts +6 -6
- package/src/view/minimap/gl/MarkerGL.d.ts.map +1 -1
- package/src/view/minimap/gl/MarkerGL.js +8 -9
- package/src/view/minimap/gl/MinimapFogOfWar.d.ts +7 -7
- package/src/view/minimap/gl/MinimapFogOfWar.d.ts.map +1 -1
- package/src/view/minimap/gl/MinimapFogOfWar.js +10 -12
- package/src/view/minimap/gl/MinimapWorldGL.d.ts +15 -15
- package/src/view/minimap/gl/MinimapWorldGL.d.ts.map +1 -1
- package/src/view/minimap/gl/MinimapWorldGL.js +18 -16
- package/src/view/minimap/gl/MinimapWorldLayer.d.ts.map +1 -1
- package/src/view/minimap/gl/MinimapWorldLayer.js +4 -8
- package/src/view/tooltip/DomTooltipManager.d.ts +6 -6
- package/src/view/tooltip/DomTooltipManager.d.ts.map +1 -1
- package/src/view/tooltip/DomTooltipManager.js +21 -22
- package/src/view/tooltip/TooltipManager.d.ts.map +1 -1
- package/src/view/tooltip/TooltipManager.js +6 -8
- package/src/view/tooltip/TooltipView.d.ts +1 -1
- package/src/view/tooltip/TooltipView.d.ts.map +1 -1
- package/src/view/tooltip/TooltipView.js +3 -4
- package/src/view/tooltip/VisualTip.d.ts +5 -5
- package/src/view/tooltip/VisualTip.d.ts.map +1 -1
- package/src/view/tooltip/VisualTip.js +6 -7
- package/src/view/tooltip/gml/GMLEngine.d.ts.map +1 -1
- package/src/view/tooltip/gml/GMLEngine.js +57 -63
- package/src/view/util/DomSizeObserver.d.ts +6 -6
- package/src/view/util/DomSizeObserver.d.ts.map +1 -1
- package/src/view/util/DomSizeObserver.js +27 -20
- package/editor/actions/concrete/PatchTerrainTextureAction.js +0 -153
- package/editor/ecs/component/editors/ecs/MinimapMarkerEditor.d.ts +0 -14
- package/editor/ecs/component/editors/ecs/MinimapMarkerEditor.d.ts.map +0 -1
- package/editor/process/symbolic/makeStoryTriggerSetAreaDisplay.js +0 -114
- package/editor/tools/TopDownCameraControlTool.d.ts +0 -13
- package/editor/tools/TopDownCameraControlTool.d.ts.map +0 -1
- package/editor/tools/TopDownCameraControlTool.js +0 -56
- package/editor/tools/TransformTool.js +0 -385
- package/editor/tools/paint/prototypeTerrainEditor.js +0 -135
- package/editor/view/EditorView.d.ts +0 -39
- package/editor/view/EditorView.d.ts.map +0 -1
- package/editor/view/EditorView.js +0 -304
- package/editor/view/ecs/ComponentControlFactory.d.ts +0 -19
- package/editor/view/ecs/ComponentControlFactory.d.ts.map +0 -1
- package/editor/view/ecs/ComponentControlFactory.js +0 -45
- package/editor/view/ecs/EntityList.d.ts +0 -22
- package/editor/view/ecs/EntityList.d.ts.map +0 -1
- package/editor/view/ecs/HierarchicalEntityListView.module.scss +0 -13
- package/editor/view/ecs/components/BlackboardController.js +0 -50
- package/editor/view/ecs/components/DatGuiController.d.ts.map +0 -1
- package/editor/view/ecs/components/FogOfWarController.js +0 -78
- package/editor/view/ecs/components/FogOfWarRevealerController.js +0 -44
- package/editor/view/ecs/components/GeneratedArmyController.js +0 -42
- package/editor/view/ecs/components/GridObstacleController.d.ts +0 -14
- package/editor/view/ecs/components/GridObstacleController.d.ts.map +0 -1
- package/editor/view/ecs/components/GridObstacleController.js +0 -72
- package/editor/view/ecs/components/GridPositionController.js +0 -40
- package/editor/view/ecs/components/HeadsUpDisplayController.js +0 -30
- package/editor/view/ecs/components/HighlightController.js +0 -47
- package/editor/view/ecs/components/MeshController.js +0 -122
- package/editor/view/ecs/components/PathFollowerController.js +0 -87
- package/editor/view/ecs/components/TagController.js +0 -80
- package/editor/view/ecs/components/TerrainController.js +0 -215
- package/editor/view/ecs/components/TransformController.js +0 -97
- package/editor/view/ecs/components/UnitShopController.js +0 -112
- package/editor/view/ecs/components/army/ArmyController.js +0 -130
- package/editor/view/ecs/components/gui/GUIElementController.js +0 -117
- package/editor/view/ecs/components/items/ItemContainerController.js +0 -132
- package/editor/view/ecs/components/items/ItemContainerController.stories.js +0 -50
- package/editor/view/ecs/components/items/ItemController.js +0 -52
- package/editor/view/ecs/components/particles/ColorParameterLUTController.d.ts.map +0 -1
- package/editor/view/ecs/components/particles/ColorParameterLUTController.js +0 -444
- package/editor/view/ecs/components/particles/ParameterTrackController.js +0 -51
- package/editor/view/ecs/components/particles/ParticleEmitterController.js +0 -213
- package/editor/view/ecs/components/particles/ParticleLayerController.js +0 -213
- package/editor/view/ecs/components/particles/ScalarParameterLUTController.js +0 -401
- package/editor/view/ecs/components/sockets/AttachmentSocketsController.js +0 -51
- package/editor/view/ecs/components/sound/SoundEmitterController.js +0 -137
- package/editor/view/ecs/components/story/StoryTriggerSetController.js +0 -214
- package/editor/view/ecs/components/unit/AuraController.js +0 -45
- package/editor/view/makeEntityDecorators.d.ts +0 -6
- package/editor/view/makeEntityDecorators.d.ts.map +0 -1
- package/editor/view/v2/SplitView.d.ts +0 -17
- package/editor/view/v2/SplitView.d.ts.map +0 -1
- package/editor/view/v2/ViewManagementSystem.js +0 -0
- package/editor/view/v2/prototypeEditor.js +0 -127
- package/src/engine/graphics/ecs/sprite/prototypeSpriteSystem.d.ts +0 -2
- package/src/engine/graphics/ecs/sprite/prototypeSpriteSystem.d.ts.map +0 -1
- package/src/engine/graphics/ecs/sprite/prototypeSpriteSystem.js +0 -1570
- package/src/engine/graphics/three/TransfromControls.js +0 -1495
- package/src/view/controller/controls_v2/AbstractPropertyBinding.d.ts +0 -8
- package/src/view/controller/controls_v2/AbstractPropertyBinding.d.ts.map +0 -1
- package/src/view/controller/controls_v2/AbstractPropertyBinding.ts +0 -10
- package/src/view/controller/controls_v2/Controller.d.ts +0 -21
- package/src/view/controller/controls_v2/Controller.d.ts.map +0 -1
- package/src/view/controller/controls_v2/Controller.ts +0 -32
- package/src/view/controller/controls_v2/IPropertyBinding.d.ts +0 -5
- package/src/view/controller/controls_v2/IPropertyBinding.d.ts.map +0 -1
- package/src/view/controller/controls_v2/IPropertyBinding.ts +0 -6
- package/src/view/controller/controls_v2/PrimitivePropertyBinding.d.ts +0 -6
- package/src/view/controller/controls_v2/PrimitivePropertyBinding.d.ts.map +0 -1
- package/src/view/controller/controls_v2/PrimitivePropertyBinding.ts +0 -12
- package/src/view/controller/controls_v2/SliderController.d.ts +0 -6
- package/src/view/controller/controls_v2/SliderController.d.ts.map +0 -1
- package/src/view/controller/controls_v2/SliderController.ts +0 -10
- package/src/view/elements/button/ButtonView.stories.d.ts +0 -2
- package/src/view/elements/button/ButtonView.stories.d.ts.map +0 -1
- package/src/view/elements/button/ButtonView.stories.js +0 -14
|
@@ -1,586 +1,586 @@
|
|
|
1
|
-
import { assert } from "../../assert.js";
|
|
2
|
-
import { BinaryElementPool } from "../../geom/3d/topology/struct/binary/BinaryElementPool.js";
|
|
3
|
-
|
|
4
|
-
const UINT32_MAX = 4294967295;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Sentinel for "no such node" — matches Boost's `(size_type)(-1)` convention.
|
|
8
|
-
* Valid node handles are 0 .. UINT32_MAX - 1.
|
|
9
|
-
* @type {number}
|
|
10
|
-
*/
|
|
11
|
-
const NULL_HANDLE = UINT32_MAX;
|
|
12
|
-
|
|
13
|
-
/*
|
|
14
|
-
* Node record layout — 32 bytes / 8 words per node, kept word-aligned so that one record fits inside half
|
|
15
|
-
* a typical 64 B cache line. All fields are uint32 except `key`, which is float32; both views are aliased
|
|
16
|
-
* onto the same backing ArrayBuffer via {@link BinaryElementPool}.
|
|
17
|
-
*
|
|
18
|
-
* word 0 : key (float32) — priority / score
|
|
19
|
-
* word 1 : id (uint32) — client-supplied identifier
|
|
20
|
-
* word 2 : parent (uint32) — handle, NULL_HANDLE if at root
|
|
21
|
-
* word 3 : child (uint32) — handle of an arbitrary child, NULL_HANDLE if leaf
|
|
22
|
-
* word 4 : left (uint32) — left sibling in the circular doubly-linked list
|
|
23
|
-
* word 5 : right (uint32) — right sibling in the circular doubly-linked list
|
|
24
|
-
* word 6 : degree (uint32) — number of children
|
|
25
|
-
* word 7 : mark (uint32) — 0 or 1, set by cascading cuts
|
|
26
|
-
*/
|
|
27
|
-
const RECORD_WORD_SIZE = 8;
|
|
28
|
-
const RECORD_BYTE_SIZE = RECORD_WORD_SIZE * 4;
|
|
29
|
-
|
|
30
|
-
const FIELD_KEY = 0;
|
|
31
|
-
const FIELD_ID = 1;
|
|
32
|
-
const FIELD_PARENT = 2;
|
|
33
|
-
const FIELD_CHILD = 3;
|
|
34
|
-
const FIELD_LEFT = 4;
|
|
35
|
-
const FIELD_RIGHT = 5;
|
|
36
|
-
const FIELD_DEGREE = 6;
|
|
37
|
-
const FIELD_MARK = 7;
|
|
38
|
-
|
|
39
|
-
const DEFAULT_CAPACITY = 64;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Fibonacci heap implementation that stores uint32 ID along with a floating point score value, intended to be
|
|
43
|
-
* API-compatible with {@link Uint32Heap}.
|
|
44
|
-
*
|
|
45
|
-
* Storage is struct-of-arrays on top of a single {@link BinaryElementPool} — each "node" is a 32-byte
|
|
46
|
-
* record in a contiguous ArrayBuffer, and "node references" are uint32 handles rather than object pointers.
|
|
47
|
-
* This keeps all per-node state in continuous memory, avoiding the per-element allocation and pointer chasing
|
|
48
|
-
* of an object-graph implementation.
|
|
49
|
-
*
|
|
50
|
-
* Fibonacci heaps have theoretically excellent asymptotic bounds:
|
|
51
|
-
* - insert, find-min, decrease-key: amortized O(1)
|
|
52
|
-
* - extract-min, delete: amortized O(log n)
|
|
53
|
-
*
|
|
54
|
-
* In practice they often lose to a simple binary or 4-ary heap on graph-search workloads because of poor
|
|
55
|
-
* cache behavior; this layout closes most of that gap by removing the indirection. See Larkin, Sen & Tarjan
|
|
56
|
-
* (2014), "A Back-to-Basics Empirical Study of Priority Queues" (arXiv:1403.0252) for the empirical context.
|
|
57
|
-
*
|
|
58
|
-
* Reference: Cormen, Leiserson, Rivest, Stein, "Introduction to Algorithms", 3rd ed., chapter 19.
|
|
59
|
-
*
|
|
60
|
-
* @see Uint32Heap
|
|
61
|
-
* @see Uint32Heap4
|
|
62
|
-
*/
|
|
63
|
-
export class FibonacciHeap {
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* @type {
|
|
81
|
-
* @private
|
|
82
|
-
*/
|
|
83
|
-
this.
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {number}
|
|
88
|
-
* @private
|
|
89
|
-
*/
|
|
90
|
-
this.
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Id -> handle lookup, allows update_score / remove / contains / get_score in O(1) expected.
|
|
94
|
-
*
|
|
95
|
-
* Empirically (see the bench tests in FibonacciHeap.spec.js), V8's built-in Map beats a hand-rolled
|
|
96
|
-
* Uint32Array-backed Robin Hood hash table for this workload by 20-90 % on hot paths. Reason: every
|
|
97
|
-
* key and value here is SMI (ids and handles are both small), so V8 Map's native C++ SMI fast path
|
|
98
|
-
* never boxes; meanwhile a JS-side flat-array implementation pays per-probe Math.imul + bounds-checks
|
|
99
|
-
* that V8's compiled Map sidesteps. The Uint32Map primitive lives at core/collection/Uint32Map.js
|
|
100
|
-
* and is the right choice when keys/values exceed 2^30 (V8 Map boxes) or when delete churn is
|
|
101
|
-
* extreme (V8 Map tombstone-rots until rehash) — but not here.
|
|
102
|
-
*
|
|
103
|
-
* @type {Map<number, number>}
|
|
104
|
-
* @private
|
|
105
|
-
*/
|
|
106
|
-
this.__handles = new Map();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @returns {number}
|
|
112
|
-
*/
|
|
113
|
-
get size() {
|
|
114
|
-
return this.__size;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Node with the lowest score
|
|
119
|
-
* @returns {number}
|
|
120
|
-
*/
|
|
121
|
-
get top_id() {
|
|
122
|
-
if (this.__min === NULL_HANDLE) {
|
|
123
|
-
return 0;
|
|
124
|
-
}
|
|
125
|
-
return this.__pool.data_uint32[(this.__min * RECORD_WORD_SIZE) + FIELD_ID];
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @returns {boolean}
|
|
131
|
-
*/
|
|
132
|
-
is_empty() {
|
|
133
|
-
return this.__size === 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Returns the score of the node with the lowest score
|
|
138
|
-
* @returns {number}
|
|
139
|
-
*/
|
|
140
|
-
peek_score() {
|
|
141
|
-
if (this.__min === NULL_HANDLE) {
|
|
142
|
-
return Number.NaN;
|
|
143
|
-
}
|
|
144
|
-
return this.__pool.data_float32[(this.__min * RECORD_WORD_SIZE) + FIELD_KEY];
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Returns the ID of the node with the lowest score
|
|
149
|
-
* @returns {number}
|
|
150
|
-
*/
|
|
151
|
-
peek_min() {
|
|
152
|
-
return this.top_id;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Splice `handle` (a single-element circular list) into the root list to the right of `__min`. The caller
|
|
157
|
-
* is responsible for setting parent and degree on `handle`.
|
|
158
|
-
*
|
|
159
|
-
* @private
|
|
160
|
-
* @param {number} handle
|
|
161
|
-
*/
|
|
162
|
-
__root_insert(handle) {
|
|
163
|
-
const u32 = this.__pool.data_uint32;
|
|
164
|
-
const f32 = this.__pool.data_float32;
|
|
165
|
-
const min = this.__min;
|
|
166
|
-
const handle_base = handle * RECORD_WORD_SIZE;
|
|
167
|
-
|
|
168
|
-
if (min === NULL_HANDLE) {
|
|
169
|
-
// first node — it is its own root list
|
|
170
|
-
u32[handle_base + FIELD_LEFT] = handle;
|
|
171
|
-
u32[handle_base + FIELD_RIGHT] = handle;
|
|
172
|
-
this.__min = handle;
|
|
173
|
-
} else {
|
|
174
|
-
// splice in to the right of min
|
|
175
|
-
const min_base = min * RECORD_WORD_SIZE;
|
|
176
|
-
const min_right = u32[min_base + FIELD_RIGHT];
|
|
177
|
-
|
|
178
|
-
u32[handle_base + FIELD_LEFT] = min;
|
|
179
|
-
u32[handle_base + FIELD_RIGHT] = min_right;
|
|
180
|
-
u32[(min_right * RECORD_WORD_SIZE) + FIELD_LEFT] = handle;
|
|
181
|
-
u32[min_base + FIELD_RIGHT] = handle;
|
|
182
|
-
|
|
183
|
-
if (f32[handle_base + FIELD_KEY] < f32[min_base + FIELD_KEY]) {
|
|
184
|
-
this.__min = handle;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Remove `handle` from its sibling list (root list or child list of some parent). Sibling pointers of
|
|
191
|
-
* `handle` are left dangling; the caller is expected to re-link it immediately.
|
|
192
|
-
*
|
|
193
|
-
* @private
|
|
194
|
-
* @param {number} handle
|
|
195
|
-
*/
|
|
196
|
-
__unlink_from_siblings(handle) {
|
|
197
|
-
const u32 = this.__pool.data_uint32;
|
|
198
|
-
const base = handle * RECORD_WORD_SIZE;
|
|
199
|
-
|
|
200
|
-
const left = u32[base + FIELD_LEFT];
|
|
201
|
-
const right = u32[base + FIELD_RIGHT];
|
|
202
|
-
|
|
203
|
-
u32[(left * RECORD_WORD_SIZE) + FIELD_RIGHT] = right;
|
|
204
|
-
u32[(right * RECORD_WORD_SIZE) + FIELD_LEFT] = left;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
*
|
|
209
|
-
* @param {number} id
|
|
210
|
-
* @param {number} score
|
|
211
|
-
*/
|
|
212
|
-
insert(id, score) {
|
|
213
|
-
assert.isNonNegativeInteger(id, 'id');
|
|
214
|
-
assert.lessThanOrEqual(id, UINT32_MAX - 1, 'id must be <= (2^32 - 2)');
|
|
215
|
-
assert.isNumber(score, 'score');
|
|
216
|
-
assert.notNaN(score, 'score');
|
|
217
|
-
|
|
218
|
-
// pool.allocate() may grow the underlying buffer, so re-fetch views *after* the call
|
|
219
|
-
const handle = this.__pool.allocate();
|
|
220
|
-
const u32 = this.__pool.data_uint32;
|
|
221
|
-
const f32 = this.__pool.data_float32;
|
|
222
|
-
const base = handle * RECORD_WORD_SIZE;
|
|
223
|
-
|
|
224
|
-
// a recycled slot retains stale bytes from its previous occupant — initialize every field explicitly
|
|
225
|
-
f32[base + FIELD_KEY] = score;
|
|
226
|
-
u32[base + FIELD_ID] = id;
|
|
227
|
-
u32[base + FIELD_PARENT] = NULL_HANDLE;
|
|
228
|
-
u32[base + FIELD_CHILD] = NULL_HANDLE;
|
|
229
|
-
u32[base + FIELD_LEFT] = handle;
|
|
230
|
-
u32[base + FIELD_RIGHT] = handle;
|
|
231
|
-
u32[base + FIELD_DEGREE] = 0;
|
|
232
|
-
u32[base + FIELD_MARK] = 0;
|
|
233
|
-
|
|
234
|
-
this.__root_insert(handle);
|
|
235
|
-
|
|
236
|
-
this.__handles.set(id, handle);
|
|
237
|
-
this.__size++;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Removed and returns the ID of the node with the lowest score.
|
|
242
|
-
*
|
|
243
|
-
* @returns {number}
|
|
244
|
-
*/
|
|
245
|
-
pop_min() {
|
|
246
|
-
const z = this.__min;
|
|
247
|
-
|
|
248
|
-
assert.notEqual(z, NULL_HANDLE, 'heap is empty');
|
|
249
|
-
|
|
250
|
-
const u32 = this.__pool.data_uint32;
|
|
251
|
-
const z_base = z * RECORD_WORD_SIZE;
|
|
252
|
-
const z_id = u32[z_base + FIELD_ID];
|
|
253
|
-
|
|
254
|
-
// promote all of z's children to the root list
|
|
255
|
-
const child = u32[z_base + FIELD_CHILD];
|
|
256
|
-
if (child !== NULL_HANDLE) {
|
|
257
|
-
// walk the child list, clearing parent pointers
|
|
258
|
-
let c = child;
|
|
259
|
-
do {
|
|
260
|
-
u32[(c * RECORD_WORD_SIZE) + FIELD_PARENT] = NULL_HANDLE;
|
|
261
|
-
c = u32[(c * RECORD_WORD_SIZE) + FIELD_RIGHT];
|
|
262
|
-
} while (c !== child);
|
|
263
|
-
|
|
264
|
-
// splice the child list into the root list, immediately to the right of z.
|
|
265
|
-
// both are circular doubly-linked lists; standard list-concat trick:
|
|
266
|
-
const z_right = u32[z_base + FIELD_RIGHT];
|
|
267
|
-
const child_base = child * RECORD_WORD_SIZE;
|
|
268
|
-
const child_left = u32[child_base + FIELD_LEFT];
|
|
269
|
-
|
|
270
|
-
u32[z_base + FIELD_RIGHT] = child;
|
|
271
|
-
u32[child_base + FIELD_LEFT] = z;
|
|
272
|
-
|
|
273
|
-
u32[(child_left * RECORD_WORD_SIZE) + FIELD_RIGHT] = z_right;
|
|
274
|
-
u32[(z_right * RECORD_WORD_SIZE) + FIELD_LEFT] = child_left;
|
|
275
|
-
|
|
276
|
-
u32[z_base + FIELD_CHILD] = NULL_HANDLE;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
// snapshot before the unlink rewrites z's sibling pointers
|
|
280
|
-
const z_right_after_merge = u32[z_base + FIELD_RIGHT];
|
|
281
|
-
|
|
282
|
-
// remove z from the root list
|
|
283
|
-
this.__unlink_from_siblings(z);
|
|
284
|
-
|
|
285
|
-
if (z === z_right_after_merge) {
|
|
286
|
-
// z was the only node remaining
|
|
287
|
-
this.__min = NULL_HANDLE;
|
|
288
|
-
} else {
|
|
289
|
-
// tentatively set min to z's old right neighbor; consolidation will pick the real min
|
|
290
|
-
this.__min = z_right_after_merge;
|
|
291
|
-
this.__consolidate();
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
this.__size--;
|
|
295
|
-
this.__handles.delete(z_id);
|
|
296
|
-
this.__pool.release(z);
|
|
297
|
-
|
|
298
|
-
return z_id;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Merge trees of equal degree until every degree is unique among the roots. Sets `__min` to the true
|
|
303
|
-
* minimum.
|
|
304
|
-
*
|
|
305
|
-
* @private
|
|
306
|
-
*/
|
|
307
|
-
__consolidate() {
|
|
308
|
-
const u32 = this.__pool.data_uint32;
|
|
309
|
-
const f32 = this.__pool.data_float32;
|
|
310
|
-
|
|
311
|
-
// upper bound on max degree D(n) <= floor(log_phi(n)).
|
|
312
|
-
// log_phi(n) = log2(n) / log2(phi) ~= log2(n) * 1.4404; pad generously.
|
|
313
|
-
const D = Math.floor(Math.log2(this.__size)) * 2 + 8;
|
|
314
|
-
const A = new Array(D);
|
|
315
|
-
for (let i = 0; i < D; i++) {
|
|
316
|
-
A[i] = NULL_HANDLE;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
// snapshot the current root list — the list is mutated during link, so iterate over a stable copy
|
|
320
|
-
const roots = [];
|
|
321
|
-
const start = this.__min;
|
|
322
|
-
let w = start;
|
|
323
|
-
do {
|
|
324
|
-
roots.push(w);
|
|
325
|
-
w = u32[(w * RECORD_WORD_SIZE) + FIELD_RIGHT];
|
|
326
|
-
} while (w !== start);
|
|
327
|
-
|
|
328
|
-
for (let i = 0; i < roots.length; i++) {
|
|
329
|
-
let x = roots[i];
|
|
330
|
-
let d = u32[(x * RECORD_WORD_SIZE) + FIELD_DEGREE];
|
|
331
|
-
|
|
332
|
-
while (A[d] !== NULL_HANDLE) {
|
|
333
|
-
let y = A[d];
|
|
334
|
-
|
|
335
|
-
if (f32[(x * RECORD_WORD_SIZE) + FIELD_KEY] > f32[(y * RECORD_WORD_SIZE) + FIELD_KEY]) {
|
|
336
|
-
// swap so x is the smaller-key root
|
|
337
|
-
const tmp = x;
|
|
338
|
-
x = y;
|
|
339
|
-
y = tmp;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
this.__link(y, x);
|
|
343
|
-
|
|
344
|
-
A[d] = NULL_HANDLE;
|
|
345
|
-
d++;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
A[d] = x;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// rebuild the root list from A[] and find the new min
|
|
352
|
-
this.__min = NULL_HANDLE;
|
|
353
|
-
for (let i = 0; i < D; i++) {
|
|
354
|
-
const a = A[i];
|
|
355
|
-
if (a !== NULL_HANDLE) {
|
|
356
|
-
// detach (it may still point to old neighbors that no longer reference it)
|
|
357
|
-
const a_base = a * RECORD_WORD_SIZE;
|
|
358
|
-
u32[a_base + FIELD_LEFT] = a;
|
|
359
|
-
u32[a_base + FIELD_RIGHT] = a;
|
|
360
|
-
this.__root_insert(a);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Make `y` (currently in the root list) a child of `x`.
|
|
367
|
-
*
|
|
368
|
-
* @private
|
|
369
|
-
* @param {number} y
|
|
370
|
-
* @param {number} x
|
|
371
|
-
*/
|
|
372
|
-
__link(y, x) {
|
|
373
|
-
const u32 = this.__pool.data_uint32;
|
|
374
|
-
|
|
375
|
-
// remove y from the root list
|
|
376
|
-
this.__unlink_from_siblings(y);
|
|
377
|
-
|
|
378
|
-
const x_base = x * RECORD_WORD_SIZE;
|
|
379
|
-
const y_base = y * RECORD_WORD_SIZE;
|
|
380
|
-
|
|
381
|
-
const x_child = u32[x_base + FIELD_CHILD];
|
|
382
|
-
if (x_child === NULL_HANDLE) {
|
|
383
|
-
u32[x_base + FIELD_CHILD] = y;
|
|
384
|
-
u32[y_base + FIELD_LEFT] = y;
|
|
385
|
-
u32[y_base + FIELD_RIGHT] = y;
|
|
386
|
-
} else {
|
|
387
|
-
// splice y into x's child list
|
|
388
|
-
const x_child_base = x_child * RECORD_WORD_SIZE;
|
|
389
|
-
const x_child_right = u32[x_child_base + FIELD_RIGHT];
|
|
390
|
-
|
|
391
|
-
u32[y_base + FIELD_LEFT] = x_child;
|
|
392
|
-
u32[y_base + FIELD_RIGHT] = x_child_right;
|
|
393
|
-
u32[(x_child_right * RECORD_WORD_SIZE) + FIELD_LEFT] = y;
|
|
394
|
-
u32[x_child_base + FIELD_RIGHT] = y;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
u32[y_base + FIELD_PARENT] = x;
|
|
398
|
-
u32[x_base + FIELD_DEGREE]++;
|
|
399
|
-
u32[y_base + FIELD_MARK] = 0;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* Decrease the key of `handle` to `new_key`. `new_key` must be <= current key.
|
|
404
|
-
*
|
|
405
|
-
* @private
|
|
406
|
-
* @param {number} handle
|
|
407
|
-
* @param {number} new_key
|
|
408
|
-
*/
|
|
409
|
-
__decrease_key(handle, new_key) {
|
|
410
|
-
const u32 = this.__pool.data_uint32;
|
|
411
|
-
const f32 = this.__pool.data_float32;
|
|
412
|
-
const base = handle * RECORD_WORD_SIZE;
|
|
413
|
-
|
|
414
|
-
assert.lessThanOrEqual(new_key, f32[base + FIELD_KEY], 'new key is greater than current key');
|
|
415
|
-
|
|
416
|
-
f32[base + FIELD_KEY] = new_key;
|
|
417
|
-
|
|
418
|
-
const parent = u32[base + FIELD_PARENT];
|
|
419
|
-
if (parent !== NULL_HANDLE && new_key < f32[(parent * RECORD_WORD_SIZE) + FIELD_KEY]) {
|
|
420
|
-
this.__cut(handle, parent);
|
|
421
|
-
this.__cascading_cut(parent);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
if (new_key < f32[(this.__min * RECORD_WORD_SIZE) + FIELD_KEY]) {
|
|
425
|
-
this.__min = handle;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Cut `x` from `y`'s child list and promote it to the root list.
|
|
431
|
-
*
|
|
432
|
-
* @private
|
|
433
|
-
* @param {number} x child being cut
|
|
434
|
-
* @param {number} y parent of x
|
|
435
|
-
*/
|
|
436
|
-
__cut(x, y) {
|
|
437
|
-
const u32 = this.__pool.data_uint32;
|
|
438
|
-
const x_base = x * RECORD_WORD_SIZE;
|
|
439
|
-
const y_base = y * RECORD_WORD_SIZE;
|
|
440
|
-
|
|
441
|
-
const x_right = u32[x_base + FIELD_RIGHT];
|
|
442
|
-
|
|
443
|
-
if (x_right === x) {
|
|
444
|
-
// x was the only child of y
|
|
445
|
-
u32[y_base + FIELD_CHILD] = NULL_HANDLE;
|
|
446
|
-
} else {
|
|
447
|
-
if (u32[y_base + FIELD_CHILD] === x) {
|
|
448
|
-
// y was pointing at x — point at a sibling instead
|
|
449
|
-
u32[y_base + FIELD_CHILD] = x_right;
|
|
450
|
-
}
|
|
451
|
-
this.__unlink_from_siblings(x);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
u32[y_base + FIELD_DEGREE]--;
|
|
455
|
-
|
|
456
|
-
// single-element circular list, then insert at root
|
|
457
|
-
u32[x_base + FIELD_LEFT] = x;
|
|
458
|
-
u32[x_base + FIELD_RIGHT] = x;
|
|
459
|
-
u32[x_base + FIELD_PARENT] = NULL_HANDLE;
|
|
460
|
-
u32[x_base + FIELD_MARK] = 0;
|
|
461
|
-
|
|
462
|
-
this.__root_insert(x);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* Walk up from `y`, cutting marked ancestors and marking unmarked ones.
|
|
467
|
-
*
|
|
468
|
-
* @private
|
|
469
|
-
* @param {number} y
|
|
470
|
-
*/
|
|
471
|
-
__cascading_cut(y) {
|
|
472
|
-
const u32 = this.__pool.data_uint32;
|
|
473
|
-
const y_base = y * RECORD_WORD_SIZE;
|
|
474
|
-
|
|
475
|
-
const z = u32[y_base + FIELD_PARENT];
|
|
476
|
-
if (z !== NULL_HANDLE) {
|
|
477
|
-
if (u32[y_base + FIELD_MARK] === 0) {
|
|
478
|
-
u32[y_base + FIELD_MARK] = 1;
|
|
479
|
-
} else {
|
|
480
|
-
this.__cut(y, z);
|
|
481
|
-
this.__cascading_cut(z);
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Delete the node referenced by `handle` by decreasing its key to -Infinity and popping the min.
|
|
488
|
-
*
|
|
489
|
-
* @private
|
|
490
|
-
* @param {number} handle
|
|
491
|
-
*/
|
|
492
|
-
__delete_handle(handle) {
|
|
493
|
-
this.__decrease_key(handle, Number.NEGATIVE_INFINITY);
|
|
494
|
-
this.pop_min();
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
*
|
|
499
|
-
* @param {number} id
|
|
500
|
-
* @returns {boolean}
|
|
501
|
-
*/
|
|
502
|
-
contains(id) {
|
|
503
|
-
return this.__handles.has(id);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
*
|
|
508
|
-
* @param {number} id
|
|
509
|
-
* @returns {number} score of the element with the given id, NaN if not found
|
|
510
|
-
*/
|
|
511
|
-
get_score(id) {
|
|
512
|
-
const handle = this.__handles.get(id);
|
|
513
|
-
if (handle === undefined) {
|
|
514
|
-
return Number.NaN;
|
|
515
|
-
}
|
|
516
|
-
return this.__pool.data_float32[(handle * RECORD_WORD_SIZE) + FIELD_KEY];
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
*
|
|
521
|
-
* @param {number} id
|
|
522
|
-
* @param {number} score
|
|
523
|
-
*/
|
|
524
|
-
update_score(id, score) {
|
|
525
|
-
const handle = this.__handles.get(id);
|
|
526
|
-
|
|
527
|
-
if (handle === undefined) {
|
|
528
|
-
throw new Error('Not found');
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
assert.isNumber(score, 'score');
|
|
532
|
-
assert.notNaN(score, 'score');
|
|
533
|
-
|
|
534
|
-
const current = this.__pool.data_float32[(handle * RECORD_WORD_SIZE) + FIELD_KEY];
|
|
535
|
-
|
|
536
|
-
if (score < current) {
|
|
537
|
-
this.__decrease_key(handle, score);
|
|
538
|
-
} else if (score > current) {
|
|
539
|
-
// increase-key: delete and re-insert
|
|
540
|
-
this.__delete_handle(handle);
|
|
541
|
-
this.insert(id, score);
|
|
542
|
-
}
|
|
543
|
-
// score === current: no-op
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Insert or update an element, if the element already exists, its score will be updated.
|
|
548
|
-
*
|
|
549
|
-
* @param {number} id
|
|
550
|
-
* @param {number} score
|
|
551
|
-
*/
|
|
552
|
-
insert_or_update(id, score) {
|
|
553
|
-
if (this.__handles.has(id)) {
|
|
554
|
-
this.update_score(id, score);
|
|
555
|
-
} else {
|
|
556
|
-
this.insert(id, score);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
*
|
|
562
|
-
* @param {number} id
|
|
563
|
-
* @returns {boolean}
|
|
564
|
-
*/
|
|
565
|
-
remove(id) {
|
|
566
|
-
const handle = this.__handles.get(id);
|
|
567
|
-
|
|
568
|
-
if (handle === undefined) {
|
|
569
|
-
return false;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
this.__delete_handle(handle);
|
|
573
|
-
|
|
574
|
-
return true;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Clear out all the data, heap will be made empty
|
|
579
|
-
*/
|
|
580
|
-
clear() {
|
|
581
|
-
this.__min = NULL_HANDLE;
|
|
582
|
-
this.__size = 0;
|
|
583
|
-
this.__handles.clear();
|
|
584
|
-
this.__pool.clear();
|
|
585
|
-
}
|
|
586
|
-
}
|
|
1
|
+
import { assert } from "../../assert.js";
|
|
2
|
+
import { BinaryElementPool } from "../../geom/3d/topology/struct/binary/BinaryElementPool.js";
|
|
3
|
+
|
|
4
|
+
const UINT32_MAX = 4294967295;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Sentinel for "no such node" — matches Boost's `(size_type)(-1)` convention.
|
|
8
|
+
* Valid node handles are 0 .. UINT32_MAX - 1.
|
|
9
|
+
* @type {number}
|
|
10
|
+
*/
|
|
11
|
+
const NULL_HANDLE = UINT32_MAX;
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Node record layout — 32 bytes / 8 words per node, kept word-aligned so that one record fits inside half
|
|
15
|
+
* a typical 64 B cache line. All fields are uint32 except `key`, which is float32; both views are aliased
|
|
16
|
+
* onto the same backing ArrayBuffer via {@link BinaryElementPool}.
|
|
17
|
+
*
|
|
18
|
+
* word 0 : key (float32) — priority / score
|
|
19
|
+
* word 1 : id (uint32) — client-supplied identifier
|
|
20
|
+
* word 2 : parent (uint32) — handle, NULL_HANDLE if at root
|
|
21
|
+
* word 3 : child (uint32) — handle of an arbitrary child, NULL_HANDLE if leaf
|
|
22
|
+
* word 4 : left (uint32) — left sibling in the circular doubly-linked list
|
|
23
|
+
* word 5 : right (uint32) — right sibling in the circular doubly-linked list
|
|
24
|
+
* word 6 : degree (uint32) — number of children
|
|
25
|
+
* word 7 : mark (uint32) — 0 or 1, set by cascading cuts
|
|
26
|
+
*/
|
|
27
|
+
const RECORD_WORD_SIZE = 8;
|
|
28
|
+
const RECORD_BYTE_SIZE = RECORD_WORD_SIZE * 4;
|
|
29
|
+
|
|
30
|
+
const FIELD_KEY = 0;
|
|
31
|
+
const FIELD_ID = 1;
|
|
32
|
+
const FIELD_PARENT = 2;
|
|
33
|
+
const FIELD_CHILD = 3;
|
|
34
|
+
const FIELD_LEFT = 4;
|
|
35
|
+
const FIELD_RIGHT = 5;
|
|
36
|
+
const FIELD_DEGREE = 6;
|
|
37
|
+
const FIELD_MARK = 7;
|
|
38
|
+
|
|
39
|
+
const DEFAULT_CAPACITY = 64;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Fibonacci heap implementation that stores uint32 ID along with a floating point score value, intended to be
|
|
43
|
+
* API-compatible with {@link Uint32Heap}.
|
|
44
|
+
*
|
|
45
|
+
* Storage is struct-of-arrays on top of a single {@link BinaryElementPool} — each "node" is a 32-byte
|
|
46
|
+
* record in a contiguous ArrayBuffer, and "node references" are uint32 handles rather than object pointers.
|
|
47
|
+
* This keeps all per-node state in continuous memory, avoiding the per-element allocation and pointer chasing
|
|
48
|
+
* of an object-graph implementation.
|
|
49
|
+
*
|
|
50
|
+
* Fibonacci heaps have theoretically excellent asymptotic bounds:
|
|
51
|
+
* - insert, find-min, decrease-key: amortized O(1)
|
|
52
|
+
* - extract-min, delete: amortized O(log n)
|
|
53
|
+
*
|
|
54
|
+
* In practice they often lose to a simple binary or 4-ary heap on graph-search workloads because of poor
|
|
55
|
+
* cache behavior; this layout closes most of that gap by removing the indirection. See Larkin, Sen & Tarjan
|
|
56
|
+
* (2014), "A Back-to-Basics Empirical Study of Priority Queues" (arXiv:1403.0252) for the empirical context.
|
|
57
|
+
*
|
|
58
|
+
* Reference: Cormen, Leiserson, Rivest, Stein, "Introduction to Algorithms", 3rd ed., chapter 19.
|
|
59
|
+
*
|
|
60
|
+
* @see Uint32Heap
|
|
61
|
+
* @see Uint32Heap4
|
|
62
|
+
*/
|
|
63
|
+
export class FibonacciHeap {
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Number of nodes currently in the heap.
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @private
|
|
69
|
+
*/
|
|
70
|
+
__size = 0;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @param {number} [initial_capacity] reserves space for this many nodes up front. The pool grows on demand.
|
|
75
|
+
*/
|
|
76
|
+
constructor(initial_capacity = DEFAULT_CAPACITY) {
|
|
77
|
+
assert.isNonNegativeInteger(initial_capacity, 'initial_capacity');
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @type {BinaryElementPool}
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
this.__pool = new BinaryElementPool(RECORD_BYTE_SIZE, initial_capacity);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Handle of the node with the smallest key, or NULL_HANDLE if empty.
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @private
|
|
89
|
+
*/
|
|
90
|
+
this.__min = NULL_HANDLE;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Id -> handle lookup, allows update_score / remove / contains / get_score in O(1) expected.
|
|
94
|
+
*
|
|
95
|
+
* Empirically (see the bench tests in FibonacciHeap.spec.js), V8's built-in Map beats a hand-rolled
|
|
96
|
+
* Uint32Array-backed Robin Hood hash table for this workload by 20-90 % on hot paths. Reason: every
|
|
97
|
+
* key and value here is SMI (ids and handles are both small), so V8 Map's native C++ SMI fast path
|
|
98
|
+
* never boxes; meanwhile a JS-side flat-array implementation pays per-probe Math.imul + bounds-checks
|
|
99
|
+
* that V8's compiled Map sidesteps. The Uint32Map primitive lives at core/collection/Uint32Map.js
|
|
100
|
+
* and is the right choice when keys/values exceed 2^30 (V8 Map boxes) or when delete churn is
|
|
101
|
+
* extreme (V8 Map tombstone-rots until rehash) — but not here.
|
|
102
|
+
*
|
|
103
|
+
* @type {Map<number, number>}
|
|
104
|
+
* @private
|
|
105
|
+
*/
|
|
106
|
+
this.__handles = new Map();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @returns {number}
|
|
112
|
+
*/
|
|
113
|
+
get size() {
|
|
114
|
+
return this.__size;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Node with the lowest score
|
|
119
|
+
* @returns {number}
|
|
120
|
+
*/
|
|
121
|
+
get top_id() {
|
|
122
|
+
if (this.__min === NULL_HANDLE) {
|
|
123
|
+
return 0;
|
|
124
|
+
}
|
|
125
|
+
return this.__pool.data_uint32[(this.__min * RECORD_WORD_SIZE) + FIELD_ID];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @returns {boolean}
|
|
131
|
+
*/
|
|
132
|
+
is_empty() {
|
|
133
|
+
return this.__size === 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Returns the score of the node with the lowest score
|
|
138
|
+
* @returns {number}
|
|
139
|
+
*/
|
|
140
|
+
peek_score() {
|
|
141
|
+
if (this.__min === NULL_HANDLE) {
|
|
142
|
+
return Number.NaN;
|
|
143
|
+
}
|
|
144
|
+
return this.__pool.data_float32[(this.__min * RECORD_WORD_SIZE) + FIELD_KEY];
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Returns the ID of the node with the lowest score
|
|
149
|
+
* @returns {number}
|
|
150
|
+
*/
|
|
151
|
+
peek_min() {
|
|
152
|
+
return this.top_id;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Splice `handle` (a single-element circular list) into the root list to the right of `__min`. The caller
|
|
157
|
+
* is responsible for setting parent and degree on `handle`.
|
|
158
|
+
*
|
|
159
|
+
* @private
|
|
160
|
+
* @param {number} handle
|
|
161
|
+
*/
|
|
162
|
+
__root_insert(handle) {
|
|
163
|
+
const u32 = this.__pool.data_uint32;
|
|
164
|
+
const f32 = this.__pool.data_float32;
|
|
165
|
+
const min = this.__min;
|
|
166
|
+
const handle_base = handle * RECORD_WORD_SIZE;
|
|
167
|
+
|
|
168
|
+
if (min === NULL_HANDLE) {
|
|
169
|
+
// first node — it is its own root list
|
|
170
|
+
u32[handle_base + FIELD_LEFT] = handle;
|
|
171
|
+
u32[handle_base + FIELD_RIGHT] = handle;
|
|
172
|
+
this.__min = handle;
|
|
173
|
+
} else {
|
|
174
|
+
// splice in to the right of min
|
|
175
|
+
const min_base = min * RECORD_WORD_SIZE;
|
|
176
|
+
const min_right = u32[min_base + FIELD_RIGHT];
|
|
177
|
+
|
|
178
|
+
u32[handle_base + FIELD_LEFT] = min;
|
|
179
|
+
u32[handle_base + FIELD_RIGHT] = min_right;
|
|
180
|
+
u32[(min_right * RECORD_WORD_SIZE) + FIELD_LEFT] = handle;
|
|
181
|
+
u32[min_base + FIELD_RIGHT] = handle;
|
|
182
|
+
|
|
183
|
+
if (f32[handle_base + FIELD_KEY] < f32[min_base + FIELD_KEY]) {
|
|
184
|
+
this.__min = handle;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Remove `handle` from its sibling list (root list or child list of some parent). Sibling pointers of
|
|
191
|
+
* `handle` are left dangling; the caller is expected to re-link it immediately.
|
|
192
|
+
*
|
|
193
|
+
* @private
|
|
194
|
+
* @param {number} handle
|
|
195
|
+
*/
|
|
196
|
+
__unlink_from_siblings(handle) {
|
|
197
|
+
const u32 = this.__pool.data_uint32;
|
|
198
|
+
const base = handle * RECORD_WORD_SIZE;
|
|
199
|
+
|
|
200
|
+
const left = u32[base + FIELD_LEFT];
|
|
201
|
+
const right = u32[base + FIELD_RIGHT];
|
|
202
|
+
|
|
203
|
+
u32[(left * RECORD_WORD_SIZE) + FIELD_RIGHT] = right;
|
|
204
|
+
u32[(right * RECORD_WORD_SIZE) + FIELD_LEFT] = left;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @param {number} id
|
|
210
|
+
* @param {number} score
|
|
211
|
+
*/
|
|
212
|
+
insert(id, score) {
|
|
213
|
+
assert.isNonNegativeInteger(id, 'id');
|
|
214
|
+
assert.lessThanOrEqual(id, UINT32_MAX - 1, 'id must be <= (2^32 - 2)');
|
|
215
|
+
assert.isNumber(score, 'score');
|
|
216
|
+
assert.notNaN(score, 'score');
|
|
217
|
+
|
|
218
|
+
// pool.allocate() may grow the underlying buffer, so re-fetch views *after* the call
|
|
219
|
+
const handle = this.__pool.allocate();
|
|
220
|
+
const u32 = this.__pool.data_uint32;
|
|
221
|
+
const f32 = this.__pool.data_float32;
|
|
222
|
+
const base = handle * RECORD_WORD_SIZE;
|
|
223
|
+
|
|
224
|
+
// a recycled slot retains stale bytes from its previous occupant — initialize every field explicitly
|
|
225
|
+
f32[base + FIELD_KEY] = score;
|
|
226
|
+
u32[base + FIELD_ID] = id;
|
|
227
|
+
u32[base + FIELD_PARENT] = NULL_HANDLE;
|
|
228
|
+
u32[base + FIELD_CHILD] = NULL_HANDLE;
|
|
229
|
+
u32[base + FIELD_LEFT] = handle;
|
|
230
|
+
u32[base + FIELD_RIGHT] = handle;
|
|
231
|
+
u32[base + FIELD_DEGREE] = 0;
|
|
232
|
+
u32[base + FIELD_MARK] = 0;
|
|
233
|
+
|
|
234
|
+
this.__root_insert(handle);
|
|
235
|
+
|
|
236
|
+
this.__handles.set(id, handle);
|
|
237
|
+
this.__size++;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Removed and returns the ID of the node with the lowest score.
|
|
242
|
+
*
|
|
243
|
+
* @returns {number}
|
|
244
|
+
*/
|
|
245
|
+
pop_min() {
|
|
246
|
+
const z = this.__min;
|
|
247
|
+
|
|
248
|
+
assert.notEqual(z, NULL_HANDLE, 'heap is empty');
|
|
249
|
+
|
|
250
|
+
const u32 = this.__pool.data_uint32;
|
|
251
|
+
const z_base = z * RECORD_WORD_SIZE;
|
|
252
|
+
const z_id = u32[z_base + FIELD_ID];
|
|
253
|
+
|
|
254
|
+
// promote all of z's children to the root list
|
|
255
|
+
const child = u32[z_base + FIELD_CHILD];
|
|
256
|
+
if (child !== NULL_HANDLE) {
|
|
257
|
+
// walk the child list, clearing parent pointers
|
|
258
|
+
let c = child;
|
|
259
|
+
do {
|
|
260
|
+
u32[(c * RECORD_WORD_SIZE) + FIELD_PARENT] = NULL_HANDLE;
|
|
261
|
+
c = u32[(c * RECORD_WORD_SIZE) + FIELD_RIGHT];
|
|
262
|
+
} while (c !== child);
|
|
263
|
+
|
|
264
|
+
// splice the child list into the root list, immediately to the right of z.
|
|
265
|
+
// both are circular doubly-linked lists; standard list-concat trick:
|
|
266
|
+
const z_right = u32[z_base + FIELD_RIGHT];
|
|
267
|
+
const child_base = child * RECORD_WORD_SIZE;
|
|
268
|
+
const child_left = u32[child_base + FIELD_LEFT];
|
|
269
|
+
|
|
270
|
+
u32[z_base + FIELD_RIGHT] = child;
|
|
271
|
+
u32[child_base + FIELD_LEFT] = z;
|
|
272
|
+
|
|
273
|
+
u32[(child_left * RECORD_WORD_SIZE) + FIELD_RIGHT] = z_right;
|
|
274
|
+
u32[(z_right * RECORD_WORD_SIZE) + FIELD_LEFT] = child_left;
|
|
275
|
+
|
|
276
|
+
u32[z_base + FIELD_CHILD] = NULL_HANDLE;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// snapshot before the unlink rewrites z's sibling pointers
|
|
280
|
+
const z_right_after_merge = u32[z_base + FIELD_RIGHT];
|
|
281
|
+
|
|
282
|
+
// remove z from the root list
|
|
283
|
+
this.__unlink_from_siblings(z);
|
|
284
|
+
|
|
285
|
+
if (z === z_right_after_merge) {
|
|
286
|
+
// z was the only node remaining
|
|
287
|
+
this.__min = NULL_HANDLE;
|
|
288
|
+
} else {
|
|
289
|
+
// tentatively set min to z's old right neighbor; consolidation will pick the real min
|
|
290
|
+
this.__min = z_right_after_merge;
|
|
291
|
+
this.__consolidate();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
this.__size--;
|
|
295
|
+
this.__handles.delete(z_id);
|
|
296
|
+
this.__pool.release(z);
|
|
297
|
+
|
|
298
|
+
return z_id;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Merge trees of equal degree until every degree is unique among the roots. Sets `__min` to the true
|
|
303
|
+
* minimum.
|
|
304
|
+
*
|
|
305
|
+
* @private
|
|
306
|
+
*/
|
|
307
|
+
__consolidate() {
|
|
308
|
+
const u32 = this.__pool.data_uint32;
|
|
309
|
+
const f32 = this.__pool.data_float32;
|
|
310
|
+
|
|
311
|
+
// upper bound on max degree D(n) <= floor(log_phi(n)).
|
|
312
|
+
// log_phi(n) = log2(n) / log2(phi) ~= log2(n) * 1.4404; pad generously.
|
|
313
|
+
const D = Math.floor(Math.log2(this.__size)) * 2 + 8;
|
|
314
|
+
const A = new Array(D);
|
|
315
|
+
for (let i = 0; i < D; i++) {
|
|
316
|
+
A[i] = NULL_HANDLE;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// snapshot the current root list — the list is mutated during link, so iterate over a stable copy
|
|
320
|
+
const roots = [];
|
|
321
|
+
const start = this.__min;
|
|
322
|
+
let w = start;
|
|
323
|
+
do {
|
|
324
|
+
roots.push(w);
|
|
325
|
+
w = u32[(w * RECORD_WORD_SIZE) + FIELD_RIGHT];
|
|
326
|
+
} while (w !== start);
|
|
327
|
+
|
|
328
|
+
for (let i = 0; i < roots.length; i++) {
|
|
329
|
+
let x = roots[i];
|
|
330
|
+
let d = u32[(x * RECORD_WORD_SIZE) + FIELD_DEGREE];
|
|
331
|
+
|
|
332
|
+
while (A[d] !== NULL_HANDLE) {
|
|
333
|
+
let y = A[d];
|
|
334
|
+
|
|
335
|
+
if (f32[(x * RECORD_WORD_SIZE) + FIELD_KEY] > f32[(y * RECORD_WORD_SIZE) + FIELD_KEY]) {
|
|
336
|
+
// swap so x is the smaller-key root
|
|
337
|
+
const tmp = x;
|
|
338
|
+
x = y;
|
|
339
|
+
y = tmp;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
this.__link(y, x);
|
|
343
|
+
|
|
344
|
+
A[d] = NULL_HANDLE;
|
|
345
|
+
d++;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
A[d] = x;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// rebuild the root list from A[] and find the new min
|
|
352
|
+
this.__min = NULL_HANDLE;
|
|
353
|
+
for (let i = 0; i < D; i++) {
|
|
354
|
+
const a = A[i];
|
|
355
|
+
if (a !== NULL_HANDLE) {
|
|
356
|
+
// detach (it may still point to old neighbors that no longer reference it)
|
|
357
|
+
const a_base = a * RECORD_WORD_SIZE;
|
|
358
|
+
u32[a_base + FIELD_LEFT] = a;
|
|
359
|
+
u32[a_base + FIELD_RIGHT] = a;
|
|
360
|
+
this.__root_insert(a);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Make `y` (currently in the root list) a child of `x`.
|
|
367
|
+
*
|
|
368
|
+
* @private
|
|
369
|
+
* @param {number} y
|
|
370
|
+
* @param {number} x
|
|
371
|
+
*/
|
|
372
|
+
__link(y, x) {
|
|
373
|
+
const u32 = this.__pool.data_uint32;
|
|
374
|
+
|
|
375
|
+
// remove y from the root list
|
|
376
|
+
this.__unlink_from_siblings(y);
|
|
377
|
+
|
|
378
|
+
const x_base = x * RECORD_WORD_SIZE;
|
|
379
|
+
const y_base = y * RECORD_WORD_SIZE;
|
|
380
|
+
|
|
381
|
+
const x_child = u32[x_base + FIELD_CHILD];
|
|
382
|
+
if (x_child === NULL_HANDLE) {
|
|
383
|
+
u32[x_base + FIELD_CHILD] = y;
|
|
384
|
+
u32[y_base + FIELD_LEFT] = y;
|
|
385
|
+
u32[y_base + FIELD_RIGHT] = y;
|
|
386
|
+
} else {
|
|
387
|
+
// splice y into x's child list
|
|
388
|
+
const x_child_base = x_child * RECORD_WORD_SIZE;
|
|
389
|
+
const x_child_right = u32[x_child_base + FIELD_RIGHT];
|
|
390
|
+
|
|
391
|
+
u32[y_base + FIELD_LEFT] = x_child;
|
|
392
|
+
u32[y_base + FIELD_RIGHT] = x_child_right;
|
|
393
|
+
u32[(x_child_right * RECORD_WORD_SIZE) + FIELD_LEFT] = y;
|
|
394
|
+
u32[x_child_base + FIELD_RIGHT] = y;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
u32[y_base + FIELD_PARENT] = x;
|
|
398
|
+
u32[x_base + FIELD_DEGREE]++;
|
|
399
|
+
u32[y_base + FIELD_MARK] = 0;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Decrease the key of `handle` to `new_key`. `new_key` must be <= current key.
|
|
404
|
+
*
|
|
405
|
+
* @private
|
|
406
|
+
* @param {number} handle
|
|
407
|
+
* @param {number} new_key
|
|
408
|
+
*/
|
|
409
|
+
__decrease_key(handle, new_key) {
|
|
410
|
+
const u32 = this.__pool.data_uint32;
|
|
411
|
+
const f32 = this.__pool.data_float32;
|
|
412
|
+
const base = handle * RECORD_WORD_SIZE;
|
|
413
|
+
|
|
414
|
+
assert.lessThanOrEqual(new_key, f32[base + FIELD_KEY], 'new key is greater than current key');
|
|
415
|
+
|
|
416
|
+
f32[base + FIELD_KEY] = new_key;
|
|
417
|
+
|
|
418
|
+
const parent = u32[base + FIELD_PARENT];
|
|
419
|
+
if (parent !== NULL_HANDLE && new_key < f32[(parent * RECORD_WORD_SIZE) + FIELD_KEY]) {
|
|
420
|
+
this.__cut(handle, parent);
|
|
421
|
+
this.__cascading_cut(parent);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
if (new_key < f32[(this.__min * RECORD_WORD_SIZE) + FIELD_KEY]) {
|
|
425
|
+
this.__min = handle;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Cut `x` from `y`'s child list and promote it to the root list.
|
|
431
|
+
*
|
|
432
|
+
* @private
|
|
433
|
+
* @param {number} x child being cut
|
|
434
|
+
* @param {number} y parent of x
|
|
435
|
+
*/
|
|
436
|
+
__cut(x, y) {
|
|
437
|
+
const u32 = this.__pool.data_uint32;
|
|
438
|
+
const x_base = x * RECORD_WORD_SIZE;
|
|
439
|
+
const y_base = y * RECORD_WORD_SIZE;
|
|
440
|
+
|
|
441
|
+
const x_right = u32[x_base + FIELD_RIGHT];
|
|
442
|
+
|
|
443
|
+
if (x_right === x) {
|
|
444
|
+
// x was the only child of y
|
|
445
|
+
u32[y_base + FIELD_CHILD] = NULL_HANDLE;
|
|
446
|
+
} else {
|
|
447
|
+
if (u32[y_base + FIELD_CHILD] === x) {
|
|
448
|
+
// y was pointing at x — point at a sibling instead
|
|
449
|
+
u32[y_base + FIELD_CHILD] = x_right;
|
|
450
|
+
}
|
|
451
|
+
this.__unlink_from_siblings(x);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
u32[y_base + FIELD_DEGREE]--;
|
|
455
|
+
|
|
456
|
+
// single-element circular list, then insert at root
|
|
457
|
+
u32[x_base + FIELD_LEFT] = x;
|
|
458
|
+
u32[x_base + FIELD_RIGHT] = x;
|
|
459
|
+
u32[x_base + FIELD_PARENT] = NULL_HANDLE;
|
|
460
|
+
u32[x_base + FIELD_MARK] = 0;
|
|
461
|
+
|
|
462
|
+
this.__root_insert(x);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Walk up from `y`, cutting marked ancestors and marking unmarked ones.
|
|
467
|
+
*
|
|
468
|
+
* @private
|
|
469
|
+
* @param {number} y
|
|
470
|
+
*/
|
|
471
|
+
__cascading_cut(y) {
|
|
472
|
+
const u32 = this.__pool.data_uint32;
|
|
473
|
+
const y_base = y * RECORD_WORD_SIZE;
|
|
474
|
+
|
|
475
|
+
const z = u32[y_base + FIELD_PARENT];
|
|
476
|
+
if (z !== NULL_HANDLE) {
|
|
477
|
+
if (u32[y_base + FIELD_MARK] === 0) {
|
|
478
|
+
u32[y_base + FIELD_MARK] = 1;
|
|
479
|
+
} else {
|
|
480
|
+
this.__cut(y, z);
|
|
481
|
+
this.__cascading_cut(z);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Delete the node referenced by `handle` by decreasing its key to -Infinity and popping the min.
|
|
488
|
+
*
|
|
489
|
+
* @private
|
|
490
|
+
* @param {number} handle
|
|
491
|
+
*/
|
|
492
|
+
__delete_handle(handle) {
|
|
493
|
+
this.__decrease_key(handle, Number.NEGATIVE_INFINITY);
|
|
494
|
+
this.pop_min();
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @param {number} id
|
|
500
|
+
* @returns {boolean}
|
|
501
|
+
*/
|
|
502
|
+
contains(id) {
|
|
503
|
+
return this.__handles.has(id);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @param {number} id
|
|
509
|
+
* @returns {number} score of the element with the given id, NaN if not found
|
|
510
|
+
*/
|
|
511
|
+
get_score(id) {
|
|
512
|
+
const handle = this.__handles.get(id);
|
|
513
|
+
if (handle === undefined) {
|
|
514
|
+
return Number.NaN;
|
|
515
|
+
}
|
|
516
|
+
return this.__pool.data_float32[(handle * RECORD_WORD_SIZE) + FIELD_KEY];
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @param {number} id
|
|
522
|
+
* @param {number} score
|
|
523
|
+
*/
|
|
524
|
+
update_score(id, score) {
|
|
525
|
+
const handle = this.__handles.get(id);
|
|
526
|
+
|
|
527
|
+
if (handle === undefined) {
|
|
528
|
+
throw new Error('Not found');
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
assert.isNumber(score, 'score');
|
|
532
|
+
assert.notNaN(score, 'score');
|
|
533
|
+
|
|
534
|
+
const current = this.__pool.data_float32[(handle * RECORD_WORD_SIZE) + FIELD_KEY];
|
|
535
|
+
|
|
536
|
+
if (score < current) {
|
|
537
|
+
this.__decrease_key(handle, score);
|
|
538
|
+
} else if (score > current) {
|
|
539
|
+
// increase-key: delete and re-insert
|
|
540
|
+
this.__delete_handle(handle);
|
|
541
|
+
this.insert(id, score);
|
|
542
|
+
}
|
|
543
|
+
// score === current: no-op
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Insert or update an element, if the element already exists, its score will be updated.
|
|
548
|
+
*
|
|
549
|
+
* @param {number} id
|
|
550
|
+
* @param {number} score
|
|
551
|
+
*/
|
|
552
|
+
insert_or_update(id, score) {
|
|
553
|
+
if (this.__handles.has(id)) {
|
|
554
|
+
this.update_score(id, score);
|
|
555
|
+
} else {
|
|
556
|
+
this.insert(id, score);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @param {number} id
|
|
563
|
+
* @returns {boolean}
|
|
564
|
+
*/
|
|
565
|
+
remove(id) {
|
|
566
|
+
const handle = this.__handles.get(id);
|
|
567
|
+
|
|
568
|
+
if (handle === undefined) {
|
|
569
|
+
return false;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
this.__delete_handle(handle);
|
|
573
|
+
|
|
574
|
+
return true;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Clear out all the data, heap will be made empty
|
|
579
|
+
*/
|
|
580
|
+
clear() {
|
|
581
|
+
this.__min = NULL_HANDLE;
|
|
582
|
+
this.__size = 0;
|
|
583
|
+
this.__handles.clear();
|
|
584
|
+
this.__pool.clear();
|
|
585
|
+
}
|
|
586
|
+
}
|