Class Canvas

Hierarchy (view full)

Constructors

Properties

__jsonld: any
context: string
externalResource: IExternalResource
id: string
index: number
ranges: Range[]

Accessors

Methods

  • Parameters

    • Optional w: number

    Returns string

  • A function that wraps the getProperty function, which client code can use if it is needed to identify when the json value of a property is an IRI -- Internationalized Resource Identifier

    If the value of the json value is a bare string, then it will be wrapped in a json object with the string in the property 'id', additionally that property will have a property 'isIRI' which will be true for the literal string case, otherwise false meaning the returned getProperty should be parsed as before.

    Parameters

    • name: string

    Returns any

  • Returns null | ViewingHint

  • Returns the fragment placement values if a resourceAnnotation is placed on a canvas somewhere besides the full extent

    Parameters

    • id: any

    Returns any

  • Returns a given resource Annotation, based on a contained resource or body id

    Parameters

    • id: any

    Returns any