Skip to content

Commit

Permalink
Export SmartIntersection module to expose its usage in polygon-offset
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbol99 committed Aug 29, 2023
1 parent 4d007c6 commit 4b339ea
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
16 changes: 16 additions & 0 deletions dist/main.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,21 @@ function insertBetweenIntPoints(int_point1, int_point2, new_edge) {
edge_after.prev = new_edge;
}

var smart_intersections = /*#__PURE__*/Object.freeze({
__proto__: null,
addToIntPoints: addToIntPoints,
calculateInclusionFlags: calculateInclusionFlags,
filterDuplicatedIntersections: filterDuplicatedIntersections,
getSortedArray: getSortedArray,
getSortedArrayOnLine: getSortedArrayOnLine,
initializeInclusionFlags: initializeInclusionFlags,
insertBetweenIntPoints: insertBetweenIntPoints,
intPointsPoolCount: intPointsPoolCount,
setOverlappingFlags: setOverlappingFlags,
sortIntersections: sortIntersections,
splitByIntersections: splitByIntersections
});

/**
* Created by Alex Bol on 12/02/2018.
*/
Expand Down Expand Up @@ -8745,6 +8760,7 @@ exports.Polygon = Polygon;
exports.Ray = Ray;
exports.Relations = Relations;
exports.Segment = Segment;
exports.SmartIntersections = smart_intersections;
exports.Utils = Utils$1;
exports.Vector = Vector$1;
exports.arc = arc;
Expand Down
17 changes: 16 additions & 1 deletion dist/main.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,21 @@ function insertBetweenIntPoints(int_point1, int_point2, new_edge) {
edge_after.prev = new_edge;
}

var smart_intersections = /*#__PURE__*/Object.freeze({
__proto__: null,
addToIntPoints: addToIntPoints,
calculateInclusionFlags: calculateInclusionFlags,
filterDuplicatedIntersections: filterDuplicatedIntersections,
getSortedArray: getSortedArray,
getSortedArrayOnLine: getSortedArrayOnLine,
initializeInclusionFlags: initializeInclusionFlags,
insertBetweenIntPoints: insertBetweenIntPoints,
intPointsPoolCount: intPointsPoolCount,
setOverlappingFlags: setOverlappingFlags,
sortIntersections: sortIntersections,
splitByIntersections: splitByIntersections
});

/**
* Created by Alex Bol on 12/02/2018.
*/
Expand Down Expand Up @@ -8717,4 +8732,4 @@ Flatten.Distance = Distance;
Flatten.BooleanOperations = BooleanOperations;
Flatten.Relations = Relations;

export { Arc, BOUNDARY$1 as BOUNDARY, BooleanOperations, Box, CCW, CW, Circle$1 as Circle, Distance, Edge, errors as Errors, Face, INSIDE$2 as INSIDE, Inversion, Line$1 as Line, Matrix, Multiline, ORIENTATION, OUTSIDE$1 as OUTSIDE, PlanarSet, Point$1 as Point, Polygon, Ray, Relations, Segment, Utils$1 as Utils, Vector$1 as Vector, arc, box, circle, Flatten as default, inversion, line, matrix, multiline, point, polygon, ray, ray_shoot, segment, vector$1 as vector };
export { Arc, BOUNDARY$1 as BOUNDARY, BooleanOperations, Box, CCW, CW, Circle$1 as Circle, Distance, Edge, errors as Errors, Face, INSIDE$2 as INSIDE, Inversion, Line$1 as Line, Matrix, Multiline, ORIENTATION, OUTSIDE$1 as OUTSIDE, PlanarSet, Point$1 as Point, Polygon, Ray, Relations, Segment, smart_intersections as SmartIntersections, Utils$1 as Utils, Vector$1 as Vector, arc, box, circle, Flatten as default, inversion, line, matrix, multiline, point, polygon, ray, ray_shoot, segment, vector$1 as vector };
16 changes: 16 additions & 0 deletions dist/main.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,21 @@
edge_after.prev = new_edge;
}

var smart_intersections = /*#__PURE__*/Object.freeze({
__proto__: null,
addToIntPoints: addToIntPoints,
calculateInclusionFlags: calculateInclusionFlags,
filterDuplicatedIntersections: filterDuplicatedIntersections,
getSortedArray: getSortedArray,
getSortedArrayOnLine: getSortedArrayOnLine,
initializeInclusionFlags: initializeInclusionFlags,
insertBetweenIntPoints: insertBetweenIntPoints,
intPointsPoolCount: intPointsPoolCount,
setOverlappingFlags: setOverlappingFlags,
sortIntersections: sortIntersections,
splitByIntersections: splitByIntersections
});

/**
* Created by Alex Bol on 12/02/2018.
*/
Expand Down Expand Up @@ -8747,6 +8762,7 @@
exports.Ray = Ray;
exports.Relations = Relations;
exports.Segment = Segment;
exports.SmartIntersections = smart_intersections;
exports.Utils = Utils$1;
exports.Vector = Vector$1;
exports.arc = arc;
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as Utils from "./src/utils/utils";
import * as Errors from "./src/utils/errors";
import * as BooleanOperations from './src/algorithms/boolean_op';
import * as Relations from './src/algorithms/relation';
import * as SmartIntersections from './src/data_structures/smart_intersections';

export {Utils, Errors};
export {Matrix, matrix} from './src/classes/matrix';
Expand All @@ -28,6 +29,7 @@ export {Inversion, inversion} from './src/classes/inversion';
export {Distance} from './src/algorithms/distance';
export {BooleanOperations};
export {Relations};
export {SmartIntersections};

Flatten.BooleanOperations = BooleanOperations;
Flatten.Relations = Relations;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flatten-js/core",
"version": "1.4.1",
"version": "1.4.2",
"description": "Javascript library for 2d geometry",
"main": "dist/main.cjs.js",
"umd:main": "dist/main.umd.js",
Expand Down

0 comments on commit 4b339ea

Please sign in to comment.