@supuwoerc/masonry
    Preparing search index...

    Class Masonry

    Masonry 核心类,负责主线程端的协调工作 Masonry core class, responsible for main-thread orchestration

    职责包括:

    • 初始化 Web Worker 和 OffscreenCanvas
    • 管理主线程与 Worker 间的消息通信
    • 处理 ResizeObserver 响应容器尺寸变化
    • 协调占位符渲染和无限滚动加载

    Responsibilities include:

    • Initializing Web Worker and OffscreenCanvas
    • Managing message communication between main thread and worker
    • Handling ResizeObserver for container size changes
    • Coordinating placeholder rendering and infinite scroll loading
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    onError: (e: unknown) => void = ...

    错误处理回调 | Error handler callback

    onReady: ((ins: Masonry) => void) | null = null

    实例就绪回调 | Instance ready callback

    Methods

    • 销毁实例,释放所有资源 Destroy the instance and release all resources

      Returns void