@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
|
@@ -1,32 +1,46 @@
|
|
|
1
1
|
import { mat3 } from 'gl-matrix';
|
|
2
|
-
import { NovaArc, NovaBorder, NovaBorderBatch, NovaCircle, NovaIcon, NovaIconBatch, NovaLine, NovaParticleBatch, NovaPatternRect, NovaPolygon, NovaRect,
|
|
3
|
-
import { NovaRendererConfig, NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index';
|
|
4
|
-
import { NovaCanvas } from '../../../platform/NovaCanvas';
|
|
5
|
-
import { NovaRenderAssetUpdate, NovaRenderBackend } from '../nova-render-backend';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { NovaArc, NovaBorder, NovaBorderBatch, NovaCircle, NovaIcon, NovaIconBatch, NovaLine, NovaParticleBatch, NovaPath, NovaPatternRect, NovaPolygon, NovaRect, NovaRectBatchInput, NovaRenderer, NovaRendererCapabilities, NovaRendererStateMark, NovaSchema, NovaStripeRectBatch, NovaText, NovaTextBatch, NovaTimeRangeSegmentBatch, RendererType } from '../../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaRendererConfig, NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index.js';
|
|
4
|
+
import { NovaCanvas } from '../../../platform/NovaCanvas.js';
|
|
5
|
+
import { NovaRenderAssetUpdate, 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';
|
|
9
|
+
import { NovaWebGLDevice } from './NovaWebGLDevice.js';
|
|
10
|
+
import { NovaWebGLDiagnostics } from './NovaWebGLDiagnostics.js';
|
|
10
11
|
/**
|
|
11
12
|
* Реализует WebGL renderer для compiled Nova render frames.
|
|
12
13
|
*/
|
|
13
14
|
export declare class NovaRendererWebGL implements NovaRenderer, NovaRenderBackend {
|
|
14
15
|
readonly novaCanvas: NovaCanvas;
|
|
16
|
+
private _rendererConfig;
|
|
17
|
+
private readonly _assets;
|
|
15
18
|
readonly id: string;
|
|
16
19
|
readonly type = RendererType.WebGL;
|
|
17
20
|
readonly supportsLinearRectRepack = true;
|
|
18
21
|
readonly capabilities: NovaRendererCapabilities;
|
|
19
22
|
readonly device: NovaWebGLDevice;
|
|
20
23
|
readonly diagnostics: NovaWebGLDiagnostics;
|
|
21
|
-
private
|
|
24
|
+
private _frameRenderer;
|
|
22
25
|
private _destroyed;
|
|
26
|
+
private _contextLost;
|
|
27
|
+
private _restoreRequired;
|
|
28
|
+
private _pendingRendererConfig?;
|
|
23
29
|
private _assetInvalidationEpoch;
|
|
24
30
|
private _appliedAssetInvalidationEpoch;
|
|
25
31
|
private _pendingAssetUpdates?;
|
|
26
32
|
/**
|
|
27
33
|
* Создает instance и подготавливает внутреннее состояние.
|
|
28
34
|
*/
|
|
29
|
-
constructor(novaCanvas: NovaCanvas, _schemaRegistry: NovaSchemaRegistry,
|
|
35
|
+
constructor(novaCanvas: NovaCanvas, _schemaRegistry: NovaSchemaRegistry, _rendererConfig?: NovaRendererConfig, _assets?: NovaAssetRegistry);
|
|
36
|
+
isContextLost(): boolean;
|
|
37
|
+
private _createFrameRenderer;
|
|
38
|
+
private _handleContextLost;
|
|
39
|
+
private _handleContextRestored;
|
|
40
|
+
/** Пересоздание выполняется на replay boundary, чтобы failure можно было повторить. */
|
|
41
|
+
private _ensureContext;
|
|
42
|
+
/** Конфигурация применяется на следующей replay boundary, включая restore. */
|
|
43
|
+
configure(config: NovaRendererConfig): void;
|
|
30
44
|
/**
|
|
31
45
|
* Выполняет render-операцию frame.
|
|
32
46
|
*/
|
|
@@ -35,6 +49,10 @@ export declare class NovaRendererWebGL implements NovaRenderer, NovaRenderBacken
|
|
|
35
49
|
* Освобождает resident resources больше не используемого frame.
|
|
36
50
|
*/
|
|
37
51
|
releaseFrame(frame: NovaRenderFrame): void;
|
|
52
|
+
/** Читает живые targets без создания или восстановления WebGL context. */
|
|
53
|
+
getRenderTargetTextureCount(): number;
|
|
54
|
+
/** Releases a render target after its final logical frame owner has retired. */
|
|
55
|
+
releaseRenderTarget(id: string): void;
|
|
38
56
|
/**
|
|
39
57
|
* Начинает root pass: освобождает простоявшие stream caches и очищает root render
|
|
40
58
|
* target один раз перед ordered surface replay.
|
|
@@ -112,6 +130,8 @@ export declare class NovaRendererWebGL implements NovaRenderer, NovaRenderBacken
|
|
|
112
130
|
* Выполняет внутреннюю операцию arc.
|
|
113
131
|
*/
|
|
114
132
|
arc(_params: NovaArc): void;
|
|
133
|
+
/** Requires the retained builder, like other WebGL primitives. */
|
|
134
|
+
path(_params: NovaPath): void;
|
|
115
135
|
/**
|
|
116
136
|
* Выполняет внутреннюю операцию polygon.
|
|
117
137
|
*/
|
|
@@ -127,11 +147,12 @@ export declare class NovaRendererWebGL implements NovaRenderer, NovaRenderBacken
|
|
|
127
147
|
/**
|
|
128
148
|
* Выполняет внутреннюю операцию particles.
|
|
129
149
|
*/
|
|
150
|
+
meshes(_batch: NovaMeshDrawBatch): void;
|
|
130
151
|
particles(_batch: NovaParticleBatch): void;
|
|
131
152
|
/**
|
|
132
153
|
* Выполняет внутреннюю операцию rects.
|
|
133
154
|
*/
|
|
134
|
-
rects(_batch:
|
|
155
|
+
rects(_batch: NovaRectBatchInput): void;
|
|
135
156
|
/**
|
|
136
157
|
* Выполняет внутреннюю операцию borders.
|
|
137
158
|
*/
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
interface NovaStreamWarmCachePolicy<TBatch, TCache> {
|
|
2
|
+
maxIdleMs: number;
|
|
3
|
+
maxIdleBytes: number;
|
|
4
|
+
getBytes: (cache: TCache) => number;
|
|
5
|
+
retain: (cache: TCache, source: TBatch) => boolean;
|
|
6
|
+
}
|
|
1
7
|
/**
|
|
2
8
|
* Ведёт учёт простоя resident caches одного вида source: explicit batch либо массива
|
|
3
9
|
* schema items.
|
|
@@ -10,6 +16,7 @@
|
|
|
10
16
|
*/
|
|
11
17
|
export declare class NovaStreamCacheIdleLedger<TBatch extends object, TCache extends object> {
|
|
12
18
|
private readonly _release;
|
|
19
|
+
private _warm?;
|
|
13
20
|
private readonly _leaseByCache;
|
|
14
21
|
private readonly _leases;
|
|
15
22
|
/**
|
|
@@ -18,7 +25,8 @@ export declare class NovaStreamCacheIdleLedger<TBatch extends object, TCache ext
|
|
|
18
25
|
* `release` получает простаивающий cache и его source, если тот ещё жив. Callback
|
|
19
26
|
* обязан быть идемпотентным: cache мог быть уже освобождён заменой либо сбросом assets.
|
|
20
27
|
*/
|
|
21
|
-
constructor(_release: (cache: TCache, source: TBatch | undefined) => void);
|
|
28
|
+
constructor(_release: (cache: TCache, source: TBatch | undefined) => void, _warm?: NovaStreamWarmCachePolicy<TBatch, TCache> | undefined);
|
|
29
|
+
configureWarmCache(policy?: NovaStreamWarmCachePolicy<TBatch, TCache>): void;
|
|
22
30
|
/**
|
|
23
31
|
* Отмечает, что cache нарисован в текущем root pass.
|
|
24
32
|
*/
|
|
@@ -29,8 +37,11 @@ export declare class NovaStreamCacheIdleLedger<TBatch extends object, TCache ext
|
|
|
29
37
|
sweep(pass: number, maxIdlePasses: number): void;
|
|
30
38
|
/** Release stale derived resources at rest, preserving everything used in the last pass. */
|
|
31
39
|
sweepIdle(pass: number, now: number, maxIdleMs: number): boolean;
|
|
40
|
+
/** Удерживает только ограниченный объём недавно скрытой геометрии. */
|
|
41
|
+
private _sweepWarm;
|
|
32
42
|
/**
|
|
33
43
|
* Очищает учёт без освобождения caches: их уже освободил владелец.
|
|
34
44
|
*/
|
|
35
45
|
clear(): void;
|
|
36
46
|
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { mat3 } from 'gl-matrix';
|
|
2
|
+
import { NovaCircle } from '../../../../domain/types/renderer.types.js';
|
|
3
|
+
import { NovaParsedColor } from '../../schema/nova-color-parser.js';
|
|
4
|
+
import { NovaAssetFillMode } from '../../../runtime/assets/NovaAssetRegistry.js';
|
|
5
|
+
/**
|
|
6
|
+
* Лениво удерживает один circle program; texture cache и samplers принадлежат прежнему frame renderer.
|
|
7
|
+
*/
|
|
8
|
+
export declare class NovaWebGLCircleImagePass {
|
|
9
|
+
private readonly _gl;
|
|
10
|
+
private readonly _program;
|
|
11
|
+
/**
|
|
12
|
+
* Создаёт native program только при первом готовом image circle.
|
|
13
|
+
*/
|
|
14
|
+
constructor(_gl: WebGL2RenderingContext);
|
|
15
|
+
/**
|
|
16
|
+
* Применяет обычный image material, прежнюю SDF-границу, border и opacity в текущем transform.
|
|
17
|
+
*/
|
|
18
|
+
draw(circle: NovaCircle, texture: WebGLTexture, premultiplied: boolean, sourceWidth: number, sourceHeight: number, fillMode: NovaAssetFillMode, opacity: number, border: NovaParsedColor, transform: mat3, width: number, height: number): void;
|
|
19
|
+
/**
|
|
20
|
+
* Освобождает единственный program; source textures освобождает владеющий renderer.
|
|
21
|
+
*/
|
|
22
|
+
destroy(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NovaBlendMode, NovaBounds } from '../../../../domain/types/renderer.types.js';
|
|
2
|
+
/** W3C source-over/blend formula over a captured premultiplied backdrop. */
|
|
3
|
+
export declare class NovaWebGLCompositionPass {
|
|
4
|
+
private readonly _gl;
|
|
5
|
+
private readonly _program;
|
|
6
|
+
constructor(_gl: WebGL2RenderingContext);
|
|
7
|
+
draw(color: WebGLTexture, backdrop: WebGLTexture, bounds: NovaBounds, width: number, height: number, opacity: number, mode: NovaBlendMode, mask?: WebGLTexture, additionalMask?: WebGLTexture): void;
|
|
8
|
+
destroy(): void;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaCanvas } from '../../../platform/NovaCanvas';
|
|
1
|
+
import { NovaCanvas } from '../../../platform/NovaCanvas.js';
|
|
2
2
|
/**
|
|
3
3
|
* Инкапсулирует WebGL2 context и базовые операции frame lifecycle.
|
|
4
4
|
*/
|
|
@@ -13,6 +13,8 @@ export declare class NovaWebGLDevice {
|
|
|
13
13
|
* Выполняет внутреннюю операцию resize.
|
|
14
14
|
*/
|
|
15
15
|
resize(): void;
|
|
16
|
+
/** Восстанавливает state, который браузер сбросил при context restore. */
|
|
17
|
+
restore(): void;
|
|
16
18
|
/**
|
|
17
19
|
* Очищает внутреннее состояние.
|
|
18
20
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index';
|
|
1
|
+
import { NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Рисует diagnostic overlays и debug-визуализацию WebGL renderer.
|
|
4
4
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { NovaText } from '../../../../domain/types/renderer.types';
|
|
2
|
-
import { NovaRendererBatchingConfig, NovaRendererTextConfig, NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index';
|
|
3
|
-
import { NovaRenderAssetUpdate } from '../nova-render-backend';
|
|
4
|
-
import { NovaWebGLDevice } from './NovaWebGLDevice';
|
|
5
|
-
import { NovaAssetRegistry } from '../../../runtime/assets/NovaAssetRegistry';
|
|
1
|
+
import { NovaText } from '../../../../domain/types/renderer.types.js';
|
|
2
|
+
import { NovaRendererBatchingConfig, NovaRendererCacheConfig, NovaRendererConfig, NovaRendererTextConfig, NovaRenderFrame, NovaRenderMetrics } from '../../../../domain/types/rendering/index.js';
|
|
3
|
+
import { NovaRenderAssetUpdate } from '../nova-render-backend.js';
|
|
4
|
+
import { NovaWebGLDevice } from './NovaWebGLDevice.js';
|
|
5
|
+
import { NovaAssetRegistry } from '../../../runtime/assets/NovaAssetRegistry.js';
|
|
6
6
|
/**
|
|
7
7
|
* Преобразует Nova render frame в WebGL draw calls и GPU uploads.
|
|
8
8
|
*/
|
|
9
9
|
export declare class NovaWebGLFrameRenderer {
|
|
10
10
|
private readonly _device;
|
|
11
|
-
private
|
|
12
|
-
private
|
|
11
|
+
private _textConfig;
|
|
12
|
+
private _batchingConfig;
|
|
13
13
|
private readonly _assets;
|
|
14
14
|
private readonly _gl;
|
|
15
15
|
private readonly _roundedProgram;
|
|
@@ -19,7 +19,9 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
19
19
|
private _dashedSolidProgram?;
|
|
20
20
|
private readonly _autoRectProgram;
|
|
21
21
|
private readonly _textureProgram;
|
|
22
|
-
private
|
|
22
|
+
private _circleImagePass?;
|
|
23
|
+
private _distanceFieldTextProgram?;
|
|
24
|
+
private _meshDevice?;
|
|
23
25
|
private readonly _particleCircleProgram;
|
|
24
26
|
private readonly _particleSpriteProgram;
|
|
25
27
|
private readonly _particleAtlasProgram;
|
|
@@ -35,36 +37,46 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
35
37
|
private _flatBorderBuffer?;
|
|
36
38
|
private readonly _solidBuffer;
|
|
37
39
|
private readonly _textureBuffer;
|
|
38
|
-
private
|
|
40
|
+
private _distanceFieldBuffer?;
|
|
39
41
|
private readonly _particleQuadBuffer;
|
|
40
42
|
private readonly _roundedVao;
|
|
41
43
|
private _flatBorderVao?;
|
|
42
44
|
private readonly _solidVao;
|
|
43
45
|
private _dashedSolidVao?;
|
|
44
46
|
private readonly _textureVao;
|
|
45
|
-
private
|
|
47
|
+
private _distanceFieldVao?;
|
|
46
48
|
private readonly _patternRectVao;
|
|
47
49
|
private readonly _measureCanvas;
|
|
50
|
+
private _measureCanvasContext;
|
|
48
51
|
private readonly _textRasterCanvas;
|
|
52
|
+
private _textRasterCanvasContext;
|
|
49
53
|
private readonly _textures;
|
|
50
54
|
private readonly _renderTargets;
|
|
51
55
|
private readonly _textAtlasPages;
|
|
52
56
|
private readonly _textAtlasEntries;
|
|
53
57
|
private readonly _textFallbackKeys;
|
|
58
|
+
private readonly _tiledTextRuns;
|
|
59
|
+
private readonly _textTileInverse;
|
|
60
|
+
private _textAtlasCellSize?;
|
|
61
|
+
private _deviceTextGeneration;
|
|
62
|
+
private _deviceTextDirection?;
|
|
63
|
+
private _textViewport?;
|
|
54
64
|
private readonly _glyphAtlasPages;
|
|
55
65
|
private readonly _glyphAtlasEntries;
|
|
56
66
|
private readonly _prebuiltMsdfAtlasPages;
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
private
|
|
60
|
-
private
|
|
67
|
+
private _sourceTextureKeys;
|
|
68
|
+
private _sourceTextureKeyId;
|
|
69
|
+
private _plainRectBatchCache;
|
|
70
|
+
private _rectBatchCache;
|
|
71
|
+
private _solidGeometryBatchCache;
|
|
72
|
+
private _circleSchemaBatchCache;
|
|
61
73
|
private _textureBatchCache;
|
|
62
|
-
private
|
|
63
|
-
private
|
|
74
|
+
private _semanticBatchCache;
|
|
75
|
+
private _particleCircleBatchCache;
|
|
64
76
|
private _particleSpriteBatchCache;
|
|
65
77
|
private _rectStreamBatchCache;
|
|
66
78
|
private _borderStreamBatchCache;
|
|
67
|
-
private
|
|
79
|
+
private _timeRangeSegmentBatchCache;
|
|
68
80
|
private _iconStreamBatchCache;
|
|
69
81
|
private _textStreamBatchCache;
|
|
70
82
|
private _stripeStreamBatchCache;
|
|
@@ -88,6 +100,28 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
88
100
|
private readonly _glyphTextIdle;
|
|
89
101
|
private readonly _rectSchemaIdle;
|
|
90
102
|
private readonly _textureSchemaIdle;
|
|
103
|
+
private _pathGeometryCache?;
|
|
104
|
+
private _pathGpuCaches;
|
|
105
|
+
private readonly _ownedPathGpuCaches;
|
|
106
|
+
private readonly _pathGpuIdle;
|
|
107
|
+
private get _outputTarget();
|
|
108
|
+
private get _outputDpr();
|
|
109
|
+
private _pathProgram?;
|
|
110
|
+
private _pathUnionPass?;
|
|
111
|
+
private readonly _pathUnionIdle;
|
|
112
|
+
private _pathClipPass?;
|
|
113
|
+
private _projectedTransforms;
|
|
114
|
+
private readonly _effectProcessors;
|
|
115
|
+
private _effectImageTextures?;
|
|
116
|
+
private readonly _effectOwners;
|
|
117
|
+
private _compositionPass?;
|
|
118
|
+
private _blendedClipFrames;
|
|
119
|
+
private _compositionMasks;
|
|
120
|
+
private _pathClipMasks;
|
|
121
|
+
private _pathGpuBudget;
|
|
122
|
+
private _textureBudgetBytes;
|
|
123
|
+
private _textureEvictionPending;
|
|
124
|
+
private _pathGpuBytes;
|
|
91
125
|
private readonly _streamIdleLedgers;
|
|
92
126
|
private _rootPass;
|
|
93
127
|
private _idleCleanup;
|
|
@@ -97,6 +131,10 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
97
131
|
private _solidDashed?;
|
|
98
132
|
private _textureData;
|
|
99
133
|
private _textureBatch;
|
|
134
|
+
private _texturePremultiplied;
|
|
135
|
+
private _textureSampling;
|
|
136
|
+
private readonly _imageSamplers;
|
|
137
|
+
private _textureWrap;
|
|
100
138
|
private _distanceFieldData;
|
|
101
139
|
private _distanceFieldBatch;
|
|
102
140
|
private _textureCachedData;
|
|
@@ -121,15 +159,23 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
121
159
|
private readonly _textRasterBucketStateByScope;
|
|
122
160
|
private readonly _textRunShapeCache;
|
|
123
161
|
private _glyphTextBatchCache;
|
|
124
|
-
private
|
|
162
|
+
private _maxAutoRectBatchSize;
|
|
125
163
|
/**
|
|
126
164
|
* Создает instance и подготавливает внутреннее состояние.
|
|
127
165
|
*/
|
|
128
|
-
constructor(_device: NovaWebGLDevice, _textConfig?: NovaRendererTextConfig, _batchingConfig?: NovaRendererBatchingConfig, _assets?: NovaAssetRegistry);
|
|
166
|
+
constructor(_device: NovaWebGLDevice, _textConfig?: NovaRendererTextConfig, _batchingConfig?: NovaRendererBatchingConfig, _assets?: NovaAssetRegistry, cacheConfig?: NovaRendererCacheConfig);
|
|
167
|
+
private _configureWarmGeometry;
|
|
168
|
+
/** Applies prepared policy without recreating programs or unrelated geometry. */
|
|
169
|
+
configure(config: NovaRendererConfig): void;
|
|
129
170
|
/**
|
|
130
171
|
* Выполняет render-операцию .
|
|
131
172
|
*/
|
|
132
173
|
render(frame: NovaRenderFrame): NovaRenderMetrics;
|
|
174
|
+
private _renderFrame;
|
|
175
|
+
/** Возвращает фактическое число targets, которыми сейчас владеет backend. */
|
|
176
|
+
getRenderTargetTextureCount(): number;
|
|
177
|
+
/** A failed upload must not leave queued vertices or an offscreen target for retry. */
|
|
178
|
+
abortPendingDraws(): void;
|
|
133
179
|
/**
|
|
134
180
|
* Отмечает начало root pass и освобождает stream caches и schema caches, которые не
|
|
135
181
|
* рисовались дольше STREAM_CACHE_IDLE_ROOT_PASSES проходов. Backend вызывает метод один раз
|
|
@@ -148,6 +194,8 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
148
194
|
* Освобождает resident resources скомпилированного frame.
|
|
149
195
|
*/
|
|
150
196
|
release(frame: NovaRenderFrame): void;
|
|
197
|
+
/** Releases the framebuffer and its attachment together; repeated cleanup is harmless. */
|
|
198
|
+
releaseRenderTarget(id: string): void;
|
|
151
199
|
/**
|
|
152
200
|
* Сбрасывает source textures и производные text/resource caches перед structural replay.
|
|
153
201
|
* @internal
|
|
@@ -163,7 +211,7 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
163
211
|
*/
|
|
164
212
|
private _matchesAssetTextureKey;
|
|
165
213
|
/**
|
|
166
|
-
* Сбрасывает
|
|
214
|
+
* Сбрасывает pending schema caches после неудачного retained paint replay.
|
|
167
215
|
* Pending queue остаётся на frame и следующий replay заново материализует source.
|
|
168
216
|
* @internal
|
|
169
217
|
*/
|
|
@@ -236,10 +284,6 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
236
284
|
* Освобождает GPU resources auto plan при замене retained frame.
|
|
237
285
|
*/
|
|
238
286
|
private _disposeAutoRectFramePlan;
|
|
239
|
-
/**
|
|
240
|
-
* Выполняет внутреннюю операцию draw render item.
|
|
241
|
-
*/
|
|
242
|
-
private _drawRenderItem;
|
|
243
287
|
/**
|
|
244
288
|
* Вычисляет schema content version.
|
|
245
289
|
*/
|
|
@@ -265,6 +309,8 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
265
309
|
* Выполняет внутреннюю операцию draw plain rect schema batch.
|
|
266
310
|
*/
|
|
267
311
|
private _drawPlainRectSchemaBatch;
|
|
312
|
+
/** Сохраняет геометрию versioned circle schema без изменения шейдера и порядка. */
|
|
313
|
+
private _drawCircleSchemaBatch;
|
|
268
314
|
/** Retains static line and polygon vertices while the camera transform changes. */
|
|
269
315
|
private _drawSolidGeometrySchemaBatch;
|
|
270
316
|
private _buildSolidGeometryBatch;
|
|
@@ -317,10 +363,15 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
317
363
|
* Выполняет внутреннюю операцию draw texture schema batch.
|
|
318
364
|
*/
|
|
319
365
|
private _drawTextureSchemaBatch;
|
|
366
|
+
private _disposeTextureSchemaLanes;
|
|
367
|
+
/** Reject tiled/unsupported schema materialization before spending the shared run quota. */
|
|
368
|
+
private _canBuildTextureSchema;
|
|
320
369
|
/**
|
|
321
370
|
* Выполняет внутреннюю операцию build texture batch.
|
|
322
371
|
*/
|
|
323
372
|
private _buildTextureBatch;
|
|
373
|
+
/** Transfer existing resident allocations without changing their authoritative idle owner. */
|
|
374
|
+
private _reuseTextureSchemaLanes;
|
|
324
375
|
/**
|
|
325
376
|
* Обновляет texture batch.
|
|
326
377
|
*/
|
|
@@ -377,6 +428,8 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
377
428
|
* Рисует текст как последовательность glyph quads.
|
|
378
429
|
*/
|
|
379
430
|
private _drawGlyphText;
|
|
431
|
+
/** Native font anchor измеряется один раз на retained shape/alignment, не каждый кадр. */
|
|
432
|
+
private _resolveGlyphLineY;
|
|
380
433
|
/**
|
|
381
434
|
* Возвращает left glyph quad с учетом transparent padding внутри atlas entry.
|
|
382
435
|
*/
|
|
@@ -442,18 +495,6 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
442
495
|
* Вычисляет эффективный режим текста с учетом item metadata и зон.
|
|
443
496
|
*/
|
|
444
497
|
private _resolveTextRenderMode;
|
|
445
|
-
/**
|
|
446
|
-
* Выбирает text path в auto-режиме по форме строки, а не только по роли.
|
|
447
|
-
*/
|
|
448
|
-
private _resolveAutoTextRenderMode;
|
|
449
|
-
/**
|
|
450
|
-
* Возвращает true для строк, где run-atlas дешевле или корректнее glyph-atlas.
|
|
451
|
-
*/
|
|
452
|
-
private _shouldUseRunAtlasForAutoText;
|
|
453
|
-
/**
|
|
454
|
-
* Считает Unicode code points для coarse auto-routing эвристики.
|
|
455
|
-
*/
|
|
456
|
-
private _countTextCodePoints;
|
|
457
498
|
/**
|
|
458
499
|
* Возвращает режим текста для продуктовой роли.
|
|
459
500
|
*/
|
|
@@ -486,10 +527,36 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
486
527
|
* Вычисляет text raster scale.
|
|
487
528
|
*/
|
|
488
529
|
private _resolveTextRasterScale;
|
|
530
|
+
private _recordRootTextViewport;
|
|
531
|
+
/** Projection uses the actual rounded viewport and Float32 resolution uniforms. */
|
|
532
|
+
private _deviceTextMap;
|
|
533
|
+
private _resolvedDeviceTextDirection;
|
|
534
|
+
private _canRasterDeviceText;
|
|
535
|
+
private _setDeviceTextStreamOrigin;
|
|
536
|
+
/** One current phase per existing run key; integer device translations reuse texels. */
|
|
537
|
+
private _resolveDeviceText;
|
|
538
|
+
/** Reuses resident same-content ink in LOCAL coordinates; baked affine clips cannot expand. */
|
|
539
|
+
private _previousNativeItem;
|
|
540
|
+
/** Predicts polygon fallback before rect batch admission, without spending raster quota. */
|
|
541
|
+
private _needsNativePolygonFallback;
|
|
542
|
+
/** Clips an inverse-old cell and its UVs, then submits it through the ordinary texture program. */
|
|
543
|
+
private _queueNativeTextPolygon;
|
|
489
544
|
/**
|
|
490
545
|
* Возвращает drawable text atlas item или откладывает растеризацию по frame budget.
|
|
491
546
|
*/
|
|
492
547
|
private _resolveTextAtlasItem;
|
|
548
|
+
/** Выбирает ограниченную cell для text atlas на текущем device generation. */
|
|
549
|
+
private _resolveTextAtlasCellSize;
|
|
550
|
+
/** Выбирает видимую часть full-ink grid без зависимости от explicit clip. */
|
|
551
|
+
private _resolveTextTileRange;
|
|
552
|
+
/** Растеризует одну cell целой native строкой с неизменной pixel phase. */
|
|
553
|
+
private _rasterizeTextTile;
|
|
554
|
+
/** Учитывает physical tiles и единственный prior box logical run на submission. */
|
|
555
|
+
private _recordTextTileRaster;
|
|
556
|
+
/** Разрешает resident cells и продолжает только разрешённую budget работу. */
|
|
557
|
+
private _resolveTiledTextRun;
|
|
558
|
+
/** Выводит cells через общий clip helper, не изменяя layout или native shaping. */
|
|
559
|
+
private _drawTiledText;
|
|
493
560
|
/**
|
|
494
561
|
* Подготавливает соседние text buckets в рамках оставшегося raster budget.
|
|
495
562
|
*/
|
|
@@ -510,6 +577,8 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
510
577
|
* Возвращает world-space quad для atlas entry с сохранением implicit box clip.
|
|
511
578
|
*/
|
|
512
579
|
private _resolveTextAtlasQuad;
|
|
580
|
+
/** Повторяет Canvas: explicit rect заменяет padding clip, а без clip/padding ink свободен. */
|
|
581
|
+
private _resolveTextClip;
|
|
513
582
|
/**
|
|
514
583
|
* Записывает diagnostics по размеру rasterized run-atlas entry.
|
|
515
584
|
*/
|
|
@@ -542,6 +611,8 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
542
611
|
* Проверяет screen-space LOD для text run и обновляет diagnostics.
|
|
543
612
|
*/
|
|
544
613
|
private _shouldDrawTextRun;
|
|
614
|
+
/** Для opt-in paint culling учитывает native ink и stroke, не меняя layout/LOD advance. */
|
|
615
|
+
private _resolveTextPaintCullBounds;
|
|
545
616
|
/**
|
|
546
617
|
* Проверяет, нужно ли скрыть text run по LOD.
|
|
547
618
|
*/
|
|
@@ -590,6 +661,14 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
590
661
|
* Выполняет внутреннюю операцию draw arc.
|
|
591
662
|
*/
|
|
592
663
|
private _drawArc;
|
|
664
|
+
/** Paths use prepared union geometry, with no Canvas raster fallback. */
|
|
665
|
+
private _drawPath;
|
|
666
|
+
/** Coverage объединяется по samples перед выводом paint с частичной alpha. */
|
|
667
|
+
private _beginPathUnion;
|
|
668
|
+
private _endPathUnion;
|
|
669
|
+
private _getPathProgram;
|
|
670
|
+
private _createPathVao;
|
|
671
|
+
private _disposePathGpuCache;
|
|
593
672
|
/**
|
|
594
673
|
* Выполняет внутреннюю операцию draw polygon.
|
|
595
674
|
*/
|
|
@@ -602,6 +681,10 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
602
681
|
* Выполняет внутреннюю операцию draw nine-slice image.
|
|
603
682
|
*/
|
|
604
683
|
private _drawNineSliceImage;
|
|
684
|
+
/**
|
|
685
|
+
* Выделяет source crop только при cache miss и повторяет его одним native texture quad.
|
|
686
|
+
*/
|
|
687
|
+
private _drawRepeatedNineSliceCenter;
|
|
605
688
|
/**
|
|
606
689
|
* Рисует процедурный pattern rect одним fullscreen-quad shader проходом.
|
|
607
690
|
*/
|
|
@@ -652,14 +735,6 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
652
735
|
* Выбирает text path для retained batch без полного прохода по всем строкам.
|
|
653
736
|
*/
|
|
654
737
|
private _resolveTextBatchRenderMode;
|
|
655
|
-
/**
|
|
656
|
-
* Выбирает auto text path для retained batch.
|
|
657
|
-
*/
|
|
658
|
-
private _resolveAutoTextBatchRenderMode;
|
|
659
|
-
/**
|
|
660
|
-
* Проверяет bounded sample batch-а для auto-routing.
|
|
661
|
-
*/
|
|
662
|
-
private _shouldUseRunAtlasForAutoTextBatch;
|
|
663
738
|
/**
|
|
664
739
|
* Рисует retained text batch через glyph/MSDF atlas.
|
|
665
740
|
*/
|
|
@@ -771,6 +846,8 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
771
846
|
* по текущим координатам items.
|
|
772
847
|
*/
|
|
773
848
|
private _resolveTextStreamLayout;
|
|
849
|
+
/** Добавляет один resident quad в прежний texture stream layout. */
|
|
850
|
+
private _appendTextStreamItem;
|
|
774
851
|
/**
|
|
775
852
|
* Создает retained text stream cache из готовой раскладки.
|
|
776
853
|
*/
|
|
@@ -851,6 +928,8 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
851
928
|
/**
|
|
852
929
|
* Выполняет внутреннюю операцию draw texture source.
|
|
853
930
|
*/
|
|
931
|
+
private _renderTextureEntry;
|
|
932
|
+
private _drawDrawableInput;
|
|
854
933
|
private _drawTextureSource;
|
|
855
934
|
/**
|
|
856
935
|
* Возвращает texture entry для drawable asset/source.
|
|
@@ -987,10 +1066,22 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
987
1066
|
* Переключает WebGL output в offscreen framebuffer.
|
|
988
1067
|
*/
|
|
989
1068
|
private _beginRenderTarget;
|
|
990
|
-
/**
|
|
991
|
-
|
|
992
|
-
|
|
1069
|
+
/** Canonical texture обновляется только из активного work buffer; effect output не затирается старым resolve. */
|
|
1070
|
+
private _resolveRenderTarget;
|
|
1071
|
+
private _drawFramebuffer;
|
|
1072
|
+
/** Возвращает output родителю, разрешая только завершённый work buffer. */
|
|
993
1073
|
private _endRenderTarget;
|
|
1074
|
+
private _syncCompositionEffects;
|
|
1075
|
+
private _drawMeshBatch;
|
|
1076
|
+
private _resolveEffectImage;
|
|
1077
|
+
private _applyCompositionEffects;
|
|
1078
|
+
private _drawCompositionEffects;
|
|
1079
|
+
private _prepareCompositionMask;
|
|
1080
|
+
private _copyCompositionBackdrop;
|
|
1081
|
+
private _projectTransform;
|
|
1082
|
+
private _projectBounds;
|
|
1083
|
+
/** Crop by viewport offset while retaining command/world coordinates and batching. */
|
|
1084
|
+
private _activateTargetViewport;
|
|
994
1085
|
/**
|
|
995
1086
|
* Рисует offscreen framebuffer texture как обычный texture quad.
|
|
996
1087
|
*/
|
|
@@ -1111,7 +1202,15 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
1111
1202
|
*/
|
|
1112
1203
|
private _createTextureVao;
|
|
1113
1204
|
/**
|
|
1114
|
-
* Создает
|
|
1205
|
+
* Создает программу поля расстояний только для первого SDF-потребителя.
|
|
1206
|
+
*/
|
|
1207
|
+
private _resolveDistanceFieldTextProgram;
|
|
1208
|
+
/**
|
|
1209
|
+
* Создает immediate backing атомарно, не затрагивая ранее созданную MSDF-программу.
|
|
1210
|
+
*/
|
|
1211
|
+
private _resolveDistanceFieldVao;
|
|
1212
|
+
/**
|
|
1213
|
+
* Создает immediate VAO поля расстояний и откатывает его при ошибке настройки.
|
|
1115
1214
|
*/
|
|
1116
1215
|
private _createDistanceFieldVao;
|
|
1117
1216
|
/**
|
|
@@ -1199,14 +1298,28 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
1199
1298
|
* Вычисляет texture vao.
|
|
1200
1299
|
*/
|
|
1201
1300
|
private _resolveTextureVao;
|
|
1301
|
+
/**
|
|
1302
|
+
* Лениво удерживает bounded filter/wrap samplers без изменения texture state.
|
|
1303
|
+
*/
|
|
1304
|
+
private _resolveImageSampler;
|
|
1202
1305
|
/**
|
|
1203
1306
|
* Создает texture from source.
|
|
1204
1307
|
*/
|
|
1205
1308
|
private _createTextureFromSource;
|
|
1309
|
+
/**
|
|
1310
|
+
* Обновляет один managed image; resize переопределяет storage того же GL object.
|
|
1311
|
+
*/
|
|
1312
|
+
private _updateManagedTexture;
|
|
1206
1313
|
/**
|
|
1207
1314
|
* Выполняет внутреннюю операцию rasterize text.
|
|
1208
1315
|
*/
|
|
1209
1316
|
private _rasterizeText;
|
|
1317
|
+
/** Создаёт native layout record для cells существующего text atlas owner. */
|
|
1318
|
+
private _createTiledTextRun;
|
|
1319
|
+
/** Планирует тот же full-box Markdown/wrap domain перед безопасным выбором backing. */
|
|
1320
|
+
private _rasterizeMarkdown;
|
|
1321
|
+
/** Повторяет целые styled runs в исходной геометрии без нового measure или slicing. */
|
|
1322
|
+
private _drawStyledTextRaster;
|
|
1210
1323
|
/**
|
|
1211
1324
|
* Вычисляет layout текста до выбора raster rectangle.
|
|
1212
1325
|
*/
|
|
@@ -1227,10 +1340,6 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
1227
1340
|
* Вычисляет source key.
|
|
1228
1341
|
*/
|
|
1229
1342
|
private _resolveSourceKey;
|
|
1230
|
-
/**
|
|
1231
|
-
* Выполняет внутреннюю операцию source texture keys size.
|
|
1232
|
-
*/
|
|
1233
|
-
private _sourceTextureKeysSize;
|
|
1234
1343
|
/**
|
|
1235
1344
|
* Вычисляет border sides.
|
|
1236
1345
|
*/
|
|
@@ -1238,7 +1347,7 @@ export declare class NovaWebGLFrameRenderer {
|
|
|
1238
1347
|
/**
|
|
1239
1348
|
* Обновляет scissor.
|
|
1240
1349
|
*/
|
|
1241
|
-
private
|
|
1350
|
+
private _setScissorBounds;
|
|
1242
1351
|
/**
|
|
1243
1352
|
* Выполняет внутреннюю операцию texture memory mb.
|
|
1244
1353
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Created only for path clipping; no stencil attachment or per-primitive shader changes. */
|
|
2
|
+
export declare class NovaWebGLPathClipPass {
|
|
3
|
+
private readonly _gl;
|
|
4
|
+
private readonly _program;
|
|
5
|
+
constructor(_gl: WebGL2RenderingContext);
|
|
6
|
+
draw(color: WebGLTexture, mask: WebGLTexture, bounds: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}, width: number, height: number, backdrop?: WebGLTexture, opacity?: number, additionalMask?: WebGLTexture): void;
|
|
12
|
+
destroy(): void;
|
|
13
|
+
}
|