@nova-lab/core 1.0.0-dev.19 → 1.1.1-dev.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1035 -10
- package/THIRD_PARTY_NOTICES.md +26 -0
- package/dist/2d/accessibility.d.ts +2 -0
- package/dist/2d/accessibility.js +171 -0
- package/dist/2d/commands.d.ts +2 -0
- package/dist/2d/commands.js +80 -0
- package/dist/2d/effects.d.ts +10 -0
- package/dist/2d/effects.js +566 -0
- package/dist/2d/ktx2.d.ts +5 -0
- package/dist/2d/ktx2.js +542 -0
- package/dist/2d/lighting.d.ts +3 -0
- package/dist/2d/lighting.js +495 -0
- package/dist/2d/lottie.d.ts +3 -0
- package/dist/2d/lottie.js +254 -0
- package/dist/2d/meshes.d.ts +4 -0
- package/dist/2d/meshes.js +451 -0
- package/dist/2d/primitives.d.ts +3 -0
- package/dist/2d/primitives.js +85 -0
- package/dist/2d/render-textures.d.ts +3 -0
- package/dist/2d/render-textures.js +539 -0
- package/dist/2d/svg/documents.d.ts +5 -0
- package/dist/2d/svg/documents.js +7 -0
- package/dist/2d/svg/renderer.d.ts +3 -0
- package/dist/2d/svg/renderer.js +222 -0
- package/dist/2d/svg.d.ts +3 -0
- package/dist/2d/svg.js +4 -0
- package/dist/2d/tools.d.ts +2 -0
- package/dist/2d/tools.js +100 -0
- package/dist/2d/video.d.ts +5 -0
- package/dist/2d/video.js +90 -0
- package/dist/2d.d.ts +2 -0
- package/dist/2d.js +220 -0
- package/dist/3d/animation.d.ts +8 -0
- package/dist/3d/animation.js +1396 -0
- package/dist/3d/area-lights.d.ts +2 -0
- package/dist/3d/area-lights.js +19 -0
- package/dist/3d/audio.d.ts +4 -0
- package/dist/3d/audio.js +500 -0
- package/dist/3d/character.d.ts +2 -0
- package/dist/3d/character.js +136 -0
- package/dist/3d/collision.d.ts +3 -0
- package/dist/3d/collision.js +387 -0
- package/dist/3d/commands.d.ts +2 -0
- package/dist/3d/commands.js +108 -0
- package/dist/3d/controls.d.ts +8 -0
- package/dist/3d/controls.js +1041 -0
- package/dist/3d/documents.d.ts +5 -0
- package/dist/3d/documents.js +227 -0
- package/dist/3d/effects.d.ts +5 -0
- package/dist/3d/effects.js +1986 -0
- package/dist/3d/export.d.ts +4 -0
- package/dist/3d/export.js +347 -0
- package/dist/3d/fbx.d.ts +2 -0
- package/dist/3d/fbx.js +784 -0
- package/dist/3d/gltf.d.ts +2 -0
- package/dist/3d/gltf.js +5 -0
- package/dist/3d/helpers.d.ts +5 -0
- package/dist/3d/helpers.js +191 -0
- package/dist/3d/ik.d.ts +9 -0
- package/dist/3d/ik.js +777 -0
- package/dist/3d/loaders.d.ts +17 -0
- package/dist/3d/loaders.js +1406 -0
- package/dist/3d/nodes.d.ts +8 -0
- package/dist/3d/nodes.js +49 -0
- package/dist/3d/particles.d.ts +5 -0
- package/dist/3d/particles.js +1574 -0
- package/dist/3d/physics/backend.d.ts +7 -0
- package/dist/3d/physics/backend.js +1 -0
- package/dist/3d/physics/rapier.d.ts +3 -0
- package/dist/3d/physics/rapier.js +765 -0
- package/dist/3d/physics.d.ts +5 -0
- package/dist/3d/physics.js +3346 -0
- package/dist/3d/splats.d.ts +7 -0
- package/dist/3d/splats.js +862 -0
- package/dist/3d/text.d.ts +5 -0
- package/dist/3d/text.js +1043 -0
- package/dist/3d/tiles.d.ts +24 -0
- package/dist/3d/tiles.js +1705 -0
- package/dist/3d/tools.d.ts +12 -0
- package/dist/3d/tools.js +338 -0
- package/dist/3d/usdz.d.ts +2 -0
- package/dist/3d/usdz.js +634 -0
- package/dist/3d/xr.d.ts +2 -0
- package/dist/3d/xr.js +202 -0
- package/dist/3d-B4jWF8Qb.js +5591 -0
- package/dist/3d.d.ts +40 -0
- package/dist/3d.js +44 -0
- package/dist/Capsule-BFVpZfvc.js +44 -0
- package/dist/Clip-CAN7t03k.js +204 -0
- package/dist/Color-vuv9UnoY.js +34 -0
- package/dist/DeformedMesh-CPi0P_vc.js +280 -0
- package/dist/Document-DCVEZSvM.js +415 -0
- package/dist/Errors-B2ekO9bZ.js +30 -0
- package/dist/Features-BsjmePtc.js +557 -0
- package/dist/GLTFResourceIO-CYJyCUTt.js +124 -0
- package/dist/GPUParticleState-CQlNpoDa.js +545 -0
- package/dist/Geometry-DytO490z.js +227 -0
- package/dist/Inflate-DWw0V-Up.js +42 -0
- package/dist/InstancedMesh-DPrgrw5z.js +527 -0
- package/dist/Limits-Bw5XQdFr.js +20 -0
- package/dist/LineHelper-Ad0z9uDi.js +131 -0
- package/dist/LoaderIO-BwrM84OM.js +114 -0
- package/dist/Material-BpfLPmK9.js +777 -0
- package/dist/Mesh-BaRxAAJq.js +209 -0
- package/dist/Node-QfgAE2_v.js +877 -0
- package/dist/NovaAssetRegistry-p2QlCwvT.js +1168 -0
- package/dist/NovaNode-CBZ-Ol-W.js +2016 -0
- package/dist/NovaRenderCommandWriter-CWQRa42y.js +1949 -0
- package/dist/NovaTextSelectionService-CipuujCT.js +18526 -0
- package/dist/NovaWebGLProgram-BO250QNF.js +97 -0
- package/dist/Options-CajE7LLJ.js +15 -0
- package/dist/PolygonMesh-D4PnnfIo.js +657 -0
- package/dist/Ready-BzyhRtjD.js +21 -0
- package/dist/Scene-CDfNgf9I.js +911 -0
- package/dist/Shader-b6_HDndT.js +48 -0
- package/dist/SplatShader-wJ6GJ3vo.js +130 -0
- package/dist/Texture-dTKMlTpK.js +267 -0
- package/dist/TextureLoader-CfDzdy2m.js +411 -0
- package/dist/Textures-CGL4Kf-8.js +651 -0
- package/dist/ToneMapping-D9IWvN0u.js +46 -0
- package/dist/WebGPURenderer-DjD0IxVC.js +4921 -0
- package/dist/ZipReader-C-MSEsSr.js +84 -0
- package/dist/core.js +218 -24024
- package/dist/domain/types/base.types.d.ts +18 -9
- package/dist/domain/types/component.types.d.ts +5 -5
- package/dist/domain/types/cursor.types.d.ts +1 -1
- package/dist/domain/types/diagnostics.types.d.ts +2 -0
- package/dist/domain/types/export.types.d.ts +2 -2
- package/dist/domain/types/hit-test.types.d.ts +1 -1
- package/dist/domain/types/motion.types.d.ts +2 -2
- package/dist/domain/types/renderer.types.d.ts +88 -4
- package/dist/domain/types/rendering/index.d.ts +29 -4
- package/dist/domain/types/sound.types.d.ts +1 -1
- package/dist/domain/types/theme.types.d.ts +1 -1
- package/dist/domain/utils/bounds.d.ts +1 -1
- package/dist/domain/utils/nova-text.d.ts +9 -0
- package/dist/domain/utils/schemaBounds.d.ts +2 -2
- package/dist/export-svg-document-ChaNXMaG.js +668 -0
- package/dist/features/3d/Errors.d.ts +57 -0
- package/dist/features/3d/Nova3DApp.d.ts +429 -0
- package/dist/features/3d/animation/Animator.d.ts +260 -0
- package/dist/features/3d/animation/Clip.d.ts +74 -0
- package/dist/features/3d/animation/Graph.d.ts +158 -0
- package/dist/features/3d/animation/Mask.d.ts +40 -0
- package/dist/features/3d/audio/Audio.d.ts +114 -0
- package/dist/features/3d/audio/Sound.d.ts +133 -0
- package/dist/features/3d/character/CharacterController.d.ts +61 -0
- package/dist/features/3d/collision/Capsule.d.ts +25 -0
- package/dist/features/3d/collision/Octree.d.ts +94 -0
- package/dist/features/3d/controls/CameraMotionControls.d.ts +154 -0
- package/dist/features/3d/controls/CameraOrientation.d.ts +47 -0
- package/dist/features/3d/controls/OrbitControls.d.ts +73 -0
- package/dist/features/3d/controls/PointerGesture.d.ts +25 -0
- package/dist/features/3d/controls/PointerLock.d.ts +36 -0
- package/dist/features/3d/controls/Snapping.d.ts +32 -0
- package/dist/features/3d/controls/TransformGizmo.d.ts +79 -0
- package/dist/features/3d/deformation/DeformationGPU.d.ts +52 -0
- package/dist/features/3d/deformation/DeformationShader.d.ts +2 -0
- package/dist/features/3d/deformation/DeformedMesh.d.ts +36 -0
- package/dist/features/3d/deformation/GeometryDeformation.d.ts +25 -0
- package/dist/features/3d/documents/Document.d.ts +59 -0
- package/dist/features/3d/documents/DocumentCommands.d.ts +45 -0
- package/dist/features/3d/documents/DocumentSchema.d.ts +18 -0
- package/dist/features/3d/documents/DocumentTransform.d.ts +4 -0
- package/dist/features/3d/documents/DocumentTypes.d.ts +182 -0
- package/dist/features/3d/documents/DocumentValidation.d.ts +18 -0
- package/dist/features/3d/documents/Projection.d.ts +65 -0
- package/dist/features/3d/effects/CubeLUT.d.ts +24 -0
- package/dist/features/3d/effects/Effects.d.ts +32 -0
- package/dist/features/3d/effects/EffectsGPU.d.ts +80 -0
- package/dist/features/3d/effects/EffectsPlan.d.ts +268 -0
- package/dist/features/3d/effects/EffectsShaders.d.ts +35 -0
- package/dist/features/3d/export/GLTFExporter.d.ts +49 -0
- package/dist/features/3d/export/ThreeMFExporter.d.ts +19 -0
- package/dist/features/3d/export/ZipWriter.d.ts +9 -0
- package/dist/features/3d/fbx/FBXLoader.d.ts +26 -0
- package/dist/features/3d/fbx/FBXParser.d.ts +35 -0
- package/dist/features/3d/fbx/FBXScene.d.ts +20 -0
- package/dist/features/3d/gltf/GLTFLoader.d.ts +16 -0
- package/dist/features/3d/gltf/GLTFTypes.d.ts +64 -0
- package/dist/features/3d/gltf/services/GLTFBinary.d.ts +21 -0
- package/dist/features/3d/gltf/services/GLTFGeometry.d.ts +14 -0
- package/dist/features/3d/gltf/services/GLTFResourceIO.d.ts +64 -0
- package/dist/features/3d/helpers/LineHelper.d.ts +51 -0
- package/dist/features/3d/helpers/StaticHelpers.d.ts +47 -0
- package/dist/features/3d/helpers/TrackedHelpers.d.ts +84 -0
- package/dist/features/3d/ik/ChainIK.d.ts +44 -0
- package/dist/features/3d/ik/IKChain.d.ts +92 -0
- package/dist/features/3d/ik/IKMath.d.ts +49 -0
- package/dist/features/3d/ik/IKSolver.d.ts +97 -0
- package/dist/features/3d/ik/LookAtIK.d.ts +58 -0
- package/dist/features/3d/ik/TwoBoneIK.d.ts +57 -0
- package/dist/features/3d/import/ImportAnimation.d.ts +20 -0
- package/dist/features/3d/import/ImportMath.d.ts +42 -0
- package/dist/features/3d/import/ImportedModel.d.ts +135 -0
- package/dist/features/3d/import/Inflate.d.ts +5 -0
- package/dist/features/3d/import/ModelAsset.d.ts +149 -0
- package/dist/features/3d/import/PolygonMesh.d.ts +54 -0
- package/dist/features/3d/lights/AreaLightTables.d.ts +8 -0
- package/dist/features/3d/lights/AreaLights.d.ts +11 -0
- package/dist/features/3d/loaders/EXRCompression.d.ts +13 -0
- package/dist/features/3d/loaders/EXRLoader.d.ts +39 -0
- package/dist/features/3d/loaders/HDRLoader.d.ts +26 -0
- package/dist/features/3d/loaders/Limits.d.ts +70 -0
- package/dist/features/3d/loaders/LoaderBuffers.d.ts +42 -0
- package/dist/features/3d/loaders/LoaderIO.d.ts +81 -0
- package/dist/features/3d/loaders/LoaderModel.d.ts +80 -0
- package/dist/features/3d/loaders/LoaderText.d.ts +27 -0
- package/dist/features/3d/loaders/MTLLoader.d.ts +105 -0
- package/dist/features/3d/loaders/OBJLoader.d.ts +70 -0
- package/dist/features/3d/loaders/PLYLoader.d.ts +47 -0
- package/dist/features/3d/loaders/STLLoader.d.ts +27 -0
- package/dist/features/3d/model/Camera.d.ts +33 -0
- package/dist/features/3d/model/Environment.d.ts +31 -0
- package/dist/features/3d/model/Geometry.d.ts +59 -0
- package/dist/features/3d/model/InstancedMesh.d.ts +134 -0
- package/dist/features/3d/model/LOD.d.ts +31 -0
- package/dist/features/3d/model/Light.d.ts +200 -0
- package/dist/features/3d/model/Material.d.ts +308 -0
- package/dist/features/3d/model/MaterialExtensions.d.ts +200 -0
- package/dist/features/3d/model/Mesh.d.ts +92 -0
- package/dist/features/3d/model/Node.d.ts +87 -0
- package/dist/features/3d/model/ReflectionProbe.d.ts +45 -0
- package/dist/features/3d/model/RenderTarget.d.ts +41 -0
- package/dist/features/3d/model/Scene.d.ts +173 -0
- package/dist/features/3d/model/Texture.d.ts +143 -0
- package/dist/features/3d/nodes/Nodes.d.ts +8 -0
- package/dist/features/3d/nodes/ShaderNode.d.ts +240 -0
- package/dist/features/3d/particles/GPUParticleSchedule.d.ts +67 -0
- package/dist/features/3d/particles/GPUParticleShaders.d.ts +19 -0
- package/dist/features/3d/particles/GPUParticleState.d.ts +106 -0
- package/dist/features/3d/particles/GPUParticleSystem.d.ts +192 -0
- package/dist/features/3d/particles/ParticleCurves.d.ts +34 -0
- package/dist/features/3d/particles/ParticleOptions.d.ts +78 -0
- package/dist/features/3d/particles/ParticleSystem.d.ts +368 -0
- package/dist/features/3d/physics/PhysicsBackend.d.ts +352 -0
- package/dist/features/3d/physics/PhysicsDebug.d.ts +24 -0
- package/dist/features/3d/physics/PhysicsWorld.d.ts +352 -0
- package/dist/features/3d/physics/basic/BasicCollision.d.ts +75 -0
- package/dist/features/3d/physics/basic/BasicPhysics.d.ts +24 -0
- package/dist/features/3d/physics/basic/BasicShapes.d.ts +103 -0
- package/dist/features/3d/physics/rapier/ContactBuffer.d.ts +32 -0
- package/dist/features/3d/physics/rapier/RapierBackend.d.ts +17 -0
- package/dist/features/3d/physics/rapier/RapierShapes.d.ts +4 -0
- package/dist/features/3d/physics/rapier/RapierWorld.d.ts +198 -0
- package/dist/features/3d/physics/rapier/Validation.d.ts +8 -0
- package/dist/features/3d/services/Background.d.ts +22 -0
- package/dist/features/3d/services/BasicShader.d.ts +55 -0
- package/dist/features/3d/services/ClusteredLights.d.ts +69 -0
- package/dist/features/3d/services/DrawOrder.d.ts +37 -0
- package/dist/features/3d/services/EffectsProcessor.d.ts +38 -0
- package/dist/features/3d/services/EnvironmentBRDF.d.ts +35 -0
- package/dist/features/3d/services/EnvironmentMaps.d.ts +55 -0
- package/dist/features/3d/services/FogShader.d.ts +6 -0
- package/dist/features/3d/services/Frustum.d.ts +7 -0
- package/dist/features/3d/services/GLState.d.ts +86 -0
- package/dist/features/3d/services/GPUPicker.d.ts +31 -0
- package/dist/features/3d/services/InstanceShader.d.ts +3 -0
- package/dist/features/3d/services/LineProgram.d.ts +32 -0
- package/dist/features/3d/services/PBRProgram.d.ts +115 -0
- package/dist/features/3d/services/Renderer.d.ts +50 -0
- package/dist/features/3d/services/Shader.d.ts +22 -0
- package/dist/features/3d/services/ShaderProgram.d.ts +38 -0
- package/dist/features/3d/services/ShadowMaps.d.ts +97 -0
- package/dist/features/3d/services/SpatialIndex.d.ts +16 -0
- package/dist/features/3d/services/TextureLoader.d.ts +40 -0
- package/dist/features/3d/services/TextureMipmaps.d.ts +42 -0
- package/dist/features/3d/services/ToneMapping.d.ts +12 -0
- package/dist/features/3d/services/WebGLRenderer.d.ts +261 -0
- package/dist/features/3d/splats/SplatData.d.ts +136 -0
- package/dist/features/3d/splats/SplatLoaders.d.ts +64 -0
- package/dist/features/3d/splats/SplatShader.d.ts +14 -0
- package/dist/features/3d/splats/SplatSort.d.ts +69 -0
- package/dist/features/3d/splats/Splats.d.ts +116 -0
- package/dist/features/3d/text/FontAtlas.d.ts +246 -0
- package/dist/features/3d/text/SDF.d.ts +28 -0
- package/dist/features/3d/text/Text.d.ts +179 -0
- package/dist/features/3d/text/TextLayout.d.ts +73 -0
- package/dist/features/3d/text/TextShader.d.ts +12 -0
- package/dist/features/3d/tiles/BoundingVolume.d.ts +43 -0
- package/dist/features/3d/tiles/Geodesy.d.ts +106 -0
- package/dist/features/3d/tiles/GlobeControls.d.ts +147 -0
- package/dist/features/3d/tiles/TileContent.d.ts +35 -0
- package/dist/features/3d/tiles/TileFormats.d.ts +77 -0
- package/dist/features/3d/tiles/Tiles3D.d.ts +236 -0
- package/dist/features/3d/tiles/Tileset.d.ts +81 -0
- package/dist/features/3d/tools/BatchedMesh.d.ts +74 -0
- package/dist/features/3d/tools/CanvasSurface.d.ts +81 -0
- package/dist/features/3d/tools/Color.d.ts +11 -0
- package/dist/features/3d/tools/MergeGeometries.d.ts +22 -0
- package/dist/features/3d/tools/Options.d.ts +15 -0
- package/dist/features/3d/tools/Polyhedra.d.ts +30 -0
- package/dist/features/3d/tools/PrimitiveBuffers.d.ts +42 -0
- package/dist/features/3d/tools/Primitives.d.ts +164 -0
- package/dist/features/3d/tools/Ready.d.ts +12 -0
- package/dist/features/3d/tools/SpatialMath.d.ts +57 -0
- package/dist/features/3d/tools/SphericalHarmonics.d.ts +9 -0
- package/dist/features/3d/tools/math/mat3.d.ts +7 -0
- package/dist/features/3d/tools/math/mat4.d.ts +19 -0
- package/dist/features/3d/tools/math/quat.d.ts +6 -0
- package/dist/features/3d/tools/math/vec3.d.ts +16 -0
- package/dist/features/3d/tools/math/vec4.d.ts +5 -0
- package/dist/features/3d/types.d.ts +359 -0
- package/dist/features/3d/usdz/USDAParser.d.ts +50 -0
- package/dist/features/3d/usdz/USDScene.d.ts +20 -0
- package/dist/features/3d/usdz/USDZLoader.d.ts +27 -0
- package/dist/features/3d/usdz/ZipReader.d.ts +16 -0
- package/dist/features/3d/webgpu/Backend.d.ts +40 -0
- package/dist/features/3d/webgpu/BasicShader.d.ts +10 -0
- package/dist/features/3d/webgpu/Constants.d.ts +32 -0
- package/dist/features/3d/webgpu/Deformation.d.ts +71 -0
- package/dist/features/3d/webgpu/Environment.d.ts +66 -0
- package/dist/features/3d/webgpu/Features.d.ts +68 -0
- package/dist/features/3d/webgpu/Layouts.d.ts +27 -0
- package/dist/features/3d/webgpu/Lines.d.ts +40 -0
- package/dist/features/3d/webgpu/LitExtras.d.ts +46 -0
- package/dist/features/3d/webgpu/LitFeatures.d.ts +41 -0
- package/dist/features/3d/webgpu/LitScene.d.ts +60 -0
- package/dist/features/3d/webgpu/LitShader.d.ts +68 -0
- package/dist/features/3d/webgpu/Particles.d.ts +114 -0
- package/dist/features/3d/webgpu/Picking.d.ts +59 -0
- package/dist/features/3d/webgpu/PipelineKey.d.ts +33 -0
- package/dist/features/3d/webgpu/Points.d.ts +41 -0
- package/dist/features/3d/webgpu/Probes.d.ts +45 -0
- package/dist/features/3d/webgpu/ShaderChunks.d.ts +18 -0
- package/dist/features/3d/webgpu/ShaderMaterial.d.ts +57 -0
- package/dist/features/3d/webgpu/ShaderMaterialSource.d.ts +5 -0
- package/dist/features/3d/webgpu/Shadows.d.ts +49 -0
- package/dist/features/3d/webgpu/Splats.d.ts +47 -0
- package/dist/features/3d/webgpu/Textures.d.ts +52 -0
- package/dist/features/3d/webgpu/Transmission.d.ts +30 -0
- package/dist/features/3d/webgpu/UniformLayout.d.ts +30 -0
- package/dist/features/3d/webgpu/UtilityShaders.d.ts +38 -0
- package/dist/features/3d/webgpu/WebGPURenderer.d.ts +327 -0
- package/dist/features/3d/webgpu/effects/EffectsShaders.d.ts +74 -0
- package/dist/features/3d/webgpu/effects/WebGPUEffects.d.ts +140 -0
- package/dist/features/3d/xr/XR.d.ts +100 -0
- package/dist/gltf-By-n0qEg.js +960 -0
- package/dist/index.d.ts +86 -81
- package/dist/model/document-actions/document-commands.d.ts +18 -0
- package/dist/model/documents/svg/create-svg-document-renderer.d.ts +32 -0
- package/dist/model/documents/svg/export-svg-document.d.ts +5 -0
- package/dist/model/documents/svg/import-svg-document.d.ts +6 -0
- package/dist/model/documents/svg/svg-document.types.d.ts +111 -0
- package/dist/model/documents/svg/svg-values.d.ts +16 -0
- package/dist/model/documents/svg/svg-xml.d.ts +18 -0
- package/dist/model/input/NovaInputProxy_Adapter.d.ts +2 -1
- package/dist/model/input/NovaInputValidationController.d.ts +1 -1
- package/dist/model/input/NovaTextInputController.d.ts +1 -1
- package/dist/model/input/NovaTextLayoutEngine.d.ts +2 -6
- package/dist/model/input/index.d.ts +7 -7
- package/dist/model/input/nova-input.types.d.ts +1 -1
- package/dist/model/lighting/LightingRenderer2D.d.ts +58 -0
- package/dist/model/lighting/NovaLighting2D.d.ts +56 -0
- package/dist/model/lighting/lighting-shaders.d.ts +3 -0
- package/dist/model/lighting/lighting-state.d.ts +27 -0
- package/dist/model/lighting/lighting.types.d.ts +107 -0
- package/dist/model/lottie/LottieNode.d.ts +4 -0
- package/dist/model/lottie/lottie.types.d.ts +83 -0
- package/dist/model/lottie/prepare-lottie.d.ts +3 -0
- package/dist/model/lottie/sample-position.d.ts +9 -0
- package/dist/model/motion/NovaMotionEngine.d.ts +3 -3
- package/dist/model/motion/nova-motion-easing.d.ts +1 -1
- package/dist/model/motion/nova-motion-interpolation.d.ts +1 -1
- package/dist/model/motion/nova-motion-presets.d.ts +2 -2
- package/dist/model/motion/nova-motion-timeline.d.ts +1 -1
- package/dist/model/platform/NovaCanvas.d.ts +7 -6
- package/dist/model/primitives/NovaPrimitiveUnsupportedError.d.ts +13 -0
- package/dist/model/primitives/definePrimitive.d.ts +5 -0
- package/dist/model/primitives/primitive.types.d.ts +28 -0
- package/dist/model/render/backends/canvas2d/NovaCanvas2DTargetManager.d.ts +3 -3
- package/dist/model/render/backends/canvas2d/NovaRenderer2D.d.ts +61 -15
- package/dist/model/render/backends/canvas2d/nova-canvas-blend.d.ts +5 -0
- package/dist/model/render/backends/nova-render-backend-factory.d.ts +6 -6
- package/dist/model/render/backends/nova-render-backend.d.ts +8 -2
- package/dist/model/render/backends/webgl/NovaRendererWebGL.d.ts +32 -11
- package/dist/model/render/backends/webgl/NovaStreamCacheIdleLedger.d.ts +12 -1
- package/dist/model/render/backends/webgl/NovaWebGLBatcher.d.ts +1 -1
- package/dist/model/render/backends/webgl/NovaWebGLCircleImagePass.d.ts +23 -0
- package/dist/model/render/backends/webgl/NovaWebGLCompositionPass.d.ts +9 -0
- package/dist/model/render/backends/webgl/NovaWebGLDevice.d.ts +3 -1
- package/dist/model/render/backends/webgl/NovaWebGLDiagnostics.d.ts +1 -1
- package/dist/model/render/backends/webgl/NovaWebGLFrameRenderer.d.ts +162 -53
- package/dist/model/render/backends/webgl/NovaWebGLPathClipPass.d.ts +13 -0
- package/dist/model/render/backends/webgl/NovaWebGLPathUnion.d.ts +23 -0
- package/dist/model/render/compiler/NovaRenderBuilder.d.ts +24 -10
- package/dist/model/render/compiler/NovaRenderCommandWriter.d.ts +10 -5
- package/dist/model/render/compiler/NovaRenderCompiler.d.ts +7 -6
- package/dist/model/render/compiler/NovaRenderFrameBuilder.d.ts +4 -3
- package/dist/model/render/effects/blur.d.ts +8 -0
- package/dist/model/render/effects/color-matrix.d.ts +8 -0
- package/dist/model/render/effects/drop-shadow.d.ts +18 -0
- package/dist/model/render/effects/nova-effect-registry.d.ts +66 -0
- package/dist/model/render/effects/nova-gaussian-kernel.d.ts +7 -0
- package/dist/model/render/effects/nova-gaussian-textures.d.ts +11 -0
- package/dist/model/render/effects/shader-effect.d.ts +64 -0
- package/dist/model/render/geometry/nova-alpha-mask.d.ts +5 -0
- package/dist/model/render/geometry/nova-composition.d.ts +9 -0
- package/dist/model/render/geometry/nova-node-clip.d.ts +17 -0
- package/dist/model/render/geometry/nova-path-geometry.d.ts +24 -0
- package/dist/model/render/geometry/nova-path-tessellation.d.ts +7 -0
- package/dist/model/render/geometry/nova-polygon-triangulation.d.ts +1 -1
- package/dist/model/render/graph/NovaRectBatchBuffer.d.ts +58 -0
- package/dist/model/render/graph/NovaRenderGraph.d.ts +40 -6
- package/dist/model/render/graph/NovaRenderHitIndex.d.ts +1 -1
- package/dist/model/render/graph/nova-auto-rect.d.ts +1 -1
- package/dist/model/render/graph/nova-linear-rect-repack.d.ts +4 -4
- package/dist/model/render/graph/nova-linear-rect-transition.d.ts +2 -2
- package/dist/model/render/graph/nova-render-culling.d.ts +2 -2
- package/dist/model/render/graph/nova-render-dirty-items.d.ts +1 -1
- package/dist/model/render/graph/nova-render-group.d.ts +1 -1
- package/dist/model/render/graph/nova-render-item.d.ts +2 -2
- package/dist/model/render/graph/nova-render-layer.d.ts +1 -1
- package/dist/model/render/graph/nova-render-payload-snapshot.d.ts +3 -1
- package/dist/model/render/graph/nova-render-program.d.ts +5 -3
- package/dist/model/render/graph/nova-render-sequence.d.ts +1 -1
- package/dist/model/render/graph/nova-render-stream.d.ts +2 -2
- package/dist/model/render/ktx2/BasisSession.d.ts +45 -0
- package/dist/model/render/ktx2/KTX2Container.d.ts +26 -0
- package/dist/model/render/ktx2/KTX2Loader.d.ts +55 -0
- package/dist/model/render/meshes/MeshNode.d.ts +13 -0
- package/dist/model/render/meshes/NovaMeshWebGLDevice.d.ts +27 -0
- package/dist/model/render/meshes/geometry.d.ts +7 -0
- package/dist/model/render/meshes/mesh.d.ts +3 -0
- package/dist/model/render/meshes/mesh.types.d.ts +116 -0
- package/dist/model/render/meshes/nova-mesh-registry.d.ts +55 -0
- package/dist/model/render/orchestration/NovaRenderOrchestrator.d.ts +25 -3
- package/dist/model/render/policy/nova-render-policy.d.ts +1 -1
- package/dist/model/render/resources/NovaGlyphAtlasManager.d.ts +2 -2
- package/dist/model/render/resources/NovaTextAtlasManager.d.ts +3 -3
- package/dist/model/render/resources/NovaTextLayoutEngine.d.ts +1 -1
- package/dist/model/render/resources/nova-bitmap-upload.d.ts +10 -0
- package/dist/model/render/schema/NovaRenderContext.d.ts +6 -4
- package/dist/model/render/schema/nova-style-compiler.d.ts +5 -2
- package/dist/model/render/targets/NovaNodeRenderTextureSource.d.ts +29 -0
- package/dist/model/render/targets/NovaRenderTargetManager.d.ts +1 -1
- package/dist/model/render/targets/NovaRenderTexture.d.ts +57 -0
- package/dist/model/render/targets/nova-render-target-refs.d.ts +5 -0
- package/dist/model/render/targets/nova-render-target-resource.d.ts +1 -1
- package/dist/model/render/targets/nova-render-texture-runtime.d.ts +71 -0
- package/dist/model/render/textures/nova-compressed-image.d.ts +20 -0
- package/dist/model/render/utils/nova-icon-rendering.d.ts +3 -1
- package/dist/model/render/utils/nova-image-geometry.d.ts +11 -0
- package/dist/model/render/utils/nova-markdown-layout.d.ts +19 -0
- package/dist/model/render/utils/nova-text-paint.d.ts +26 -0
- package/dist/model/render/utils/nova-wrapped-text-layout.d.ts +19 -0
- package/dist/model/runtime/app/Nova.d.ts +35 -35
- package/dist/model/runtime/app/NovaApp.d.ts +58 -30
- package/dist/model/runtime/app/NovaRaphRuntime.d.ts +2 -2
- package/dist/model/runtime/app/createNovaRaphRuntime.d.ts +3 -3
- package/dist/model/runtime/assets/NovaAssetRegistry.d.ts +89 -2
- package/dist/model/runtime/assets/NovaVideoTexture.d.ts +38 -0
- package/dist/model/runtime/assets/nova-render-texture-image-identity.d.ts +4 -0
- package/dist/model/runtime/commands/NovaCommandBus.d.ts +1 -1
- package/dist/model/runtime/components/NovaComponentNode.d.ts +6 -6
- package/dist/model/runtime/components/NovaComponentRegistry.d.ts +1 -1
- package/dist/model/runtime/components/NovaSchemaRegistry.d.ts +7 -6
- package/dist/model/runtime/components/nova-component-metadata.d.ts +1 -1
- package/dist/model/runtime/components/nova-component.decorator.d.ts +2 -2
- package/dist/model/runtime/components/nova-defined-component.d.ts +3 -3
- package/dist/model/runtime/context/nova-context.d.ts +1 -1
- package/dist/model/runtime/cursor/NovaCursorManager.d.ts +3 -3
- package/dist/model/runtime/diagnostics/NovaDiagnostics_Module.d.ts +3 -3
- package/dist/model/runtime/interaction/NovaEvents.d.ts +16 -6
- package/dist/model/runtime/interaction/NovaHitIndex.d.ts +1 -1
- package/dist/model/runtime/interaction/NovaSpatialIndex.d.ts +2 -2
- package/dist/model/runtime/scene/NovaScene.d.ts +3 -3
- package/dist/model/runtime/scene/nova-scene-components.d.ts +6 -6
- package/dist/model/runtime/state/nova-store-decorators.d.ts +1 -1
- package/dist/model/runtime/state/nova-store-runtime.d.ts +1 -1
- package/dist/model/runtime/state/nova-store-tracking.d.ts +7 -3
- package/dist/model/runtime/sync/NovaSyncScope.d.ts +11 -2
- package/dist/model/runtime/sync/nova-sync-context.d.ts +2 -2
- package/dist/model/runtime/sync/nova-sync-ports.d.ts +2 -2
- package/dist/model/runtime/sync/nova-sync.types.d.ts +15 -3
- package/dist/model/runtime/template/NovaTemplateRuntime.d.ts +6 -6
- package/dist/model/runtime/tree/NovaContainer.d.ts +4 -4
- package/dist/model/runtime/tree/NovaNode.d.ts +58 -18
- package/dist/model/runtime/tree/NovaRaphNode.d.ts +8 -2
- package/dist/model/runtime/tree/NovaSurface.d.ts +32 -10
- package/dist/model/runtime/tree/nova-node-capture-invalidation.d.ts +11 -0
- package/dist/model/semantic/NovaSemanticService.d.ts +1 -1
- package/dist/model/semantic/browser/createAccessibilityBridge.d.ts +29 -0
- package/dist/model/sound/NovaSoundEngine.d.ts +3 -2
- package/dist/model/text-selection/NovaTextSelectionService.d.ts +2 -2
- package/dist/model/text-selection/index.d.ts +2 -2
- package/dist/model/text-selection/nova-text-selection.types.d.ts +1 -1
- package/dist/model/theme/NovaGlobalThemeRegistry.d.ts +2 -2
- package/dist/model/theme/NovaThemeService.d.ts +5 -3
- package/dist/model/theme/createTokenTheme.d.ts +15 -0
- package/dist/model/tools/transform-tools.d.ts +43 -0
- package/dist/nodes--Ds4IS2h.js +621 -0
- package/dist/nova-color-parser-BCN_rFRN.js +250 -0
- package/dist/nova-compressed-image-CE2Ya9Xa.js +46 -0
- package/dist/nova-mesh-registry-B7Xz5mhU.js +24 -0
- package/dist/nova-render-texture-image-identity-DQ09XFKs.js +15 -0
- package/dist/nova-text-paint-CcntsRjI.js +48 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +50 -0
- package/dist/vec4-BTNv1fUp.js +20 -0
- package/package.json +229 -4
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { definePath as E, getPathBounds as B, getStrokeOutline as D } from "@typedworks/geometry";
|
|
2
|
+
import { parseSvgPathData as T } from "@typedworks/geometry/svg";
|
|
3
|
+
import { r as q } from "../../nova-text-paint-CcntsRjI.js";
|
|
4
|
+
import { r as z, N as u, S as L, m as v, s as M } from "../../export-svg-document-ChaNXMaG.js";
|
|
5
|
+
function W(t, e = {}) {
|
|
6
|
+
const o = z(t);
|
|
7
|
+
let n = S(o.root);
|
|
8
|
+
const r = new Map(Object.entries(o.clips).map(([c, p]) => [c, T(p.d)]));
|
|
9
|
+
let i, h, l = !1;
|
|
10
|
+
const f = e.measureText ?? ((c) => {
|
|
11
|
+
if (!h) {
|
|
12
|
+
if (typeof globalThis.document > "u")
|
|
13
|
+
throw new u("resource", "Text requires a measureText adapter outside the browser");
|
|
14
|
+
if (i = globalThis.document.createElement("canvas"), h = i.getContext("2d") ?? void 0, !h)
|
|
15
|
+
throw new u("resource", "Canvas2D text measurement is unavailable");
|
|
16
|
+
}
|
|
17
|
+
const p = h, a = `${c.style} ${c.weight} ${c.size}px ${c.family}`;
|
|
18
|
+
c.baseline === "text-before-edge" && V(c, a), p.font = a, p.direction = "ltr", p.textAlign = "left", p.textBaseline = "alphabetic";
|
|
19
|
+
const s = p.measureText(c.text);
|
|
20
|
+
p.textBaseline = "top";
|
|
21
|
+
const d = p.measureText(c.text);
|
|
22
|
+
if ([s.width, s.actualBoundingBoxLeft, s.actualBoundingBoxRight, s.actualBoundingBoxAscent, s.actualBoundingBoxDescent, d.actualBoundingBoxAscent].some((b) => !Number.isFinite(b)))
|
|
23
|
+
throw new u("resource", "Text requires finite native baseline/ink metrics");
|
|
24
|
+
const m = s.actualBoundingBoxLeft + s.actualBoundingBoxRight, y = s.actualBoundingBoxAscent + s.actualBoundingBoxDescent, w = c.baseline === "text-before-edge" && m > 0 && y > 0 ? G(c, p.font) : s.fontBoundingBoxAscent;
|
|
25
|
+
return { width: s.width, alphabeticToTop: s.actualBoundingBoxAscent - d.actualBoundingBoxAscent, beforeEdgeToAlphabetic: w, ink: { x: -s.actualBoundingBoxLeft, y: -s.actualBoundingBoxAscent, width: m, height: y } };
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
document: o,
|
|
29
|
+
render(c, p, a = 1) {
|
|
30
|
+
if (l || !n)
|
|
31
|
+
throw new u("resource", "SVG renderer is disposed");
|
|
32
|
+
if (!Number.isFinite(a) || a <= 0)
|
|
33
|
+
throw new u("invalid-value", "DPR must be positive and finite");
|
|
34
|
+
const s = p ? [p[0], p[1], p[3], p[4], p[6], p[7]] : L, d = v(s, M(o.viewBox, o.width, o.height, o.aspectRatio)), g = C(n, d, a, e, f);
|
|
35
|
+
if (N(g, c, o), o.overflow === "hidden" && (s[1] || s[2]) && !c.clipPath)
|
|
36
|
+
throw new u("backend", "Affine viewport clipping requires path clipping");
|
|
37
|
+
c.save();
|
|
38
|
+
const m = c.markState();
|
|
39
|
+
try {
|
|
40
|
+
o.overflow === "hidden" && (c.setTransform(x(s)), P(c, { x: 0, y: 0, width: o.width, height: o.height }, s)), A(g, c, o, r);
|
|
41
|
+
} finally {
|
|
42
|
+
c.restoreState(m), c.restore();
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
dispose() {
|
|
46
|
+
l || (l = !0, n = void 0, r.clear(), i && (i.width = 0, i.height = 0), i = void 0, h = void 0);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function V(t, e) {
|
|
51
|
+
try {
|
|
52
|
+
const o = globalThis.document.fonts;
|
|
53
|
+
if (typeof o?.check == "function" && !o.check(e, t.text))
|
|
54
|
+
throw new u("resource", "Text font must be ready before SVG measurement", t.id);
|
|
55
|
+
} catch (o) {
|
|
56
|
+
if (o instanceof u)
|
|
57
|
+
throw o;
|
|
58
|
+
const n = new u("resource", "Text font readiness check failed", t.id);
|
|
59
|
+
throw n.cause = o, n;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function G(t, e) {
|
|
63
|
+
let o;
|
|
64
|
+
try {
|
|
65
|
+
const n = globalThis.document;
|
|
66
|
+
o = n.createElementNS("http://www.w3.org/2000/svg", "svg"), o.style.cssText = "all:initial!important;display:block!important;position:fixed!important;left:0!important;top:0!important;width:0!important;height:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important", o.setAttribute("aria-hidden", "true");
|
|
67
|
+
const r = ["alphabetic", "text-before-edge"].map((a) => {
|
|
68
|
+
const s = n.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
69
|
+
return s.style.cssText = "all:initial!important;direction:ltr!important;writing-mode:horizontal-tb!important;text-anchor:start!important;white-space:pre!important;baseline-shift:0!important", s.style.setProperty("font", e, "important"), s.style.setProperty("dominant-baseline", a, "important"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.textContent = t.text, o.appendChild(s), s;
|
|
70
|
+
}), [i, h] = r, l = n.body ?? n.documentElement;
|
|
71
|
+
if (!l || !i || !h || typeof i.getBBox != "function" || typeof h.getBBox != "function")
|
|
72
|
+
throw new u("resource", "text-before-edge requires native SVG measurement or a measureText adapter", t.id);
|
|
73
|
+
l.appendChild(o);
|
|
74
|
+
const f = i.getBBox(), c = h.getBBox(), p = c.y - f.y;
|
|
75
|
+
if ([f.x, f.y, f.width, f.height, c.x, c.y, c.width, c.height, p].some((a) => !Number.isFinite(a)) || f.width <= 0 || f.height <= 0 || c.width <= 0 || c.height <= 0)
|
|
76
|
+
throw new u("resource", "text-before-edge requires finite native SVG baseline metrics", t.id);
|
|
77
|
+
return p;
|
|
78
|
+
} catch (n) {
|
|
79
|
+
if (n instanceof u)
|
|
80
|
+
throw n;
|
|
81
|
+
const r = new u("resource", "Native SVG baseline measurement failed", t.id);
|
|
82
|
+
throw r.cause = n, r;
|
|
83
|
+
} finally {
|
|
84
|
+
o?.remove();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function S(t) {
|
|
88
|
+
if (t.type === "group")
|
|
89
|
+
return { node: t, children: t.children.map(S) };
|
|
90
|
+
if (t.type === "path")
|
|
91
|
+
return { node: t, path: T(t.d) };
|
|
92
|
+
if (t.type === "text" && t.paint.stroke?.units === "screen")
|
|
93
|
+
throw new u("unsupported", "Text strokes support only world width units", t.id);
|
|
94
|
+
return { node: t };
|
|
95
|
+
}
|
|
96
|
+
function C(t, e, o, n, r) {
|
|
97
|
+
const i = t.node, h = v(e, i.transform);
|
|
98
|
+
if (x(h), !i.visible || i.opacity === 0)
|
|
99
|
+
return { prepared: t, matrix: h };
|
|
100
|
+
if (i.type === "group") {
|
|
101
|
+
const a = t.children.map((s) => C(s, h, o, n, r));
|
|
102
|
+
return { prepared: t, matrix: h, children: a, bounds: R(a.flatMap((s) => s.bounds ? [s.bounds] : [])) };
|
|
103
|
+
}
|
|
104
|
+
if (i.type === "path")
|
|
105
|
+
return { prepared: t, matrix: h, bounds: j(t.path, i, h, o) };
|
|
106
|
+
if (i.type === "text") {
|
|
107
|
+
if (!i.text || (!i.paint.fill || i.paint.fillOpacity === 0) && (!i.paint.stroke || i.paint.stroke.opacity === 0 || i.paint.stroke.width === 0))
|
|
108
|
+
return { prepared: t, matrix: h };
|
|
109
|
+
const a = r(i);
|
|
110
|
+
if (!a || [a.width, a.alphabeticToTop, a.ink?.x, a.ink?.y, a.ink?.width, a.ink?.height].some((F) => !Number.isFinite(F)) || a.width < 0 || a.ink.width < 0 || a.ink.height < 0)
|
|
111
|
+
throw new u("resource", "Invalid text metrics", i.id);
|
|
112
|
+
const s = i.x - a.width * (i.anchor === "start" ? 0 : i.anchor === "middle" ? 0.5 : 1), d = i.baseline === "alphabetic" ? 0 : a.beforeEdgeToAlphabetic;
|
|
113
|
+
if (d === void 0 || !Number.isFinite(d))
|
|
114
|
+
throw new u("resource", "text-before-edge requires a finite native baseline offset", i.id);
|
|
115
|
+
const g = i.y + d - a.alphabeticToTop, m = {
|
|
116
|
+
left: Math.max(0, -a.ink.x),
|
|
117
|
+
right: Math.max(0, a.ink.x + a.ink.width - a.width),
|
|
118
|
+
top: Math.max(0, -a.alphabeticToTop - a.ink.y),
|
|
119
|
+
bottom: Math.max(0, a.alphabeticToTop + a.ink.y + a.ink.height - i.size)
|
|
120
|
+
}, y = {
|
|
121
|
+
text: i.text,
|
|
122
|
+
x: s,
|
|
123
|
+
y: g,
|
|
124
|
+
width: Math.ceil(a.width + m.left + m.right) - m.left - m.right,
|
|
125
|
+
height: i.size,
|
|
126
|
+
parser: "string",
|
|
127
|
+
meta: { textMode: "run-atlas" },
|
|
128
|
+
styles: {
|
|
129
|
+
direction: "ltr",
|
|
130
|
+
...i.paint.fill ? { color: i.paint.fill } : {},
|
|
131
|
+
fillOpacity: i.paint.fill ? i.paint.fillOpacity : 0,
|
|
132
|
+
...i.paint.stroke ? { stroke: { color: i.paint.stroke.color, width: i.paint.stroke.width, widthUnits: "world", opacity: i.paint.stroke.opacity, lineCap: i.paint.stroke.cap, lineJoin: i.paint.stroke.join, miterLimit: i.paint.stroke.miterLimit, dashPattern: i.paint.stroke.dash, dashOffset: i.paint.stroke.dashOffset } } : {},
|
|
133
|
+
font: { family: i.family, size: i.size, style: i.style, weight: i.weight },
|
|
134
|
+
align: { horizontal: "left", vertical: "top" }
|
|
135
|
+
}
|
|
136
|
+
}, w = q(y).outset, b = k({ x: s + a.ink.x - w, y: i.y + d + a.ink.y - w, width: a.ink.width + w * 2, height: a.ink.height + w * 2 }, h);
|
|
137
|
+
return { prepared: t, matrix: h, bounds: b, text: y };
|
|
138
|
+
}
|
|
139
|
+
if (!i.width || !i.height)
|
|
140
|
+
return { prepared: t, matrix: h };
|
|
141
|
+
const l = n.images?.(i.href);
|
|
142
|
+
if (!l || !l.source || typeof l.source != "object" || !Number.isFinite(l.width) || !Number.isFinite(l.height) || l.width <= 0 || l.height <= 0)
|
|
143
|
+
throw new u("resource", `Missing/invalid image resource ${i.href}`, i.id);
|
|
144
|
+
const f = M([0, 0, l.width, l.height], i.width, i.height, i.aspectRatio), c = { x: i.x + f[4], y: i.y + f[5], width: l.width * f[0], height: l.height * f[3], icon: l.source }, p = i.aspectRatio.endsWith("slice") ? { x: i.x, y: i.y, width: i.width, height: i.height } : void 0;
|
|
145
|
+
return { prepared: t, matrix: h, image: c, imageClip: p, bounds: k(p ?? c, h) };
|
|
146
|
+
}
|
|
147
|
+
function A(t, e, o, n) {
|
|
148
|
+
const r = t.prepared.node;
|
|
149
|
+
if (!t.bounds || t.bounds.width <= 0 || t.bounds.height <= 0)
|
|
150
|
+
return;
|
|
151
|
+
e.save();
|
|
152
|
+
const i = e.markState();
|
|
153
|
+
let h = !1, l;
|
|
154
|
+
try {
|
|
155
|
+
if (e.setTransform(x(t.matrix)), r.clip) {
|
|
156
|
+
const f = o.clips[r.clip];
|
|
157
|
+
e.setTransform(x(v(t.matrix, f.transform))), e.clipPath({ path: n.get(r.clip), fillRule: f.fillRule }), e.setTransform(x(t.matrix));
|
|
158
|
+
}
|
|
159
|
+
if (t.imageClip && P(e, t.imageClip, t.matrix), r.opacity < 1 && (e.beginComposition({ bounds: t.bounds, opacity: r.opacity, blendMode: "normal" }), h = !0, l = e.markState()), r.type === "group")
|
|
160
|
+
for (const f of t.children ?? [])
|
|
161
|
+
A(f, e, o, n);
|
|
162
|
+
else if (r.type === "path") {
|
|
163
|
+
const f = t.prepared.path;
|
|
164
|
+
r.paint.fill && r.paint.fillOpacity > 0 && e.path({ path: f, fillRule: r.paint.fillRule, styles: { fill: r.paint.fill, opacity: r.paint.fillOpacity } }), r.paint.stroke && r.paint.stroke.opacity > 0 && r.paint.stroke.width > 0 && e.path({ path: f, styles: { stroke: O(r), opacity: r.paint.stroke.opacity } });
|
|
165
|
+
} else t.text ? e.text(t.text) : t.image && e.icon(t.image);
|
|
166
|
+
} finally {
|
|
167
|
+
try {
|
|
168
|
+
h && (e.restoreState(l), e.endComposition());
|
|
169
|
+
} finally {
|
|
170
|
+
e.restoreState(i), e.restore();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function N(t, e, o) {
|
|
175
|
+
const n = t.prepared.node;
|
|
176
|
+
if (t.bounds) {
|
|
177
|
+
if (t.imageClip && (t.matrix[1] || t.matrix[2]) && !e.clipPath)
|
|
178
|
+
throw new u("backend", "Affine image clipping requires path clipping");
|
|
179
|
+
if (n.clip && !e.clipPath)
|
|
180
|
+
throw new u("backend", "Renderer does not support path clipping", n.id);
|
|
181
|
+
if (n.clip && x(v(t.matrix, o.clips[n.clip].transform)), n.opacity < 1 && (!e.beginComposition || !e.endComposition))
|
|
182
|
+
throw new u("backend", "Renderer does not support isolated opacity", n.id);
|
|
183
|
+
for (const r of t.children ?? [])
|
|
184
|
+
N(r, e, o);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function O(t) {
|
|
188
|
+
const e = t.paint.stroke;
|
|
189
|
+
return { color: e.color, width: e.width, widthUnits: e.units, lineCap: e.cap, lineJoin: e.join, miterLimit: e.miterLimit, dashPattern: [...e.dash], dashOffset: e.dashOffset };
|
|
190
|
+
}
|
|
191
|
+
function j(t, e, o, n) {
|
|
192
|
+
const r = [];
|
|
193
|
+
if (e.paint.fill && e.paint.fillOpacity > 0 && r.push(k(B(t), o)), e.paint.stroke && e.paint.stroke.width > 0 && e.paint.stroke.opacity > 0) {
|
|
194
|
+
const i = e.paint.stroke.units === "screen", h = Math.hypot(o[0], o[1], o[2], o[3]), l = D(t, O(e), { tolerance: 0.25 / Math.max(n * (i ? 1 : h), 1e-12), transform: i ? o : void 0 });
|
|
195
|
+
r.push(i ? B(l) : k(B(l), o));
|
|
196
|
+
}
|
|
197
|
+
return R(r);
|
|
198
|
+
}
|
|
199
|
+
function x(t) {
|
|
200
|
+
const e = new Float32Array([t[0], t[1], 0, t[2], t[3], 0, t[4], t[5], 1]);
|
|
201
|
+
if (e.some((o) => !Number.isFinite(o)))
|
|
202
|
+
throw new u("invalid-value", "Transform exceeds renderer precision");
|
|
203
|
+
return e;
|
|
204
|
+
}
|
|
205
|
+
function P(t, e, o) {
|
|
206
|
+
o[1] || o[2] ? t.clipPath({ path: E((n) => n.moveTo(e.x, e.y).lineTo(e.x + e.width, e.y).lineTo(e.x + e.width, e.y + e.height).lineTo(e.x, e.y + e.height).closePath()) }) : t.clip(e.x, e.y, e.width, e.height);
|
|
207
|
+
}
|
|
208
|
+
function k(t, e) {
|
|
209
|
+
const [o, n, r, i, h, l] = e, f = [[t.x, t.y], [t.x + t.width, t.y], [t.x, t.y + t.height], [t.x + t.width, t.y + t.height]], c = f.map(([g, m]) => o * g + r * m + h), p = f.map(([g, m]) => n * g + i * m + l), a = Math.min(...c), s = Math.min(...p), d = { x: a, y: s, width: Math.max(...c) - a, height: Math.max(...p) - s };
|
|
210
|
+
if (Object.values(d).some((g) => !Number.isFinite(g)))
|
|
211
|
+
throw new u("invalid-value", "Bounds exceed renderer precision");
|
|
212
|
+
return d;
|
|
213
|
+
}
|
|
214
|
+
function R(t) {
|
|
215
|
+
if (!t.length)
|
|
216
|
+
return;
|
|
217
|
+
const e = Math.min(...t.map((n) => n.x)), o = Math.min(...t.map((n) => n.y));
|
|
218
|
+
return { x: e, y: o, width: Math.max(...t.map((n) => n.x + n.width)) - e, height: Math.max(...t.map((n) => n.y + n.height)) - o };
|
|
219
|
+
}
|
|
220
|
+
export {
|
|
221
|
+
W as createSvgDocumentRenderer
|
|
222
|
+
};
|
package/dist/2d/svg.d.ts
ADDED
package/dist/2d/svg.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { resizeHandleCursor, resizeHandlePoint, rotateHandlePoint, snapPointToGrid, snapPointToGuides, snapResizeToGrid } from '../model/tools/transform-tools.js';
|
|
2
|
+
export type { NovaGuideSnapResult, NovaHandleTransform, NovaResizeHandle, NovaResizeSnapInput, NovaSnapGuide } from '../model/tools/transform-tools.js';
|
package/dist/2d/tools.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { transformPoint as v } from "@typedworks/geometry";
|
|
2
|
+
const G = ["n", "e", "s", "w", "ne", "se", "sw", "nw"], E = ["ew-resize", "nwse-resize", "ns-resize", "nesw-resize"];
|
|
3
|
+
function R(e, t, i = {}) {
|
|
4
|
+
return y(e), z(t), P(e, {
|
|
5
|
+
x: t.includes("w") ? e.x : t.includes("e") ? e.x + e.width : e.x + e.width / 2,
|
|
6
|
+
y: t.includes("n") ? e.y : t.includes("s") ? e.y + e.height : e.y + e.height / 2
|
|
7
|
+
}, i);
|
|
8
|
+
}
|
|
9
|
+
function F(e, t = {}) {
|
|
10
|
+
y(e);
|
|
11
|
+
const i = t.offset ?? 28;
|
|
12
|
+
return f(i, "offset"), P(e, { x: e.x + e.width / 2, y: e.y - i }, t);
|
|
13
|
+
}
|
|
14
|
+
function I(e, t = 0) {
|
|
15
|
+
z(e), f(t, "rotation");
|
|
16
|
+
const i = e === "e" || e === "w" ? 0 : e === "se" || e === "nw" ? 1 : e === "n" || e === "s" ? 2 : 3, n = (Math.round(t % (Math.PI * 2) / (Math.PI / 4) + i) % 4 + 4) % 4;
|
|
17
|
+
return E[n];
|
|
18
|
+
}
|
|
19
|
+
function N(e, t, i = { x: 0, y: 0 }) {
|
|
20
|
+
return m(e), k(t, i), M({ x: u(e.x, t, i.x), y: u(e.y, t, i.y) });
|
|
21
|
+
}
|
|
22
|
+
function W(e) {
|
|
23
|
+
const { source: t, bounds: i, handle: n, step: r } = e;
|
|
24
|
+
y(t), y(i), z(n);
|
|
25
|
+
const c = e.origin ?? { x: 0, y: 0 };
|
|
26
|
+
k(r, c);
|
|
27
|
+
const o = e.minWidth ?? 0, a = e.minHeight ?? 0;
|
|
28
|
+
w(o, "minWidth"), w(a, "minHeight");
|
|
29
|
+
const s = t.x + t.width, h = t.y + t.height;
|
|
30
|
+
let { x, y: l, width: g, height: d } = i;
|
|
31
|
+
n.includes("w") ? (x = Math.min(s - o, u(i.x, r, c.x)), g = s - x) : n.includes("e") && (g = Math.max(o, u(i.x + i.width, r, c.x) - t.x), x = t.x), n.includes("n") ? (l = Math.min(h - a, u(i.y, r, c.y)), d = h - l) : n.includes("s") && (d = Math.max(a, u(i.y + i.height, r, c.y) - t.y), l = t.y);
|
|
32
|
+
const H = { x, y: l, width: Math.max(o, g), height: Math.max(a, d) };
|
|
33
|
+
return y(H), H;
|
|
34
|
+
}
|
|
35
|
+
function p(e, t, i) {
|
|
36
|
+
m(e), w(i, "tolerance");
|
|
37
|
+
let n, r, c = 1 / 0, o = 1 / 0;
|
|
38
|
+
for (const s of t) {
|
|
39
|
+
if (s.axis !== "x" && s.axis !== "y")
|
|
40
|
+
throw new TypeError("Snap guide axis must be x or y");
|
|
41
|
+
f(s.value, "guide.value");
|
|
42
|
+
const h = Math.abs(e[s.axis] - s.value);
|
|
43
|
+
h > i || (s.axis === "x" && h < c ? (n = s, c = h) : s.axis === "y" && h < o && (r = s, o = h));
|
|
44
|
+
}
|
|
45
|
+
const a = [];
|
|
46
|
+
return n && a.push({ ...n }), r && a.push({ ...r }), { point: { x: n?.value ?? e.x, y: r?.value ?? e.y }, guides: a };
|
|
47
|
+
}
|
|
48
|
+
function P(e, t, i) {
|
|
49
|
+
const n = i.rotation ?? 0;
|
|
50
|
+
f(n, "rotation");
|
|
51
|
+
let r = t;
|
|
52
|
+
if (n !== 0) {
|
|
53
|
+
const c = e.x + e.width / 2, o = e.y + e.height / 2, a = t.x - c, s = t.y - o, h = Math.cos(n), x = Math.sin(n);
|
|
54
|
+
r = { x: c + a * h - s * x, y: o + a * x + s * h };
|
|
55
|
+
}
|
|
56
|
+
if (M(r), i.matrix) {
|
|
57
|
+
if (i.matrix.length !== 6 || i.matrix.some((c) => !Number.isFinite(c)))
|
|
58
|
+
throw new RangeError("Handle transform must be a finite affine matrix");
|
|
59
|
+
r = v(r, i.matrix);
|
|
60
|
+
}
|
|
61
|
+
return M(r);
|
|
62
|
+
}
|
|
63
|
+
function u(e, t, i) {
|
|
64
|
+
const n = Math.round((e - i) / t) * t, r = i === 0 ? n : n + i;
|
|
65
|
+
return f(r, "snapped coordinate"), r;
|
|
66
|
+
}
|
|
67
|
+
function k(e, t) {
|
|
68
|
+
if (!Number.isFinite(e) || e <= 0)
|
|
69
|
+
throw new RangeError("Grid step must be positive and finite");
|
|
70
|
+
m(t);
|
|
71
|
+
}
|
|
72
|
+
function z(e) {
|
|
73
|
+
if (!G.includes(e))
|
|
74
|
+
throw new TypeError("Unsupported resize handle");
|
|
75
|
+
}
|
|
76
|
+
function y(e) {
|
|
77
|
+
m(e), w(e.width, "width"), w(e.height, "height"), f(e.x + e.width, "right"), f(e.y + e.height, "bottom");
|
|
78
|
+
}
|
|
79
|
+
function m(e) {
|
|
80
|
+
f(e.x, "x"), f(e.y, "y");
|
|
81
|
+
}
|
|
82
|
+
function M(e) {
|
|
83
|
+
return m(e), e;
|
|
84
|
+
}
|
|
85
|
+
function w(e, t) {
|
|
86
|
+
if (f(e, t), e < 0)
|
|
87
|
+
throw new RangeError(`${t} must be nonnegative`);
|
|
88
|
+
}
|
|
89
|
+
function f(e, t) {
|
|
90
|
+
if (!Number.isFinite(e))
|
|
91
|
+
throw new RangeError(`${t} must be finite`);
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
I as resizeHandleCursor,
|
|
95
|
+
R as resizeHandlePoint,
|
|
96
|
+
F as rotateHandlePoint,
|
|
97
|
+
N as snapPointToGrid,
|
|
98
|
+
p as snapPointToGuides,
|
|
99
|
+
W as snapResizeToGrid
|
|
100
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Необязательный sink с явной публикацией: без decoder, playback queue и своих часов.
|
|
3
|
+
*/
|
|
4
|
+
export { createVideoTexture } from '../model/runtime/assets/NovaVideoTexture.js';
|
|
5
|
+
export type { NovaVideoTexture, NovaVideoTextureCrop, NovaVideoTexturePublishOptions } from '../model/runtime/assets/NovaVideoTexture.js';
|
package/dist/2d/video.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
function p(e) {
|
|
2
|
+
const t = e.assets._registerManagedImage(), i = e.canvas.element.ownerDocument;
|
|
3
|
+
let o = !1, s = !1;
|
|
4
|
+
const v = () => t.alive ? e.assets.resolveDrawable(t.image) : void 0;
|
|
5
|
+
return {
|
|
6
|
+
image: t.image,
|
|
7
|
+
get ready() {
|
|
8
|
+
return t.ready;
|
|
9
|
+
},
|
|
10
|
+
get width() {
|
|
11
|
+
return t.width;
|
|
12
|
+
},
|
|
13
|
+
get height() {
|
|
14
|
+
return t.height;
|
|
15
|
+
},
|
|
16
|
+
get revision() {
|
|
17
|
+
return v(), t.revision;
|
|
18
|
+
},
|
|
19
|
+
get paused() {
|
|
20
|
+
return o;
|
|
21
|
+
},
|
|
22
|
+
setPaused(n) {
|
|
23
|
+
if (typeof n != "boolean")
|
|
24
|
+
throw new TypeError("[Nova] Video texture paused must be boolean");
|
|
25
|
+
o = n;
|
|
26
|
+
},
|
|
27
|
+
publish(n, l = {}) {
|
|
28
|
+
if (t.assertPublishable(), s)
|
|
29
|
+
throw new Error("[Nova] Reentrant video texture publication");
|
|
30
|
+
if (o || i.hidden || l.signal?.aborted)
|
|
31
|
+
return !1;
|
|
32
|
+
if (!n || typeof n != "object")
|
|
33
|
+
throw new TypeError("[Nova] Video texture requires a CanvasImageSource");
|
|
34
|
+
if ("readyState" in n && "videoWidth" in n && n.readyState < 2)
|
|
35
|
+
return !1;
|
|
36
|
+
const r = m(n), h = l.crop ?? { x: 0, y: 0, width: 1, height: 1 };
|
|
37
|
+
b(h);
|
|
38
|
+
const g = Math.max(1, Math.round(r.width * h.width)), f = Math.max(1, Math.round(r.height * h.height));
|
|
39
|
+
let d;
|
|
40
|
+
const y = t.revision;
|
|
41
|
+
s = !0;
|
|
42
|
+
try {
|
|
43
|
+
if (x(n, h)) {
|
|
44
|
+
const a = n.clone();
|
|
45
|
+
d = { source: a, release: u(() => a.close()) };
|
|
46
|
+
} else {
|
|
47
|
+
const a = i.createElement("canvas");
|
|
48
|
+
d = { source: a, release: u(() => {
|
|
49
|
+
a.width = a.height = 0;
|
|
50
|
+
}) }, a.width = g, a.height = f;
|
|
51
|
+
const w = a.getContext("2d", { alpha: !0 });
|
|
52
|
+
if (!w)
|
|
53
|
+
throw new Error("[Nova] Canvas2D is required to snapshot this video source");
|
|
54
|
+
w.drawImage(n, h.x * r.width, h.y * r.height, h.width * r.width, h.height * r.height, 0, 0, g, f);
|
|
55
|
+
}
|
|
56
|
+
return l.signal?.aborted || o || i.hidden ? (d.release(), !1) : (t.publish(d.source, d.release), !0);
|
|
57
|
+
} catch (a) {
|
|
58
|
+
throw t.revision === y && d?.release(), a;
|
|
59
|
+
} finally {
|
|
60
|
+
s = !1;
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
destroy: t.destroy
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function u(e) {
|
|
67
|
+
let t = !1;
|
|
68
|
+
return () => {
|
|
69
|
+
t || (t = !0, e());
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function m(e) {
|
|
73
|
+
const t = "displayWidth" in e ? e.displayWidth : "videoWidth" in e ? e.videoWidth : "naturalWidth" in e ? e.naturalWidth : e.width, i = "displayHeight" in e ? e.displayHeight : "videoHeight" in e ? e.videoHeight : "naturalHeight" in e ? e.naturalHeight : e.height;
|
|
74
|
+
if (typeof t != "number" || typeof i != "number" || !Number.isSafeInteger(t) || !Number.isSafeInteger(i) || t <= 0 || i <= 0 || !Number.isSafeInteger(t * i * 4))
|
|
75
|
+
throw new RangeError("[Nova] Video source must have positive finite intrinsic pixel dimensions");
|
|
76
|
+
return { width: t, height: i };
|
|
77
|
+
}
|
|
78
|
+
function b(e) {
|
|
79
|
+
if (![e.x, e.y, e.width, e.height].every(Number.isFinite) || e.x < 0 || e.y < 0 || e.width <= 0 || e.height <= 0 || e.x + e.width > 1 || e.y + e.height > 1)
|
|
80
|
+
throw new RangeError("[Nova] Video texture crop must fit the normalized displayed source");
|
|
81
|
+
}
|
|
82
|
+
function x(e, t) {
|
|
83
|
+
if (typeof VideoFrame > "u" || !(e instanceof VideoFrame) || !("rotation" in e) || e.rotation !== 0 || !("flip" in e) || e.flip !== !1 || t.x !== 0 || t.y !== 0 || t.width !== 1 || t.height !== 1)
|
|
84
|
+
return !1;
|
|
85
|
+
const i = e.visibleRect;
|
|
86
|
+
return !!(i && i.x === 0 && i.y === 0 && i.width === e.codedWidth && i.height === e.codedHeight && e.displayWidth === e.codedWidth && e.displayHeight === e.codedHeight);
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
p as createVideoTexture
|
|
90
|
+
};
|
package/dist/2d.d.ts
ADDED
package/dist/2d.js
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { D as o, a as s, N as t, b as r, R as n, S as N, c as v, d as i, e as c, f as d, g as l, h as p, i as S, j as m, k as R, m as u, n as C, r as A, l as T, o as h, p as E, q as g, s as P, t as y, u as f, v as M } from "./NovaNode-CBZ-Ol-W.js";
|
|
2
|
+
import { A as b, C as _, a as x, E as D, G as O, N as B, b as V, c as G, d as L, e as k, f as F, g as H, h as j, i as z, j as q, k as K, l as Y, m as U, n as W, o as w, p as J, q as Q, r as X, s as Z, t as $, u as aa, v as ea, w as oa, x as sa, y as ta, z as ra, B as na, D as Na, F as va, H as ia, I as ca, J as da, J as la, K as pa, L as Sa, M as ma, O as Ra, P as ua, Q as Ca, R as Aa, S as Ta, T as ha, U as Ea, V as ga, W as Pa, X as ya, Y as fa, Z as Ma, _ as Ia, $ as ba, a0 as _a, a1 as xa, a2 as Da, a3 as Oa, a4 as Ba, a5 as Va, a6 as Ga, a7 as La, a8 as ka, a9 as Fa, aa as Ha, ab as ja, ac as za, ad as qa, ae as Ka, af as Ya, ag as Ua, ah as Wa, ai as wa, aj as Ja, ak as Qa, al as Xa, am as Za, an as $a, ao as ae, ap as ee, aq as oe, ar as se, as as te, at as re, au as ne, av as Ne, aw as ve, ax as ie, ay as ce, az as de, aA as le, aB as pe, aC as Se, aD as me, aE as Re, aF as ue, aG as Ce, aH as Ae, aI as Te, aJ as he, aK as Ee, aL as ge, aM as Pe, aN as ye, aO as fe, aP as Me, aQ as Ie, aR as be, aS as _e, aT as xe, aU as De, aV as Oe, aW as Be, aX as Ve, aY as Ge, aZ as Le, a_ as ke, a$ as Fe, b0 as He, b1 as je, b2 as ze, b3 as qe, b4 as Ke, b5 as Ye, b6 as Ue, b7 as We, b8 as we } from "./NovaTextSelectionService-CipuujCT.js";
|
|
3
|
+
import { N as Qe, R as Xe, c as Ze, a as $e, b as ao, d as eo, e as oo, f as so, g as to, h as ro, i as no, j as No, k as vo, l as io, m as co, n as lo, o as po, r as So, p as mo, s as Ro, q as uo } from "./NovaRenderCommandWriter-CWQRa42y.js";
|
|
4
|
+
import { b as Ao, a as To, c as ho, d as Eo, e as go, p as Po, f as yo, s as fo, t as Mo, u as Io } from "./nova-color-parser-BCN_rFRN.js";
|
|
5
|
+
import { N as _o, a as xo, c as Do, b as Oo, d as Bo, e as Vo, f as Go, g as Lo, h as ko, i as Fo, j as Ho, k as jo, l as zo, m as qo, n as Ko, o as Yo, r as Uo } from "./NovaAssetRegistry-p2QlCwvT.js";
|
|
6
|
+
import { RaphSchedulerType as wo } from "@raphy-js/raph/runtime";
|
|
7
|
+
import { PathBuilder as Qo, definePath as Xo, getPathBounds as Zo, getPathLength as $o, getPointAtLength as as, getTangentAtLength as es, toSvgPathData as os, translatePath as ss } from "@typedworks/geometry";
|
|
8
|
+
export {
|
|
9
|
+
b as Api,
|
|
10
|
+
_ as CanvasDomEvents,
|
|
11
|
+
x as Command,
|
|
12
|
+
o as DEFAULT_NOVA_RENDERER_CONFIG,
|
|
13
|
+
s as DEFAULT_NOVA_RENDER_POLICY,
|
|
14
|
+
D as Event,
|
|
15
|
+
O as GfxTelemetry,
|
|
16
|
+
B as NOVA_MOTION_EASING,
|
|
17
|
+
V as NOVA_MOTION_PATTERNS,
|
|
18
|
+
G as NOVA_MOTION_PRESETS,
|
|
19
|
+
L as NOVA_SCENES_DESCRIPTOR,
|
|
20
|
+
k as NOVA_SCENES_SCHEMA_TYPE,
|
|
21
|
+
F as NOVA_SCENE_DESCRIPTOR,
|
|
22
|
+
H as NOVA_SCENE_SCHEMA_TYPE,
|
|
23
|
+
j as NOVA_THEME_ACTIVE_PATH,
|
|
24
|
+
z as NOVA_THEME_VERSION_PATH,
|
|
25
|
+
q as NodeEventNames,
|
|
26
|
+
K as Nova,
|
|
27
|
+
Y as NovaApp,
|
|
28
|
+
_o as NovaAssetRegistry,
|
|
29
|
+
xo as NovaAssets,
|
|
30
|
+
U as NovaCanvas,
|
|
31
|
+
W as NovaCaretBlinkController,
|
|
32
|
+
w as NovaClipboardService,
|
|
33
|
+
J as NovaCommandBus,
|
|
34
|
+
Q as NovaComponent,
|
|
35
|
+
X as NovaComponentNode,
|
|
36
|
+
Z as NovaComponentRegistry,
|
|
37
|
+
$ as NovaContainer,
|
|
38
|
+
aa as NovaCoreDSL,
|
|
39
|
+
ea as NovaCursorManager,
|
|
40
|
+
oa as NovaDebug,
|
|
41
|
+
sa as NovaDiagnostics_Module,
|
|
42
|
+
ta as NovaEvents,
|
|
43
|
+
ra as NovaExportError,
|
|
44
|
+
na as NovaGlobalThemeRegistry,
|
|
45
|
+
Na as NovaGlobalThemes,
|
|
46
|
+
va as NovaGlyphAtlasManager,
|
|
47
|
+
ia as NovaGraphics,
|
|
48
|
+
ca as NovaHitIndex,
|
|
49
|
+
da as NovaInputProxyService,
|
|
50
|
+
la as NovaInputProxy_Adapter,
|
|
51
|
+
pa as NovaInputTextLayoutEngine,
|
|
52
|
+
Sa as NovaInputValidationController,
|
|
53
|
+
ma as NovaMetrics,
|
|
54
|
+
Ra as NovaMotionEngine,
|
|
55
|
+
t as NovaNode,
|
|
56
|
+
r as NovaPhase,
|
|
57
|
+
Qe as NovaRectBatchBuffer,
|
|
58
|
+
ua as NovaRenderContext,
|
|
59
|
+
Ca as NovaRenderGraph,
|
|
60
|
+
Aa as NovaRenderHitIndex,
|
|
61
|
+
Ta as NovaRenderResourceCache,
|
|
62
|
+
ha as NovaRenderScheduler,
|
|
63
|
+
Ea as NovaScene,
|
|
64
|
+
ga as NovaSceneDefinitionNode,
|
|
65
|
+
Pa as NovaScenesNode,
|
|
66
|
+
ya as NovaSchemaRegistry,
|
|
67
|
+
fa as NovaSemanticService,
|
|
68
|
+
Ma as NovaSoundEngine,
|
|
69
|
+
Ia as NovaSoundScope,
|
|
70
|
+
ba as NovaSpatialIndex,
|
|
71
|
+
_a as NovaStore,
|
|
72
|
+
xa as NovaSupportedNativeEvents,
|
|
73
|
+
Da as NovaSurface,
|
|
74
|
+
Oa as NovaSyncScope,
|
|
75
|
+
Ba as NovaSyncScopeToken,
|
|
76
|
+
Va as NovaTemplateRuntime,
|
|
77
|
+
Ga as NovaTextAtlasManager,
|
|
78
|
+
La as NovaTextInputController,
|
|
79
|
+
ka as NovaTextLayoutEngine,
|
|
80
|
+
Fa as NovaTextSelectionService,
|
|
81
|
+
Ha as NovaTextureAtlasManager,
|
|
82
|
+
ja as NovaThemeService,
|
|
83
|
+
za as NovaTypedRenderStream,
|
|
84
|
+
Qo as PathBuilder,
|
|
85
|
+
qa as Prop,
|
|
86
|
+
wo as RaphSchedulerType,
|
|
87
|
+
n as Reactive,
|
|
88
|
+
Xe as RendererType,
|
|
89
|
+
N as Store,
|
|
90
|
+
Ka as Telemetry,
|
|
91
|
+
Ya as Watch,
|
|
92
|
+
Ua as addNovaApiMetadata,
|
|
93
|
+
Wa as addNovaCommandMetadata,
|
|
94
|
+
wa as addNovaPropMetadata,
|
|
95
|
+
Ja as addNovaWatchMetadata,
|
|
96
|
+
Qa as analyzeSnapshot,
|
|
97
|
+
Xa as attachRuntimeComponentState,
|
|
98
|
+
Za as batchNovaStore,
|
|
99
|
+
v as beginNovaStoreTracking,
|
|
100
|
+
$a as bindNovaRef,
|
|
101
|
+
ae as bindNovaRefMap,
|
|
102
|
+
Ao as boundsContainsPoint,
|
|
103
|
+
To as boundsEquals,
|
|
104
|
+
ho as boundsIntersects,
|
|
105
|
+
i as bumpRenderVersions,
|
|
106
|
+
ee as canPatchTemplateNode,
|
|
107
|
+
oe as clampMotionProgress,
|
|
108
|
+
se as collectMetadata,
|
|
109
|
+
te as collectVisibleNovaRenderGroups,
|
|
110
|
+
Ze as compileNovaArcStyle,
|
|
111
|
+
$e as compileNovaBorderStyle,
|
|
112
|
+
ao as compileNovaCircleStyle,
|
|
113
|
+
eo as compileNovaLineStyle,
|
|
114
|
+
re as compileNovaMotionTimeline,
|
|
115
|
+
oo as compileNovaPadding,
|
|
116
|
+
so as compileNovaPolygonStyle,
|
|
117
|
+
to as compileNovaRectStyle,
|
|
118
|
+
ro as compileNovaTextStyle,
|
|
119
|
+
Eo as copyBounds,
|
|
120
|
+
c as createCleanRenderDirtyFlags,
|
|
121
|
+
ne as createDefinedComponentNode,
|
|
122
|
+
go as createEmptyBounds,
|
|
123
|
+
d as createFullRenderDirtyFlags,
|
|
124
|
+
Ne as createNovaBatchPlan,
|
|
125
|
+
Do as createNovaCanvasAsset,
|
|
126
|
+
ve as createNovaComponentPropSyncPorts,
|
|
127
|
+
Oo as createNovaConicGradientAsset,
|
|
128
|
+
ie as createNovaDecoratedComponentDescriptor,
|
|
129
|
+
Bo as createNovaFontAsset,
|
|
130
|
+
Vo as createNovaImageAsset,
|
|
131
|
+
no as createNovaInstructionBuffer,
|
|
132
|
+
Go as createNovaLinearGradientAsset,
|
|
133
|
+
Lo as createNovaMeshGradientAsset,
|
|
134
|
+
ko as createNovaNineSliceImageAsset,
|
|
135
|
+
Fo as createNovaNoiseAsset,
|
|
136
|
+
Ho as createNovaPatternAsset,
|
|
137
|
+
jo as createNovaRadialGradientAsset,
|
|
138
|
+
ce as createNovaRef,
|
|
139
|
+
de as createNovaRefMap,
|
|
140
|
+
No as createNovaRenderGroup,
|
|
141
|
+
vo as createNovaRenderGroupSnapshot,
|
|
142
|
+
io as createNovaRenderItem,
|
|
143
|
+
co as createNovaRenderItemBatchKey,
|
|
144
|
+
lo as createNovaRenderLayer,
|
|
145
|
+
le as createNovaRenderStreamId,
|
|
146
|
+
pe as createNovaScope,
|
|
147
|
+
Se as createNovaStore,
|
|
148
|
+
zo as createNovaStripeAsset,
|
|
149
|
+
qo as createNovaSvgAsset,
|
|
150
|
+
me as createNovaSyncPort,
|
|
151
|
+
po as createRectBatch,
|
|
152
|
+
l as createRenderVersions,
|
|
153
|
+
Ko as defineNovaAssets,
|
|
154
|
+
Re as defineNovaComponent,
|
|
155
|
+
Xo as definePath,
|
|
156
|
+
p as endNovaStoreTracking,
|
|
157
|
+
ue as findNovaStoreRuntime,
|
|
158
|
+
Zo as getPathBounds,
|
|
159
|
+
$o as getPathLength,
|
|
160
|
+
as as getPointAtLength,
|
|
161
|
+
es as getTangentAtLength,
|
|
162
|
+
S as hasNovaStoreTracking,
|
|
163
|
+
m as hitTestPath,
|
|
164
|
+
Ce as installNovaPropAccessors,
|
|
165
|
+
Ae as interpolateNovaMotionValue,
|
|
166
|
+
Yo as isNovaAssetRef,
|
|
167
|
+
Te as isNovaRef,
|
|
168
|
+
he as isNovaRefMap,
|
|
169
|
+
Ee as isNovaRenderGroupVisible,
|
|
170
|
+
R as isNovaStoreObject,
|
|
171
|
+
ge as layoutNovaTextInput,
|
|
172
|
+
u as mergeRenderDirtyFlags,
|
|
173
|
+
Pe as normalizeDecoratedProps,
|
|
174
|
+
ye as normalizeDefinedComponent,
|
|
175
|
+
C as normalizeNovaStorePhases,
|
|
176
|
+
fe as novaBoundsIntersects,
|
|
177
|
+
Me as novaCaretRectAtIndex,
|
|
178
|
+
Ie as novaSelectionRects,
|
|
179
|
+
be as novaTextIndexAtPoint,
|
|
180
|
+
_e as novaViewportToBounds,
|
|
181
|
+
xe as parseColor,
|
|
182
|
+
Po as parseNovaColor,
|
|
183
|
+
yo as parseNovaColorPacked,
|
|
184
|
+
De as patchNovaTemplateNode,
|
|
185
|
+
Oe as readDefinedComponent,
|
|
186
|
+
Be as readNovaComponentPath,
|
|
187
|
+
Ve as readNovaDecoratedComponent,
|
|
188
|
+
A as readNovaStoreMetadata,
|
|
189
|
+
T as readNovaStoreOptions,
|
|
190
|
+
Ge as reconcileNovaTemplateChildren,
|
|
191
|
+
Le as registerDefinedComponents,
|
|
192
|
+
ke as registerNovaSceneComponents,
|
|
193
|
+
Uo as resolveNovaAssetFillMode,
|
|
194
|
+
Fe as resolveNovaCursorValue,
|
|
195
|
+
He as resolveNovaMotionEasing,
|
|
196
|
+
So as resolveNovaRenderItemKind,
|
|
197
|
+
h as resolveNovaRenderPolicy,
|
|
198
|
+
je as resolveNovaRenderSemanticLayer,
|
|
199
|
+
mo as resolveNovaRenderStreamKind,
|
|
200
|
+
ze as resolveNovaRenderStreamStride,
|
|
201
|
+
E as resolveNovaRendererConfig,
|
|
202
|
+
g as resolveNovaTextRasterBucket,
|
|
203
|
+
P as resolveNovaTextRasterScale,
|
|
204
|
+
qe as resolveNovaTextSelectionOptions,
|
|
205
|
+
y as resolveSchemaBounds,
|
|
206
|
+
f as resolveSchemaItemBounds,
|
|
207
|
+
Ke as runNovaMotionPattern,
|
|
208
|
+
Ye as runNovaMotionPreset,
|
|
209
|
+
fo as setBounds,
|
|
210
|
+
Ro as setNovaRenderBatchSnapshotByRevision,
|
|
211
|
+
uo as splitGraphemes,
|
|
212
|
+
os as toSvgPathData,
|
|
213
|
+
M as trackNovaStoreRead,
|
|
214
|
+
Mo as transformBounds,
|
|
215
|
+
ss as translatePath,
|
|
216
|
+
Ue as unbindNovaRef,
|
|
217
|
+
We as unbindNovaRefMap,
|
|
218
|
+
Io as unionBounds,
|
|
219
|
+
we as updateNovaDecoratedComponent
|
|
220
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { createAnimator, Nova3DAnimationAction, Nova3DAnimator } from '../features/3d/animation/Animator.js';
|
|
2
|
+
export type { AnimationBlendMode3D, AnimationCrossFadeOptions3D, AnimationLoopMode3D, AnimationPlayOptions3D, AnimationStopOptions3D, AnimatorOptions3D } from '../features/3d/animation/Animator.js';
|
|
3
|
+
export { createAnimationClip, Nova3DAnimationClip, toAdditiveClip } from '../features/3d/animation/Clip.js';
|
|
4
|
+
export type { AdditiveClipOptions3D, AnimationChannel3D, AnimationClipOptions3D, AnimationSamples3D, AnimationTrackOptions3D } from '../features/3d/animation/Clip.js';
|
|
5
|
+
export { createAnimationGraph, Nova3DAnimationGraph } from '../features/3d/animation/Graph.js';
|
|
6
|
+
export type { AnimationBlendChild1DOptions3D, AnimationBlendChild2DOptions3D, AnimationBlendTreeOptions3D, AnimationConditionOperator3D, AnimationConditionOptions3D, AnimationGraphOptions3D, AnimationInterruptionSource3D, AnimationLayerOptions3D, AnimationParameterOptions3D, AnimationParameterType3D, AnimationStateOptions3D, AnimationTransitionOptions3D } from '../features/3d/animation/Graph.js';
|
|
7
|
+
export { createAnimationMask, Nova3DAnimationMask } from '../features/3d/animation/Mask.js';
|
|
8
|
+
export type { AnimationMaskMode3D, AnimationMaskOptions3D } from '../features/3d/animation/Mask.js';
|