geo-polygonize 0.35.1 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/geo_polygonize.wasm +0 -0
  2. package/dist/geo_polygonize_simd.wasm +0 -0
  3. package/dist/slim/cjs/bindings/ContainmentOptions.d.ts +0 -2
  4. package/dist/slim/cjs/bindings/NodingOptions.d.ts +0 -2
  5. package/dist/slim/cjs/bindings/PolygonizerOptions.d.ts +10 -17
  6. package/dist/slim/cjs/index.d.ts +0 -5
  7. package/dist/slim/cjs/index_slim.d.ts +0 -5
  8. package/dist/slim/cjs/index_slim.js +2 -7
  9. package/dist/slim/cjs/index_threads.d.ts +0 -5
  10. package/dist/slim/es/bindings/ContainmentOptions.d.ts +0 -2
  11. package/dist/slim/es/bindings/NodingOptions.d.ts +0 -2
  12. package/dist/slim/es/bindings/PolygonizerOptions.d.ts +10 -17
  13. package/dist/slim/es/index.d.ts +0 -5
  14. package/dist/slim/es/index_slim.d.ts +0 -5
  15. package/dist/slim/es/index_slim.js +2 -7
  16. package/dist/slim/es/index_threads.d.ts +0 -5
  17. package/dist/slim/pkg-wrapper/bindings/ContainmentOptions.d.ts +0 -2
  18. package/dist/slim/pkg-wrapper/bindings/NodingOptions.d.ts +0 -2
  19. package/dist/slim/pkg-wrapper/bindings/PolygonizerOptions.d.ts +10 -17
  20. package/dist/standard/cjs/bindings/ContainmentOptions.d.ts +0 -2
  21. package/dist/standard/cjs/bindings/NodingOptions.d.ts +0 -2
  22. package/dist/standard/cjs/bindings/PolygonizerOptions.d.ts +10 -17
  23. package/dist/standard/cjs/index.d.ts +0 -5
  24. package/dist/standard/cjs/index.js +4 -9
  25. package/dist/standard/cjs/index_slim.d.ts +0 -5
  26. package/dist/standard/cjs/index_threads.d.ts +0 -5
  27. package/dist/standard/es/bindings/ContainmentOptions.d.ts +0 -2
  28. package/dist/standard/es/bindings/NodingOptions.d.ts +0 -2
  29. package/dist/standard/es/bindings/PolygonizerOptions.d.ts +10 -17
  30. package/dist/standard/es/index.d.ts +0 -5
  31. package/dist/standard/es/index.js +4 -9
  32. package/dist/standard/es/index_slim.d.ts +0 -5
  33. package/dist/standard/es/index_threads.d.ts +0 -5
  34. package/dist/standard/pkg-wrapper/bindings/ContainmentOptions.d.ts +0 -2
  35. package/dist/standard/pkg-wrapper/bindings/NodingOptions.d.ts +0 -2
  36. package/dist/standard/pkg-wrapper/bindings/PolygonizerOptions.d.ts +10 -17
  37. package/dist/threads/es/bindings/ContainmentOptions.d.ts +0 -2
  38. package/dist/threads/es/bindings/NodingOptions.d.ts +0 -2
  39. package/dist/threads/es/bindings/PolygonizerOptions.d.ts +10 -17
  40. package/dist/threads/es/index.d.ts +0 -5
  41. package/dist/threads/es/index.js +2 -7
  42. package/dist/threads/es/index_slim.d.ts +0 -5
  43. package/dist/threads/es/index_threads.d.ts +0 -5
  44. package/dist/threads/pkg-wrapper/bindings/ContainmentOptions.d.ts +0 -2
  45. package/dist/threads/pkg-wrapper/bindings/NodingOptions.d.ts +0 -2
  46. package/dist/threads/pkg-wrapper/bindings/PolygonizerOptions.d.ts +10 -17
  47. package/package.json +3 -3
  48. package/dist/slim/cjs/bindings/IndexBackend.d.ts +0 -1
  49. package/dist/slim/cjs/bindings/SnapMode.d.ts +0 -1
  50. package/dist/slim/cjs/bindings/TargetProfile.d.ts +0 -1
  51. package/dist/slim/cjs/bindings/ZOptions.d.ts +0 -4
  52. package/dist/slim/cjs/bindings/ZPolicy.d.ts +0 -5
  53. package/dist/slim/es/bindings/IndexBackend.d.ts +0 -1
  54. package/dist/slim/es/bindings/SnapMode.d.ts +0 -1
  55. package/dist/slim/es/bindings/TargetProfile.d.ts +0 -1
  56. package/dist/slim/es/bindings/ZOptions.d.ts +0 -4
  57. package/dist/slim/es/bindings/ZPolicy.d.ts +0 -5
  58. package/dist/slim/pkg-wrapper/bindings/IndexBackend.d.ts +0 -1
  59. package/dist/slim/pkg-wrapper/bindings/SnapMode.d.ts +0 -1
  60. package/dist/slim/pkg-wrapper/bindings/TargetProfile.d.ts +0 -1
  61. package/dist/slim/pkg-wrapper/bindings/ZOptions.d.ts +0 -4
  62. package/dist/slim/pkg-wrapper/bindings/ZPolicy.d.ts +0 -5
  63. package/dist/standard/cjs/bindings/IndexBackend.d.ts +0 -1
  64. package/dist/standard/cjs/bindings/SnapMode.d.ts +0 -1
  65. package/dist/standard/cjs/bindings/TargetProfile.d.ts +0 -1
  66. package/dist/standard/cjs/bindings/ZOptions.d.ts +0 -4
  67. package/dist/standard/cjs/bindings/ZPolicy.d.ts +0 -5
  68. package/dist/standard/es/bindings/IndexBackend.d.ts +0 -1
  69. package/dist/standard/es/bindings/SnapMode.d.ts +0 -1
  70. package/dist/standard/es/bindings/TargetProfile.d.ts +0 -1
  71. package/dist/standard/es/bindings/ZOptions.d.ts +0 -4
  72. package/dist/standard/es/bindings/ZPolicy.d.ts +0 -5
  73. package/dist/standard/pkg-wrapper/bindings/IndexBackend.d.ts +0 -1
  74. package/dist/standard/pkg-wrapper/bindings/SnapMode.d.ts +0 -1
  75. package/dist/standard/pkg-wrapper/bindings/TargetProfile.d.ts +0 -1
  76. package/dist/standard/pkg-wrapper/bindings/ZOptions.d.ts +0 -4
  77. package/dist/standard/pkg-wrapper/bindings/ZPolicy.d.ts +0 -5
  78. package/dist/threads/es/bindings/IndexBackend.d.ts +0 -1
  79. package/dist/threads/es/bindings/SnapMode.d.ts +0 -1
  80. package/dist/threads/es/bindings/TargetProfile.d.ts +0 -1
  81. package/dist/threads/es/bindings/ZOptions.d.ts +0 -4
  82. package/dist/threads/es/bindings/ZPolicy.d.ts +0 -5
  83. package/dist/threads/pkg-wrapper/bindings/IndexBackend.d.ts +0 -1
  84. package/dist/threads/pkg-wrapper/bindings/SnapMode.d.ts +0 -1
  85. package/dist/threads/pkg-wrapper/bindings/TargetProfile.d.ts +0 -1
  86. package/dist/threads/pkg-wrapper/bindings/ZOptions.d.ts +0 -4
  87. package/dist/threads/pkg-wrapper/bindings/ZPolicy.d.ts +0 -5
Binary file
Binary file
@@ -1,6 +1,4 @@
1
- import type { IndexBackend } from "./IndexBackend";
2
1
  import type { TouchPolicy } from "./TouchPolicy";
3
2
  export type ContainmentOptions = {
4
3
  touch_policy: TouchPolicy;
5
- index_backend: IndexBackend;
6
4
  };
@@ -1,6 +1,4 @@
1
1
  import type { NodingBackend } from "./NodingBackend";
2
- import type { SnapMode } from "./SnapMode";
3
2
  export type NodingOptions = {
4
3
  backend: NodingBackend;
5
- snap_mode: SnapMode;
6
4
  };
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
4
4
  import type { NodingOptions } from "./NodingOptions";
5
5
  import type { ProvenanceOptions } from "./ProvenanceOptions";
6
6
  import type { SnapStrategy } from "./SnapStrategy";
7
- import type { TargetProfile } from "./TargetProfile";
8
- import type { TilingOptions } from "./TilingOptions";
9
- import type { ZOptions } from "./ZOptions";
10
7
  /**
11
8
  * The canonical configuration object for the `geo-polygonize` engine.
12
9
  *
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
14
11
  * topological robustness, feature output, containment policies, noding, and determinism.
15
12
  */
16
13
  export type PolygonizerOptions = {
17
- /**
18
- * Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
19
- *
20
- * Default: `TargetProfile::Native`
21
- */
22
- target: TargetProfile;
23
14
  /**
24
15
  * Whether to robustly node the input before polygonization.
25
16
  *
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
39
30
  * Default: `1e-10`
40
31
  */
41
32
  snap_grid_size: number;
33
+ /**
34
+ * Snap input segments to nearby vertices from exact-noded input linework before grid noding.
35
+ *
36
+ * A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
37
+ * `snap(line, unary_union(all_lines), tolerance)` step closely enough to
38
+ * close small CAD gaps before polygonization.
39
+ *
40
+ * Default: `0.0`
41
+ */
42
+ pre_snap_tolerance: number;
42
43
  /**
43
44
  * If `true`, only pure, outermost polygonal shells are returned.
44
45
  *
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
65
66
  * during face formation.
66
67
  */
67
68
  containment: ContainmentOptions;
68
- /**
69
- * Optional configuration for tiled, distributed execution across huge datasets.
70
- */
71
- tiling?: TilingOptions;
72
- /**
73
- * Configures Z-axis coordinate handling.
74
- */
75
- z: ZOptions;
76
69
  /**
77
70
  * Configuration for enforcing exact topological determinism.
78
71
  */
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
4
4
  export * from "./bindings/ContainmentOptions";
5
5
  export * from "./bindings/DeterminismOptions";
6
6
  export * from "./bindings/DiagnosticsOptions";
7
- export * from "./bindings/IndexBackend";
8
7
  export * from "./bindings/NodingBackend";
9
8
  export * from "./bindings/NodingOptions";
10
9
  export * from "./bindings/ProvenanceOptions";
11
- export * from "./bindings/SnapMode";
12
10
  export * from "./bindings/SnapStrategy";
13
- export * from "./bindings/TargetProfile";
14
11
  export * from "./bindings/TileOwnershipPolicy";
15
12
  export * from "./bindings/TilingOptions";
16
13
  export * from "./bindings/TouchPolicy";
17
- export * from "./bindings/ZOptions";
18
- export * from "./bindings/ZPolicy";
19
14
  export * from "./cfb";
20
15
  export default function init(_input?: any): Promise<typeof exports>;
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
4
4
  export * from "./bindings/ContainmentOptions";
5
5
  export * from "./bindings/DeterminismOptions";
6
6
  export * from "./bindings/DiagnosticsOptions";
7
- export * from "./bindings/IndexBackend";
8
7
  export * from "./bindings/NodingBackend";
9
8
  export * from "./bindings/NodingOptions";
10
9
  export * from "./bindings/ProvenanceOptions";
11
- export * from "./bindings/SnapMode";
12
10
  export * from "./bindings/SnapStrategy";
13
- export * from "./bindings/TargetProfile";
14
11
  export * from "./bindings/TileOwnershipPolicy";
15
12
  export * from "./bindings/TilingOptions";
16
13
  export * from "./bindings/TouchPolicy";
17
- export * from "./bindings/ZOptions";
18
- export * from "./bindings/ZPolicy";
19
14
  export * from "./cfb";
20
15
  export declare function initBest(scalarModule: any, simdModule?: any): Promise<typeof scalarExports>;
@@ -833,21 +833,16 @@ var scalarExports = /*#__PURE__*/Object.freeze({
833
833
  });
834
834
 
835
835
  const cfbRobustOptions = {
836
- target: "Native",
837
836
  node_input: true,
838
- snap_grid_size: 0.5,
837
+ snap_grid_size: 0.1,
838
+ pre_snap_tolerance: 0.5,
839
839
  extract_only_polygonal: false,
840
840
  snap_strategy: "GeosCompat",
841
841
  noding: {
842
842
  backend: "Snap",
843
- snap_mode: "FloatEpsilonDedup",
844
843
  },
845
844
  containment: {
846
845
  touch_policy: "AllowPointTouchDisallowEdgeShare",
847
- index_backend: "RStar",
848
- },
849
- z: {
850
- policy: "InterpolateAlongEdge",
851
846
  },
852
847
  determinism: {
853
848
  canonical_sort: true,
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
4
4
  export * from "./bindings/ContainmentOptions";
5
5
  export * from "./bindings/DeterminismOptions";
6
6
  export * from "./bindings/DiagnosticsOptions";
7
- export * from "./bindings/IndexBackend";
8
7
  export * from "./bindings/NodingBackend";
9
8
  export * from "./bindings/NodingOptions";
10
9
  export * from "./bindings/ProvenanceOptions";
11
- export * from "./bindings/SnapMode";
12
10
  export * from "./bindings/SnapStrategy";
13
- export * from "./bindings/TargetProfile";
14
11
  export * from "./bindings/TileOwnershipPolicy";
15
12
  export * from "./bindings/TilingOptions";
16
13
  export * from "./bindings/TouchPolicy";
17
- export * from "./bindings/ZOptions";
18
- export * from "./bindings/ZPolicy";
19
14
  export * from "./cfb";
20
15
  export default init;
@@ -1,6 +1,4 @@
1
- import type { IndexBackend } from "./IndexBackend";
2
1
  import type { TouchPolicy } from "./TouchPolicy";
3
2
  export type ContainmentOptions = {
4
3
  touch_policy: TouchPolicy;
5
- index_backend: IndexBackend;
6
4
  };
@@ -1,6 +1,4 @@
1
1
  import type { NodingBackend } from "./NodingBackend";
2
- import type { SnapMode } from "./SnapMode";
3
2
  export type NodingOptions = {
4
3
  backend: NodingBackend;
5
- snap_mode: SnapMode;
6
4
  };
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
4
4
  import type { NodingOptions } from "./NodingOptions";
5
5
  import type { ProvenanceOptions } from "./ProvenanceOptions";
6
6
  import type { SnapStrategy } from "./SnapStrategy";
7
- import type { TargetProfile } from "./TargetProfile";
8
- import type { TilingOptions } from "./TilingOptions";
9
- import type { ZOptions } from "./ZOptions";
10
7
  /**
11
8
  * The canonical configuration object for the `geo-polygonize` engine.
12
9
  *
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
14
11
  * topological robustness, feature output, containment policies, noding, and determinism.
15
12
  */
16
13
  export type PolygonizerOptions = {
17
- /**
18
- * Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
19
- *
20
- * Default: `TargetProfile::Native`
21
- */
22
- target: TargetProfile;
23
14
  /**
24
15
  * Whether to robustly node the input before polygonization.
25
16
  *
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
39
30
  * Default: `1e-10`
40
31
  */
41
32
  snap_grid_size: number;
33
+ /**
34
+ * Snap input segments to nearby vertices from exact-noded input linework before grid noding.
35
+ *
36
+ * A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
37
+ * `snap(line, unary_union(all_lines), tolerance)` step closely enough to
38
+ * close small CAD gaps before polygonization.
39
+ *
40
+ * Default: `0.0`
41
+ */
42
+ pre_snap_tolerance: number;
42
43
  /**
43
44
  * If `true`, only pure, outermost polygonal shells are returned.
44
45
  *
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
65
66
  * during face formation.
66
67
  */
67
68
  containment: ContainmentOptions;
68
- /**
69
- * Optional configuration for tiled, distributed execution across huge datasets.
70
- */
71
- tiling?: TilingOptions;
72
- /**
73
- * Configures Z-axis coordinate handling.
74
- */
75
- z: ZOptions;
76
69
  /**
77
70
  * Configuration for enforcing exact topological determinism.
78
71
  */
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
4
4
  export * from "./bindings/ContainmentOptions";
5
5
  export * from "./bindings/DeterminismOptions";
6
6
  export * from "./bindings/DiagnosticsOptions";
7
- export * from "./bindings/IndexBackend";
8
7
  export * from "./bindings/NodingBackend";
9
8
  export * from "./bindings/NodingOptions";
10
9
  export * from "./bindings/ProvenanceOptions";
11
- export * from "./bindings/SnapMode";
12
10
  export * from "./bindings/SnapStrategy";
13
- export * from "./bindings/TargetProfile";
14
11
  export * from "./bindings/TileOwnershipPolicy";
15
12
  export * from "./bindings/TilingOptions";
16
13
  export * from "./bindings/TouchPolicy";
17
- export * from "./bindings/ZOptions";
18
- export * from "./bindings/ZPolicy";
19
14
  export * from "./cfb";
20
15
  export default function init(_input?: any): Promise<typeof exports>;
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
4
4
  export * from "./bindings/ContainmentOptions";
5
5
  export * from "./bindings/DeterminismOptions";
6
6
  export * from "./bindings/DiagnosticsOptions";
7
- export * from "./bindings/IndexBackend";
8
7
  export * from "./bindings/NodingBackend";
9
8
  export * from "./bindings/NodingOptions";
10
9
  export * from "./bindings/ProvenanceOptions";
11
- export * from "./bindings/SnapMode";
12
10
  export * from "./bindings/SnapStrategy";
13
- export * from "./bindings/TargetProfile";
14
11
  export * from "./bindings/TileOwnershipPolicy";
15
12
  export * from "./bindings/TilingOptions";
16
13
  export * from "./bindings/TouchPolicy";
17
- export * from "./bindings/ZOptions";
18
- export * from "./bindings/ZPolicy";
19
14
  export * from "./cfb";
20
15
  export declare function initBest(scalarModule: any, simdModule?: any): Promise<typeof scalarExports>;
@@ -830,21 +830,16 @@ var scalarExports = /*#__PURE__*/Object.freeze({
830
830
  });
831
831
 
832
832
  const cfbRobustOptions = {
833
- target: "Native",
834
833
  node_input: true,
835
- snap_grid_size: 0.5,
834
+ snap_grid_size: 0.1,
835
+ pre_snap_tolerance: 0.5,
836
836
  extract_only_polygonal: false,
837
837
  snap_strategy: "GeosCompat",
838
838
  noding: {
839
839
  backend: "Snap",
840
- snap_mode: "FloatEpsilonDedup",
841
840
  },
842
841
  containment: {
843
842
  touch_policy: "AllowPointTouchDisallowEdgeShare",
844
- index_backend: "RStar",
845
- },
846
- z: {
847
- policy: "InterpolateAlongEdge",
848
843
  },
849
844
  determinism: {
850
845
  canonical_sort: true,
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
4
4
  export * from "./bindings/ContainmentOptions";
5
5
  export * from "./bindings/DeterminismOptions";
6
6
  export * from "./bindings/DiagnosticsOptions";
7
- export * from "./bindings/IndexBackend";
8
7
  export * from "./bindings/NodingBackend";
9
8
  export * from "./bindings/NodingOptions";
10
9
  export * from "./bindings/ProvenanceOptions";
11
- export * from "./bindings/SnapMode";
12
10
  export * from "./bindings/SnapStrategy";
13
- export * from "./bindings/TargetProfile";
14
11
  export * from "./bindings/TileOwnershipPolicy";
15
12
  export * from "./bindings/TilingOptions";
16
13
  export * from "./bindings/TouchPolicy";
17
- export * from "./bindings/ZOptions";
18
- export * from "./bindings/ZPolicy";
19
14
  export * from "./cfb";
20
15
  export default init;
@@ -1,6 +1,4 @@
1
- import type { IndexBackend } from "./IndexBackend";
2
1
  import type { TouchPolicy } from "./TouchPolicy";
3
2
  export type ContainmentOptions = {
4
3
  touch_policy: TouchPolicy;
5
- index_backend: IndexBackend;
6
4
  };
@@ -1,6 +1,4 @@
1
1
  import type { NodingBackend } from "./NodingBackend";
2
- import type { SnapMode } from "./SnapMode";
3
2
  export type NodingOptions = {
4
3
  backend: NodingBackend;
5
- snap_mode: SnapMode;
6
4
  };
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
4
4
  import type { NodingOptions } from "./NodingOptions";
5
5
  import type { ProvenanceOptions } from "./ProvenanceOptions";
6
6
  import type { SnapStrategy } from "./SnapStrategy";
7
- import type { TargetProfile } from "./TargetProfile";
8
- import type { TilingOptions } from "./TilingOptions";
9
- import type { ZOptions } from "./ZOptions";
10
7
  /**
11
8
  * The canonical configuration object for the `geo-polygonize` engine.
12
9
  *
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
14
11
  * topological robustness, feature output, containment policies, noding, and determinism.
15
12
  */
16
13
  export type PolygonizerOptions = {
17
- /**
18
- * Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
19
- *
20
- * Default: `TargetProfile::Native`
21
- */
22
- target: TargetProfile;
23
14
  /**
24
15
  * Whether to robustly node the input before polygonization.
25
16
  *
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
39
30
  * Default: `1e-10`
40
31
  */
41
32
  snap_grid_size: number;
33
+ /**
34
+ * Snap input segments to nearby vertices from exact-noded input linework before grid noding.
35
+ *
36
+ * A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
37
+ * `snap(line, unary_union(all_lines), tolerance)` step closely enough to
38
+ * close small CAD gaps before polygonization.
39
+ *
40
+ * Default: `0.0`
41
+ */
42
+ pre_snap_tolerance: number;
42
43
  /**
43
44
  * If `true`, only pure, outermost polygonal shells are returned.
44
45
  *
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
65
66
  * during face formation.
66
67
  */
67
68
  containment: ContainmentOptions;
68
- /**
69
- * Optional configuration for tiled, distributed execution across huge datasets.
70
- */
71
- tiling?: TilingOptions;
72
- /**
73
- * Configures Z-axis coordinate handling.
74
- */
75
- z: ZOptions;
76
69
  /**
77
70
  * Configuration for enforcing exact topological determinism.
78
71
  */
@@ -1,6 +1,4 @@
1
- import type { IndexBackend } from "./IndexBackend";
2
1
  import type { TouchPolicy } from "./TouchPolicy";
3
2
  export type ContainmentOptions = {
4
3
  touch_policy: TouchPolicy;
5
- index_backend: IndexBackend;
6
4
  };
@@ -1,6 +1,4 @@
1
1
  import type { NodingBackend } from "./NodingBackend";
2
- import type { SnapMode } from "./SnapMode";
3
2
  export type NodingOptions = {
4
3
  backend: NodingBackend;
5
- snap_mode: SnapMode;
6
4
  };
@@ -4,9 +4,6 @@ import type { DiagnosticsOptions } from "./DiagnosticsOptions";
4
4
  import type { NodingOptions } from "./NodingOptions";
5
5
  import type { ProvenanceOptions } from "./ProvenanceOptions";
6
6
  import type { SnapStrategy } from "./SnapStrategy";
7
- import type { TargetProfile } from "./TargetProfile";
8
- import type { TilingOptions } from "./TilingOptions";
9
- import type { ZOptions } from "./ZOptions";
10
7
  /**
11
8
  * The canonical configuration object for the `geo-polygonize` engine.
12
9
  *
@@ -14,12 +11,6 @@ import type { ZOptions } from "./ZOptions";
14
11
  * topological robustness, feature output, containment policies, noding, and determinism.
15
12
  */
16
13
  export type PolygonizerOptions = {
17
- /**
18
- * Determines the execution environment profile (e.g., Native, WasmSingleThread, WasmThreads).
19
- *
20
- * Default: `TargetProfile::Native`
21
- */
22
- target: TargetProfile;
23
14
  /**
24
15
  * Whether to robustly node the input before polygonization.
25
16
  *
@@ -39,6 +30,16 @@ export type PolygonizerOptions = {
39
30
  * Default: `1e-10`
40
31
  */
41
32
  snap_grid_size: number;
33
+ /**
34
+ * Snap input segments to nearby vertices from exact-noded input linework before grid noding.
35
+ *
36
+ * A value of `0.0` disables pre-snap. This mirrors the CFB/Shapely
37
+ * `snap(line, unary_union(all_lines), tolerance)` step closely enough to
38
+ * close small CAD gaps before polygonization.
39
+ *
40
+ * Default: `0.0`
41
+ */
42
+ pre_snap_tolerance: number;
42
43
  /**
43
44
  * If `true`, only pure, outermost polygonal shells are returned.
44
45
  *
@@ -65,14 +66,6 @@ export type PolygonizerOptions = {
65
66
  * during face formation.
66
67
  */
67
68
  containment: ContainmentOptions;
68
- /**
69
- * Optional configuration for tiled, distributed execution across huge datasets.
70
- */
71
- tiling?: TilingOptions;
72
- /**
73
- * Configures Z-axis coordinate handling.
74
- */
75
- z: ZOptions;
76
69
  /**
77
70
  * Configuration for enforcing exact topological determinism.
78
71
  */
@@ -4,17 +4,12 @@ export * from "./bindings/PolygonizerOptions";
4
4
  export * from "./bindings/ContainmentOptions";
5
5
  export * from "./bindings/DeterminismOptions";
6
6
  export * from "./bindings/DiagnosticsOptions";
7
- export * from "./bindings/IndexBackend";
8
7
  export * from "./bindings/NodingBackend";
9
8
  export * from "./bindings/NodingOptions";
10
9
  export * from "./bindings/ProvenanceOptions";
11
- export * from "./bindings/SnapMode";
12
10
  export * from "./bindings/SnapStrategy";
13
- export * from "./bindings/TargetProfile";
14
11
  export * from "./bindings/TileOwnershipPolicy";
15
12
  export * from "./bindings/TilingOptions";
16
13
  export * from "./bindings/TouchPolicy";
17
- export * from "./bindings/ZOptions";
18
- export * from "./bindings/ZPolicy";
19
14
  export * from "./cfb";
20
15
  export default function init(_input?: any): Promise<typeof exports>;