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

    Class DiffUtils

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Compare two webcad toDb() outputs and return structured diff. Accepts either JSON string or plain object.

      Performs direct TS-level comparison mirroring the entity-matching logic used by filterUnmodifiedEntitiesForDiff in the save flow.

      Parameters

      • oldInput: string | object
      • newInput: string | object

      Returns Promise<IDiffResult>

    • Shortcut: diff current document against its original (opened) state. Requires that the document was opened from server and originalJson exists. Returns null if no baseline is available.

      Returns Promise<IDiffResult>