@supuwoerc/masonry
    Preparing search index...

    Class SpinPlaceholderRenderer

    旋转加载动画占位符渲染器 Spinning loader animation placeholder renderer

    在图片加载过程中显示带有旋转圆点动画的占位图。 每个占位符独立管理动画状态和 Canvas 缓存。

    Displays a placeholder with spinning dots animation during image loading. Each placeholder independently manages animation state and canvas cache.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • 渲染一帧占位符动画并返回位图 Render one frame of placeholder animation and return bitmap

      Parameters

      • width: number

        占位符宽度(CSS 像素)| Placeholder width (CSS pixels)

      • height: number

        占位符高度(CSS 像素)| Placeholder height (CSS pixels)

      • id: string

        唯一标识(用于缓存动画状态)| Unique ID (for caching animation state)

      Returns Promise<ImageBitmap>

      当前帧的 ImageBitmap | Current frame ImageBitmap