@haiyue/extensions
v0.1.0
Published
Stable optional HaiYue runtimes for 2D/3D animation, glTF, Spine, tilemaps, text, tweening, and grids.
Readme
@haiyue/extensions
Optional runtime capabilities for @haiyue/engine.
Stable entrypoints
@haiyue/extensions/gltf— glTF loading, runtime components, compatibility reports, materials, and the engine plugin.@haiyue/extensions/animation3d— source-independent 3D clips, mixers, pose buffers, layers, masks, events, state machines, and the HYA adapter.@haiyue/extensions/gltf-animation3d— adapts glTF clips to the source-independent Animation3D runtime.@haiyue/extensions/animation— HYA Animation2D components, systems, loading, rendering, and state-machine integration.@haiyue/extensions/hya-state-machine— the focused HYA 2D state-machine runtime.@haiyue/extensions/spine— Spine component, render system, plugin, and the stable worker interface seam.@haiyue/extensions/tilemap— Tilemap2D component, render system, and plugin.@haiyue/extensions/canvas-text— Canvas text component and render system.@haiyue/extensions/tween— Tween2D component and update system.@haiyue/extensions/grid— Grid2D component contract.
import { HaiyueEngine } from '@haiyue/engine';
import { createGltfPlugin } from '@haiyue/extensions/gltf';
import { Animation3DMixer } from '@haiyue/extensions/animation3d';
import { createGltfAnimation3DRuntime } from '@haiyue/extensions/gltf-animation3d';
const engine = new HaiyueEngine({ canvas: '#app' });
engine.installPlugin(createGltfPlugin());The package root remains a minimal experimental authoring base. Worker transport and low-level parsing are explicitly available from @haiyue/extensions/experimental/gltf-worker and @haiyue/extensions/experimental/spine-worker; they may change without stable-API compatibility guarantees.
WebGPU is required by the runtime; there is no WebGL fallback.
