@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NovaBounds, NovaRenderer } from '../../../domain/types/renderer.types.js';
|
|
2
|
+
import { NovaApp } from '../../runtime/app/NovaApp.js';
|
|
3
|
+
import { NovaNode } from '../../runtime/tree/NovaNode.js';
|
|
4
|
+
/**
|
|
5
|
+
* An RTT owns only its listeners and isolated read subscriptions, never the scene.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare class NovaNodeRenderTextureSource {
|
|
9
|
+
readonly node: NovaNode<any>;
|
|
10
|
+
private readonly _app;
|
|
11
|
+
readonly origin: Readonly<{
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
}>;
|
|
15
|
+
private readonly _changed;
|
|
16
|
+
private readonly _trackReads;
|
|
17
|
+
private _ancestors;
|
|
18
|
+
private _listeners;
|
|
19
|
+
private _reads;
|
|
20
|
+
private _closed;
|
|
21
|
+
constructor(node: NovaNode<any>, _app: NovaApp<any>, origin: Readonly<{
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}>, _changed: () => void, _trackReads: boolean);
|
|
25
|
+
assertOwner(): void;
|
|
26
|
+
private _syncAncestors;
|
|
27
|
+
record(renderer: NovaRenderer, view: NovaBounds, dpr: number): boolean;
|
|
28
|
+
destroy(): void;
|
|
29
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaRenderTarget, NovaRenderTargetKind } from '../../../domain/types/rendering/index';
|
|
1
|
+
import { NovaRenderTarget, NovaRenderTargetKind } from '../../../domain/types/rendering/index.js';
|
|
2
2
|
export interface CreateNovaRenderTargetOptions {
|
|
3
3
|
id: string;
|
|
4
4
|
kind: NovaRenderTargetKind;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EventList } from '@endge/utils';
|
|
2
|
+
import { NovaRenderer } from '../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaApp } from '../../runtime/app/NovaApp.js';
|
|
4
|
+
import { NovaAssetRef } from '../../runtime/assets/NovaAssetRegistry.js';
|
|
5
|
+
import { NovaNode } from '../../runtime/tree/NovaNode.js';
|
|
6
|
+
export type NovaRenderTextureUpdate = 'once' | 'on-dirty' | 'every-frame';
|
|
7
|
+
export interface NovaRenderTextureCaptureContext {
|
|
8
|
+
/** Effective CSS size, outward-rounded to the target physical pixel grid. */
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly height: number;
|
|
11
|
+
readonly dpr: number;
|
|
12
|
+
}
|
|
13
|
+
export interface NovaRenderTextureOptions {
|
|
14
|
+
/** Requested CSS dimensions; handle/context return ceil(requested*DPR)/DPR. */
|
|
15
|
+
readonly width: number;
|
|
16
|
+
readonly height: number;
|
|
17
|
+
readonly dpr?: number | 'app';
|
|
18
|
+
readonly update?: NovaRenderTextureUpdate;
|
|
19
|
+
readonly dependencies?: ReadonlyArray<NovaAssetRef<'image' | 'icon' | 'fill'>>;
|
|
20
|
+
/** Synchronous explicit drawing only; no Node/subtree capture or tree mutation. */
|
|
21
|
+
readonly capture: (renderer: NovaRenderer, context: NovaRenderTextureCaptureContext) => void;
|
|
22
|
+
}
|
|
23
|
+
/** Captures a selected subtree in world CSS coordinates, including ancestor render scopes. */
|
|
24
|
+
export interface NovaNodeRenderTextureOptions extends Omit<NovaRenderTextureOptions, 'capture'> {
|
|
25
|
+
readonly source: NovaNode<any>;
|
|
26
|
+
/** World coordinate at the output's top-left. No automatic bounds, fit or scene mutation. */
|
|
27
|
+
readonly origin: Readonly<{
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export interface NovaRenderTextureResize {
|
|
33
|
+
/** Requested CSS dimensions; normalization does not overwrite the stored request. */
|
|
34
|
+
readonly width: number;
|
|
35
|
+
readonly height: number;
|
|
36
|
+
readonly dpr?: number | 'app';
|
|
37
|
+
}
|
|
38
|
+
export interface NovaRenderTexture {
|
|
39
|
+
readonly image: NovaAssetRef<'image'>;
|
|
40
|
+
/** Effective CSS size: canonical physical pixels / DPR, outward-rounded from the request. */
|
|
41
|
+
readonly width: number;
|
|
42
|
+
readonly height: number;
|
|
43
|
+
readonly ready: boolean;
|
|
44
|
+
readonly revision: number;
|
|
45
|
+
readonly status: 'unready' | 'ready' | 'error' | 'destroyed';
|
|
46
|
+
readonly error: Error | undefined;
|
|
47
|
+
/** Queues one explicit capture/retry in the app's existing Raph flush. */
|
|
48
|
+
capture: () => void;
|
|
49
|
+
resize: (size: NovaRenderTextureResize) => void;
|
|
50
|
+
/** A failed native release throws and leaves an error handle alive for retry. */
|
|
51
|
+
destroy: () => void;
|
|
52
|
+
}
|
|
53
|
+
/** No subtree cloning/reparenting; one app-owned backend and Raph scheduler. */
|
|
54
|
+
export declare function createRenderTexture<E extends EventList>(app: NovaApp<E>, options: NovaRenderTextureOptions): NovaRenderTexture;
|
|
55
|
+
/** Only known image positions; no generic object traversal or extra scene graph. */
|
|
56
|
+
/** Optional selected subtree capture; it shares the callback RTT's native/resource owner. */
|
|
57
|
+
export declare function createNodeRenderTexture<E extends EventList>(app: NovaApp<E>, options: NovaNodeRenderTextureOptions): NovaRenderTexture;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NovaRenderCommand, NovaRenderSequence } from '../../../domain/types/rendering/index.js';
|
|
2
|
+
/** Captures unique target reads/writes while compilation already visits commands. */
|
|
3
|
+
export declare function rememberNovaRenderTargetReferences(commands: NovaRenderSequence<NovaRenderCommand>, ids?: ReadonlySet<string>): void;
|
|
4
|
+
/** Legacy/custom frames are indexed once; compiled targetless scenes never scan here. */
|
|
5
|
+
export declare function getNovaRenderTargetReferences(commands: NovaRenderSequence<NovaRenderCommand>): ReadonlyArray<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaRenderTarget } from '../../../domain/types/rendering/index';
|
|
1
|
+
import { NovaRenderTarget } from '../../../domain/types/rendering/index.js';
|
|
2
2
|
export interface NovaRenderTargetResource<TTexture = unknown, TFramebuffer = unknown> {
|
|
3
3
|
readonly target: NovaRenderTarget;
|
|
4
4
|
readonly texture?: TTexture;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FrameLoopLease } from '@raphy-js/raph/runtime';
|
|
2
|
+
import { RendererType } from '../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaRenderFrame, NovaRenderTarget } from '../../../domain/types/rendering/index.js';
|
|
4
|
+
import { NovaCanvas } from '../../platform/NovaCanvas.js';
|
|
5
|
+
import { NovaAssetRegistry } from '../../runtime/assets/NovaAssetRegistry.js';
|
|
6
|
+
import { NovaSchemaRegistry } from '../../runtime/components/NovaSchemaRegistry.js';
|
|
7
|
+
/** Internal metadata only. Native texture/canvas handles stay inside the app backend. */
|
|
8
|
+
export interface NovaRenderTextureBinding {
|
|
9
|
+
readonly kind: 'render-target';
|
|
10
|
+
readonly targetId: string;
|
|
11
|
+
readonly width: number;
|
|
12
|
+
readonly height: number;
|
|
13
|
+
readonly dpr: number;
|
|
14
|
+
readonly pixelWidth: number;
|
|
15
|
+
readonly pixelHeight: number;
|
|
16
|
+
readonly revision: number;
|
|
17
|
+
readonly generation: number;
|
|
18
|
+
readonly ready: boolean;
|
|
19
|
+
readonly error?: Error;
|
|
20
|
+
}
|
|
21
|
+
/** Exact physical-grid metadata; no public low-level target contract is widened. */
|
|
22
|
+
export interface NovaRenderTextureTarget extends NovaRenderTarget {
|
|
23
|
+
readonly kind: 'texture';
|
|
24
|
+
readonly pixelWidth: number;
|
|
25
|
+
readonly pixelHeight: number;
|
|
26
|
+
}
|
|
27
|
+
export interface NovaRenderTextureMetadata {
|
|
28
|
+
readonly size: string;
|
|
29
|
+
readonly ready: boolean;
|
|
30
|
+
readonly status: 'unready' | 'ready' | 'error' | 'destroyed';
|
|
31
|
+
readonly error: Error | undefined;
|
|
32
|
+
readonly revision: number;
|
|
33
|
+
}
|
|
34
|
+
export type NovaRenderTextureRead = keyof NovaRenderTextureMetadata;
|
|
35
|
+
export interface NovaRenderTextureChange {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly values: Partial<NovaRenderTextureMetadata>;
|
|
38
|
+
readonly destroyed: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface NovaRenderTextureRuntimeHost {
|
|
41
|
+
readonly canvas: NovaCanvas;
|
|
42
|
+
readonly schema: NovaSchemaRegistry;
|
|
43
|
+
readonly assets: NovaAssetRegistry;
|
|
44
|
+
readonly rendererType: RendererType;
|
|
45
|
+
readonly dpr: () => number;
|
|
46
|
+
readonly budget: () => number;
|
|
47
|
+
readonly available: () => boolean;
|
|
48
|
+
readonly alive: () => boolean;
|
|
49
|
+
readonly requestFlush: () => void;
|
|
50
|
+
readonly acquireLoop: () => FrameLoopLease;
|
|
51
|
+
readonly pin: (id: string) => void;
|
|
52
|
+
readonly unpin: (id: string) => void;
|
|
53
|
+
readonly release: (id: string) => void;
|
|
54
|
+
readonly draw: (frame: NovaRenderFrame, target: NovaRenderTextureTarget) => void;
|
|
55
|
+
readonly read: (id: string, channel: NovaRenderTextureRead) => void;
|
|
56
|
+
readonly changed: (updates: ReadonlyArray<NovaRenderTextureChange>) => void;
|
|
57
|
+
}
|
|
58
|
+
/** Type-only lazy app boundary; importing root/2d never imports the optional implementation. */
|
|
59
|
+
export interface NovaRenderTextureRuntime {
|
|
60
|
+
readonly hasWork: boolean;
|
|
61
|
+
assertNotCapturing: () => void;
|
|
62
|
+
beforeFrame: () => boolean;
|
|
63
|
+
flush: () => void;
|
|
64
|
+
assetsChanged: (ids: ReadonlyArray<string>) => void;
|
|
65
|
+
dprChanged: () => void;
|
|
66
|
+
lost: () => void;
|
|
67
|
+
restored: () => void;
|
|
68
|
+
validateBudget: (bytes: number) => void;
|
|
69
|
+
destroy: () => void;
|
|
70
|
+
backendDestroyed: () => void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type NovaCompressedImageFormat = 'bc3' | 'etc2-rgba';
|
|
2
|
+
export interface NovaCompressedImageLevel {
|
|
3
|
+
readonly width: number;
|
|
4
|
+
readonly height: number;
|
|
5
|
+
readonly data: Uint8Array<ArrayBuffer>;
|
|
6
|
+
}
|
|
7
|
+
export interface NovaCompressedImagePayload {
|
|
8
|
+
readonly format: NovaCompressedImageFormat;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly height: number;
|
|
11
|
+
readonly levels: readonly NovaCompressedImageLevel[];
|
|
12
|
+
readonly bytes: number;
|
|
13
|
+
readonly premultiplied: boolean;
|
|
14
|
+
readonly transfer: 'srgb' | 'linear';
|
|
15
|
+
readonly uploaded: (compressed: boolean, reason?: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function bindNovaCompressedImage(source: CanvasImageSource, payload: NovaCompressedImagePayload): () => void;
|
|
18
|
+
export declare function novaCompressedImage(source: CanvasImageSource): NovaCompressedImagePayload | undefined;
|
|
19
|
+
export declare function novaCompressedImageFormat(gl: WebGL2RenderingContext, width: number, height: number): NovaCompressedImageFormat | undefined;
|
|
20
|
+
export declare function novaCompressedImageSupported(gl: WebGL2RenderingContext, payload: NovaCompressedImagePayload): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaIcon } from '../../../domain/types/renderer.types';
|
|
1
|
+
import { NovaIcon } from '../../../domain/types/renderer.types.js';
|
|
2
2
|
export interface NovaResolvedIconRenderRect {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
@@ -7,3 +7,5 @@ export interface NovaResolvedIconRenderRect {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function resolveNovaIconRenderRect(icon: NovaIcon, dpr: number): NovaResolvedIconRenderRect;
|
|
9
9
|
export declare function resolveNovaIconRenderOpacity(icon: NovaIcon, dpr: number): number;
|
|
10
|
+
/** Проверяет явный sampling; прежний default остаётся у backend. */
|
|
11
|
+
export declare function resolveNovaIconSampling(icon: NovaIcon): 'nearest' | 'linear' | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NovaCircle, NovaNineSliceImage } from '../../../domain/types/renderer.types.js';
|
|
2
|
+
import { NovaNineSliceInsets } from '../../runtime/assets/NovaAssetRegistry.js';
|
|
3
|
+
export declare function validateNovaCircleImageInput(circle: NovaCircle): number;
|
|
4
|
+
export declare function validateNovaNineSliceImageInput(image: NovaNineSliceImage): number;
|
|
5
|
+
export declare function normalizeNovaNineSliceInput(input: number | Partial<NovaNineSliceInsets>): NovaNineSliceInsets;
|
|
6
|
+
export declare function resolveNovaNineSliceSegments(sourceSize: number, targetSize: number, startSlice: number, endSlice: number): Array<{
|
|
7
|
+
sourceStart: number;
|
|
8
|
+
sourceSize: number;
|
|
9
|
+
targetStart: number;
|
|
10
|
+
targetSize: number;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NovaText } from '../../../domain/types/renderer.types.js';
|
|
2
|
+
export interface NovaMarkdownRun {
|
|
3
|
+
text: string;
|
|
4
|
+
font: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
}
|
|
9
|
+
export interface NovaMarkdownLayout {
|
|
10
|
+
runs: Array<NovaMarkdownRun>;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
lineHeight: number;
|
|
14
|
+
}
|
|
15
|
+
/** Общий объявленный subset: **bold**, _italic_ и логические LF/CR/CRLF строки. */
|
|
16
|
+
export declare function layoutNovaMarkdown(text: NovaText, measure: (value: string, font: string) => number, defaults: {
|
|
17
|
+
family: string;
|
|
18
|
+
lineHeight: number;
|
|
19
|
+
}, scale?: number): NovaMarkdownLayout;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NovaBounds, NovaText } from '../../../domain/types/renderer.types.js';
|
|
2
|
+
/** Нормализованные paint параметры одной plain native строки без собственного cache state. */
|
|
3
|
+
export interface NovaResolvedTextPaint {
|
|
4
|
+
readonly fill: string;
|
|
5
|
+
readonly fillOpacity: number;
|
|
6
|
+
readonly stroke?: {
|
|
7
|
+
readonly color: string;
|
|
8
|
+
readonly opacity: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly lineCap: CanvasLineCap;
|
|
11
|
+
readonly lineJoin: CanvasLineJoin;
|
|
12
|
+
readonly miterLimit: number;
|
|
13
|
+
readonly dashPattern: readonly number[];
|
|
14
|
+
readonly dashOffset: number;
|
|
15
|
+
};
|
|
16
|
+
readonly outset: number;
|
|
17
|
+
readonly key: string;
|
|
18
|
+
}
|
|
19
|
+
/** Отличает opt-in paint от прежнего fill-only contract без новых аллокаций. */
|
|
20
|
+
export declare function hasNovaTextPaint(text: NovaText): boolean;
|
|
21
|
+
/** Проверяет plain whole-run paint до native draw и отделяет mutable dash input. */
|
|
22
|
+
export declare function resolveNovaTextPaint(text: NovaText): NovaResolvedTextPaint | undefined;
|
|
23
|
+
/** Рисует обе paint operations одной native строкой; общий opacity применяет вызывающий owner. */
|
|
24
|
+
export declare function paintNovaTextRun(context: CanvasRenderingContext2D, text: string, x: number, y: number, paint: NovaResolvedTextPaint, opacity?: number): void;
|
|
25
|
+
/** Возвращает native ink с запасом stroke, не меняя advance и baseline строки. */
|
|
26
|
+
export declare function novaTextPaintBounds(metrics: TextMetrics, x: number, y: number, outset: number): NovaBounds;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NovaText } from '../../../domain/types/renderer.types.js';
|
|
2
|
+
export interface NovaWrappedTextRun {
|
|
3
|
+
text: string;
|
|
4
|
+
font: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
}
|
|
9
|
+
export interface NovaWrappedTextLayout {
|
|
10
|
+
runs: Array<NovaWrappedTextRun>;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
lineHeight: number;
|
|
14
|
+
truncated: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Opt-in only: existing plain/Markdown layouts keep their original contracts. */
|
|
17
|
+
export declare function hasNovaTextWrapping(text: NovaText): boolean;
|
|
18
|
+
/** Measures complete shaped lines; UTF-16 slices always follow grapheme boundaries. */
|
|
19
|
+
export declare function layoutNovaWrappedText(text: NovaText, measure: (value: string, font: string) => number, scale?: number): NovaWrappedTextLayout;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { EventList, OneOrMany } from '@endge/utils';
|
|
2
|
-
import { NovaAppCreateOptions } from '../../../domain/types/base.types';
|
|
3
|
-
import { NovaElementConstructor } from '../../../domain/types/component.types';
|
|
4
|
-
import { NovaContextToken } from '../../../domain/types/context.types';
|
|
5
|
-
import { NovaThemeId, NovaThemeTokens } from '../../../domain/types/theme.types';
|
|
6
|
-
import { NovaDefinedComponentInput, NovaDefinedComponentOptions } from '../components/nova-defined-component';
|
|
7
|
-
import { NovaSchemaRegistry } from '../components/NovaSchemaRegistry';
|
|
8
|
-
import { NovaRef, NovaRefMap, NovaScope } from '../refs/nova-ref';
|
|
9
|
-
import { NovaCreateStoreOptions } from '../state/nova-store-runtime';
|
|
10
|
-
import { NovaCompiledNodeConstructor } from '../template/NovaTemplateRuntime';
|
|
11
|
-
import { NovaSurface } from '../tree/NovaSurface';
|
|
12
|
-
import { NovaGlobalThemeAsset, NovaThemeSelectorTarget } from '../../theme/NovaGlobalThemeRegistry';
|
|
13
|
-
import { NovaApp } from './NovaApp';
|
|
2
|
+
import { NovaAppCreateOptions } from '../../../domain/types/base.types.js';
|
|
3
|
+
import { NovaElementConstructor } from '../../../domain/types/component.types.js';
|
|
4
|
+
import { NovaContextToken } from '../../../domain/types/context.types.js';
|
|
5
|
+
import { NovaThemeId, NovaThemeTokens } from '../../../domain/types/theme.types.js';
|
|
6
|
+
import { NovaDefinedComponentInput, NovaDefinedComponentOptions } from '../components/nova-defined-component.js';
|
|
7
|
+
import { NovaSchemaRegistry } from '../components/NovaSchemaRegistry.js';
|
|
8
|
+
import { NovaRef, NovaRefMap, NovaScope } from '../refs/nova-ref.js';
|
|
9
|
+
import { NovaCreateStoreOptions } from '../state/nova-store-runtime.js';
|
|
10
|
+
import { NovaCompiledNodeConstructor } from '../template/NovaTemplateRuntime.js';
|
|
11
|
+
import { NovaSurface } from '../tree/NovaSurface.js';
|
|
12
|
+
import { NovaGlobalThemeAsset, NovaThemeSelectorTarget } from '../../theme/NovaGlobalThemeRegistry.js';
|
|
13
|
+
import { NovaApp } from './NovaApp.js';
|
|
14
14
|
export type NovaSchemaPlugin = (registry: NovaSchemaRegistry) => void;
|
|
15
15
|
export interface NovaMountOptions<E extends EventList = Record<string, any>> {
|
|
16
16
|
app: NovaApp<E>;
|
|
@@ -35,31 +35,31 @@ export interface NovaMountHandle {
|
|
|
35
35
|
*/
|
|
36
36
|
export declare class Nova {
|
|
37
37
|
static readonly assets: Readonly<{
|
|
38
|
-
global: import('../assets/NovaAssetRegistry').NovaAssetRegistry;
|
|
39
|
-
define: typeof import('../assets/NovaAssetRegistry').defineNovaAssets;
|
|
40
|
-
svg: typeof import('../assets/NovaAssetRegistry').createNovaSvgAsset;
|
|
41
|
-
image: typeof import('../assets/NovaAssetRegistry').createNovaImageAsset;
|
|
42
|
-
canvas: typeof import('../assets/NovaAssetRegistry').createNovaCanvasAsset;
|
|
43
|
-
pattern: typeof import('../assets/NovaAssetRegistry').createNovaPatternAsset;
|
|
44
|
-
stripe: typeof import('../assets/NovaAssetRegistry').createNovaStripeAsset;
|
|
45
|
-
linearGradient: typeof import('../assets/NovaAssetRegistry').createNovaLinearGradientAsset;
|
|
46
|
-
radialGradient: typeof import('../assets/NovaAssetRegistry').createNovaRadialGradientAsset;
|
|
47
|
-
conicGradient: typeof import('../assets/NovaAssetRegistry').createNovaConicGradientAsset;
|
|
48
|
-
noise: typeof import('../assets/NovaAssetRegistry').createNovaNoiseAsset;
|
|
49
|
-
meshGradient: typeof import('../assets/NovaAssetRegistry').createNovaMeshGradientAsset;
|
|
50
|
-
nineSliceImage: typeof import('../assets/NovaAssetRegistry').createNovaNineSliceImageAsset;
|
|
51
|
-
font: typeof import('../assets/NovaAssetRegistry').createNovaFontAsset;
|
|
52
|
-
ref<K extends import('../assets/NovaAssetRegistry').NovaAssetKind>(namespace: string, kind: K, name: string): import('../assets/NovaAssetRegistry').NovaAssetRef<K>;
|
|
38
|
+
global: import('../assets/NovaAssetRegistry.js').NovaAssetRegistry;
|
|
39
|
+
define: typeof import('../assets/NovaAssetRegistry.js').defineNovaAssets;
|
|
40
|
+
svg: typeof import('../assets/NovaAssetRegistry.js').createNovaSvgAsset;
|
|
41
|
+
image: typeof import('../assets/NovaAssetRegistry.js').createNovaImageAsset;
|
|
42
|
+
canvas: typeof import('../assets/NovaAssetRegistry.js').createNovaCanvasAsset;
|
|
43
|
+
pattern: typeof import('../assets/NovaAssetRegistry.js').createNovaPatternAsset;
|
|
44
|
+
stripe: typeof import('../assets/NovaAssetRegistry.js').createNovaStripeAsset;
|
|
45
|
+
linearGradient: typeof import('../assets/NovaAssetRegistry.js').createNovaLinearGradientAsset;
|
|
46
|
+
radialGradient: typeof import('../assets/NovaAssetRegistry.js').createNovaRadialGradientAsset;
|
|
47
|
+
conicGradient: typeof import('../assets/NovaAssetRegistry.js').createNovaConicGradientAsset;
|
|
48
|
+
noise: typeof import('../assets/NovaAssetRegistry.js').createNovaNoiseAsset;
|
|
49
|
+
meshGradient: typeof import('../assets/NovaAssetRegistry.js').createNovaMeshGradientAsset;
|
|
50
|
+
nineSliceImage: typeof import('../assets/NovaAssetRegistry.js').createNovaNineSliceImageAsset;
|
|
51
|
+
font: typeof import('../assets/NovaAssetRegistry.js').createNovaFontAsset;
|
|
52
|
+
ref<K extends import('../assets/NovaAssetRegistry.js').NovaAssetKind>(namespace: string, kind: K, name: string): import('../assets/NovaAssetRegistry.js').NovaAssetRef<K>;
|
|
53
53
|
}>;
|
|
54
54
|
static readonly Prop: {
|
|
55
|
-
model: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
56
|
-
object: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
57
|
-
options: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
58
|
-
array: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
59
|
-
string: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
60
|
-
number: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
61
|
-
boolean: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
62
|
-
function: <T = unknown>(options?: import('../components/nova-component-metadata').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
55
|
+
model: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
56
|
+
object: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
57
|
+
options: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
58
|
+
array: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
59
|
+
string: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
60
|
+
number: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
61
|
+
boolean: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
62
|
+
function: <T = unknown>(options?: import('../components/nova-component-metadata.js').NovaPropDecoratorOptions<T>) => (target: object, propertyKey: string | symbol, _descriptor?: PropertyDescriptor) => void;
|
|
63
63
|
};
|
|
64
64
|
private static readonly _schemaPlugins;
|
|
65
65
|
private static _uiKitPlugin;
|
|
@@ -1,33 +1,51 @@
|
|
|
1
1
|
import { EventList, EventBus } from '@endge/utils';
|
|
2
|
-
import { NovaAppCreateOptions, NovaAppOptions, NovaNodeProperties, NovaSizeOptions, ResolvedNovaInputOptions } from '../../../domain/types/base.types';
|
|
3
|
-
import { NovaNodeEventHandlers } from '../../../domain/types/events.types';
|
|
4
|
-
import { NovaExportImageOptions, NovaExportImageResult } from '../../../domain/types/export.types';
|
|
5
|
-
import { NovaHitTestMode, RendererType } from '../../../domain/types/renderer.types';
|
|
6
|
-
import { NovaRendererConfig, NovaRendererConfigInput } from '../../../domain/types/rendering/index';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
2
|
+
import { NovaAppCreateOptions, NovaAppOptions, NovaNodeProperties, NovaSizeOptions, ResolvedNovaInputOptions } from '../../../domain/types/base.types.js';
|
|
3
|
+
import { NovaNodeEventHandlers } from '../../../domain/types/events.types.js';
|
|
4
|
+
import { NovaExportImageOptions, NovaExportImageResult } from '../../../domain/types/export.types.js';
|
|
5
|
+
import { NovaHitTestMode, RendererType } from '../../../domain/types/renderer.types.js';
|
|
6
|
+
import { NovaRendererConfig, NovaRendererConfigInput } from '../../../domain/types/rendering/index.js';
|
|
7
|
+
import { NovaRenderTextureRuntime, NovaRenderTextureRuntimeHost } from '../../render/targets/nova-render-texture-runtime.js';
|
|
8
|
+
import { NovaRaphPhaseContext, NovaRaphRuntime } from './NovaRaphRuntime.js';
|
|
9
|
+
import { NovaScene } from '../scene/NovaScene.js';
|
|
10
|
+
import { NovaMotionEngine } from '../../motion/NovaMotionEngine.js';
|
|
11
|
+
import { NovaCanvas } from '../../platform/NovaCanvas.js';
|
|
12
|
+
import { NovaAssetRegistry } from '../assets/NovaAssetRegistry.js';
|
|
13
|
+
import { NovaCommandBus } from '../commands/NovaCommandBus.js';
|
|
14
|
+
import { NovaComponentRegistry } from '../components/NovaComponentRegistry.js';
|
|
15
|
+
import { NovaSchemaRegistry } from '../components/NovaSchemaRegistry.js';
|
|
16
|
+
import { NovaCursorManager } from '../cursor/NovaCursorManager.js';
|
|
17
|
+
import { NovaDebug } from '../debug/NovaDebug.js';
|
|
18
|
+
import { NovaMetrics } from '../debug/NovaMetrics.js';
|
|
19
|
+
import { NovaDiagnostics_Module } from '../diagnostics/NovaDiagnostics_Module.js';
|
|
20
|
+
import { NovaEvents } from '../interaction/NovaEvents.js';
|
|
21
|
+
import { NovaStore } from '../state/NovaStore.js';
|
|
22
|
+
import { NovaSyncScope } from '../sync/NovaSyncScope.js';
|
|
23
|
+
import { NovaNode } from '../tree/NovaNode.js';
|
|
24
|
+
import { NovaSurface } from '../tree/NovaSurface.js';
|
|
25
|
+
import { NovaSemanticService } from '../../semantic/NovaSemanticService.js';
|
|
26
|
+
import { NovaSoundEngine } from '../../sound/NovaSoundEngine.js';
|
|
27
|
+
import { NovaThemeService } from '../../theme/NovaThemeService.js';
|
|
28
|
+
/** Завершённый renderer frame; подтверждение compositor presentation не входит в контракт. */
|
|
29
|
+
export interface NovaFrameSubmission {
|
|
30
|
+
id: number;
|
|
31
|
+
startedAt: number;
|
|
32
|
+
finishedAt: number;
|
|
33
|
+
durationMs: number;
|
|
34
|
+
}
|
|
27
35
|
/**
|
|
28
36
|
* Управляет жизненным циклом Nova runtime, canvas, input, surfaces и фазами Raph.
|
|
29
37
|
*/
|
|
30
38
|
export declare class NovaApp<E extends EventList = Record<string, any>> {
|
|
39
|
+
private readonly _frameListeners;
|
|
40
|
+
private _frameId;
|
|
41
|
+
private _destroyed;
|
|
42
|
+
private _renderTextures?;
|
|
43
|
+
private _renderTextureFlushPending;
|
|
44
|
+
onFrameSubmitted(listener: (frame: NovaFrameSubmission) => void): () => void;
|
|
45
|
+
/** Lazy type-only bridge. Optional RTT implementation is supplied by its entrypoint. @internal */
|
|
46
|
+
_useRenderTextures<T extends NovaRenderTextureRuntime>(create: (host: NovaRenderTextureRuntimeHost) => T): T;
|
|
47
|
+
/** Coalesces a request into the existing Raph boundary; this is no frame clock. */
|
|
48
|
+
private _requestRenderTextureFlush;
|
|
31
49
|
private readonly _raph;
|
|
32
50
|
private readonly _ownsRaphKernel;
|
|
33
51
|
private readonly _canvas;
|
|
@@ -44,6 +62,7 @@ export declare class NovaApp<E extends EventList = Record<string, any>> {
|
|
|
44
62
|
private readonly _phaseDirtySurfaces;
|
|
45
63
|
private _surfaceOrderCounter;
|
|
46
64
|
private _textRasterContinuationPending;
|
|
65
|
+
private _loop;
|
|
47
66
|
readonly store: NovaStore;
|
|
48
67
|
readonly schema: NovaSchemaRegistry;
|
|
49
68
|
readonly components: NovaComponentRegistry;
|
|
@@ -65,6 +84,7 @@ export declare class NovaApp<E extends EventList = Record<string, any>> {
|
|
|
65
84
|
private _contextVersion;
|
|
66
85
|
private readonly _ownsSyncScope;
|
|
67
86
|
private _globalThemeDispose;
|
|
87
|
+
private _assetVersionScope?;
|
|
68
88
|
/**
|
|
69
89
|
* Создает приложение, подключает canvas, input, renderer и Raph-loop.
|
|
70
90
|
*/
|
|
@@ -89,9 +109,9 @@ export declare class NovaApp<E extends EventList = Record<string, any>> {
|
|
|
89
109
|
* Собирает dirty surfaces и запускает render от корня каждого surface.
|
|
90
110
|
*/
|
|
91
111
|
render(p: NovaRaphPhaseContext<NovaNodeProperties>): void;
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
|
|
112
|
+
/** @internal */
|
|
113
|
+
_invalidateEffectReplay(surface: NovaSurface<E>): void;
|
|
114
|
+
/** Компилирует dirty surfaces и replay-ит все retained frames в основной canvas. */
|
|
95
115
|
flush(): void;
|
|
96
116
|
/**
|
|
97
117
|
* Проверяет, нужно ли дорендерить deferred text atlas без пользовательского input.
|
|
@@ -109,6 +129,14 @@ export declare class NovaApp<E extends EventList = Record<string, any>> {
|
|
|
109
129
|
* Помечает render surfaces dirty после async asset updates.
|
|
110
130
|
*/
|
|
111
131
|
private _invalidateAssets;
|
|
132
|
+
/** Связывает metadata reads с существующими node-owned phase observers. */
|
|
133
|
+
private _trackAssetRead;
|
|
134
|
+
/** Кодирует UTF-16 без path syntax, wildcard collisions или URIError. */
|
|
135
|
+
private _assetVersionPath;
|
|
136
|
+
/** Same kernel owner; a distinct branch cannot alias an ordinary encoded asset id. */
|
|
137
|
+
private _renderTextureVersionPath;
|
|
138
|
+
/** Сохраняет fallback для недоказанных backend consumers и structural changes. */
|
|
139
|
+
private _invalidateAssetRenderCaches;
|
|
112
140
|
/**
|
|
113
141
|
* Проверяет renderer config consumers, которые не принадлежат retained frame.
|
|
114
142
|
*/
|
|
@@ -122,11 +150,11 @@ export declare class NovaApp<E extends EventList = Record<string, any>> {
|
|
|
122
150
|
*/
|
|
123
151
|
bumpContextVersion(): number;
|
|
124
152
|
/**
|
|
125
|
-
* Запускает постоянный
|
|
153
|
+
* Запускает постоянный цикл кадров с повторным выводом подготовленной сцены.
|
|
126
154
|
*/
|
|
127
155
|
startLoop(): void;
|
|
128
156
|
/**
|
|
129
|
-
* Останавливает постоянный scheduler
|
|
157
|
+
* Останавливает постоянный вывод, сохраняя scheduler leases других владельцев.
|
|
130
158
|
*/
|
|
131
159
|
stopLoop(): void;
|
|
132
160
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RaphKernel } from '@raphy-js/raph/path';
|
|
2
2
|
import { FrameLoopLease, RaphFrameContext, RaphSchedulerMode, RaphRuntime } from '@raphy-js/raph/runtime';
|
|
3
|
-
import { NovaNodeProperties } from '../../../domain/types/base.types';
|
|
4
|
-
import { NovaRaphNode } from '../tree/NovaRaphNode';
|
|
3
|
+
import { NovaNodeProperties } from '../../../domain/types/base.types.js';
|
|
4
|
+
import { NovaRaphNode } from '../tree/NovaRaphNode.js';
|
|
5
5
|
export declare const NovaPhaseWork: {
|
|
6
6
|
readonly PreUpdate: {
|
|
7
7
|
readonly Interaction: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
2
|
import { RaphKernel } from '@raphy-js/raph/path';
|
|
3
3
|
import { RaphSchedulerMode } from '@raphy-js/raph/runtime';
|
|
4
|
-
import { NovaNodeProperties } from '../../../domain/types/base.types';
|
|
5
|
-
import { NovaApp } from './NovaApp';
|
|
6
|
-
import { NovaRaphRuntime } from './NovaRaphRuntime';
|
|
4
|
+
import { NovaNodeProperties } from '../../../domain/types/base.types.js';
|
|
5
|
+
import { NovaApp } from './NovaApp.js';
|
|
6
|
+
import { NovaRaphRuntime } from './NovaRaphRuntime.js';
|
|
7
7
|
interface CreateNovaRaphRuntimeOptions {
|
|
8
8
|
kernel?: RaphKernel;
|
|
9
9
|
runtimeId?: string;
|