From 47c2c5a6fb6a33e93a6e4cdfeae96f8080d06777 Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 16 Nov 2020 15:15:49 +1300 Subject: [PATCH] Adds support for empty arguments to getIntersections' typings --- gulp/typescript/typescript-definition-test.ts | 1 + src/path/PathItem.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gulp/typescript/typescript-definition-test.ts b/gulp/typescript/typescript-definition-test.ts index b8342697bb..e2738e2286 100644 --- a/gulp/typescript/typescript-definition-test.ts +++ b/gulp/typescript/typescript-definition-test.ts @@ -579,6 +579,7 @@ pathItem.divide(path, {}); pathItem.reorient(); pathItem.reorient(true); pathItem.reorient(true, true); +pathItem.getIntersections(); pathItem.getIntersections(path); pathItem.getIntersections(path, callback); pathItem.getCrossings(path); diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 255e1aafd1..0c646ba30f 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -288,7 +288,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ * of {@link CurveLocation} objects. {@link CompoundPath} items are also * supported. * - * @param {PathItem} path the other item to find the intersections with + * @param {PathItem} [path] the other item to find the intersections with * @param {Function} [include] a callback function that can be used to * filter out undesired locations right while they are collected. When * defined, it shall return {@true to include a location}.