@nova-lab/core 1.0.0-dev.19 → 1.1.1-dev.229
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/README.md +1035 -10
- package/THIRD_PARTY_NOTICES.md +26 -0
- package/dist/2d/accessibility.d.ts +2 -0
- package/dist/2d/accessibility.js +171 -0
- package/dist/2d/commands.d.ts +2 -0
- package/dist/2d/commands.js +80 -0
- package/dist/2d/effects.d.ts +10 -0
- package/dist/2d/effects.js +566 -0
- package/dist/2d/ktx2.d.ts +5 -0
- package/dist/2d/ktx2.js +542 -0
- package/dist/2d/lighting.d.ts +3 -0
- package/dist/2d/lighting.js +495 -0
- package/dist/2d/lottie.d.ts +3 -0
- package/dist/2d/lottie.js +254 -0
- package/dist/2d/meshes.d.ts +4 -0
- package/dist/2d/meshes.js +451 -0
- package/dist/2d/primitives.d.ts +3 -0
- package/dist/2d/primitives.js +85 -0
- package/dist/2d/render-textures.d.ts +3 -0
- package/dist/2d/render-textures.js +539 -0
- package/dist/2d/svg/documents.d.ts +5 -0
- package/dist/2d/svg/documents.js +7 -0
- package/dist/2d/svg/renderer.d.ts +3 -0
- package/dist/2d/svg/renderer.js +222 -0
- package/dist/2d/svg.d.ts +3 -0
- package/dist/2d/svg.js +4 -0
- package/dist/2d/tools.d.ts +2 -0
- package/dist/2d/tools.js +100 -0
- package/dist/2d/video.d.ts +5 -0
- package/dist/2d/video.js +90 -0
- package/dist/2d.d.ts +2 -0
- package/dist/2d.js +220 -0
- package/dist/3d/animation.d.ts +8 -0
- package/dist/3d/animation.js +1396 -0
- package/dist/3d/area-lights.d.ts +2 -0
- package/dist/3d/area-lights.js +19 -0
- package/dist/3d/audio.d.ts +4 -0
- package/dist/3d/audio.js +500 -0
- package/dist/3d/character.d.ts +2 -0
- package/dist/3d/character.js +136 -0
- package/dist/3d/collision.d.ts +3 -0
- package/dist/3d/collision.js +387 -0
- package/dist/3d/commands.d.ts +2 -0
- package/dist/3d/commands.js +108 -0
- package/dist/3d/controls.d.ts +8 -0
- package/dist/3d/controls.js +1041 -0
- package/dist/3d/documents.d.ts +5 -0
- package/dist/3d/documents.js +227 -0
- package/dist/3d/effects.d.ts +5 -0
- package/dist/3d/effects.js +1986 -0
- package/dist/3d/export.d.ts +4 -0
- package/dist/3d/export.js +347 -0
- package/dist/3d/fbx.d.ts +2 -0
- package/dist/3d/fbx.js +784 -0
- package/dist/3d/gltf.d.ts +2 -0
- package/dist/3d/gltf.js +5 -0
- package/dist/3d/helpers.d.ts +5 -0
- package/dist/3d/helpers.js +191 -0
- package/dist/3d/ik.d.ts +9 -0
- package/dist/3d/ik.js +777 -0
- package/dist/3d/loaders.d.ts +17 -0
- package/dist/3d/loaders.js +1406 -0
- package/dist/3d/nodes.d.ts +8 -0
- package/dist/3d/nodes.js +49 -0
- package/dist/3d/particles.d.ts +5 -0
- package/dist/3d/particles.js +1574 -0
- package/dist/3d/physics/backend.d.ts +7 -0
- package/dist/3d/physics/backend.js +1 -0
- package/dist/3d/physics/rapier.d.ts +3 -0
- package/dist/3d/physics/rapier.js +765 -0
- package/dist/3d/physics.d.ts +5 -0
- package/dist/3d/physics.js +3346 -0
- package/dist/3d/splats.d.ts +7 -0
- package/dist/3d/splats.js +862 -0
- package/dist/3d/text.d.ts +5 -0
- package/dist/3d/text.js +1043 -0
- package/dist/3d/tiles.d.ts +24 -0
- package/dist/3d/tiles.js +1705 -0
- package/dist/3d/tools.d.ts +12 -0
- package/dist/3d/tools.js +338 -0
- package/dist/3d/usdz.d.ts +2 -0
- package/dist/3d/usdz.js +634 -0
- package/dist/3d/xr.d.ts +2 -0
- package/dist/3d/xr.js +202 -0
- package/dist/3d-B4jWF8Qb.js +5591 -0
- package/dist/3d.d.ts +40 -0
- package/dist/3d.js +44 -0
- package/dist/Capsule-BFVpZfvc.js +44 -0
- package/dist/Clip-CAN7t03k.js +204 -0
- package/dist/Color-vuv9UnoY.js +34 -0
- package/dist/DeformedMesh-CPi0P_vc.js +280 -0
- package/dist/Document-DCVEZSvM.js +415 -0
- package/dist/Errors-B2ekO9bZ.js +30 -0
- package/dist/Features-BsjmePtc.js +557 -0
- package/dist/GLTFResourceIO-CYJyCUTt.js +124 -0
- package/dist/GPUParticleState-CQlNpoDa.js +545 -0
- package/dist/Geometry-DytO490z.js +227 -0
- package/dist/Inflate-DWw0V-Up.js +42 -0
- package/dist/InstancedMesh-DPrgrw5z.js +527 -0
- package/dist/Limits-Bw5XQdFr.js +20 -0
- package/dist/LineHelper-Ad0z9uDi.js +131 -0
- package/dist/LoaderIO-BwrM84OM.js +114 -0
- package/dist/Material-BpfLPmK9.js +777 -0
- package/dist/Mesh-BaRxAAJq.js +209 -0
- package/dist/Node-QfgAE2_v.js +877 -0
- package/dist/NovaAssetRegistry-p2QlCwvT.js +1168 -0
- package/dist/NovaNode-CBZ-Ol-W.js +2016 -0
- package/dist/NovaRenderCommandWriter-CWQRa42y.js +1949 -0
- package/dist/NovaTextSelectionService-CipuujCT.js +18526 -0
- package/dist/NovaWebGLProgram-BO250QNF.js +97 -0
- package/dist/Options-CajE7LLJ.js +15 -0
- package/dist/PolygonMesh-D4PnnfIo.js +657 -0
- package/dist/Ready-BzyhRtjD.js +21 -0
- package/dist/Scene-CDfNgf9I.js +911 -0
- package/dist/Shader-b6_HDndT.js +48 -0
- package/dist/SplatShader-wJ6GJ3vo.js +130 -0
- package/dist/Texture-dTKMlTpK.js +267 -0
- package/dist/TextureLoader-CfDzdy2m.js +411 -0
- package/dist/Textures-CGL4Kf-8.js +651 -0
- package/dist/ToneMapping-D9IWvN0u.js +46 -0
- package/dist/WebGPURenderer-DjD0IxVC.js +4921 -0
- package/dist/ZipReader-C-MSEsSr.js +84 -0
- package/dist/core.js +218 -24024
- package/dist/domain/types/base.types.d.ts +18 -9
- package/dist/domain/types/component.types.d.ts +5 -5
- package/dist/domain/types/cursor.types.d.ts +1 -1
- package/dist/domain/types/diagnostics.types.d.ts +2 -0
- package/dist/domain/types/export.types.d.ts +2 -2
- package/dist/domain/types/hit-test.types.d.ts +1 -1
- package/dist/domain/types/motion.types.d.ts +2 -2
- package/dist/domain/types/renderer.types.d.ts +88 -4
- package/dist/domain/types/rendering/index.d.ts +29 -4
- package/dist/domain/types/sound.types.d.ts +1 -1
- package/dist/domain/types/theme.types.d.ts +1 -1
- package/dist/domain/utils/bounds.d.ts +1 -1
- package/dist/domain/utils/nova-text.d.ts +9 -0
- package/dist/domain/utils/schemaBounds.d.ts +2 -2
- package/dist/export-svg-document-ChaNXMaG.js +668 -0
- package/dist/features/3d/Errors.d.ts +57 -0
- package/dist/features/3d/Nova3DApp.d.ts +429 -0
- package/dist/features/3d/animation/Animator.d.ts +260 -0
- package/dist/features/3d/animation/Clip.d.ts +74 -0
- package/dist/features/3d/animation/Graph.d.ts +158 -0
- package/dist/features/3d/animation/Mask.d.ts +40 -0
- package/dist/features/3d/audio/Audio.d.ts +114 -0
- package/dist/features/3d/audio/Sound.d.ts +133 -0
- package/dist/features/3d/character/CharacterController.d.ts +61 -0
- package/dist/features/3d/collision/Capsule.d.ts +25 -0
- package/dist/features/3d/collision/Octree.d.ts +94 -0
- package/dist/features/3d/controls/CameraMotionControls.d.ts +154 -0
- package/dist/features/3d/controls/CameraOrientation.d.ts +47 -0
- package/dist/features/3d/controls/OrbitControls.d.ts +73 -0
- package/dist/features/3d/controls/PointerGesture.d.ts +25 -0
- package/dist/features/3d/controls/PointerLock.d.ts +36 -0
- package/dist/features/3d/controls/Snapping.d.ts +32 -0
- package/dist/features/3d/controls/TransformGizmo.d.ts +79 -0
- package/dist/features/3d/deformation/DeformationGPU.d.ts +52 -0
- package/dist/features/3d/deformation/DeformationShader.d.ts +2 -0
- package/dist/features/3d/deformation/DeformedMesh.d.ts +36 -0
- package/dist/features/3d/deformation/GeometryDeformation.d.ts +25 -0
- package/dist/features/3d/documents/Document.d.ts +59 -0
- package/dist/features/3d/documents/DocumentCommands.d.ts +45 -0
- package/dist/features/3d/documents/DocumentSchema.d.ts +18 -0
- package/dist/features/3d/documents/DocumentTransform.d.ts +4 -0
- package/dist/features/3d/documents/DocumentTypes.d.ts +182 -0
- package/dist/features/3d/documents/DocumentValidation.d.ts +18 -0
- package/dist/features/3d/documents/Projection.d.ts +65 -0
- package/dist/features/3d/effects/CubeLUT.d.ts +24 -0
- package/dist/features/3d/effects/Effects.d.ts +32 -0
- package/dist/features/3d/effects/EffectsGPU.d.ts +80 -0
- package/dist/features/3d/effects/EffectsPlan.d.ts +268 -0
- package/dist/features/3d/effects/EffectsShaders.d.ts +35 -0
- package/dist/features/3d/export/GLTFExporter.d.ts +49 -0
- package/dist/features/3d/export/ThreeMFExporter.d.ts +19 -0
- package/dist/features/3d/export/ZipWriter.d.ts +9 -0
- package/dist/features/3d/fbx/FBXLoader.d.ts +26 -0
- package/dist/features/3d/fbx/FBXParser.d.ts +35 -0
- package/dist/features/3d/fbx/FBXScene.d.ts +20 -0
- package/dist/features/3d/gltf/GLTFLoader.d.ts +16 -0
- package/dist/features/3d/gltf/GLTFTypes.d.ts +64 -0
- package/dist/features/3d/gltf/services/GLTFBinary.d.ts +21 -0
- package/dist/features/3d/gltf/services/GLTFGeometry.d.ts +14 -0
- package/dist/features/3d/gltf/services/GLTFResourceIO.d.ts +64 -0
- package/dist/features/3d/helpers/LineHelper.d.ts +51 -0
- package/dist/features/3d/helpers/StaticHelpers.d.ts +47 -0
- package/dist/features/3d/helpers/TrackedHelpers.d.ts +84 -0
- package/dist/features/3d/ik/ChainIK.d.ts +44 -0
- package/dist/features/3d/ik/IKChain.d.ts +92 -0
- package/dist/features/3d/ik/IKMath.d.ts +49 -0
- package/dist/features/3d/ik/IKSolver.d.ts +97 -0
- package/dist/features/3d/ik/LookAtIK.d.ts +58 -0
- package/dist/features/3d/ik/TwoBoneIK.d.ts +57 -0
- package/dist/features/3d/import/ImportAnimation.d.ts +20 -0
- package/dist/features/3d/import/ImportMath.d.ts +42 -0
- package/dist/features/3d/import/ImportedModel.d.ts +135 -0
- package/dist/features/3d/import/Inflate.d.ts +5 -0
- package/dist/features/3d/import/ModelAsset.d.ts +149 -0
- package/dist/features/3d/import/PolygonMesh.d.ts +54 -0
- package/dist/features/3d/lights/AreaLightTables.d.ts +8 -0
- package/dist/features/3d/lights/AreaLights.d.ts +11 -0
- package/dist/features/3d/loaders/EXRCompression.d.ts +13 -0
- package/dist/features/3d/loaders/EXRLoader.d.ts +39 -0
- package/dist/features/3d/loaders/HDRLoader.d.ts +26 -0
- package/dist/features/3d/loaders/Limits.d.ts +70 -0
- package/dist/features/3d/loaders/LoaderBuffers.d.ts +42 -0
- package/dist/features/3d/loaders/LoaderIO.d.ts +81 -0
- package/dist/features/3d/loaders/LoaderModel.d.ts +80 -0
- package/dist/features/3d/loaders/LoaderText.d.ts +27 -0
- package/dist/features/3d/loaders/MTLLoader.d.ts +105 -0
- package/dist/features/3d/loaders/OBJLoader.d.ts +70 -0
- package/dist/features/3d/loaders/PLYLoader.d.ts +47 -0
- package/dist/features/3d/loaders/STLLoader.d.ts +27 -0
- package/dist/features/3d/model/Camera.d.ts +33 -0
- package/dist/features/3d/model/Environment.d.ts +31 -0
- package/dist/features/3d/model/Geometry.d.ts +59 -0
- package/dist/features/3d/model/InstancedMesh.d.ts +134 -0
- package/dist/features/3d/model/LOD.d.ts +31 -0
- package/dist/features/3d/model/Light.d.ts +200 -0
- package/dist/features/3d/model/Material.d.ts +308 -0
- package/dist/features/3d/model/MaterialExtensions.d.ts +200 -0
- package/dist/features/3d/model/Mesh.d.ts +92 -0
- package/dist/features/3d/model/Node.d.ts +87 -0
- package/dist/features/3d/model/ReflectionProbe.d.ts +45 -0
- package/dist/features/3d/model/RenderTarget.d.ts +41 -0
- package/dist/features/3d/model/Scene.d.ts +173 -0
- package/dist/features/3d/model/Texture.d.ts +143 -0
- package/dist/features/3d/nodes/Nodes.d.ts +8 -0
- package/dist/features/3d/nodes/ShaderNode.d.ts +240 -0
- package/dist/features/3d/particles/GPUParticleSchedule.d.ts +67 -0
- package/dist/features/3d/particles/GPUParticleShaders.d.ts +19 -0
- package/dist/features/3d/particles/GPUParticleState.d.ts +106 -0
- package/dist/features/3d/particles/GPUParticleSystem.d.ts +192 -0
- package/dist/features/3d/particles/ParticleCurves.d.ts +34 -0
- package/dist/features/3d/particles/ParticleOptions.d.ts +78 -0
- package/dist/features/3d/particles/ParticleSystem.d.ts +368 -0
- package/dist/features/3d/physics/PhysicsBackend.d.ts +352 -0
- package/dist/features/3d/physics/PhysicsDebug.d.ts +24 -0
- package/dist/features/3d/physics/PhysicsWorld.d.ts +352 -0
- package/dist/features/3d/physics/basic/BasicCollision.d.ts +75 -0
- package/dist/features/3d/physics/basic/BasicPhysics.d.ts +24 -0
- package/dist/features/3d/physics/basic/BasicShapes.d.ts +103 -0
- package/dist/features/3d/physics/rapier/ContactBuffer.d.ts +32 -0
- package/dist/features/3d/physics/rapier/RapierBackend.d.ts +17 -0
- package/dist/features/3d/physics/rapier/RapierShapes.d.ts +4 -0
- package/dist/features/3d/physics/rapier/RapierWorld.d.ts +198 -0
- package/dist/features/3d/physics/rapier/Validation.d.ts +8 -0
- package/dist/features/3d/services/Background.d.ts +22 -0
- package/dist/features/3d/services/BasicShader.d.ts +55 -0
- package/dist/features/3d/services/ClusteredLights.d.ts +69 -0
- package/dist/features/3d/services/DrawOrder.d.ts +37 -0
- package/dist/features/3d/services/EffectsProcessor.d.ts +38 -0
- package/dist/features/3d/services/EnvironmentBRDF.d.ts +35 -0
- package/dist/features/3d/services/EnvironmentMaps.d.ts +55 -0
- package/dist/features/3d/services/FogShader.d.ts +6 -0
- package/dist/features/3d/services/Frustum.d.ts +7 -0
- package/dist/features/3d/services/GLState.d.ts +86 -0
- package/dist/features/3d/services/GPUPicker.d.ts +31 -0
- package/dist/features/3d/services/InstanceShader.d.ts +3 -0
- package/dist/features/3d/services/LineProgram.d.ts +32 -0
- package/dist/features/3d/services/PBRProgram.d.ts +115 -0
- package/dist/features/3d/services/Renderer.d.ts +50 -0
- package/dist/features/3d/services/Shader.d.ts +22 -0
- package/dist/features/3d/services/ShaderProgram.d.ts +38 -0
- package/dist/features/3d/services/ShadowMaps.d.ts +97 -0
- package/dist/features/3d/services/SpatialIndex.d.ts +16 -0
- package/dist/features/3d/services/TextureLoader.d.ts +40 -0
- package/dist/features/3d/services/TextureMipmaps.d.ts +42 -0
- package/dist/features/3d/services/ToneMapping.d.ts +12 -0
- package/dist/features/3d/services/WebGLRenderer.d.ts +261 -0
- package/dist/features/3d/splats/SplatData.d.ts +136 -0
- package/dist/features/3d/splats/SplatLoaders.d.ts +64 -0
- package/dist/features/3d/splats/SplatShader.d.ts +14 -0
- package/dist/features/3d/splats/SplatSort.d.ts +69 -0
- package/dist/features/3d/splats/Splats.d.ts +116 -0
- package/dist/features/3d/text/FontAtlas.d.ts +246 -0
- package/dist/features/3d/text/SDF.d.ts +28 -0
- package/dist/features/3d/text/Text.d.ts +179 -0
- package/dist/features/3d/text/TextLayout.d.ts +73 -0
- package/dist/features/3d/text/TextShader.d.ts +12 -0
- package/dist/features/3d/tiles/BoundingVolume.d.ts +43 -0
- package/dist/features/3d/tiles/Geodesy.d.ts +106 -0
- package/dist/features/3d/tiles/GlobeControls.d.ts +147 -0
- package/dist/features/3d/tiles/TileContent.d.ts +35 -0
- package/dist/features/3d/tiles/TileFormats.d.ts +77 -0
- package/dist/features/3d/tiles/Tiles3D.d.ts +236 -0
- package/dist/features/3d/tiles/Tileset.d.ts +81 -0
- package/dist/features/3d/tools/BatchedMesh.d.ts +74 -0
- package/dist/features/3d/tools/CanvasSurface.d.ts +81 -0
- package/dist/features/3d/tools/Color.d.ts +11 -0
- package/dist/features/3d/tools/MergeGeometries.d.ts +22 -0
- package/dist/features/3d/tools/Options.d.ts +15 -0
- package/dist/features/3d/tools/Polyhedra.d.ts +30 -0
- package/dist/features/3d/tools/PrimitiveBuffers.d.ts +42 -0
- package/dist/features/3d/tools/Primitives.d.ts +164 -0
- package/dist/features/3d/tools/Ready.d.ts +12 -0
- package/dist/features/3d/tools/SpatialMath.d.ts +57 -0
- package/dist/features/3d/tools/SphericalHarmonics.d.ts +9 -0
- package/dist/features/3d/tools/math/mat3.d.ts +7 -0
- package/dist/features/3d/tools/math/mat4.d.ts +19 -0
- package/dist/features/3d/tools/math/quat.d.ts +6 -0
- package/dist/features/3d/tools/math/vec3.d.ts +16 -0
- package/dist/features/3d/tools/math/vec4.d.ts +5 -0
- package/dist/features/3d/types.d.ts +359 -0
- package/dist/features/3d/usdz/USDAParser.d.ts +50 -0
- package/dist/features/3d/usdz/USDScene.d.ts +20 -0
- package/dist/features/3d/usdz/USDZLoader.d.ts +27 -0
- package/dist/features/3d/usdz/ZipReader.d.ts +16 -0
- package/dist/features/3d/webgpu/Backend.d.ts +40 -0
- package/dist/features/3d/webgpu/BasicShader.d.ts +10 -0
- package/dist/features/3d/webgpu/Constants.d.ts +32 -0
- package/dist/features/3d/webgpu/Deformation.d.ts +71 -0
- package/dist/features/3d/webgpu/Environment.d.ts +66 -0
- package/dist/features/3d/webgpu/Features.d.ts +68 -0
- package/dist/features/3d/webgpu/Layouts.d.ts +27 -0
- package/dist/features/3d/webgpu/Lines.d.ts +40 -0
- package/dist/features/3d/webgpu/LitExtras.d.ts +46 -0
- package/dist/features/3d/webgpu/LitFeatures.d.ts +41 -0
- package/dist/features/3d/webgpu/LitScene.d.ts +60 -0
- package/dist/features/3d/webgpu/LitShader.d.ts +68 -0
- package/dist/features/3d/webgpu/Particles.d.ts +114 -0
- package/dist/features/3d/webgpu/Picking.d.ts +59 -0
- package/dist/features/3d/webgpu/PipelineKey.d.ts +33 -0
- package/dist/features/3d/webgpu/Points.d.ts +41 -0
- package/dist/features/3d/webgpu/Probes.d.ts +45 -0
- package/dist/features/3d/webgpu/ShaderChunks.d.ts +18 -0
- package/dist/features/3d/webgpu/ShaderMaterial.d.ts +57 -0
- package/dist/features/3d/webgpu/ShaderMaterialSource.d.ts +5 -0
- package/dist/features/3d/webgpu/Shadows.d.ts +49 -0
- package/dist/features/3d/webgpu/Splats.d.ts +47 -0
- package/dist/features/3d/webgpu/Textures.d.ts +52 -0
- package/dist/features/3d/webgpu/Transmission.d.ts +30 -0
- package/dist/features/3d/webgpu/UniformLayout.d.ts +30 -0
- package/dist/features/3d/webgpu/UtilityShaders.d.ts +38 -0
- package/dist/features/3d/webgpu/WebGPURenderer.d.ts +327 -0
- package/dist/features/3d/webgpu/effects/EffectsShaders.d.ts +74 -0
- package/dist/features/3d/webgpu/effects/WebGPUEffects.d.ts +140 -0
- package/dist/features/3d/xr/XR.d.ts +100 -0
- package/dist/gltf-By-n0qEg.js +960 -0
- package/dist/index.d.ts +86 -81
- package/dist/model/document-actions/document-commands.d.ts +18 -0
- package/dist/model/documents/svg/create-svg-document-renderer.d.ts +32 -0
- package/dist/model/documents/svg/export-svg-document.d.ts +5 -0
- package/dist/model/documents/svg/import-svg-document.d.ts +6 -0
- package/dist/model/documents/svg/svg-document.types.d.ts +111 -0
- package/dist/model/documents/svg/svg-values.d.ts +16 -0
- package/dist/model/documents/svg/svg-xml.d.ts +18 -0
- package/dist/model/input/NovaInputProxy_Adapter.d.ts +2 -1
- package/dist/model/input/NovaInputValidationController.d.ts +1 -1
- package/dist/model/input/NovaTextInputController.d.ts +1 -1
- package/dist/model/input/NovaTextLayoutEngine.d.ts +2 -6
- package/dist/model/input/index.d.ts +7 -7
- package/dist/model/input/nova-input.types.d.ts +1 -1
- package/dist/model/lighting/LightingRenderer2D.d.ts +58 -0
- package/dist/model/lighting/NovaLighting2D.d.ts +56 -0
- package/dist/model/lighting/lighting-shaders.d.ts +3 -0
- package/dist/model/lighting/lighting-state.d.ts +27 -0
- package/dist/model/lighting/lighting.types.d.ts +107 -0
- package/dist/model/lottie/LottieNode.d.ts +4 -0
- package/dist/model/lottie/lottie.types.d.ts +83 -0
- package/dist/model/lottie/prepare-lottie.d.ts +3 -0
- package/dist/model/lottie/sample-position.d.ts +9 -0
- package/dist/model/motion/NovaMotionEngine.d.ts +3 -3
- package/dist/model/motion/nova-motion-easing.d.ts +1 -1
- package/dist/model/motion/nova-motion-interpolation.d.ts +1 -1
- package/dist/model/motion/nova-motion-presets.d.ts +2 -2
- package/dist/model/motion/nova-motion-timeline.d.ts +1 -1
- package/dist/model/platform/NovaCanvas.d.ts +7 -6
- package/dist/model/primitives/NovaPrimitiveUnsupportedError.d.ts +13 -0
- package/dist/model/primitives/definePrimitive.d.ts +5 -0
- package/dist/model/primitives/primitive.types.d.ts +28 -0
- package/dist/model/render/backends/canvas2d/NovaCanvas2DTargetManager.d.ts +3 -3
- package/dist/model/render/backends/canvas2d/NovaRenderer2D.d.ts +61 -15
- package/dist/model/render/backends/canvas2d/nova-canvas-blend.d.ts +5 -0
- package/dist/model/render/backends/nova-render-backend-factory.d.ts +6 -6
- package/dist/model/render/backends/nova-render-backend.d.ts +8 -2
- package/dist/model/render/backends/webgl/NovaRendererWebGL.d.ts +32 -11
- package/dist/model/render/backends/webgl/NovaStreamCacheIdleLedger.d.ts +12 -1
- package/dist/model/render/backends/webgl/NovaWebGLBatcher.d.ts +1 -1
- package/dist/model/render/backends/webgl/NovaWebGLCircleImagePass.d.ts +23 -0
- package/dist/model/render/backends/webgl/NovaWebGLCompositionPass.d.ts +9 -0
- package/dist/model/render/backends/webgl/NovaWebGLDevice.d.ts +3 -1
- package/dist/model/render/backends/webgl/NovaWebGLDiagnostics.d.ts +1 -1
- package/dist/model/render/backends/webgl/NovaWebGLFrameRenderer.d.ts +162 -53
- package/dist/model/render/backends/webgl/NovaWebGLPathClipPass.d.ts +13 -0
- package/dist/model/render/backends/webgl/NovaWebGLPathUnion.d.ts +23 -0
- package/dist/model/render/compiler/NovaRenderBuilder.d.ts +24 -10
- package/dist/model/render/compiler/NovaRenderCommandWriter.d.ts +10 -5
- package/dist/model/render/compiler/NovaRenderCompiler.d.ts +7 -6
- package/dist/model/render/compiler/NovaRenderFrameBuilder.d.ts +4 -3
- package/dist/model/render/effects/blur.d.ts +8 -0
- package/dist/model/render/effects/color-matrix.d.ts +8 -0
- package/dist/model/render/effects/drop-shadow.d.ts +18 -0
- package/dist/model/render/effects/nova-effect-registry.d.ts +66 -0
- package/dist/model/render/effects/nova-gaussian-kernel.d.ts +7 -0
- package/dist/model/render/effects/nova-gaussian-textures.d.ts +11 -0
- package/dist/model/render/effects/shader-effect.d.ts +64 -0
- package/dist/model/render/geometry/nova-alpha-mask.d.ts +5 -0
- package/dist/model/render/geometry/nova-composition.d.ts +9 -0
- package/dist/model/render/geometry/nova-node-clip.d.ts +17 -0
- package/dist/model/render/geometry/nova-path-geometry.d.ts +24 -0
- package/dist/model/render/geometry/nova-path-tessellation.d.ts +7 -0
- package/dist/model/render/geometry/nova-polygon-triangulation.d.ts +1 -1
- package/dist/model/render/graph/NovaRectBatchBuffer.d.ts +58 -0
- package/dist/model/render/graph/NovaRenderGraph.d.ts +40 -6
- package/dist/model/render/graph/NovaRenderHitIndex.d.ts +1 -1
- package/dist/model/render/graph/nova-auto-rect.d.ts +1 -1
- package/dist/model/render/graph/nova-linear-rect-repack.d.ts +4 -4
- package/dist/model/render/graph/nova-linear-rect-transition.d.ts +2 -2
- package/dist/model/render/graph/nova-render-culling.d.ts +2 -2
- package/dist/model/render/graph/nova-render-dirty-items.d.ts +1 -1
- package/dist/model/render/graph/nova-render-group.d.ts +1 -1
- package/dist/model/render/graph/nova-render-item.d.ts +2 -2
- package/dist/model/render/graph/nova-render-layer.d.ts +1 -1
- package/dist/model/render/graph/nova-render-payload-snapshot.d.ts +3 -1
- package/dist/model/render/graph/nova-render-program.d.ts +5 -3
- package/dist/model/render/graph/nova-render-sequence.d.ts +1 -1
- package/dist/model/render/graph/nova-render-stream.d.ts +2 -2
- package/dist/model/render/ktx2/BasisSession.d.ts +45 -0
- package/dist/model/render/ktx2/KTX2Container.d.ts +26 -0
- package/dist/model/render/ktx2/KTX2Loader.d.ts +55 -0
- package/dist/model/render/meshes/MeshNode.d.ts +13 -0
- package/dist/model/render/meshes/NovaMeshWebGLDevice.d.ts +27 -0
- package/dist/model/render/meshes/geometry.d.ts +7 -0
- package/dist/model/render/meshes/mesh.d.ts +3 -0
- package/dist/model/render/meshes/mesh.types.d.ts +116 -0
- package/dist/model/render/meshes/nova-mesh-registry.d.ts +55 -0
- package/dist/model/render/orchestration/NovaRenderOrchestrator.d.ts +25 -3
- package/dist/model/render/policy/nova-render-policy.d.ts +1 -1
- package/dist/model/render/resources/NovaGlyphAtlasManager.d.ts +2 -2
- package/dist/model/render/resources/NovaTextAtlasManager.d.ts +3 -3
- package/dist/model/render/resources/NovaTextLayoutEngine.d.ts +1 -1
- package/dist/model/render/resources/nova-bitmap-upload.d.ts +10 -0
- package/dist/model/render/schema/NovaRenderContext.d.ts +6 -4
- package/dist/model/render/schema/nova-style-compiler.d.ts +5 -2
- package/dist/model/render/targets/NovaNodeRenderTextureSource.d.ts +29 -0
- package/dist/model/render/targets/NovaRenderTargetManager.d.ts +1 -1
- package/dist/model/render/targets/NovaRenderTexture.d.ts +57 -0
- package/dist/model/render/targets/nova-render-target-refs.d.ts +5 -0
- package/dist/model/render/targets/nova-render-target-resource.d.ts +1 -1
- package/dist/model/render/targets/nova-render-texture-runtime.d.ts +71 -0
- package/dist/model/render/textures/nova-compressed-image.d.ts +20 -0
- package/dist/model/render/utils/nova-icon-rendering.d.ts +3 -1
- package/dist/model/render/utils/nova-image-geometry.d.ts +11 -0
- package/dist/model/render/utils/nova-markdown-layout.d.ts +19 -0
- package/dist/model/render/utils/nova-text-paint.d.ts +26 -0
- package/dist/model/render/utils/nova-wrapped-text-layout.d.ts +19 -0
- package/dist/model/runtime/app/Nova.d.ts +35 -35
- package/dist/model/runtime/app/NovaApp.d.ts +58 -30
- package/dist/model/runtime/app/NovaRaphRuntime.d.ts +2 -2
- package/dist/model/runtime/app/createNovaRaphRuntime.d.ts +3 -3
- package/dist/model/runtime/assets/NovaAssetRegistry.d.ts +89 -2
- package/dist/model/runtime/assets/NovaVideoTexture.d.ts +38 -0
- package/dist/model/runtime/assets/nova-render-texture-image-identity.d.ts +4 -0
- package/dist/model/runtime/commands/NovaCommandBus.d.ts +1 -1
- package/dist/model/runtime/components/NovaComponentNode.d.ts +6 -6
- package/dist/model/runtime/components/NovaComponentRegistry.d.ts +1 -1
- package/dist/model/runtime/components/NovaSchemaRegistry.d.ts +7 -6
- package/dist/model/runtime/components/nova-component-metadata.d.ts +1 -1
- package/dist/model/runtime/components/nova-component.decorator.d.ts +2 -2
- package/dist/model/runtime/components/nova-defined-component.d.ts +3 -3
- package/dist/model/runtime/context/nova-context.d.ts +1 -1
- package/dist/model/runtime/cursor/NovaCursorManager.d.ts +3 -3
- package/dist/model/runtime/diagnostics/NovaDiagnostics_Module.d.ts +3 -3
- package/dist/model/runtime/interaction/NovaEvents.d.ts +16 -6
- package/dist/model/runtime/interaction/NovaHitIndex.d.ts +1 -1
- package/dist/model/runtime/interaction/NovaSpatialIndex.d.ts +2 -2
- package/dist/model/runtime/scene/NovaScene.d.ts +3 -3
- package/dist/model/runtime/scene/nova-scene-components.d.ts +6 -6
- package/dist/model/runtime/state/nova-store-decorators.d.ts +1 -1
- package/dist/model/runtime/state/nova-store-runtime.d.ts +1 -1
- package/dist/model/runtime/state/nova-store-tracking.d.ts +7 -3
- package/dist/model/runtime/sync/NovaSyncScope.d.ts +11 -2
- package/dist/model/runtime/sync/nova-sync-context.d.ts +2 -2
- package/dist/model/runtime/sync/nova-sync-ports.d.ts +2 -2
- package/dist/model/runtime/sync/nova-sync.types.d.ts +15 -3
- package/dist/model/runtime/template/NovaTemplateRuntime.d.ts +6 -6
- package/dist/model/runtime/tree/NovaContainer.d.ts +4 -4
- package/dist/model/runtime/tree/NovaNode.d.ts +58 -18
- package/dist/model/runtime/tree/NovaRaphNode.d.ts +8 -2
- package/dist/model/runtime/tree/NovaSurface.d.ts +32 -10
- package/dist/model/runtime/tree/nova-node-capture-invalidation.d.ts +11 -0
- package/dist/model/semantic/NovaSemanticService.d.ts +1 -1
- package/dist/model/semantic/browser/createAccessibilityBridge.d.ts +29 -0
- package/dist/model/sound/NovaSoundEngine.d.ts +3 -2
- package/dist/model/text-selection/NovaTextSelectionService.d.ts +2 -2
- package/dist/model/text-selection/index.d.ts +2 -2
- package/dist/model/text-selection/nova-text-selection.types.d.ts +1 -1
- package/dist/model/theme/NovaGlobalThemeRegistry.d.ts +2 -2
- package/dist/model/theme/NovaThemeService.d.ts +5 -3
- package/dist/model/theme/createTokenTheme.d.ts +15 -0
- package/dist/model/tools/transform-tools.d.ts +43 -0
- package/dist/nodes--Ds4IS2h.js +621 -0
- package/dist/nova-color-parser-BCN_rFRN.js +250 -0
- package/dist/nova-compressed-image-CE2Ya9Xa.js +46 -0
- package/dist/nova-mesh-registry-B7Xz5mhU.js +24 -0
- package/dist/nova-render-texture-image-identity-DQ09XFKs.js +15 -0
- package/dist/nova-text-paint-CcntsRjI.js +48 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +50 -0
- package/dist/vec4-BTNv1fUp.js +20 -0
- package/package.json +229 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NovaRenderTextureBinding, NovaRenderTextureRead } from '../../render/targets/nova-render-texture-runtime.js';
|
|
1
2
|
export type NovaAssetKind = 'icon' | 'image' | 'fill' | 'font';
|
|
2
3
|
export type NovaAssetFillMode = 'stretch' | 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
3
4
|
export interface NovaNineSliceInsets {
|
|
@@ -159,7 +160,7 @@ export interface NovaResolvedAsset<K extends NovaAssetKind = NovaAssetKind> {
|
|
|
159
160
|
}
|
|
160
161
|
export type NovaAssetDrawableInput = NovaAssetRef | CanvasImageSource | string | undefined | null;
|
|
161
162
|
type AssetUpdateChange = 'ready-structural' | 'content-only' | 'failed' | 'removed';
|
|
162
|
-
type AssetUpdateProvenance = 'registry' | 'image-loader' | 'svg-loader' | 'font-face';
|
|
163
|
+
type AssetUpdateProvenance = 'registry' | 'image-loader' | 'svg-loader' | 'font-face' | 'managed-image';
|
|
163
164
|
interface AssetUpdateDimensions {
|
|
164
165
|
readonly width: number;
|
|
165
166
|
readonly height: number;
|
|
@@ -171,10 +172,31 @@ interface AssetUpdateEvent {
|
|
|
171
172
|
readonly version: number;
|
|
172
173
|
readonly descriptorType: NovaAssetDescriptor['type'];
|
|
173
174
|
readonly provenance: AssetUpdateProvenance;
|
|
175
|
+
readonly fontFamily?: string;
|
|
174
176
|
readonly change: AssetUpdateChange;
|
|
175
177
|
readonly dimensions?: AssetUpdateDimensions;
|
|
176
178
|
}
|
|
177
179
|
type AssetUpdateListener = (event: AssetUpdateEvent) => void;
|
|
180
|
+
type AssetRegistryUpdateEvent = AssetUpdateEvent | (Omit<AssetUpdateEvent, 'change'> & {
|
|
181
|
+
readonly change: 'defined';
|
|
182
|
+
});
|
|
183
|
+
type AssetUpdateBatchListener = (events: ReadonlyArray<AssetRegistryUpdateEvent>) => void;
|
|
184
|
+
/**
|
|
185
|
+
* CPU-источник принадлежит app registry, GPU storage — существующему backend.
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
export interface NovaManagedImageRegistration {
|
|
189
|
+
readonly image: NovaAssetRef<'image'>;
|
|
190
|
+
readonly alive: boolean;
|
|
191
|
+
readonly ready: boolean;
|
|
192
|
+
readonly width: number;
|
|
193
|
+
readonly height: number;
|
|
194
|
+
readonly revision: number;
|
|
195
|
+
readonly generation: number;
|
|
196
|
+
assertPublishable: () => void;
|
|
197
|
+
publish: (source: CanvasImageSource, release: () => void) => void;
|
|
198
|
+
destroy: () => void;
|
|
199
|
+
}
|
|
178
200
|
export declare function isNovaAssetRef(value: unknown): value is NovaAssetRef;
|
|
179
201
|
/**
|
|
180
202
|
* Управляет scoped/global Nova assets без exposing atlas internals.
|
|
@@ -182,16 +204,60 @@ export declare function isNovaAssetRef(value: unknown): value is NovaAssetRef;
|
|
|
182
204
|
export declare class NovaAssetRegistry {
|
|
183
205
|
private _parent?;
|
|
184
206
|
private _onUpdate?;
|
|
207
|
+
private _onRead?;
|
|
208
|
+
private _onUpdates?;
|
|
209
|
+
private _renderTextureToken?;
|
|
210
|
+
private _renderTextureBindings?;
|
|
211
|
+
private _managedSourceKeys?;
|
|
212
|
+
private _drawableReadDepth;
|
|
213
|
+
private _retiredDrawableSources?;
|
|
214
|
+
/**
|
|
215
|
+
* Удерживает CPU-источники до выхода из синхронного draw, включая ошибку.
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
_beginDrawableRead(): () => void;
|
|
219
|
+
private _retireDrawableSource;
|
|
220
|
+
/**
|
|
221
|
+
* Возвращает ключ существующего backend storage для всех image routes.
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
_managedDrawableStorageKey(source: CanvasImageSource): string | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Регистрирует пустой app-owned image без decoder и независимых часов.
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
_registerManagedImage(): NovaManagedImageRegistration;
|
|
230
|
+
/** Registers one app-owned image without a CPU materialization or global bundle. @internal */
|
|
231
|
+
_registerRenderTextureImage(ref: NovaAssetRef<'image'>, binding: () => NovaRenderTextureBinding): () => void;
|
|
232
|
+
/** Native backend binding. Foreign/disposed/unready RTT refs never become CPU images. @internal */
|
|
233
|
+
_resolveRenderTexture(input: NovaAssetDrawableInput, throwOnError?: boolean): NovaRenderTextureBinding | undefined;
|
|
234
|
+
/** Readiness/version for explicitly declared ordinary image dependencies. @internal */
|
|
235
|
+
_imageDependency(ref: NovaAssetRef): {
|
|
236
|
+
ready: boolean;
|
|
237
|
+
pending: boolean;
|
|
238
|
+
key: string;
|
|
239
|
+
};
|
|
185
240
|
private readonly _records;
|
|
186
241
|
private readonly _materialized;
|
|
242
|
+
private _isolatedFonts?;
|
|
243
|
+
private _fontScope?;
|
|
187
244
|
private readonly _recordUseCounts;
|
|
188
245
|
private readonly _generations;
|
|
246
|
+
private readonly _children;
|
|
247
|
+
private _generationClock;
|
|
189
248
|
private _materializationToken;
|
|
190
249
|
private _disposed;
|
|
250
|
+
private readonly _readyWaiters;
|
|
251
|
+
get pendingCount(): number;
|
|
252
|
+
/** Wait for already requested materializations, without polling or starting a render loop. */
|
|
253
|
+
whenReady(options?: {
|
|
254
|
+
readonly signal?: AbortSignal;
|
|
255
|
+
}): Promise<void>;
|
|
256
|
+
private _notifyReadyWaiters;
|
|
191
257
|
/**
|
|
192
258
|
* Создает registry.
|
|
193
259
|
*/
|
|
194
|
-
constructor(_parent?: NovaAssetRegistry | undefined, _onUpdate?: AssetUpdateListener | undefined);
|
|
260
|
+
constructor(_parent?: NovaAssetRegistry | undefined, _onUpdate?: AssetUpdateListener | undefined, _onRead?: ((id: string, channel?: NovaRenderTextureRead) => void) | undefined, _onUpdates?: AssetUpdateBatchListener | undefined);
|
|
195
261
|
/**
|
|
196
262
|
* Подключает bundle в текущий scope.
|
|
197
263
|
*/
|
|
@@ -200,10 +266,19 @@ export declare class NovaAssetRegistry {
|
|
|
200
266
|
* Удаляет bundle из текущего scope.
|
|
201
267
|
*/
|
|
202
268
|
unuse(bundle: NovaAssetBundle): void;
|
|
269
|
+
/**
|
|
270
|
+
* Публикует изменение caller-owned drawable только в текущем registry.
|
|
271
|
+
* Definition, generation и leases сохраняются; backend получает прежний safe fallback.
|
|
272
|
+
*/
|
|
273
|
+
invalidateDrawable(input: NovaAssetRef<'icon' | 'image' | 'fill'> | string): void;
|
|
203
274
|
/**
|
|
204
275
|
* Терминально освобождает все принадлежащие registry materializations и records.
|
|
205
276
|
*/
|
|
206
277
|
dispose(): void;
|
|
278
|
+
/** Публикует текущую видимость после commit; ошибка одного owner не блокирует остальные. */
|
|
279
|
+
private _notifyDefinitions;
|
|
280
|
+
/** Сохраняет local shadowing и отменяет старые loaders до уведомления observers. */
|
|
281
|
+
private _inheritDefinitions;
|
|
207
282
|
/**
|
|
208
283
|
* Возвращает asset record по ref или id.
|
|
209
284
|
*/
|
|
@@ -212,10 +287,18 @@ export declare class NovaAssetRegistry {
|
|
|
212
287
|
* Возвращает resolved asset.
|
|
213
288
|
*/
|
|
214
289
|
resolve(input: NovaAssetRef | string | undefined | null): NovaResolvedAsset | undefined;
|
|
290
|
+
/** Returns an app-scoped CSS family only after its own FontFace is ready. */
|
|
291
|
+
resolveFontFamily(input: NovaAssetRef<'font'> | string | undefined | null): string | undefined;
|
|
215
292
|
/**
|
|
216
293
|
* Возвращает drawable source для ref/source.
|
|
217
294
|
*/
|
|
218
295
|
resolveDrawable(input: NovaAssetDrawableInput): CanvasImageSource | undefined;
|
|
296
|
+
/**
|
|
297
|
+
* Подписывает managed mask на readiness/size без чтения его CPU content.
|
|
298
|
+
* Backend читает текущий source и revision при retained replay.
|
|
299
|
+
* @internal
|
|
300
|
+
*/
|
|
301
|
+
_trackManagedImageMetadata(input: NovaAssetDrawableInput): boolean;
|
|
219
302
|
/**
|
|
220
303
|
* Возвращает fill mode для drawable asset.
|
|
221
304
|
*/
|
|
@@ -228,6 +311,10 @@ export declare class NovaAssetRegistry {
|
|
|
228
311
|
* Возвращает стабильный drawable key.
|
|
229
312
|
*/
|
|
230
313
|
resolveDrawableKey(prefix: string, input: NovaAssetDrawableInput, fallback: (source: CanvasImageSource) => string): string;
|
|
314
|
+
/** Передаёт чтение binding владельцу runtime, включая пока отсутствующий id. */
|
|
315
|
+
private _trackRead;
|
|
316
|
+
private _disposeCachedMaterializations;
|
|
317
|
+
private _pruneMaterialization;
|
|
231
318
|
/**
|
|
232
319
|
* Возвращает materialized asset.
|
|
233
320
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
2
|
+
import { NovaAssetRef } from './NovaAssetRegistry.js';
|
|
3
|
+
/**
|
|
4
|
+
* Нормализованный crop в displayed/oriented пространстве источника.
|
|
5
|
+
*/
|
|
6
|
+
export interface NovaVideoTextureCrop {
|
|
7
|
+
readonly x: number;
|
|
8
|
+
readonly y: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly height: number;
|
|
11
|
+
}
|
|
12
|
+
export interface NovaVideoTexturePublishOptions {
|
|
13
|
+
readonly crop?: NovaVideoTextureCrop;
|
|
14
|
+
/** Отменённый producer проверяется до acquire и повторно перед commit. */
|
|
15
|
+
readonly signal?: AbortSignal;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Явная CPU-публикация; ready/size/revision не означают готовность GPU device.
|
|
19
|
+
*/
|
|
20
|
+
export interface NovaVideoTexture {
|
|
21
|
+
readonly image: NovaAssetRef<'image'>;
|
|
22
|
+
readonly ready: boolean;
|
|
23
|
+
readonly width: number;
|
|
24
|
+
readonly height: number;
|
|
25
|
+
readonly revision: number;
|
|
26
|
+
/** Приостанавливает только приём sink, сохраняя playback/session clock caller. */
|
|
27
|
+
readonly paused: boolean;
|
|
28
|
+
setPaused: (paused: boolean) => void;
|
|
29
|
+
/** False при pause/hidden/abort/неготовом video; последний кадр сохраняется. */
|
|
30
|
+
publish: (source: CanvasImageSource, options?: NovaVideoTexturePublishOptions) => boolean;
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Принимает кадры по существующему времени producer и хранит один app image.
|
|
35
|
+
* Для явно проверенного полного, неориентированного VideoFrame 1:1 берёт clone;
|
|
36
|
+
* другие inputs снимает в Canvas до завершения borrowed callback. Input не закрывает.
|
|
37
|
+
*/
|
|
38
|
+
export declare function createVideoTexture(app: Pick<NovaApp, 'assets' | 'canvas'>): NovaVideoTexture;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaAssetRef } from './NovaAssetRegistry.js';
|
|
2
|
+
export declare function isNovaRenderTextureImageRef(input: NovaAssetRef): boolean;
|
|
3
|
+
export declare function novaRenderTextureImageOwner(input: NovaAssetRef): object | undefined;
|
|
4
|
+
export declare function registerNovaRenderTextureImageOwner(input: NovaAssetRef, owner: object): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
1
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
2
2
|
export type NovaCommandHandler<TPayload = unknown, TResult = unknown> = (payload: TPayload) => TResult;
|
|
3
3
|
export type NovaCommandTarget = NovaNode<any> | {
|
|
4
4
|
componentId?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaComponentDescriptor } from '../../../domain/types/component.types';
|
|
3
|
-
import { NovaMotionOptions, NovaMotionPlayback } from '../../../domain/types/motion.types';
|
|
4
|
-
import { NovaApp } from '../app/NovaApp';
|
|
5
|
-
import { NovaSyncPortMap } from '../sync/nova-sync.types';
|
|
6
|
-
import { NovaSurface } from '../tree/NovaSurface';
|
|
7
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
2
|
+
import { NovaComponentDescriptor } from '../../../domain/types/component.types.js';
|
|
3
|
+
import { NovaMotionOptions, NovaMotionPlayback } from '../../../domain/types/motion.types.js';
|
|
4
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
5
|
+
import { NovaSyncPortMap } from '../sync/nova-sync.types.js';
|
|
6
|
+
import { NovaSurface } from '../tree/NovaSurface.js';
|
|
7
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
8
8
|
/**
|
|
9
9
|
* Описывает runtime-сущность NovaComponentNode.
|
|
10
10
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaComponentDescriptor, NovaComponentSchema, NovaElementConstructor, NovaElementSchema, NovaSchemaRenderMode } from '../../../domain/types/component.types';
|
|
3
|
-
import { NovaAddChildOptions } from '../../../domain/types/context.types';
|
|
4
|
-
import { NovaRenderer } from '../../../domain/types/renderer.types';
|
|
5
|
-
import { NovaDefinedComponentInput } from './nova-defined-component';
|
|
6
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
7
|
-
import { NovaSurface } from '../tree/NovaSurface';
|
|
2
|
+
import { NovaComponentDescriptor, NovaComponentSchema, NovaElementConstructor, NovaElementSchema, NovaSchemaRenderMode } from '../../../domain/types/component.types.js';
|
|
3
|
+
import { NovaAddChildOptions } from '../../../domain/types/context.types.js';
|
|
4
|
+
import { NovaRenderer } from '../../../domain/types/renderer.types.js';
|
|
5
|
+
import { NovaDefinedComponentInput } from './nova-defined-component.js';
|
|
6
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
7
|
+
import { NovaSurface } from '../tree/NovaSurface.js';
|
|
8
8
|
/**
|
|
9
9
|
* Хранит schema components и отвечает за их expansion и bounds resolution.
|
|
10
10
|
*/
|
|
@@ -12,6 +12,7 @@ export declare class NovaSchemaRegistry {
|
|
|
12
12
|
private readonly _descriptors;
|
|
13
13
|
private readonly _tagDescriptors;
|
|
14
14
|
private readonly _reservedTags;
|
|
15
|
+
private _schemaRenderDepths?;
|
|
15
16
|
/**
|
|
16
17
|
* Создает instance и подготавливает внутреннее состояние.
|
|
17
18
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaComponentApiDefinition, NovaComponentCommandDefinition, NovaComponentDescriptor, NovaComponentDirtyPolicy, NovaComponentPropDefinition, NovaComponentPropKind, NovaComponentSchema, NovaComponentWatchDefinition, NovaElementConstructor } from '../../../domain/types/component.types';
|
|
1
|
+
import { NovaComponentApiDefinition, NovaComponentCommandDefinition, NovaComponentDescriptor, NovaComponentDirtyPolicy, NovaComponentPropDefinition, NovaComponentPropKind, NovaComponentSchema, NovaComponentWatchDefinition, NovaElementConstructor } from '../../../domain/types/component.types.js';
|
|
2
2
|
export interface NovaDecoratedComponentMetadata {
|
|
3
3
|
type?: string;
|
|
4
4
|
tag?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaDecoratedComponentOptions, NovaPropDecoratorOptions, NovaWatchDecoratorOptions } from './nova-component-metadata';
|
|
3
|
-
import { NovaDefinedComponentOptions } from './nova-defined-component';
|
|
2
|
+
import { NovaDecoratedComponentOptions, NovaPropDecoratorOptions, NovaWatchDecoratorOptions } from './nova-component-metadata.js';
|
|
3
|
+
import { NovaDefinedComponentOptions } from './nova-defined-component.js';
|
|
4
4
|
export declare function NovaComponent<E extends EventList = Record<string, any>>(options?: (NovaDefinedComponentOptions<E> & NovaDecoratedComponentOptions)): <T extends new (...args: Array<any>) => any>(target: T) => T;
|
|
5
5
|
export declare const Prop: {
|
|
6
6
|
model: <T = unknown>(options?: NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventList, OneOrMany } from '@endge/utils';
|
|
2
|
-
import { NovaComponentCreateContext, NovaComponentDescriptor, NovaComponentSchema, NovaElementConstructor, NovaElementSlots } from '../../../domain/types/component.types';
|
|
3
|
-
import { NovaSchemaRegistry } from './NovaSchemaRegistry';
|
|
4
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
2
|
+
import { NovaComponentCreateContext, NovaComponentDescriptor, NovaComponentSchema, NovaElementConstructor, NovaElementSlots } from '../../../domain/types/component.types.js';
|
|
3
|
+
import { NovaSchemaRegistry } from './NovaSchemaRegistry.js';
|
|
4
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
5
5
|
export interface NovaComponentListeners {
|
|
6
6
|
[key: string]: (...args: Array<any>) => void;
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NovaContextToken } from '../../../domain/types/context.types';
|
|
1
|
+
import { NovaContextToken } from '../../../domain/types/context.types.js';
|
|
2
2
|
export declare function createNovaContextToken<T>(name: string): NovaContextToken<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaCursorDeclaration, NovaCursorRuntimeState, NovaCursorValue } from '../../../domain/types/cursor.types';
|
|
3
|
-
import { NovaApp } from '../app/NovaApp';
|
|
4
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
2
|
+
import { NovaCursorDeclaration, NovaCursorRuntimeState, NovaCursorValue } from '../../../domain/types/cursor.types.js';
|
|
3
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
4
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
5
5
|
export interface NovaCursorPointerSync<E extends EventList> {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaDiagnosticsCategory, NovaDiagnosticsOptions, NovaDiagnosticsSnapshot } from '../../../domain/types/diagnostics.types';
|
|
3
|
-
import { NovaApp } from '../app/NovaApp';
|
|
4
|
-
import { NovaDiagnosticsBrowser_Adapter } from './adapters/NovaDiagnosticsBrowser_Adapter';
|
|
2
|
+
import { NovaDiagnosticsCategory, NovaDiagnosticsOptions, NovaDiagnosticsSnapshot } from '../../../domain/types/diagnostics.types.js';
|
|
3
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
4
|
+
import { NovaDiagnosticsBrowser_Adapter } from './adapters/NovaDiagnosticsBrowser_Adapter.js';
|
|
5
5
|
export interface NovaDiagnosticsRuntimeHooks {
|
|
6
6
|
setRendererDiagnosticsEnabled: (enabled: boolean) => void;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaNodeEventHandlers } from '../../../domain/types/events.types';
|
|
3
|
-
import { NovaHitTestMode } from '../../../domain/types/renderer.types';
|
|
4
|
-
import { NovaApp } from '../app/NovaApp';
|
|
5
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
2
|
+
import { NovaNodeEventHandlers } from '../../../domain/types/events.types.js';
|
|
3
|
+
import { NovaHitTestMode } from '../../../domain/types/renderer.types.js';
|
|
4
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
5
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
6
6
|
/**
|
|
7
7
|
* Управляет DOM-событиями, hit-test и маршрутизацией событий к Nova nodes.
|
|
8
8
|
*/
|
|
@@ -31,8 +31,8 @@ export declare class NovaEvents<E extends EventList> {
|
|
|
31
31
|
mouseX: number;
|
|
32
32
|
mouseY: number;
|
|
33
33
|
clickTimeoutMs: number;
|
|
34
|
-
private
|
|
35
|
-
private
|
|
34
|
+
private _mouseMoveFrame;
|
|
35
|
+
private readonly _pendingMouseMoves;
|
|
36
36
|
private readonly _spatialIndex;
|
|
37
37
|
private readonly _spatialDirtyNodes;
|
|
38
38
|
private readonly _pointerCaptureNodes;
|
|
@@ -90,6 +90,12 @@ export declare class NovaEvents<E extends EventList> {
|
|
|
90
90
|
* Выполняет внутреннюю операцию release pointer capture.
|
|
91
91
|
*/
|
|
92
92
|
releasePointerCapture(node?: NovaNode<E>, event?: MouseEvent): void;
|
|
93
|
+
/** Отменяет только указанный жест, освобождая состояние до пользовательских callbacks. */
|
|
94
|
+
cancelPointer(event: MouseEvent): boolean;
|
|
95
|
+
/** Использует физический capture только для ещё активного нативного контакта. */
|
|
96
|
+
private _captureNativePointer;
|
|
97
|
+
/** Освобождает физический capture того же canvas без второго реестра. */
|
|
98
|
+
private _releaseNativePointer;
|
|
93
99
|
/**
|
|
94
100
|
* Проверяет наличие pointer capture.
|
|
95
101
|
*/
|
|
@@ -190,6 +196,10 @@ export declare class NovaEvents<E extends EventList> {
|
|
|
190
196
|
* Обрабатывает событие mouse move.
|
|
191
197
|
*/
|
|
192
198
|
private _onMouseMove;
|
|
199
|
+
/** Забирает последнее движение только указанного указателя. */
|
|
200
|
+
private _takeMouseMove;
|
|
201
|
+
/** Отменяет собственный кадр и отложенные события при сбросе владельца. */
|
|
202
|
+
private _clearMouseMoves;
|
|
193
203
|
/**
|
|
194
204
|
* Выполняет внутреннюю операцию handle mouse move.
|
|
195
205
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaBounds } from '../../../domain/types/renderer.types';
|
|
3
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
2
|
+
import { NovaBounds } from '../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
4
4
|
/**
|
|
5
5
|
* Совместимый facade над RBush-backed hit-test индексом.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaLifecycleState } from '../../../domain/types/renderer.types';
|
|
3
|
-
import { NovaApp } from '../app/NovaApp';
|
|
4
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
2
|
+
import { NovaLifecycleState } from '../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
4
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
5
5
|
/**
|
|
6
6
|
* Описывает монтируемую сцену Nova и управляет ее жизненным циклом.
|
|
7
7
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaComponentDescriptor } from '../../../domain/types/component.types';
|
|
3
|
-
import { NovaApp } from '../app/NovaApp';
|
|
4
|
-
import { NovaSchemaRegistry } from '../components/NovaSchemaRegistry';
|
|
5
|
-
import { NovaTemplateChildSchema } from '../template/NovaTemplateRuntime';
|
|
6
|
-
import { NovaSurface } from '../tree/NovaSurface';
|
|
7
|
-
import { NovaComponentNode } from '../components/NovaComponentNode';
|
|
2
|
+
import { NovaComponentDescriptor } from '../../../domain/types/component.types.js';
|
|
3
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
4
|
+
import { NovaSchemaRegistry } from '../components/NovaSchemaRegistry.js';
|
|
5
|
+
import { NovaTemplateChildSchema } from '../template/NovaTemplateRuntime.js';
|
|
6
|
+
import { NovaSurface } from '../tree/NovaSurface.js';
|
|
7
|
+
import { NovaComponentNode } from '../components/NovaComponentNode.js';
|
|
8
8
|
export declare const NOVA_SCENES_SCHEMA_TYPE = "nova.scenes";
|
|
9
9
|
export declare const NOVA_SCENE_SCHEMA_TYPE = "nova.scene";
|
|
10
10
|
export type NovaScenesStrategy = 'keep-alive';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaPhaseName } from '../../../domain/constants/nova-phase';
|
|
1
|
+
import { NovaPhaseName } from '../../../domain/constants/nova-phase.js';
|
|
2
2
|
export type NovaStorePhase = 'update' | 'matrix' | 'render';
|
|
3
3
|
export type NovaStorePhaseInput = NovaStorePhase | Array<NovaStorePhase>;
|
|
4
4
|
export interface NovaReactiveOptions<TStore extends object = object> {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { DataPathDef } from '@raphy-js/raph/path';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
3
|
+
import { NovaStorePhaseInput } from './nova-store-decorators.js';
|
|
4
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
4
5
|
export type NovaStoreTrackingPhase = 'update' | 'matrix' | 'render';
|
|
5
6
|
export type NovaStoreReadMap = Map<NovaStoreTrackingPhase, Set<string>>;
|
|
6
|
-
export
|
|
7
|
+
export type NovaStoreReadSink = (node: NovaNode<any>, reads: NovaStoreReadMap) => void;
|
|
8
|
+
/** Проверяет owner до построения адреса resource read вне lifecycle hook. */
|
|
9
|
+
export declare function hasNovaStoreTracking(app: NovaApp<any>): boolean;
|
|
10
|
+
export declare function beginNovaStoreTracking(node: NovaNode<any>, defaultPhase: NovaStoreTrackingPhase, sink?: NovaStoreReadSink): void;
|
|
7
11
|
export declare function endNovaStoreTracking(): void;
|
|
8
12
|
export declare function trackNovaStoreRead(path: DataPathDef, phaseInput?: NovaStorePhaseInput): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NovaSyncEndpointInput, NovaSyncLink, NovaSyncLinkConfig, NovaSyncPort, NovaSyncPortMap, NovaSyncSchedule, NovaSyncScopeOptions, NovaSyncTransaction } from './nova-sync.types';
|
|
2
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
1
|
+
import { NovaSyncEndpointInput, NovaSyncLink, NovaSyncLinkConfig, NovaSyncPort, NovaSyncPortMap, NovaSyncSchedule, NovaSyncScopeOptions, NovaSyncTransaction } from './nova-sync.types.js';
|
|
2
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
3
3
|
/**
|
|
4
4
|
* Описывает ответственность NovaSyncScope в архитектуре проекта.
|
|
5
5
|
*/
|
|
@@ -14,10 +14,17 @@ export declare class NovaSyncScope {
|
|
|
14
14
|
private _microtaskScheduled;
|
|
15
15
|
private _frameScheduled;
|
|
16
16
|
private _applyDepth;
|
|
17
|
+
private _generation;
|
|
18
|
+
private _frameId;
|
|
19
|
+
private _flushingQueue;
|
|
20
|
+
private readonly _pending;
|
|
21
|
+
private readonly _onError;
|
|
17
22
|
/**
|
|
18
23
|
* Создает экземпляр NovaSyncScope и подготавливает базовое состояние.
|
|
19
24
|
*/
|
|
20
25
|
constructor(options?: NovaSyncScopeOptions);
|
|
26
|
+
/** Регистрирует порты самостоятельного владельца без зависимости от NovaNode. */
|
|
27
|
+
registerEndpoint(id: string, ports: NovaSyncPortMap): () => void;
|
|
21
28
|
/**
|
|
22
29
|
* Регистрирует сущность в runtime-слое NovaSyncScope.
|
|
23
30
|
*/
|
|
@@ -82,6 +89,8 @@ export declare class NovaSyncScope {
|
|
|
82
89
|
* Выполняет внутренний шаг requirePort для NovaSyncScope.
|
|
83
90
|
*/
|
|
84
91
|
private _requirePort;
|
|
92
|
+
/** Удаляет endpoint вместе с очередями, связями и ожидающими подтверждениями. */
|
|
93
|
+
private _removeEndpoint;
|
|
85
94
|
/**
|
|
86
95
|
* Нормализует и возвращает итоговое значение NovaSyncScope.
|
|
87
96
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NovaSyncScope } from './NovaSyncScope';
|
|
2
|
-
export declare const NovaSyncScopeToken: import('
|
|
1
|
+
import { NovaSyncScope } from './NovaSyncScope.js';
|
|
2
|
+
export declare const NovaSyncScopeToken: import('../../../index.js').NovaContextToken<NovaSyncScope>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaComponentNode } from '../components/NovaComponentNode';
|
|
3
|
-
import { NovaSyncPort, NovaSyncPortMap } from './nova-sync.types';
|
|
2
|
+
import { NovaComponentNode } from '../components/NovaComponentNode.js';
|
|
3
|
+
import { NovaSyncPort, NovaSyncPortMap } from './nova-sync.types.js';
|
|
4
4
|
export declare function createNovaSyncPort<T>(input: Omit<NovaSyncPort<T>, 'id' | 'owner'>): NovaSyncPort<T>;
|
|
5
5
|
export declare function createNovaComponentPropSyncPorts<TProps extends Record<string, any>, E extends EventList>(node: NovaComponentNode<TProps, unknown, Record<string, unknown>, TProps, E>): NovaSyncPortMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
1
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
2
2
|
export type NovaSyncSchedule = 'immediate' | 'microtask' | 'frame';
|
|
3
3
|
export type NovaSyncPortMap = Record<string, NovaSyncPort<any>>;
|
|
4
4
|
export type NovaSyncEndpointInput = string | NovaSyncPort<any>;
|
|
@@ -6,7 +6,11 @@ export interface NovaSyncTransaction {
|
|
|
6
6
|
id: number;
|
|
7
7
|
origin: string;
|
|
8
8
|
path: Set<string>;
|
|
9
|
+
/** Отмена отложенного подтверждения при замене записи или удалении связи. */
|
|
10
|
+
signal?: AbortSignal;
|
|
9
11
|
}
|
|
12
|
+
/** false отклоняет запись; Promise завершается после подтверждения владельцем. */
|
|
13
|
+
export type NovaSyncWriteResult = void | false | Promise<void | false>;
|
|
10
14
|
export interface NovaSyncPort<T = unknown> {
|
|
11
15
|
id?: string;
|
|
12
16
|
owner?: NovaNode<any>;
|
|
@@ -15,7 +19,7 @@ export interface NovaSyncPort<T = unknown> {
|
|
|
15
19
|
schedule?: NovaSyncSchedule;
|
|
16
20
|
meta?: Record<string, unknown>;
|
|
17
21
|
read: () => T;
|
|
18
|
-
write: (value: T, transaction: NovaSyncTransaction) =>
|
|
22
|
+
write: (value: T, transaction: NovaSyncTransaction) => NovaSyncWriteResult;
|
|
19
23
|
equals?: (left: T, right: T) => boolean;
|
|
20
24
|
}
|
|
21
25
|
export interface NovaSyncLinkConfig<TFrom = unknown, TTo = TFrom> {
|
|
@@ -39,10 +43,18 @@ export interface NovaSyncLink {
|
|
|
39
43
|
export interface NovaSyncRegisteredPort {
|
|
40
44
|
endpoint: string;
|
|
41
45
|
name: string;
|
|
42
|
-
node
|
|
46
|
+
node?: NovaNode<any>;
|
|
43
47
|
port: NovaSyncPort<any>;
|
|
44
48
|
}
|
|
45
49
|
export interface NovaSyncScopeOptions {
|
|
46
50
|
id?: string;
|
|
47
51
|
scheduler?: NovaSyncSchedule;
|
|
52
|
+
onError?: (error: unknown) => void;
|
|
53
|
+
}
|
|
54
|
+
/** Нейтральный endpoint для владельцев состояния вне дерева Nova nodes. */
|
|
55
|
+
export interface NovaSyncParticipant {
|
|
56
|
+
readonly id: string;
|
|
57
|
+
readonly ports: NovaSyncPortMap;
|
|
58
|
+
subscribe: (listener: (port: string, transaction?: NovaSyncTransaction) => void) => () => void;
|
|
59
|
+
onDispose: (listener: () => void) => () => void;
|
|
48
60
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaElementSchema, NovaElementSlotFactory, NovaElementSlots, NovaElementType } from '../../../domain/types/component.types';
|
|
3
|
-
import { NovaNodeEventHandlers } from '../../../domain/types/events.types';
|
|
4
|
-
import { NovaApp } from '../app/NovaApp';
|
|
5
|
-
import { NovaScope } from '../refs/nova-ref';
|
|
6
|
-
import { NovaNode } from '../tree/NovaNode';
|
|
7
|
-
import { NovaSurface } from '../tree/NovaSurface';
|
|
2
|
+
import { NovaElementSchema, NovaElementSlotFactory, NovaElementSlots, NovaElementType } from '../../../domain/types/component.types.js';
|
|
3
|
+
import { NovaNodeEventHandlers } from '../../../domain/types/events.types.js';
|
|
4
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
5
|
+
import { NovaScope } from '../refs/nova-ref.js';
|
|
6
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
7
|
+
import { NovaSurface } from '../tree/NovaSurface.js';
|
|
8
8
|
export type NovaCompiledNodeConstructor<E extends EventList = Record<string, any>> = new (app: NovaApp<E>, surface: NovaSurface<E>, props?: Record<string, any>, listeners?: Record<string, (...args: Array<any>) => void>, slots?: NovaTemplateSlots) => NovaNode<E>;
|
|
9
9
|
export type NovaTemplateComponentType<E extends EventList = Record<string, any>> = NovaElementType<E>;
|
|
10
10
|
export type NovaTemplateSlotFactory<TScope = Record<string, any>> = NovaElementSlotFactory<TScope>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaBounds } from '../../../domain/types/renderer.types';
|
|
3
|
-
import { NovaApp } from '../app/NovaApp';
|
|
4
|
-
import { NovaSurface } from './NovaSurface';
|
|
5
|
-
import { NovaNode } from './NovaNode';
|
|
2
|
+
import { NovaBounds } from '../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaApp } from '../app/NovaApp.js';
|
|
4
|
+
import { NovaSurface } from './NovaSurface.js';
|
|
5
|
+
import { NovaNode } from './NovaNode.js';
|
|
6
6
|
/**
|
|
7
7
|
* Описывает контейнерный node для группировки дочерних Nova nodes.
|
|
8
8
|
*/
|