WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface DocumentCachingEventArgs

    文档缓存中事件参数(可取消)

    interface DocumentCachingEventArgs {
        timestamp: number;
        customData?: any;
        cancel: boolean;
        cancelReason?: string;
        document: CadDocument;
        cacheKey: string;
        storageType: "file" | "indexedDB" | "localStorage";
        isAutoSave: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    timestamp: number

    事件发生的时间戳

    customData?: any

    自定义数据,二次开发者可以附加额外信息

    cancel: boolean

    设置为 true 将取消该操作

    cancelReason?: string

    取消原因说明

    document: CadDocument

    要缓存的文档

    cacheKey: string

    缓存键名

    storageType: "file" | "indexedDB" | "localStorage"

    缓存存储类型

    isAutoSave: boolean

    是否自动保存触发