@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,107 @@
|
|
|
1
|
+
/** Experimental, opt-in 2D lighting. Distances are caller-defined world units. */
|
|
2
|
+
export type NovaLightVector2D = readonly [
|
|
3
|
+
x: number,
|
|
4
|
+
y: number,
|
|
5
|
+
height: number
|
|
6
|
+
];
|
|
7
|
+
export type NovaLightColor2D = string | readonly [
|
|
8
|
+
red: number,
|
|
9
|
+
green: number,
|
|
10
|
+
blue: number
|
|
11
|
+
];
|
|
12
|
+
export interface NovaLightingBounds2D {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
}
|
|
18
|
+
export interface NovaLightShadows2D {
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
/** Fraction of this source blocked by an occluder, 0..1. Default 1. */
|
|
21
|
+
opacity?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface NovaLightOptions2D {
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
/** Hex sRGB or normalized sRGB tuple. Default white. */
|
|
26
|
+
color?: NovaLightColor2D;
|
|
27
|
+
/** Relative irradiance, 0..16; independent of Nova3D photometric units. Default 1. */
|
|
28
|
+
intensity?: number;
|
|
29
|
+
/** Eight lighting groups; bitwise intersection selects receivers and casters. Default 255. */
|
|
30
|
+
layers?: number;
|
|
31
|
+
shadows?: NovaLightShadows2D;
|
|
32
|
+
}
|
|
33
|
+
export interface NovaPointLightOptions2D extends NovaLightOptions2D {
|
|
34
|
+
position: NovaLightVector2D;
|
|
35
|
+
range: number;
|
|
36
|
+
/** Radius of a finite emitter in world units. Default 0. */
|
|
37
|
+
sourceRadius?: number;
|
|
38
|
+
/** Exponent of finite-range attenuation. Default 2. */
|
|
39
|
+
falloff?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface NovaSpotLightOptions2D extends NovaPointLightOptions2D {
|
|
42
|
+
/** Direction FROM the light, in world XYZ. */
|
|
43
|
+
direction: NovaLightVector2D;
|
|
44
|
+
innerConeAngle: number;
|
|
45
|
+
outerConeAngle: number;
|
|
46
|
+
}
|
|
47
|
+
export interface NovaDirectionalLightOptions2D extends NovaLightOptions2D {
|
|
48
|
+
/** Direction FROM the light; height component must be negative. */
|
|
49
|
+
direction: NovaLightVector2D;
|
|
50
|
+
/** Angular emitter radius in radians. Default 0. */
|
|
51
|
+
angularRadius?: number;
|
|
52
|
+
/** Finite ray length for shadow queries. Default 10000. */
|
|
53
|
+
shadowDistance?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface NovaLightOccluderOptions2D {
|
|
56
|
+
/** Convex footprint in ground/world XY, 3..8 vertices, either winding. */
|
|
57
|
+
polygon: ReadonlyArray<readonly [
|
|
58
|
+
x: number,
|
|
59
|
+
y: number
|
|
60
|
+
]>;
|
|
61
|
+
height: number;
|
|
62
|
+
baseHeight?: number;
|
|
63
|
+
layers?: number;
|
|
64
|
+
enabled?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface NovaLightReceiverOptions2D {
|
|
67
|
+
/** Borrowed alpha silhouette. The engine never closes this image. */
|
|
68
|
+
image: CanvasImageSource;
|
|
69
|
+
/** Projected image bounds; top-of-image height ramps down to its bottom. */
|
|
70
|
+
bounds: NovaLightingBounds2D;
|
|
71
|
+
height: number;
|
|
72
|
+
baseHeight?: number;
|
|
73
|
+
layers?: number;
|
|
74
|
+
enabled?: boolean;
|
|
75
|
+
/** Increment after modifying a borrowed canvas/video frame in place. */
|
|
76
|
+
imageRevision?: number;
|
|
77
|
+
/** Back-to-front receiver order; defaults to projected bounds bottom. Higher is in front. */
|
|
78
|
+
order?: number;
|
|
79
|
+
/** Preserve the source pixels independently of ambient/direct illumination. */
|
|
80
|
+
unlit?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface NovaLightingOptions2D {
|
|
83
|
+
/** P(X,Y,Z)=(X, groundScale*Y-Z). Default 1; use .58 for Ocean. */
|
|
84
|
+
groundScale?: number;
|
|
85
|
+
/** Relative linear RGB baseline. Default [1,1,1] preserves painted illumination. */
|
|
86
|
+
ambient?: readonly [
|
|
87
|
+
red: number,
|
|
88
|
+
green: number,
|
|
89
|
+
blue: number
|
|
90
|
+
];
|
|
91
|
+
/** Height-field range, in world units. Default 1024. */
|
|
92
|
+
maxHeight?: number;
|
|
93
|
+
/** Samples per world unit in the lighting buffer, (0,1]. Default .5. */
|
|
94
|
+
resolution?: number;
|
|
95
|
+
/** Maximum dimension of each owned render target, 64..2048. Default 768. */
|
|
96
|
+
maxTextureSize?: number;
|
|
97
|
+
}
|
|
98
|
+
export interface NovaLightingRenderOptions2D {
|
|
99
|
+
/** Projected world rectangle represented by the source image. */
|
|
100
|
+
bounds: NovaLightingBounds2D;
|
|
101
|
+
}
|
|
102
|
+
/** Retained data handle. A disposed handle cannot be read or updated. */
|
|
103
|
+
export interface NovaLightingHandle2D<T> {
|
|
104
|
+
set: (patch: Partial<T>) => void;
|
|
105
|
+
getOptions: () => Readonly<T>;
|
|
106
|
+
dispose: () => void;
|
|
107
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LottieModel } from './lottie.types.js';
|
|
2
|
+
import { NovaCompiledNodeConstructor } from '../runtime/template/NovaTemplateRuntime.js';
|
|
3
|
+
/** Использует только существующих владельцев retained tree, transform, clipping и lifecycle. */
|
|
4
|
+
export declare function createLottieComponent(model: LottieModel): NovaCompiledNodeConstructor;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { NovaCompiledNodeConstructor } from '../runtime/template/NovaTemplateRuntime.js';
|
|
2
|
+
export interface NovaLottieOptions {
|
|
3
|
+
readonly profile: 'shape-basic-v1';
|
|
4
|
+
}
|
|
5
|
+
/** Абсолютное время задаёт вызывающий код. Импортёр не владеет воспроизведением, циклом или часами. */
|
|
6
|
+
export interface NovaLottieProps {
|
|
7
|
+
readonly timeMs: number;
|
|
8
|
+
}
|
|
9
|
+
export interface NovaLottieDefinition {
|
|
10
|
+
readonly profile: 'shape-basic-v1';
|
|
11
|
+
readonly width: number;
|
|
12
|
+
readonly height: number;
|
|
13
|
+
readonly frameRate: number;
|
|
14
|
+
readonly inFrame: number;
|
|
15
|
+
readonly outFrame: number;
|
|
16
|
+
readonly durationMs: number;
|
|
17
|
+
readonly counts: Readonly<{
|
|
18
|
+
layers: number;
|
|
19
|
+
rectangles: number;
|
|
20
|
+
keyframes: number;
|
|
21
|
+
nodesPerMount: number;
|
|
22
|
+
}>;
|
|
23
|
+
readonly component: NovaCompiledNodeConstructor;
|
|
24
|
+
}
|
|
25
|
+
export declare class NovaLottiePreparationError extends Error {
|
|
26
|
+
readonly jsonPath: string;
|
|
27
|
+
readonly layer: number | null;
|
|
28
|
+
readonly feature: string;
|
|
29
|
+
constructor(jsonPath: string, layer: number | null, feature: string);
|
|
30
|
+
}
|
|
31
|
+
export type LottiePoint = readonly [
|
|
32
|
+
number,
|
|
33
|
+
number
|
|
34
|
+
];
|
|
35
|
+
export interface LottiePositionKey {
|
|
36
|
+
readonly frame: number;
|
|
37
|
+
readonly start: LottiePoint;
|
|
38
|
+
readonly end?: LottiePoint;
|
|
39
|
+
readonly timing?: readonly [
|
|
40
|
+
number,
|
|
41
|
+
number,
|
|
42
|
+
number,
|
|
43
|
+
number
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
export type LottiePosition = Readonly<{
|
|
47
|
+
value: LottiePoint;
|
|
48
|
+
}> | Readonly<{
|
|
49
|
+
keys: readonly LottiePositionKey[];
|
|
50
|
+
}>;
|
|
51
|
+
export interface LottieTransform {
|
|
52
|
+
readonly position: LottiePoint;
|
|
53
|
+
readonly anchor: LottiePoint;
|
|
54
|
+
readonly scale: LottiePoint;
|
|
55
|
+
readonly rotation: number;
|
|
56
|
+
readonly opacity: number;
|
|
57
|
+
}
|
|
58
|
+
export interface LottieRectangle {
|
|
59
|
+
readonly x: number;
|
|
60
|
+
readonly y: number;
|
|
61
|
+
readonly width: number;
|
|
62
|
+
readonly height: number;
|
|
63
|
+
readonly color: string;
|
|
64
|
+
}
|
|
65
|
+
export interface LottieLayer {
|
|
66
|
+
readonly id: number;
|
|
67
|
+
readonly inFrame: number;
|
|
68
|
+
readonly outFrame: number;
|
|
69
|
+
readonly position: LottiePosition;
|
|
70
|
+
readonly anchor: LottiePoint;
|
|
71
|
+
readonly scale: LottiePoint;
|
|
72
|
+
readonly rotation: number;
|
|
73
|
+
readonly group: LottieTransform;
|
|
74
|
+
readonly rectangle: LottieRectangle;
|
|
75
|
+
}
|
|
76
|
+
export interface LottieModel {
|
|
77
|
+
readonly width: number;
|
|
78
|
+
readonly height: number;
|
|
79
|
+
readonly frameRate: number;
|
|
80
|
+
readonly inFrame: number;
|
|
81
|
+
readonly outFrame: number;
|
|
82
|
+
readonly layers: readonly LottieLayer[];
|
|
83
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NovaLottieDefinition, NovaLottieOptions } from './lottie.types.js';
|
|
2
|
+
/** Строго подготавливает заявленный корпус без работы с приложением, DOM, провайдером и часами. */
|
|
3
|
+
export declare function prepareLottie(input: unknown, options: NovaLottieOptions): NovaLottieDefinition;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LottiePoint, LottiePosition } from './lottie.types.js';
|
|
2
|
+
/** Координаты управляющих точек X лежат в [0,1]; ограниченная бисекция без кэша и изменяемого состояния воспроизведения. */
|
|
3
|
+
export declare function lottieBezierProgress(x: number, timing: readonly [
|
|
4
|
+
number,
|
|
5
|
+
number,
|
|
6
|
+
number,
|
|
7
|
+
number
|
|
8
|
+
]): number;
|
|
9
|
+
export declare function sampleLottiePosition(position: LottiePosition, frame: number): LottiePoint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NovaMotionOptions, NovaMotionPatch, NovaMotionPlayback, NovaMotionPlaybackState, NovaMotionSegment, NovaMotionTarget, NovaMotionTickContext, NovaMotionTimelineOptions, NovaMotionTweenOptions } from '../../domain/types/motion.types';
|
|
2
|
-
import { NovaMotionPatternName, NovaMotionPatternOptions, NovaMotionPresetName, NovaMotionPresetOptions } from './nova-motion-presets';
|
|
3
|
-
import { NovaApp } from '../runtime/app/NovaApp';
|
|
1
|
+
import { NovaMotionOptions, NovaMotionPatch, NovaMotionPlayback, NovaMotionPlaybackState, NovaMotionSegment, NovaMotionTarget, NovaMotionTickContext, NovaMotionTimelineOptions, NovaMotionTweenOptions } from '../../domain/types/motion.types.js';
|
|
2
|
+
import { NovaMotionPatternName, NovaMotionPatternOptions, NovaMotionPresetName, NovaMotionPresetOptions } from './nova-motion-presets.js';
|
|
3
|
+
import { NovaApp } from '../runtime/app/NovaApp.js';
|
|
4
4
|
/**
|
|
5
5
|
* Управляет playback state одного motion timeline или tween.
|
|
6
6
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaMotionEasingName, NovaMotionOptions } from '../../domain/types/motion.types';
|
|
1
|
+
import { NovaMotionEasingName, NovaMotionOptions } from '../../domain/types/motion.types.js';
|
|
2
2
|
export declare const NOVA_MOTION_EASING: Record<NovaMotionEasingName, (t: number) => number>;
|
|
3
3
|
export declare function resolveNovaMotionEasing(easing: NovaMotionOptions['easing']): (t: number) => number;
|
|
4
4
|
export declare function clampMotionProgress(value: number): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NovaMotionOptions, NovaMotionPlayback, NovaMotionTarget } from '../../domain/types/motion.types';
|
|
2
|
-
import { NovaMotionEngine } from './NovaMotionEngine';
|
|
1
|
+
import { NovaMotionOptions, NovaMotionPlayback, NovaMotionTarget } from '../../domain/types/motion.types.js';
|
|
2
|
+
import { NovaMotionEngine } from './NovaMotionEngine.js';
|
|
3
3
|
export type NovaMotionPresetCategory = 'Fade' | 'Slide' | 'Scale' | 'Rotate' | 'Attention' | 'Gesture' | 'Visual';
|
|
4
4
|
export type NovaMotionPatternCategory = 'Stagger' | 'Timeline' | 'Sequence' | 'Repeat';
|
|
5
5
|
export interface NovaMotionPresetMeta {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NovaMotionPlayback, NovaMotionSegment, NovaMotionTimelineOptions, NovaMotionValue } from '../../domain/types/motion.types';
|
|
1
|
+
import { NovaMotionPlayback, NovaMotionSegment, NovaMotionTimelineOptions, NovaMotionValue } from '../../domain/types/motion.types.js';
|
|
2
2
|
export declare function compileNovaMotionTimeline(playback: NovaMotionPlayback, options: NovaMotionTimelineOptions, readValue: (target: NovaMotionSegment['target'], key: string) => NovaMotionValue): Array<NovaMotionSegment>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NovaCanvasCreateOptions, NovaSizeOptions } from '../../domain/types/base.types';
|
|
2
|
-
import { NovaExportImageOptions, NovaExportImageResult } from '../../domain/types/export.types';
|
|
3
|
-
import { RendererType } from '../../domain/types/renderer.types';
|
|
1
|
+
import { NovaCanvasCreateOptions, NovaSizeOptions } from '../../domain/types/base.types.js';
|
|
2
|
+
import { NovaExportImageOptions, NovaExportImageResult } from '../../domain/types/export.types.js';
|
|
3
|
+
import { RendererType } from '../../domain/types/renderer.types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Оборачивает HTMLCanvasElement и управляет context, DPR и ownership.
|
|
6
6
|
*/
|
|
@@ -108,9 +108,10 @@ export declare class NovaCanvas {
|
|
|
108
108
|
*/
|
|
109
109
|
private _resolveDpr;
|
|
110
110
|
private _createExportCanvas;
|
|
111
|
-
/**
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
/** @internal */
|
|
112
|
+
_rollbackAttach(): void;
|
|
113
|
+
private _disposeContextLossHandlers;
|
|
114
|
+
/** Создает принадлежащие wrapper context handlers. */
|
|
114
115
|
private _initContextLossHandlers;
|
|
115
116
|
private _handleContextLost;
|
|
116
117
|
private _handleContextRestored;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NovaPrimitiveRequirement } from './primitive.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Объясняет отказ до вызова пользовательского renderSchema и записи его commands.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NovaPrimitiveUnsupportedError extends Error {
|
|
6
|
+
readonly primitiveType: string;
|
|
7
|
+
readonly rendererId: string;
|
|
8
|
+
readonly missing: readonly NovaPrimitiveRequirement[];
|
|
9
|
+
/**
|
|
10
|
+
* Отделяет список недостающих requirements от изменяемого массива вызывающего кода.
|
|
11
|
+
*/
|
|
12
|
+
constructor(primitiveType: string, rendererId: string, missing: readonly NovaPrimitiveRequirement[]);
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NovaPrimitiveDefinition, NovaPrimitiveDescriptor } from './primitive.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Создаёт optional schema extension без регистрации, DOM и нового lifecycle owner.
|
|
4
|
+
*/
|
|
5
|
+
export declare function definePrimitive<TSchema = Record<string, unknown>>(definition: NovaPrimitiveDefinition<TSchema>): NovaPrimitiveDescriptor<TSchema>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { NovaComponentDescriptor } from '../../domain/types/component.types.js';
|
|
2
|
+
import { NovaRendererCapabilities } from '../../domain/types/renderer.types.js';
|
|
3
|
+
type ComponentDescriptor<TSchema> = NovaComponentDescriptor<Record<string, unknown>, unknown, Record<string, unknown>, TSchema>;
|
|
4
|
+
/**
|
|
5
|
+
* Требует существующую capability либо полный набор методов optional operation.
|
|
6
|
+
*/
|
|
7
|
+
export type NovaPrimitiveRequirement = keyof NovaRendererCapabilities | 'clipPath' | 'composition' | 'renderTargets';
|
|
8
|
+
/**
|
|
9
|
+
* Описывает stateless расширение, которое записывает только существующие builtin commands.
|
|
10
|
+
*/
|
|
11
|
+
export interface NovaPrimitiveDefinition<TSchema = Record<string, unknown>> {
|
|
12
|
+
readonly type: string;
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly version: string;
|
|
15
|
+
readonly requires: readonly NovaPrimitiveRequirement[];
|
|
16
|
+
readonly renderSchema: NonNullable<ComponentDescriptor<TSchema>['renderSchema']>;
|
|
17
|
+
readonly measureBounds: NonNullable<ComponentDescriptor<TSchema>['measureBounds']>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Обычный immutable schema-component descriptor для существующего app.schema.register.
|
|
21
|
+
*/
|
|
22
|
+
export interface NovaPrimitiveDescriptor<TSchema = Record<string, unknown>> extends Readonly<ComponentDescriptor<TSchema>> {
|
|
23
|
+
readonly kind: 'schema-component';
|
|
24
|
+
readonly requires: readonly NovaPrimitiveRequirement[];
|
|
25
|
+
readonly renderSchema: NonNullable<ComponentDescriptor<TSchema>['renderSchema']>;
|
|
26
|
+
readonly measureBounds: NonNullable<ComponentDescriptor<TSchema>['measureBounds']>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NovaRenderTarget } from '../../../../domain/types/rendering/index';
|
|
2
|
-
import { NovaRenderTargetResource } from '../../targets/nova-render-target-resource';
|
|
3
|
-
import { CreateNovaRenderTargetOptions, NovaRenderTargetManager } from '../../targets/NovaRenderTargetManager';
|
|
1
|
+
import { NovaRenderTarget } from '../../../../domain/types/rendering/index.js';
|
|
2
|
+
import { NovaRenderTargetResource } from '../../targets/nova-render-target-resource.js';
|
|
3
|
+
import { CreateNovaRenderTargetOptions, NovaRenderTargetManager } from '../../targets/NovaRenderTargetManager.js';
|
|
4
4
|
/**
|
|
5
5
|
* Выделяет Canvas2D resources для offscreen render targets.
|
|
6
6
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { mat3 } from 'gl-matrix';
|
|
2
|
-
import { NovaArc, NovaBorder, NovaBorderBatch, NovaCircle, NovaIcon, NovaIconBatch, NovaLine, NovaNineSliceImage, NovaParticleBatch, NovaPatternRect, NovaPolygon, NovaRect,
|
|
3
|
-
import { NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index';
|
|
4
|
-
import { NovaCanvas } from '../../../platform/NovaCanvas';
|
|
5
|
-
import { NovaRenderBackend } from '../nova-render-backend';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { NovaArc, NovaBorder, NovaBorderBatch, NovaCircle, NovaCompositionPass, NovaIcon, NovaIconBatch, NovaLine, NovaNineSliceImage, NovaParticleBatch, NovaPath, NovaPathClip, NovaPatternRect, NovaPolygon, NovaRect, NovaRectBatchInput, NovaRenderer, NovaRendererStateMark, NovaSchema, NovaStripeRectBatch, NovaText, NovaTextBatch, NovaTimeRangeSegmentBatch, RendererType } from '../../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index.js';
|
|
4
|
+
import { NovaCanvas } from '../../../platform/NovaCanvas.js';
|
|
5
|
+
import { NovaRenderBackend } from '../nova-render-backend.js';
|
|
6
|
+
import { NovaMeshDrawBatch } from '../../meshes/mesh.types.js';
|
|
7
|
+
import { NovaAssetRegistry } from '../../../runtime/assets/NovaAssetRegistry.js';
|
|
8
|
+
import { NovaSchemaRegistry } from '../../../runtime/components/NovaSchemaRegistry.js';
|
|
8
9
|
/**
|
|
9
10
|
* Рисует compiled Nova render frame через Canvas2D backend.
|
|
10
11
|
*/
|
|
@@ -23,6 +24,7 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
23
24
|
circle: boolean;
|
|
24
25
|
arc: boolean;
|
|
25
26
|
polygon: boolean;
|
|
27
|
+
path: boolean;
|
|
26
28
|
icon: boolean;
|
|
27
29
|
text: boolean;
|
|
28
30
|
patternRects: boolean;
|
|
@@ -34,11 +36,30 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
34
36
|
measureText: boolean;
|
|
35
37
|
};
|
|
36
38
|
private readonly _measureCanvas;
|
|
39
|
+
private _nineSliceCenterTile?;
|
|
37
40
|
private readonly _schemaRegistry;
|
|
41
|
+
private readonly _polygonPaths;
|
|
42
|
+
private _vectorPaths;
|
|
43
|
+
private _screenVectorPaths;
|
|
44
|
+
private _pathGeometryCache?;
|
|
38
45
|
private readonly _renderTargets;
|
|
46
|
+
private _meshCropCanvas?;
|
|
47
|
+
private _meshCropSource?;
|
|
48
|
+
private _meshCropKey?;
|
|
39
49
|
private readonly _targetStack;
|
|
40
50
|
private readonly _stateMarks;
|
|
41
51
|
private _activeTargetContext;
|
|
52
|
+
private _activeTargetDpr;
|
|
53
|
+
private _activeTargetOrigin?;
|
|
54
|
+
private readonly _readableEffectTargets;
|
|
55
|
+
private readonly _compositionMasks;
|
|
56
|
+
private readonly _compositionSourceIds;
|
|
57
|
+
private _compositionSourceId;
|
|
58
|
+
private _nativeBlendTested;
|
|
59
|
+
private _nativeBlendFailed;
|
|
60
|
+
private _canvasBlendFallbacks;
|
|
61
|
+
private _canvasBlendReadbackPixels;
|
|
62
|
+
private readonly _compositionStack;
|
|
42
63
|
private _clearTextBackground;
|
|
43
64
|
private _transformDepth;
|
|
44
65
|
private _clipDepth;
|
|
@@ -54,6 +75,7 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
54
75
|
* Возвращает ctx.
|
|
55
76
|
*/
|
|
56
77
|
get ctx(): CanvasRenderingContext2D;
|
|
78
|
+
private get _outputDpr();
|
|
57
79
|
/**
|
|
58
80
|
* Возвращает активную render-state границу.
|
|
59
81
|
*/
|
|
@@ -69,17 +91,27 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
69
91
|
/**
|
|
70
92
|
* Начинает рисовать в offscreen canvas target.
|
|
71
93
|
*/
|
|
94
|
+
private _resolveDrawable;
|
|
72
95
|
beginRenderTarget(id: string, width: number, height: number, options?: {
|
|
73
96
|
dpr?: number;
|
|
97
|
+
willReadFrequently?: boolean;
|
|
74
98
|
}): void;
|
|
99
|
+
private _beginRenderTarget;
|
|
75
100
|
/**
|
|
76
101
|
* Завершает offscreen target.
|
|
77
102
|
*/
|
|
78
103
|
endRenderTarget(): void;
|
|
104
|
+
beginComposition(input: NovaCompositionPass, id?: string, maskId?: string): void;
|
|
105
|
+
endComposition(): void;
|
|
106
|
+
private _supportsNativeBlend;
|
|
107
|
+
private _applyCompositionEffects;
|
|
108
|
+
private _prepareCompositionMask;
|
|
79
109
|
/**
|
|
80
110
|
* Рисует offscreen target обратно в активный canvas.
|
|
81
111
|
*/
|
|
82
112
|
drawRenderTarget(id: string, x: number, y: number, width: number, height: number): void;
|
|
113
|
+
/** Отпускает bitmap cache при удалении logical surface. */
|
|
114
|
+
releaseRenderTarget(id: string): void;
|
|
83
115
|
/**
|
|
84
116
|
* Временно включает очистку text bounds перед draw.
|
|
85
117
|
*/
|
|
@@ -88,6 +120,7 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
88
120
|
* Выполняет render-операцию frame.
|
|
89
121
|
*/
|
|
90
122
|
renderFrame(frame: NovaRenderFrame): NovaRenderMetrics;
|
|
123
|
+
private _renderFrame;
|
|
91
124
|
/**
|
|
92
125
|
* Выполняет внутреннюю операцию schema.
|
|
93
126
|
*/
|
|
@@ -108,6 +141,7 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
108
141
|
* Выполняет внутреннюю операцию clip.
|
|
109
142
|
*/
|
|
110
143
|
clip(x: number, y: number, width: number, height: number): void;
|
|
144
|
+
clipPath(clip: NovaPathClip): void;
|
|
111
145
|
/**
|
|
112
146
|
* Очищает clip.
|
|
113
147
|
*/
|
|
@@ -164,10 +198,19 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
164
198
|
* Выполняет внутреннюю операцию arc.
|
|
165
199
|
*/
|
|
166
200
|
arc(p: NovaArc): void;
|
|
201
|
+
/** Общая Geometry-подготовка; regular Path2D сохраняет native curves, остальные штрихи — готовыми контурами. */
|
|
202
|
+
path(item: NovaPath): void;
|
|
203
|
+
/** Последний full-affine native path на prepared variant; Geometry owner ограничивает variants восемью. */
|
|
204
|
+
private _nativeScreenVectorPath;
|
|
205
|
+
private _nativeVectorPath;
|
|
206
|
+
private _strokePathContours;
|
|
207
|
+
private _fillPathContours;
|
|
167
208
|
/**
|
|
168
209
|
* Выполняет внутреннюю операцию polygon.
|
|
169
210
|
*/
|
|
170
211
|
polygon(p: NovaPolygon): void;
|
|
212
|
+
/** Path2D принадлежит неизменяемому snapshot; изменяемый direct payload всегда строит путь заново. */
|
|
213
|
+
private _retainedPolygonPath;
|
|
171
214
|
private _strokeScreenPath;
|
|
172
215
|
/**
|
|
173
216
|
* Выполняет внутреннюю операцию icon.
|
|
@@ -185,14 +228,18 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
185
228
|
* Рисует repeated center для nine-slice-image.
|
|
186
229
|
*/
|
|
187
230
|
private _drawRepeatedNineSliceCenter;
|
|
188
|
-
/**
|
|
189
|
-
|
|
190
|
-
|
|
231
|
+
/** Explicit approximation: one undeformed image bounding rectangle per affine instance. */
|
|
232
|
+
meshes(batch: NovaMeshDrawBatch): void;
|
|
233
|
+
/** Canvas source rectangles may filter neighbouring atlas texels. Isolate the current tile once. */
|
|
234
|
+
private _meshCanvasCrop;
|
|
235
|
+
/** One bounded current-tile cache; frame retirement drops its source/backing, not its reusable Canvas. */
|
|
236
|
+
releaseFrame(): void;
|
|
237
|
+
/** Рисует retained particle batch через Canvas2D fallback. */
|
|
191
238
|
particles(batch: NovaParticleBatch): void;
|
|
192
239
|
/**
|
|
193
240
|
* Рисует retained rect batch через Canvas2D fallback.
|
|
194
241
|
*/
|
|
195
|
-
rects(
|
|
242
|
+
rects(input: NovaRectBatchInput): void;
|
|
196
243
|
/**
|
|
197
244
|
* Рисует retained border batch теми же вызовами Canvas2D, что и border primitive
|
|
198
245
|
* со всеми сторонами без radius и dashPattern.
|
|
@@ -230,6 +277,8 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
230
277
|
* Выполняет внутреннюю операцию text string.
|
|
231
278
|
*/
|
|
232
279
|
private _textString;
|
|
280
|
+
/** Изолирует две paint operations существующим composition owner, применяя общий opacity один раз. */
|
|
281
|
+
private _paintTextWithOpacity;
|
|
233
282
|
/**
|
|
234
283
|
* Выполняет внутреннюю операцию measure text.
|
|
235
284
|
*/
|
|
@@ -250,11 +299,8 @@ export declare class NovaRenderer2D implements NovaRenderer, NovaRenderBackend {
|
|
|
250
299
|
*/
|
|
251
300
|
private _clearClipUnsafe;
|
|
252
301
|
/**
|
|
253
|
-
*
|
|
302
|
+
* Рисует согласованные строки opt-in layout.
|
|
254
303
|
*/
|
|
304
|
+
private _textWrapped;
|
|
255
305
|
private _textMarkdown;
|
|
256
|
-
/**
|
|
257
|
-
* Выполняет внутреннюю операцию parse markdown to chunks.
|
|
258
|
-
*/
|
|
259
|
-
private _parseMarkdownToChunks;
|
|
260
306
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NovaBlendMode } from '../../../../domain/types/renderer.types.js';
|
|
2
|
+
/** W3C §10 over RGBA8 inputs. Writes the result into the existing source image. */
|
|
3
|
+
export declare function blendNovaCanvasPixels(source: ImageData, backdrop: ImageData, mode: NovaBlendMode, opacity: number): void;
|
|
4
|
+
/** Tiny sRGB semantic probe. Scratch canvases never enter the target lifecycle. */
|
|
5
|
+
export declare function probeNativeNovaCanvasBlend(mode: NovaBlendMode): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NovaRendererConfig } from '../../../domain/types/rendering/index';
|
|
2
|
-
import { NovaCanvas } from '../../platform/NovaCanvas';
|
|
3
|
-
import { NovaRenderBackend } from './nova-render-backend';
|
|
4
|
-
import { NovaAssetRegistry } from '../../runtime/assets/NovaAssetRegistry';
|
|
5
|
-
import { NovaSchemaRegistry } from '../../runtime/components/NovaSchemaRegistry';
|
|
6
|
-
import { RendererType } from '../../../domain/types/renderer.types';
|
|
1
|
+
import { NovaRendererConfig } from '../../../domain/types/rendering/index.js';
|
|
2
|
+
import { NovaCanvas } from '../../platform/NovaCanvas.js';
|
|
3
|
+
import { NovaRenderBackend } from './nova-render-backend.js';
|
|
4
|
+
import { NovaAssetRegistry } from '../../runtime/assets/NovaAssetRegistry.js';
|
|
5
|
+
import { NovaSchemaRegistry } from '../../runtime/components/NovaSchemaRegistry.js';
|
|
6
|
+
import { RendererType } from '../../../domain/types/renderer.types.js';
|
|
7
7
|
export declare function createNovaRenderBackend(type: RendererType, canvas: NovaCanvas, schemaRegistry: NovaSchemaRegistry, rendererConfig: NovaRendererConfig, assets: NovaAssetRegistry): NovaRenderBackend;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { NovaRendererCanvas, RendererType } from '../../../domain/types/renderer.types';
|
|
2
|
-
import { NovaRendererConfig, NovaRenderFrame, NovaRenderMetrics } from '../../../domain/types/rendering/index';
|
|
1
|
+
import { NovaRendererCanvas, RendererType } from '../../../domain/types/renderer.types.js';
|
|
2
|
+
import { NovaRendererConfig, NovaRenderFrame, NovaRenderMetrics } from '../../../domain/types/rendering/index.js';
|
|
3
3
|
export interface NovaRenderAssetUpdate {
|
|
4
4
|
readonly id: string;
|
|
5
5
|
readonly generation: number;
|
|
6
6
|
readonly previousVersion: number;
|
|
7
7
|
readonly version: number;
|
|
8
8
|
readonly source?: CanvasImageSource;
|
|
9
|
+
/** Публикация managed CPU image сохраняет его backend storage. @internal */
|
|
10
|
+
readonly contentOnly?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export interface NovaRenderBackend {
|
|
11
13
|
readonly id: string;
|
|
@@ -16,7 +18,11 @@ export interface NovaRenderBackend {
|
|
|
16
18
|
readonly supportsLinearRectRepack?: boolean;
|
|
17
19
|
renderFrame: (frame: NovaRenderFrame) => NovaRenderMetrics;
|
|
18
20
|
releaseFrame?: (frame: NovaRenderFrame) => void;
|
|
21
|
+
releaseRenderTarget?: (id: string) => void;
|
|
22
|
+
/** Возвращает живые targets без GL, побочных действий и изменения frame outcome. */
|
|
23
|
+
getRenderTargetTextureCount?: () => number;
|
|
19
24
|
clearRoot: () => void;
|
|
25
|
+
isContextLost?: () => boolean;
|
|
20
26
|
invalidateAsset?: (update: NovaRenderAssetUpdate) => void;
|
|
21
27
|
invalidateAssets?: () => void;
|
|
22
28
|
resize?: () => void;
|