@nova-lab/core 1.0.0-dev.19 → 1.1.0-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 +223 -4
|
@@ -2,15 +2,15 @@ import { EventList } from '@endge/utils';
|
|
|
2
2
|
import { RaphKernel } from '@raphy-js/raph/path';
|
|
3
3
|
import { RaphSchedulerMode } from '@raphy-js/raph/runtime';
|
|
4
4
|
import { mat3 } from 'gl-matrix';
|
|
5
|
-
import { NovaCursorContext, NovaCursorDeclaration } from './cursor.types';
|
|
6
|
-
import { NovaDiagnosticsOptions } from './diagnostics.types';
|
|
7
|
-
import { NovaHitTestHandler } from './hit-test.types';
|
|
8
|
-
import { RendererType } from './renderer.types';
|
|
9
|
-
import { NovaRendererConfigInput } from './rendering/index';
|
|
10
|
-
import { NovaSoundOptions } from './sound.types';
|
|
11
|
-
import { NovaThemeCreateOptions } from './theme.types';
|
|
12
|
-
import { NovaSchemaRegistry } from '../../model/runtime/components/NovaSchemaRegistry';
|
|
13
|
-
import { NovaSyncScope } from '../../model/runtime/sync/NovaSyncScope';
|
|
5
|
+
import { NovaCursorContext, NovaCursorDeclaration } from './cursor.types.js';
|
|
6
|
+
import { NovaDiagnosticsOptions } from './diagnostics.types.js';
|
|
7
|
+
import { NovaHitTestHandler } from './hit-test.types.js';
|
|
8
|
+
import { RendererType } from './renderer.types.js';
|
|
9
|
+
import { NovaRendererConfigInput } from './rendering/index.js';
|
|
10
|
+
import { NovaSoundOptions } from './sound.types.js';
|
|
11
|
+
import { NovaThemeCreateOptions } from './theme.types.js';
|
|
12
|
+
import { NovaSchemaRegistry } from '../../model/runtime/components/NovaSchemaRegistry.js';
|
|
13
|
+
import { NovaSyncScope } from '../../model/runtime/sync/NovaSyncScope.js';
|
|
14
14
|
export interface NovaNodeProperties {
|
|
15
15
|
localActive: boolean;
|
|
16
16
|
localVisible: boolean;
|
|
@@ -34,6 +34,9 @@ export interface NovaNodeProperties {
|
|
|
34
34
|
export interface NovaAppOptions {
|
|
35
35
|
debug: boolean | string | Array<string>;
|
|
36
36
|
diagnostics: NovaDiagnosticsOptions;
|
|
37
|
+
/**
|
|
38
|
+
* Включает постоянный вывод подготовленной сцены; по умолчанию выключен.
|
|
39
|
+
*/
|
|
37
40
|
loop: boolean;
|
|
38
41
|
width: number;
|
|
39
42
|
height: number;
|
|
@@ -53,6 +56,8 @@ export type NovaInputPreventDefault = 'never' | 'handled' | 'always';
|
|
|
53
56
|
export interface NovaPointerInputOptions {
|
|
54
57
|
enabled?: boolean;
|
|
55
58
|
scope?: NovaPointerScope;
|
|
59
|
+
/** Источник DOM-событий; mouse сохраняет прежний контракт по умолчанию. */
|
|
60
|
+
events?: 'mouse' | 'pointer';
|
|
56
61
|
capture?: boolean;
|
|
57
62
|
}
|
|
58
63
|
export interface NovaKeyboardInputOptions {
|
|
@@ -68,6 +73,7 @@ export interface NovaInputOptions {
|
|
|
68
73
|
export interface ResolvedNovaInputOptions {
|
|
69
74
|
pointer: {
|
|
70
75
|
enabled: boolean;
|
|
76
|
+
events: 'mouse' | 'pointer';
|
|
71
77
|
capture: boolean;
|
|
72
78
|
};
|
|
73
79
|
keyboard: {
|
|
@@ -84,6 +90,9 @@ export interface NovaRendererOptions {
|
|
|
84
90
|
}
|
|
85
91
|
export interface NovaSchedulerOptions {
|
|
86
92
|
type?: RaphSchedulerMode;
|
|
93
|
+
/**
|
|
94
|
+
* Включает постоянный вывод кадров без пересчёта неизменной сцены. По умолчанию false.
|
|
95
|
+
*/
|
|
87
96
|
loop?: boolean;
|
|
88
97
|
}
|
|
89
98
|
export interface NovaDebugOptions {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaBounds, NovaRenderer, NovaSchema } from './renderer.types';
|
|
3
|
-
import { NovaApp } from '../../model/runtime/app/NovaApp';
|
|
4
|
-
import { NovaSchemaRegistry } from '../../model/runtime/components/NovaSchemaRegistry';
|
|
5
|
-
import { NovaNode } from '../../model/runtime/tree/NovaNode';
|
|
6
|
-
import { NovaSurface } from '../../model/runtime/tree/NovaSurface';
|
|
2
|
+
import { NovaBounds, NovaRenderer, NovaSchema } from './renderer.types.js';
|
|
3
|
+
import { NovaApp } from '../../model/runtime/app/NovaApp.js';
|
|
4
|
+
import { NovaSchemaRegistry } from '../../model/runtime/components/NovaSchemaRegistry.js';
|
|
5
|
+
import { NovaNode } from '../../model/runtime/tree/NovaNode.js';
|
|
6
|
+
import { NovaSurface } from '../../model/runtime/tree/NovaSurface.js';
|
|
7
7
|
export type NovaSchemaDescriptorKind = 'primitive' | 'schema-component' | 'node-component';
|
|
8
8
|
export type NovaSchemaRenderMode = 'schema' | 'batched' | 'ordered';
|
|
9
9
|
export type NovaComponentDirtyPhase = 'update' | 'render' | 'matrix';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventList } from '@endge/utils';
|
|
2
|
-
import { NovaNode } from '../../model/runtime/tree/NovaNode';
|
|
2
|
+
import { NovaNode } from '../../model/runtime/tree/NovaNode.js';
|
|
3
3
|
export type NovaCursorStateName = 'default' | 'hover' | 'pressed' | 'dragging' | 'disabled';
|
|
4
4
|
export type NovaNativeCursor = 'auto' | 'default' | 'none' | 'pointer' | 'text' | 'move' | 'grab' | 'grabbing' | 'not-allowed' | 'crosshair' | 'ew-resize' | 'ns-resize' | 'col-resize' | 'row-resize' | 'e-resize' | 'w-resize' | 'n-resize' | 's-resize' | 'ne-resize' | 'nw-resize' | 'se-resize' | 'sw-resize' | 'nesw-resize' | 'nwse-resize';
|
|
5
5
|
export interface NovaCursorHotspot {
|
|
@@ -63,6 +63,8 @@ export interface NovaDiagnosticsRenderSnapshot {
|
|
|
63
63
|
culledNodes: number;
|
|
64
64
|
cullingTests: number;
|
|
65
65
|
textRasterCount: number;
|
|
66
|
+
/** Число Canvas raster operations oversized native runs, если они использовались. */
|
|
67
|
+
textRasterTileCount?: number;
|
|
66
68
|
textRasterPixels: number;
|
|
67
69
|
textRasterBytes: number;
|
|
68
70
|
textRasterBoxPixels: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataRect } from '@endge/utils';
|
|
2
|
-
import { NovaSemanticSnapshot } from './semantic.types';
|
|
3
|
-
export type NovaExportFormat = 'png' | 'webp';
|
|
2
|
+
import { NovaSemanticSnapshot } from './semantic.types.js';
|
|
3
|
+
export type NovaExportFormat = 'png' | 'jpeg' | 'webp';
|
|
4
4
|
export interface NovaExportImageOptions {
|
|
5
5
|
format?: NovaExportFormat;
|
|
6
6
|
quality?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RaphFrameContext } from '@raphy-js/raph/runtime';
|
|
2
|
-
import { NovaComponentNode } from '../../model/runtime/components/NovaComponentNode';
|
|
3
|
-
import { NovaNode } from '../../model/runtime/tree/NovaNode';
|
|
2
|
+
import { NovaComponentNode } from '../../model/runtime/components/NovaComponentNode.js';
|
|
3
|
+
import { NovaNode } from '../../model/runtime/tree/NovaNode.js';
|
|
4
4
|
export type NovaMotionTarget = NovaNode<any> | NovaComponentNode<any, any, any, any, any>;
|
|
5
5
|
export type NovaMotionValue = number | string | boolean | undefined;
|
|
6
6
|
export type NovaMotionPatch = Record<string, NovaMotionValue>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { DataRect } from '@endge/utils';
|
|
2
|
+
import { Path, StrokeOptions } from '@typedworks/geometry';
|
|
2
3
|
import { mat3 } from 'gl-matrix';
|
|
3
|
-
import { NovaSemanticSchemaItem } from './semantic.types';
|
|
4
|
-
import {
|
|
4
|
+
import { NovaSemanticSchemaItem } from './semantic.types.js';
|
|
5
|
+
import { NovaRectBatchBuffer } from '../../model/render/graph/NovaRectBatchBuffer.js';
|
|
6
|
+
import { NovaMeshDrawBatch } from '../../model/render/meshes/mesh.types.js';
|
|
7
|
+
import { NovaAssetDrawableInput, NovaAssetRef, NovaNineSliceInsets } from '../../model/runtime/assets/NovaAssetRegistry.js';
|
|
5
8
|
export declare enum RendererType {
|
|
6
9
|
Web2D = "2d",
|
|
7
10
|
WebGL = "webgl"
|
|
@@ -18,6 +21,40 @@ export type NovaStylePadding = {
|
|
|
18
21
|
all?: number;
|
|
19
22
|
};
|
|
20
23
|
export type NovaStyleBackground = string | ImageBitmap | HTMLCanvasElement | OffscreenCanvas | NovaAssetRef<'fill' | 'image'>;
|
|
24
|
+
export type NovaBlendMode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'difference' | 'exclusion' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'hue' | 'saturation' | 'color' | 'luminosity';
|
|
25
|
+
/** Alpha comes from the image; its color is ignored. Bounds are node-local. */
|
|
26
|
+
export interface NovaAlphaMask extends Readonly<NovaBounds> {
|
|
27
|
+
readonly image: CanvasImageSource | string | NovaAssetRef<'icon' | 'image' | 'fill'>;
|
|
28
|
+
}
|
|
29
|
+
export interface NovaCompositionMask extends NovaAlphaMask {
|
|
30
|
+
readonly transform: mat3;
|
|
31
|
+
readonly sourceKey: string;
|
|
32
|
+
}
|
|
33
|
+
declare const novaEffectBrand: unique symbol;
|
|
34
|
+
/** Opaque effect descriptor; optional factories can own versioned parameter snapshots. */
|
|
35
|
+
export interface NovaEffect {
|
|
36
|
+
readonly [novaEffectBrand]: true;
|
|
37
|
+
readonly kind: string;
|
|
38
|
+
}
|
|
39
|
+
/** Isolates a subtree before applying opacity/blending once. */
|
|
40
|
+
export interface NovaGroupComposition {
|
|
41
|
+
readonly opacity?: number;
|
|
42
|
+
readonly blendMode?: NovaBlendMode;
|
|
43
|
+
readonly bounds?: Readonly<NovaBounds>;
|
|
44
|
+
}
|
|
45
|
+
export interface NovaCompositionPass {
|
|
46
|
+
readonly effects?: readonly NovaEffect[];
|
|
47
|
+
readonly mask?: NovaCompositionMask;
|
|
48
|
+
readonly opacity: number;
|
|
49
|
+
readonly blendMode: NovaBlendMode;
|
|
50
|
+
readonly bounds: Readonly<NovaBounds>;
|
|
51
|
+
}
|
|
52
|
+
/** Immutable geometry clip in node-local coordinates. */
|
|
53
|
+
export interface NovaPathClip {
|
|
54
|
+
readonly path: Path;
|
|
55
|
+
readonly fillRule?: 'nonzero' | 'evenodd';
|
|
56
|
+
}
|
|
57
|
+
export type NovaNodeClip = Readonly<NovaBounds> | NovaPathClip;
|
|
21
58
|
export interface NovaUIBase {
|
|
22
59
|
active?: boolean;
|
|
23
60
|
clip?: DataRect | true;
|
|
@@ -75,7 +112,17 @@ export interface NovaText extends NovaUIBase {
|
|
|
75
112
|
rotation?: number;
|
|
76
113
|
parser?: 'string' | 'markdown';
|
|
77
114
|
styles?: {
|
|
115
|
+
/** Базовое направление whole-run; undefined сохраняет legacy context behavior. */
|
|
116
|
+
direction?: 'ltr' | 'rtl';
|
|
78
117
|
color?: string;
|
|
118
|
+
/** Независимая alpha заливки plain string; 0 отключает заливку. */
|
|
119
|
+
fillOpacity?: number;
|
|
120
|
+
/** Native whole-run stroke в локальных world units. Markdown/wrap не поддерживаются. */
|
|
121
|
+
stroke?: StrokeOptions & {
|
|
122
|
+
color: string;
|
|
123
|
+
opacity?: number;
|
|
124
|
+
widthUnits?: 'world';
|
|
125
|
+
};
|
|
79
126
|
font?: {
|
|
80
127
|
family?: string;
|
|
81
128
|
size?: number;
|
|
@@ -89,7 +136,12 @@ export interface NovaText extends NovaUIBase {
|
|
|
89
136
|
vertical?: 'top' | 'middle' | 'bottom';
|
|
90
137
|
overflow?: 'start' | 'preserve';
|
|
91
138
|
};
|
|
139
|
+
/** Opt-in multiline layout; overflowing words break at grapheme boundaries. */
|
|
140
|
+
wrap?: 'none' | 'word' | 'grapheme';
|
|
141
|
+
/** Positive integer, used with wrap. Ellipsis marks omitted lines when enabled. */
|
|
142
|
+
maxLines?: number;
|
|
92
143
|
ellipsis?: boolean;
|
|
144
|
+
/** Общий opacity готовой строки после независимых fill и stroke. */
|
|
93
145
|
opacity?: number;
|
|
94
146
|
};
|
|
95
147
|
}
|
|
@@ -153,6 +205,7 @@ export interface NovaIconRenderQualityOptions {
|
|
|
153
205
|
dpr1OpacityBoost?: number;
|
|
154
206
|
maxOpacity?: number;
|
|
155
207
|
}
|
|
208
|
+
export type NovaImageSampling = 'nearest' | 'linear';
|
|
156
209
|
export interface NovaIcon extends NovaUIBase {
|
|
157
210
|
x: number;
|
|
158
211
|
y: number;
|
|
@@ -162,6 +215,8 @@ export interface NovaIcon extends NovaUIBase {
|
|
|
162
215
|
styles?: {
|
|
163
216
|
opacity?: number;
|
|
164
217
|
quality?: NovaIconRenderQualityPreset | NovaIconRenderQualityOptions;
|
|
218
|
+
/** Явный bitmap sampling; отсутствие сохраняет прежний default backend. */
|
|
219
|
+
sampling?: NovaImageSampling;
|
|
165
220
|
};
|
|
166
221
|
}
|
|
167
222
|
export interface NovaNineSliceImage extends NovaUIBase {
|
|
@@ -170,7 +225,9 @@ export interface NovaNineSliceImage extends NovaUIBase {
|
|
|
170
225
|
width: number;
|
|
171
226
|
height: number;
|
|
172
227
|
image: NovaAssetRef<'image'> | string;
|
|
228
|
+
/** Existing source extent units for ordinary assets; effective CSS pixels for app-owned render textures. */
|
|
173
229
|
slice?: number | Partial<NovaNineSliceInsets>;
|
|
230
|
+
/** Render-texture images currently support stretch only. */
|
|
174
231
|
centerMode?: 'stretch' | 'repeat';
|
|
175
232
|
styles?: {
|
|
176
233
|
opacity?: number;
|
|
@@ -198,11 +255,26 @@ export interface NovaPatternRect extends NovaUIBase {
|
|
|
198
255
|
opacity?: number;
|
|
199
256
|
};
|
|
200
257
|
}
|
|
258
|
+
/** Immutable vector geometry; paint belongs to Nova, pure path data to Geometry. */
|
|
259
|
+
export interface NovaPath extends NovaUIBase {
|
|
260
|
+
path: Path;
|
|
261
|
+
fillRule?: 'nonzero' | 'evenodd';
|
|
262
|
+
styles?: {
|
|
263
|
+
fill?: string;
|
|
264
|
+
stroke?: StrokeOptions & {
|
|
265
|
+
color: string;
|
|
266
|
+
widthUnits?: 'world' | 'screen';
|
|
267
|
+
};
|
|
268
|
+
opacity?: number;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
201
271
|
export interface NovaPolygon extends NovaUIBase {
|
|
202
272
|
points: Array<{
|
|
203
273
|
x: number;
|
|
204
274
|
y: number;
|
|
205
275
|
}>;
|
|
276
|
+
/** False describes an open contour: no closing edge or interior fill. */
|
|
277
|
+
closed?: boolean;
|
|
206
278
|
/** Interior rings. Each ring must lie inside the outer contour in `points`. */
|
|
207
279
|
holes?: Array<Array<{
|
|
208
280
|
x: number;
|
|
@@ -214,6 +286,7 @@ export interface NovaPolygon extends NovaUIBase {
|
|
|
214
286
|
lineWidth?: number;
|
|
215
287
|
/** Screen keeps outline width in CSS pixels. Default: world. */
|
|
216
288
|
lineWidthUnits?: 'world' | 'screen';
|
|
289
|
+
dashPattern?: Array<number>;
|
|
217
290
|
opacity?: number;
|
|
218
291
|
};
|
|
219
292
|
}
|
|
@@ -234,6 +307,7 @@ export interface NovaRectBatch extends NovaUIBase {
|
|
|
234
307
|
revision?: number;
|
|
235
308
|
staticRevision?: number;
|
|
236
309
|
}
|
|
310
|
+
export type NovaRectBatchInput = NovaRectBatch | NovaRectBatchBuffer;
|
|
237
311
|
export type NovaBorderNumberData = Float64Array | Float32Array | ReadonlyArray<number>;
|
|
238
312
|
export type NovaBorderIndexData = Uint8Array | Uint16Array | Uint32Array | ReadonlyArray<number>;
|
|
239
313
|
export interface NovaBorderBatch extends NovaUIBase {
|
|
@@ -359,7 +433,9 @@ export type NovaSchemaItem<TCustom extends {
|
|
|
359
433
|
type: 'pattern-rect';
|
|
360
434
|
} & NovaPatternRect) | ({
|
|
361
435
|
type: 'polygon';
|
|
362
|
-
} & NovaPolygon) |
|
|
436
|
+
} & NovaPolygon) | ({
|
|
437
|
+
type: 'path';
|
|
438
|
+
} & NovaPath) | TCustom;
|
|
363
439
|
export interface NovaCustomSchemaItem extends NovaUIBase {
|
|
364
440
|
type: string;
|
|
365
441
|
id?: string;
|
|
@@ -388,6 +464,7 @@ export interface NovaRendererCapabilities {
|
|
|
388
464
|
circle: boolean;
|
|
389
465
|
arc: boolean;
|
|
390
466
|
polygon: boolean;
|
|
467
|
+
path: boolean;
|
|
391
468
|
icon: boolean;
|
|
392
469
|
text: boolean;
|
|
393
470
|
patternRects: boolean;
|
|
@@ -448,10 +525,13 @@ export interface NovaRenderer {
|
|
|
448
525
|
restore: () => void;
|
|
449
526
|
clear: () => void;
|
|
450
527
|
clip: (x: number, y: number, width: number, height: number) => void;
|
|
528
|
+
clipPath?: (clip: NovaPathClip) => void;
|
|
451
529
|
clearClip: () => void;
|
|
452
530
|
markState: () => NovaRendererStateMark;
|
|
453
531
|
restoreState: (mark: NovaRendererStateMark) => void;
|
|
454
532
|
setTransform: (matrix: mat3) => void;
|
|
533
|
+
beginComposition?: (composition: NovaCompositionPass) => void;
|
|
534
|
+
endComposition?: () => void;
|
|
455
535
|
beginRenderTarget?: (id: string, width: number, height: number, options?: {
|
|
456
536
|
dpr?: number;
|
|
457
537
|
kind?: 'texture' | 'cache' | 'effect';
|
|
@@ -465,15 +545,18 @@ export interface NovaRenderer {
|
|
|
465
545
|
circle: (params: NovaCircle) => void;
|
|
466
546
|
arc: (params: NovaArc) => void;
|
|
467
547
|
polygon: (params: NovaPolygon) => void;
|
|
548
|
+
path: (params: NovaPath) => void;
|
|
468
549
|
icon: (params: NovaIcon) => void;
|
|
469
550
|
patternRect: (params: NovaPatternRect) => void;
|
|
470
|
-
rects: (batch:
|
|
551
|
+
rects: (batch: NovaRectBatchInput) => void;
|
|
471
552
|
borders: (batch: NovaBorderBatch) => void;
|
|
472
553
|
timeRangeSegments: (batch: NovaTimeRangeSegmentBatch) => void;
|
|
473
554
|
stripes: (batch: NovaStripeRectBatch) => void;
|
|
474
555
|
icons: (batch: NovaIconBatch) => void;
|
|
475
556
|
texts: (batch: NovaTextBatch) => void;
|
|
476
557
|
particles: (batch: NovaParticleBatch) => void;
|
|
558
|
+
/** Optional indexed mesh batch; Canvas has an explicit undeformed-image contract. */
|
|
559
|
+
meshes?: (batch: NovaMeshDrawBatch) => void;
|
|
477
560
|
measureText: (params: NovaText) => {
|
|
478
561
|
width: number;
|
|
479
562
|
height: number;
|
|
@@ -490,3 +573,4 @@ export interface Batch<G = unknown, T = unknown> {
|
|
|
490
573
|
task: T;
|
|
491
574
|
};
|
|
492
575
|
}
|
|
576
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { mat3 } from 'gl-matrix';
|
|
2
|
-
import { NovaBorderBatch, NovaBounds, NovaIconBatch, NovaParticleBatch, NovaRectBatch, NovaSchemaItem, NovaSemanticScopeKind, NovaStripeRectBatch, NovaTextBatch, NovaTextRenderMode, NovaTimeRangeSegmentBatch, RendererType } from '../renderer.types';
|
|
2
|
+
import { NovaBorderBatch, NovaBounds, NovaIconBatch, NovaParticleBatch, NovaRectBatch, NovaSchemaItem, NovaSemanticScopeKind, NovaStripeRectBatch, NovaTextBatch, NovaTextRenderMode, NovaTimeRangeSegmentBatch, RendererType } from '../renderer.types.js';
|
|
3
|
+
import { NovaMeshDrawBatch } from '../../../model/render/meshes/mesh.types.js';
|
|
3
4
|
export type NovaRenderLayerId = 'main' | 'overlay' | 'selection' | 'drag-preview' | 'debug' | string;
|
|
4
5
|
export type NovaRenderTargetId = string;
|
|
5
6
|
export type NovaRenderGroupId = string;
|
|
@@ -102,10 +103,18 @@ export interface NovaRendererTextZoneModes {
|
|
|
102
103
|
uiLabels: NovaTextRenderMode;
|
|
103
104
|
}
|
|
104
105
|
export interface NovaRendererCacheConfig {
|
|
106
|
+
/** App-owned RTT admission in logical RGBA8 bytes; excludes other targets and physical VRAM. */
|
|
107
|
+
maxRenderTextureBackingBytes?: number;
|
|
105
108
|
maxTextureMemoryMB: number;
|
|
106
109
|
maxTextAtlasMemoryMB: number;
|
|
107
110
|
maxGlyphAtlasMemoryMB: number;
|
|
108
111
|
groupCache: 'auto' | 'off' | 'aggressive';
|
|
112
|
+
/** Retain recently hidden circle/solid schema geometry; 0 disables the warm cache. */
|
|
113
|
+
geometryWarmIdleMs?: number;
|
|
114
|
+
/** Budget for inactive warm geometry, including CPU vertices and GPU capacity. */
|
|
115
|
+
maxGeometryWarmMemoryMB?: number;
|
|
116
|
+
/** Total CPU vertex + GPU buffer budget for resident paths; 0 uses transient draws. */
|
|
117
|
+
maxPathGeometryMemoryMB?: number;
|
|
109
118
|
}
|
|
110
119
|
export interface NovaRendererDiagnosticsConfig {
|
|
111
120
|
showBatches: boolean;
|
|
@@ -177,7 +186,7 @@ export interface NovaRenderTarget {
|
|
|
177
186
|
textureId?: string;
|
|
178
187
|
framebufferId?: string;
|
|
179
188
|
}
|
|
180
|
-
export type NovaRenderItemKind = 'rect' | 'border' | 'line' | 'circle' | 'arc' | 'polygon' | 'text' | 'icon' | 'image' | 'nine-slice-image' | 'pattern-rect' | 'texture' | 'cached-group' | 'particle-circle' | 'particle-sprite' | 'rect-batch' | 'border-batch' | 'time-range-segment-batch' | 'stripe-batch' | 'icon-batch' | 'text-batch' | 'custom';
|
|
189
|
+
export type NovaRenderItemKind = 'rect' | 'border' | 'line' | 'circle' | 'arc' | 'polygon' | 'path' | 'text' | 'icon' | 'image' | 'nine-slice-image' | 'pattern-rect' | 'texture' | 'cached-group' | 'particle-circle' | 'particle-sprite' | 'rect-batch' | 'border-batch' | 'time-range-segment-batch' | 'stripe-batch' | 'icon-batch' | 'text-batch' | 'custom';
|
|
181
190
|
export interface NovaRenderItem {
|
|
182
191
|
id: NovaRenderItemId;
|
|
183
192
|
nodeId?: string;
|
|
@@ -192,7 +201,7 @@ export interface NovaRenderItem {
|
|
|
192
201
|
bounds?: NovaBounds;
|
|
193
202
|
dirtyFlags?: Partial<NovaRenderDirtyFlags>;
|
|
194
203
|
}
|
|
195
|
-
export type NovaRenderStreamKind = 'plain-rect' | 'rounded-rect' | 'motion-rect' | 'border' | 'line' | 'circle' | 'arc' | 'polygon' | 'texture-quad' | 'text-run' | 'icon' | 'nine-slice-image' | 'pattern-rect' | 'cached-group' | 'particle-circle' | 'particle-sprite' | 'rect-batch' | 'border-batch' | 'time-range-segment-batch' | 'stripe-batch' | 'icon-batch' | 'text-batch';
|
|
204
|
+
export type NovaRenderStreamKind = 'plain-rect' | 'rounded-rect' | 'motion-rect' | 'border' | 'line' | 'circle' | 'arc' | 'polygon' | 'path' | 'texture-quad' | 'text-run' | 'icon' | 'nine-slice-image' | 'pattern-rect' | 'cached-group' | 'particle-circle' | 'particle-sprite' | 'rect-batch' | 'border-batch' | 'time-range-segment-batch' | 'stripe-batch' | 'icon-batch' | 'text-batch';
|
|
196
205
|
export type NovaRenderSemanticLayer = 'background' | 'border' | 'texture' | 'text' | 'selection' | 'overlay' | 'strict';
|
|
197
206
|
export interface NovaRenderStreamSlot {
|
|
198
207
|
itemId: NovaRenderItemId;
|
|
@@ -248,7 +257,7 @@ export interface NovaRenderHandle {
|
|
|
248
257
|
resourceKey?: string;
|
|
249
258
|
localBounds?: NovaBounds;
|
|
250
259
|
}
|
|
251
|
-
export type NovaRenderCommandType = 'clear' | 'save' | 'restore' | 'setTransform' | 'clip' | 'clearClip' | 'beginRenderTarget' | 'endRenderTarget' | 'drawRenderTarget' | 'drawItem' | 'drawSchemaBatch' | 'drawParticles' | 'drawRectBatch' | 'drawBorderBatch' | 'drawTimeRangeSegmentBatch' | 'drawStripeBatch' | 'drawIconBatch' | 'drawTextBatch' | 'cursor' | 'beginGroup' | 'endGroup';
|
|
260
|
+
export type NovaRenderCommandType = 'clear' | 'save' | 'restore' | 'setTransform' | 'clip' | 'clearClip' | 'beginRenderTarget' | 'endRenderTarget' | 'drawRenderTarget' | 'drawItem' | 'drawSchemaBatch' | 'drawParticles' | 'drawMeshBatch' | 'drawRectBatch' | 'drawBorderBatch' | 'drawTimeRangeSegmentBatch' | 'drawStripeBatch' | 'drawIconBatch' | 'drawTextBatch' | 'cursor' | 'beginComposition' | 'endComposition' | 'clipPath' | 'beginGroup' | 'endGroup';
|
|
252
261
|
export interface NovaRenderCommand {
|
|
253
262
|
id: string;
|
|
254
263
|
type: NovaRenderCommandType;
|
|
@@ -262,6 +271,7 @@ export interface NovaRenderCommand {
|
|
|
262
271
|
schemaSemanticScope?: NovaSemanticScopeKind;
|
|
263
272
|
schemaContentVersion?: number;
|
|
264
273
|
particleBatch?: NovaParticleBatch;
|
|
274
|
+
meshBatch?: NovaMeshDrawBatch;
|
|
265
275
|
rectBatch?: NovaRectBatch;
|
|
266
276
|
borderBatch?: NovaBorderBatch;
|
|
267
277
|
timeRangeSegmentBatch?: NovaTimeRangeSegmentBatch;
|
|
@@ -270,6 +280,8 @@ export interface NovaRenderCommand {
|
|
|
270
280
|
textBatch?: NovaTextBatch;
|
|
271
281
|
transform?: mat3;
|
|
272
282
|
clip?: NovaRenderClip;
|
|
283
|
+
pathClip?: import('../renderer.types.js').NovaPathClip;
|
|
284
|
+
composition?: import('../renderer.types.js').NovaCompositionPass;
|
|
273
285
|
target?: NovaRenderTarget;
|
|
274
286
|
targetId?: NovaRenderTargetId;
|
|
275
287
|
x?: number;
|
|
@@ -347,12 +359,20 @@ export interface NovaRenderMetrics {
|
|
|
347
359
|
fullUploads?: number;
|
|
348
360
|
dirtyRangeCount?: number;
|
|
349
361
|
gpuBufferCapacityBytes?: number;
|
|
362
|
+
pathResidentHits?: number;
|
|
363
|
+
pathResidentMisses?: number;
|
|
364
|
+
pathTransientDraws?: number;
|
|
365
|
+
pathUnionDraws?: number;
|
|
366
|
+
pathUnionPixels?: number;
|
|
367
|
+
pathCacheBytes?: number;
|
|
350
368
|
nodeRenderCalls?: number;
|
|
351
369
|
compiledGroups?: number;
|
|
352
370
|
reusedGroups?: number;
|
|
353
371
|
updatedHandles?: number;
|
|
354
372
|
dirtyStreamRanges?: number;
|
|
355
373
|
textRasterCount?: number;
|
|
374
|
+
/** Число Canvas raster operations для oversized native run cells. */
|
|
375
|
+
textRasterTileCount?: number;
|
|
356
376
|
textRasterPixels?: number;
|
|
357
377
|
textRasterBytes?: number;
|
|
358
378
|
textRasterBoxPixels?: number;
|
|
@@ -386,6 +406,10 @@ export interface NovaRenderMetrics {
|
|
|
386
406
|
lodDroppedTextRuns?: number;
|
|
387
407
|
textModeFallbacks?: number;
|
|
388
408
|
textureBatchFallbacks?: number;
|
|
409
|
+
/** CPU W3C blends used after a native Canvas semantic probe failed. */
|
|
410
|
+
canvasBlendFallbacks?: number;
|
|
411
|
+
/** Source + backdrop physical pixels read by those blends; excludes probes. */
|
|
412
|
+
canvasBlendReadbackPixels?: number;
|
|
389
413
|
textBucketChanges?: number;
|
|
390
414
|
textBudgetExhausted?: number;
|
|
391
415
|
visibleRectItems?: number;
|
|
@@ -396,6 +420,7 @@ export interface NovaRenderMetrics {
|
|
|
396
420
|
renderTargetAllocations?: number;
|
|
397
421
|
renderTargetBytes?: number;
|
|
398
422
|
renderTargetUploadMs?: number;
|
|
423
|
+
/** Живые backend targets после успешного app pass и retirement; direct backend — snapshot конца replay. */
|
|
399
424
|
renderTargetTextureCount?: number;
|
|
400
425
|
uniformOnlyFrames?: number;
|
|
401
426
|
commands: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaNodeEventHandlers } from './events.types';
|
|
1
|
+
import { NovaNodeEventHandlers } from './events.types.js';
|
|
2
2
|
export type NovaSoundUnlockMode = 'first-input' | 'manual' | 'immediate';
|
|
3
3
|
export type NovaSoundHandleState = 'idle' | 'playing' | 'stopped' | 'ended';
|
|
4
4
|
export interface NovaSoundOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mat3 } from 'gl-matrix';
|
|
2
|
-
import { NovaBounds } from '../types/renderer.types';
|
|
2
|
+
import { NovaBounds } from '../types/renderer.types.js';
|
|
3
3
|
export declare function createEmptyBounds(): NovaBounds;
|
|
4
4
|
export declare function transformBounds(bounds: NovaBounds, matrix: mat3): NovaBounds;
|
|
5
5
|
export declare function unionBounds(a: NovaBounds, b: NovaBounds): NovaBounds;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface NovaTextSegment {
|
|
2
|
+
value: string;
|
|
3
|
+
index: number;
|
|
4
|
+
end: number;
|
|
5
|
+
}
|
|
6
|
+
/** Общие UTF-16 границы; native graphemes либо прежний code-point fallback. */
|
|
7
|
+
export declare function splitGraphemes(text: string): Array<NovaTextSegment>;
|
|
8
|
+
/** Усекает по общим границам сегментации; native grapheme либо code-point fallback. */
|
|
9
|
+
export declare function ellipsizeNovaText(measure: (text: string) => number, text: string, width: number, sourceWidth?: number): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaBounds, NovaSchema } from '../types/renderer.types';
|
|
2
|
-
import { NovaSchemaRegistry } from '../../model/runtime/components/NovaSchemaRegistry';
|
|
1
|
+
import { NovaBounds, NovaSchema } from '../types/renderer.types.js';
|
|
2
|
+
import { NovaSchemaRegistry } from '../../model/runtime/components/NovaSchemaRegistry.js';
|
|
3
3
|
export declare function resolveSchemaBounds(schema: NovaSchema<any>, registry?: NovaSchemaRegistry): NovaBounds;
|
|
4
4
|
export declare function resolveSchemaItemBounds(item: NovaSchema<any>[number], registry?: NovaSchemaRegistry): NovaBounds | null;
|