Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

OsNameOptions

OsNameOptions: "windows" | "macos" | "unix" | "linux" | "unknown"

Variables

Const init

init: void = ...

Const pixelDensityRatio

pixelDensityRatio: number = ...

A ratio comparing the device screen's pixel density to the canvas's backing store pixel density, clamped to a minimum of 1. Defaults to 1 if canvas isn't supported by the browser.

member

{Number} pixelDensityRatio

memberof

OpenSeadragon

Const supportsAddEventListener

supportsAddEventListener: boolean = ...

True if the browser supports the EventTarget.addEventListener() method

member

{Boolean} supportsAddEventListener

Const supportsCanvas

supportsCanvas: boolean = ...

True if the browser supports the HTML5 canvas element

member

{Boolean} supportsCanvas

Const supportsRemoveEventListener

supportsRemoveEventListener: boolean = ...

True if the browser supports the EventTarget.removeEventListener() method

member

{Boolean} supportsRemoveEventListener

Functions

Const $

  • $<K>(selector: K, doc?: Document): Optional<HTMLElementTagNameMap[K]>
  • Type parameters

    • K: "object" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dir" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "font" | "footer" | "form" | "frame" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "marquee" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr"

    Parameters

    • selector: K
    • doc: Document = ...

    Returns Optional<HTMLElementTagNameMap[K]>

Const $$

  • $$<K>(selector: K, doc?: Document): NodeListOf<HTMLElementTagNameMap[K]>
  • Type parameters

    • K: "object" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dir" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "font" | "footer" | "form" | "frame" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "marquee" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr"

    Parameters

    • selector: K
    • doc: Document = ...

    Returns NodeListOf<HTMLElementTagNameMap[K]>

Const addClass

  • addClass(obj: any, clazz: string): void

Const attr

  • attr(elem: any, name: string, value: string): Optional<string>

Const autolink

  • autolink(data: string): string

Const border

Const borderBottom

Const borderColor

Const borderLeft

Const borderRight

Const borderTop

Const byId

Const changeParamValue

  • changeParamValue(param: string, value: any): void

Const cleanNode

  • cleanNode<T>(elem: T): void

Const clearAllChildren

  • clearAllChildren(elem: Node): void

Const closeIconColor

  • closeIconColor(__namedParameters: StyledProps): string

Const colWidths

  • colWidths(rows: CSSStyleDeclaration[][]): number[]

Const combineHtmlElementsIntoHtmlDocumentString

  • combineHtmlElementsIntoHtmlDocumentString(bodyContent: string, css?: string, htmlMeta?: string): string
  • Parameters

    • bodyContent: string
    • Optional css: string
    • Optional htmlMeta: string

    Returns string

Const contextMenuShadow

  • contextMenuShadow(__namedParameters: StyledProps): string

Const create

  • create(elem: string): HTMLElement

Const createDiv

Const cssStyleLinkGenerator

  • cssStyleLinkGenerator(href: string): string

Const cssStyleTagGenerator

  • cssStyleTagGenerator(content: string): string

Const drawTable

  • drawTable(rows: CSSStyleDeclaration[][]): string

Const elem2span

  • elem2span<T>(elem: T): void
  • Type parameters

    • T: HTMLElement

    Parameters

    • elem: T

    Returns void

Const eventuality

  • eventuality(that: any): void

Const fade

  • fade<T>(elem: T, period: number): void
  • Type parameters

    • T: HTMLElement

    Parameters

    • elem: T
    • period: number

    Returns void

Const findBy

  • findBy<K>(id: string, el: K): Optional<HTMLCollectionOf<HTMLElementTagNameMap[K]>>
  • Type parameters

    • K: "object" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dir" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "font" | "footer" | "form" | "frame" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "marquee" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr"

    Parameters

    • id: string
    • el: K

    Returns Optional<HTMLCollectionOf<HTMLElementTagNameMap[K]>>

Const findById

  • findById(id: string): Optional<HTMLElement>

Const firstAncestor

  • firstAncestor<T>(elem: T, tagName: string): T
  • Type parameters

    • T: Element

    Parameters

    • elem: T
    • tagName: string

    Returns T

Const flexCenter

  • flexCenter(): string

Const fullHeight

  • fullHeight(elem: any): number

Const fullWidth

  • fullWidth(elem: any): number

Const getAnchorFromURI

  • getAnchorFromURI(uri: string): string

Const getBodyScrollTop

  • getBodyScrollTop(): number

Const getCssPropertyWithVendorPrefix

  • getCssPropertyWithVendorPrefix(property: string): string
  • Returns the property with the correct vendor prefix appended.

    Parameters

    • property: string

      the property name

    Returns string

    the property with the correct prefix or null if not supported.

Const getElemText

  • getElemText<T>(elem: T): string
  • Type parameters

    • T: HTMLElement

    Parameters

    • elem: T

    Returns string

Const getElementBounds

  • getElementBounds<T>(elem: T): { height: number; left: number; top: number; width: number }
  • Type parameters

    • T: HTMLElement

    Parameters

    • elem: T

    Returns { height: number; left: number; top: number; width: number }

    • height: number
    • left: number
    • top: number
    • width: number

Const getElements

  • getElements(...args: any[]): any

Const getElementsByAttribute

  • getElementsByAttribute<T>(elem: T, att: string, value: any): T[]
  • Type parameters

    • T: Node

    Parameters

    • elem: T
    • att: string
    • value: any

    Returns T[]

Const getElementsByClass

  • getElementsByClass<T>(searchClass: string, node: any, tag: string): T[]

Const getHeight

  • getHeight(elem: any): Optional<number>

Const getMousePosition

  • getMousePosition(event: any): { x: number; y: number }
  • Gets the position of the mouse on the screen for a given event.

    function

    Parameters

    • event: any

    Returns { x: number; y: number }

    • x: number
    • y: number

Const getOffset

  • getOffset<T>(elem: T): { left: any; top: any }
  • Type parameters

    • T: Element

    Parameters

    • elem: T

    Returns { left: any; top: any }

    • left: any
    • top: any

Const getOsName

Const getPrintStyleForExports

  • getPrintStyleForExports(): string

Const getStyle

  • getStyle(elem: any, name: string): Optional<string>

Const getWidth

Const getX

  • getX(e: any): number

Const getY

  • getY(e: any): number

Const hasAttribute

  • hasAttribute(elem: Element, name: string): boolean

Const hasClass

  • hasClass(name: string, type: any): HTMLElementTagNameMap[]
  • Parameters

    • name: string
    • type: any

    Returns HTMLElementTagNameMap[]

Const hasPlugin

  • hasPlugin(name: string): boolean

Const inputStyle

Const insertAt

  • insertAt<T>(parent: T, child: T, num: number): void
  • Type parameters

    • T: Node

    Parameters

    • parent: T
    • child: T
    • num: number

    Returns void

Const isCanvasTainted

  • isCanvasTainted(canvas: any): boolean
  • Test whether the submitted canvas is tainted or not.

    argument

    {Canvas} canvas The canvas to test.

    Parameters

    • canvas: any

    Returns boolean

    True if the canvas is tainted.

Const isChildNode

  • isChildNode(parent?: Optional<Node>, child?: Optional<Node | EventTarget>): boolean

Const isIOSDevice

  • isIOSDevice(): boolean

Const isIdExists

  • isIdExists(id: string): boolean

Const isInternalLink

  • isInternalLink(link: string): boolean

Const make

  • make<K>(tagName: K, classNames?: string[], attributes?: {}): any
  • Helper for making Elements with attributes

    Type parameters

    • K: "object" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dir" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "font" | "footer" | "form" | "frame" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "marquee" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr"

    Parameters

    • tagName: K

      new Element tag name

    • classNames: string[] = ...

      list or name of CSS classname(s)

    • attributes: {} = ...

      any attributes

    Returns any

Const makeElement

  • makeElement(name: string, ...attrs: any[]): HTMLElement
  • Creates specified element with specified attributes

    Parameters

    • name: string

      Type of an element to create

    • Rest ...attrs: any[]

    Returns HTMLElement

    Newly created element

Const noteDetailIconColor

  • noteDetailIconColor(__namedParameters: StyledProps): string

Const noteListIconColor

  • noteListIconColor(__namedParameters: StyledProps): string

Const pageHeight

  • pageHeight(): number

Const pageWidth

  • pageWidth(): number

Const pageX

  • pageX(elem: any): any

Const pageY

  • pageY(elem: any): any

Const parentX

  • parentX(elem: any): any

Const parentY

  • parentY(elem: any): any

Const posX

Const posY

Const removeClass

  • removeClass(obj: any, clazz: string): void

Const removeClass2

  • removeClass2(elementId: string, className: string): void
  • Remove the specified CSS class from the element.

    function

    Parameters

    • elementId: string

      element id

    • className: string

    Returns void

Const replaceUrlWithHtmlLinks

  • replaceUrlWithHtmlLinks(text: string, title?: string): string

Const resetCSS

  • resetCSS(elem: any, prop: any): any

Const restoreCSS

  • restoreCSS(elem: any, prop: any): void

Const rowHeights

  • rowHeights(rows: CSSStyleDeclaration[][]): number[]

Const scrollX

  • scrollX(): number

Const scrollY

  • scrollY(): number

Const setOpacity

  • setOpacity(elem: any, level: any): void

Const setX

  • setX(elem: any, pos: number): void

Const setY

  • setY(elem: any, pos: number): void

Const sortUnorderedList

  • sortUnorderedList(id: any, sortDescending?: boolean): void
  • Parameters

    • id: any
    • sortDescending: boolean = false

    Returns void

Const supportsInputOfType

  • supportsInputOfType(type: string): boolean
  • let supportsSlider = supportsInputOfType('range'); let supportsColorpicker = supportsInputOfType('color');

    Parameters

    • type: string

    Returns boolean

Const supportsNativeJSON

  • supportsNativeJSON(): boolean

Const tag

  • tag(name: string, elem: Element): any

Const tagBackgroundColor

Const testKey

  • testKey<T>(e: T): boolean
  • Type parameters

    • T: KeyboardEvent

    Parameters

    • e: T

    Returns boolean

Const textContent

  • textContent<T>(elem: T): string

Const textOverflow

  • textOverflow(): string

Const toggle

  • toggle<T>(elem: T): void
  • Type parameters

    • T: HTMLElement

    Parameters

    • elem: T

    Returns void

Const windowHeight

  • windowHeight(): number

Const windowWidth

  • windowWidth(): number

Const wrapContentInThemeHtml

  • wrapContentInThemeHtml(content: string, generalThemeName: string): string
  • Parameters

    • content: string
    • generalThemeName: string

    Returns string

Const wrapElement

  • wrapElement<T>(element: T, wrapper: any, ...attributes: any[]): void
  • Wraps element with another element

    Type parameters

    Parameters

    • element: T

      Element to wrap

    • wrapper: any

      Element to wrap with

    • Rest ...attributes: any[]

    Returns void

    wrapper