Replace nested types by typedefs
This commit is contained in:
@@ -178,6 +178,12 @@ export function calculateSourceExtentResolution(
|
|||||||
return sourceResolution;
|
return sourceResolution;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} ImageExtent
|
||||||
|
* @property {import("./extent.js").Extent} extent
|
||||||
|
* @property {HTMLCanvasElement|HTMLImageElement|HTMLVideoElement} image
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the source data into new canvas based on the triangulation.
|
* Renders the source data into new canvas based on the triangulation.
|
||||||
*
|
*
|
||||||
@@ -188,11 +194,8 @@ export function calculateSourceExtentResolution(
|
|||||||
* @param {import("./extent.js").Extent} sourceExtent Extent of the data source.
|
* @param {import("./extent.js").Extent} sourceExtent Extent of the data source.
|
||||||
* @param {number} targetResolution Target resolution.
|
* @param {number} targetResolution Target resolution.
|
||||||
* @param {import("./extent.js").Extent} targetExtent Target extent.
|
* @param {import("./extent.js").Extent} targetExtent Target extent.
|
||||||
* @param {import("./reproj/Triangulation.js").default} triangulation
|
* @param {import("./reproj/Triangulation.js").default} triangulation Calculated triangulation.
|
||||||
* Calculated triangulation.
|
* @param {Array<ImageExtent>} sources Array of sources.
|
||||||
* @param {Array<{extent: import("./extent.js").Extent,
|
|
||||||
* image: (HTMLCanvasElement|HTMLImageElement|HTMLVideoElement)}>} sources
|
|
||||||
* Array of sources.
|
|
||||||
* @param {number} gutter Gutter of the sources.
|
* @param {number} gutter Gutter of the sources.
|
||||||
* @param {boolean=} opt_renderEdges Render reprojection edges.
|
* @param {boolean=} opt_renderEdges Render reprojection edges.
|
||||||
* @param {object=} opt_contextOptions Properties to set on the canvas context.
|
* @param {object=} opt_contextOptions Properties to set on the canvas context.
|
||||||
|
|||||||
@@ -331,11 +331,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} xmleqlOptions
|
||||||
|
* @property {boolean} [includeWhiteSpace]
|
||||||
|
* @property {boolean} [ignoreElementOrder]
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the XML document sort of equals another XML document.
|
* Checks if the XML document sort of equals another XML document.
|
||||||
* @param {Object} obj The other object.
|
* @param {Object} obj The other object.
|
||||||
* @param {{includeWhiteSpace: (boolean|undefined),
|
* @param {xmleqlOptions} [options] The options.
|
||||||
* ignoreElementOrder: (boolean|undefined)}=} options The options.
|
|
||||||
* @return {expect.Assertion} The assertion.
|
* @return {expect.Assertion} The assertion.
|
||||||
*/
|
*/
|
||||||
expect.Assertion.prototype.xmleql = function (obj, options) {
|
expect.Assertion.prototype.xmleql = function (obj, options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user