Equation Citator v1.3.7 Documentation
    Preparing search index...

    Service class for handling figure-related operations Similar to EquationServices but for images/figures

    Index

    Constructors

    Properties

    plugin: default

    Methods

    • Retrieves figures by their tags from a specified source file Handles both local and cross-file figure references.

      Parameters

      • figureTagsAll: string[]

        An array of figure tags to retrieve

      • sourcePath: string

        The path of the source file where the figures are referenced

      Returns Promise<RenderedFigure[]>

      A promise that resolves to an array of RenderedFigure objects

      1. The input is the figureTagsAll (which is 1^1.1, 1^3.2, 1^4.1) this function retrieve the corresponding figure information for each tag
      2. This operation query both footnoteCache and imageCache, so it should be optimized and only called when necessary
    • Resolve cross-file reference using footnotes

      Parameters

      • sourcePath: string
      • crossFile: string
      • footnotes: FootNote[] | undefined

      Returns { filename: null; path: null } | { filename: string | null; path: string }