brepjs 18.154.0 → 18.155.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.
- package/dist/brepjs.cjs +278 -227
- package/dist/brepjs.js +278 -227
- package/dist/csg/edit.d.ts +1 -0
- package/dist/csg/serialize.d.ts +2 -1
- package/package.json +1 -1
package/dist/csg/edit.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export declare function replaceNode(root: IRNode, pred: NodePredicate, replaceme
|
|
|
4
4
|
/** Visits each DISTINCT node once (identity-deduplicated), so a shared
|
|
5
5
|
* subtree is reported once and a self-referencing DAG walks in linear time. */
|
|
6
6
|
export declare function forEachNode(root: IRNode, fn: (node: IRNode) => void): void;
|
|
7
|
+
export declare function childrenOf(n: IRNode): readonly IRNode[];
|
|
7
8
|
export declare function nodeCount(root: IRNode): number;
|
package/dist/csg/serialize.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Result } from '../core/result.js';
|
|
2
2
|
import { IRNode } from './types.js';
|
|
3
|
-
export declare const CSG_VERSION =
|
|
3
|
+
export declare const CSG_VERSION = 8;
|
|
4
4
|
export interface CsgEnvelope {
|
|
5
5
|
readonly csgVersion: number;
|
|
6
|
+
readonly defs?: readonly unknown[];
|
|
6
7
|
readonly root: unknown;
|
|
7
8
|
}
|
|
8
9
|
export declare function toJSON(node: IRNode): CsgEnvelope;
|