We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents beb5f5c + 42b4d97 commit 2138ec1Copy full SHA for 2138ec1
1 file changed
src/display/api.js
@@ -1242,10 +1242,16 @@ class PDFDocumentProxy {
1242
* @property {boolean} [isEditing] - Render the page in editing mode.
1243
* @property {boolean} [recordOperations] - Record the dependencies and bounding
1244
* boxes of all PDF operations that render onto the canvas.
1245
- * @property {(index: number) => boolean} [operationsFilter] - If provided, only
+ * @property {OperationsFilter} [operationsFilter] - If provided, only
1246
* run for which this function returns `true`.
1247
*/
1248
1249
+/**
1250
+ * @callback OperationsFilter
1251
+ * @param {number} index - The index of the operation.
1252
+ * @returns {boolean} If false, the operation is ignored.
1253
+ */
1254
+
1255
/**
1256
* Page getOperatorList parameters.
1257
*
0 commit comments