@@ -82,6 +82,7 @@ const AlternateOpNames = {
8282 *
8383 * @param {object[] } seglist A PolyBool segment list.
8484 * @returns {geo.polygonList|undefined } A polygon list.
85+ * @private
8586 */
8687function seglistToPolygonList ( seglist ) {
8788 // This single line doesn't arrange holes correctly
@@ -157,6 +158,7 @@ function seglistToPolygonList(seglist) {
157158 * around 0.11 mm in ground distance.
158159 * @param {object } seglist A seglist array as used by the polybool library.
159160 * @returns {object } A seglist array.
161+ * @private
160162 */
161163function polygonOperationSeglist ( op , epsilon , seglist ) {
162164 op = 'select' + op . charAt ( 0 ) . toUpperCase ( ) + op . slice ( 1 ) ;
@@ -223,6 +225,7 @@ function polygonOperationSeglist(op, epsilon, seglist) {
223225 * @param {geo.util.polyop.spec } [opts] Options for the operation. Only used
224226 * if poly is an object with a toPolygonList method.
225227 * @returns {geo.polygonList } A list of polygons.
228+ * @memberof geo.util.polyops
226229 */
227230function toPolygonList ( poly , mode , opts ) {
228231 mode = mode || { } ;
@@ -292,6 +295,7 @@ function toPolygonList(poly, mode, opts) {
292295 * @param {geo.util.polyop.spec } [opts] Options for the operation. Only used
293296 * if ``mode.style`` is an object with a fromPolygonList method.
294297 * @returns {geo.polygonAny } A polygon in one of several formats.
298+ * @memberof geo.util.polyops
295299 */
296300function fromPolygonList ( poly , mode , opts ) {
297301 if ( mode . style . fromPolygonList ) {
@@ -316,6 +320,7 @@ function fromPolygonList(poly, mode, opts) {
316320/**
317321 * Use a minimum style for output to include all of the results.
318322 *
323+ * @private
319324 * @param {geo.polygonList } polylist A list of polygons.
320325 * @param {string } style the proposed style.
321326 * @returns {string } The preferred style.
@@ -346,6 +351,7 @@ function minimumPolygonStyle(polylist, style) {
346351 * Generate the correspondence between the source polygons and the output
347352 * polygons. A polygon corresponds if it has at least two points in common.
348353 *
354+ * @private
349355 * @param {geo.polygonList } poly1 First set of source polygons.
350356 * @param {geo.polygonList } poly2 Second set of source polygons.
351357 * @param {geo.polygonList } newpoly Output polygons.
@@ -408,6 +414,7 @@ function generateCorrespondence(poly1, poly2, newpoly, results) {
408414/**
409415 * Perform a general operation of a set of polygons.
410416 *
417+ * @private
411418 * @param {string } op The operation to handle. One of union, intersect,
412419 * difference, or xor.
413420 * @param {geo.polygonAny|geo.util.polyop.spec } poly1 Either the first polygon
@@ -483,6 +490,7 @@ function generalOperationProcess(op, poly1, poly2, opts) {
483490/**
484491 * Generate a polygon function for a specific operation.
485492 *
493+ * @private
486494 * @param {string } op The operation to handle. One of union, intersect,
487495 * difference, or xor.
488496 * @returns {function } a function for the polygons.
0 commit comments