Documentation
IeSprite
IE sprite renderer: nine_slice / stretched / first frame of 16-wide animation strips, with tinting.
import { IeSprite } from "./index";
/**
* IeSprite 预览用例:焦炉整屏贴图(左上角 GUI 区裁剪)与 20×51 罐 overlay。
*/
export function IeSpriteDemo() {
return (
<div className="relative h-[180px] w-[200px] overflow-hidden">
<IeSprite
height={166}
name="coke_oven"
src={{ height: 166, width: 176, x: 0, y: 0 }}
width={176}
/>
<IeSprite left={150} name="sprites/coke_oven/tank_overlay" top={20} />
</div>
);
}
Install
$pnpm add @tennantite/ienpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ie/src/ie-sprite/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.