1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.isPointInStroke = void 0;
|
4 | var get_properties_at_point_1 = require("./get-properties-at-point");
|
5 | /**
|
6 | * Checks if a given point is in the stroke of a path.
|
7 | */
|
8 | function isPointInStroke(pathInput, point) {
|
9 | var distance = (0, get_properties_at_point_1.getPropertiesAtPoint)(pathInput, point).distance;
|
10 | return Math.abs(distance) < 0.001; // 0.01 might be more permissive
|
11 | }
|
12 | exports.isPointInStroke = isPointInStroke;
|
13 | //# sourceMappingURL=is-point-in-stroke.js.map |
\ | No newline at end of file |