some type corrections
This commit is contained in:
@@ -39,10 +39,10 @@ export function VOID() {}
|
|||||||
export function memoizeOne(fn) {
|
export function memoizeOne(fn) {
|
||||||
let called = false;
|
let called = false;
|
||||||
|
|
||||||
/** @type ReturnType */
|
/** @type {ReturnType} */
|
||||||
let lastResult;
|
let lastResult;
|
||||||
|
|
||||||
/** @type Array<any> */
|
/** @type {Array<any>} */
|
||||||
let lastArgs;
|
let lastArgs;
|
||||||
|
|
||||||
let lastThis;
|
let lastThis;
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @type import('./Layer').WebGLWorkerGenerateBuffersMessage */
|
/** @type {import('./Layer').WebGLWorkerGenerateBuffersMessage} */
|
||||||
const message = {
|
const message = {
|
||||||
type: WebGLWorkerMessageType.GENERATE_BUFFERS,
|
type: WebGLWorkerMessageType.GENERATE_BUFFERS,
|
||||||
renderInstructions: this.renderInstructions_.buffer,
|
renderInstructions: this.renderInstructions_.buffer,
|
||||||
@@ -412,7 +412,7 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
|
|||||||
this.worker_.postMessage(message, [this.renderInstructions_.buffer]);
|
this.worker_.postMessage(message, [this.renderInstructions_.buffer]);
|
||||||
this.renderInstructions_ = null;
|
this.renderInstructions_ = null;
|
||||||
|
|
||||||
/** @type import('./Layer').WebGLWorkerGenerateBuffersMessage */
|
/** @type {import('./Layer').WebGLWorkerGenerateBuffersMessage} */
|
||||||
if (this.hitDetectionEnabled_) {
|
if (this.hitDetectionEnabled_) {
|
||||||
const hitMessage = {
|
const hitMessage = {
|
||||||
type: WebGLWorkerMessageType.GENERATE_BUFFERS,
|
type: WebGLWorkerMessageType.GENERATE_BUFFERS,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import TileImage from './TileImage.js';
|
|||||||
* Higher values can increase reprojection performance, but decrease precision.
|
* Higher values can increase reprojection performance, but decrease precision.
|
||||||
* @property {Array<number>} [resolutions] Supported resolutions as given in IIIF 'scaleFactors'
|
* @property {Array<number>} [resolutions] Supported resolutions as given in IIIF 'scaleFactors'
|
||||||
* @property {import("../size.js").Size} size Size of the image [width, height].
|
* @property {import("../size.js").Size} size Size of the image [width, height].
|
||||||
* @property {import("../size.js").Size[]} [sizes] Supported scaled image sizes.
|
* @property {Array<import("../size.js").Size>} [sizes] Supported scaled image sizes.
|
||||||
* Content of the IIIF info.json 'sizes' property, but as array of Size objects.
|
* Content of the IIIF info.json 'sizes' property, but as array of Size objects.
|
||||||
* @property {import("./State.js").default} [state] Source state.
|
* @property {import("./State.js").default} [state] Source state.
|
||||||
* @property {Array<string>} [supports=[]] Supported IIIF region and size calculation
|
* @property {Array<string>} [supports=[]] Supported IIIF region and size calculation
|
||||||
|
|||||||
Reference in New Issue
Block a user