@pascal-app/ifc-converter 0.1.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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @pascal-app/ifc-converter
2
+
3
+ Pure conversion logic for IFC → Pascal scene graphs. Takes a `Uint8Array` of
4
+ IFC bytes, returns `{ nodes, rootNodeIds, stats }` shaped against
5
+ `@pascal-app/core` schemas.
6
+
7
+ No DOM, no React. The UI lives in `apps/ifc-converter`.
@@ -0,0 +1,16 @@
1
+ import { type AnyNode, type AnyNodeId } from '@pascal-app/core';
2
+ export type PascalNode = AnyNode;
3
+ export interface PascalSceneGraph {
4
+ nodes: Record<AnyNodeId, AnyNode>;
5
+ rootNodeIds: AnyNodeId[];
6
+ collections?: Record<string, unknown>;
7
+ }
8
+ export interface ConversionOptions {
9
+ swapYZ?: boolean;
10
+ extrusionDepthIsHeight?: boolean;
11
+ swapProfileDimensions?: boolean;
12
+ label?: string;
13
+ }
14
+ export declare const VARIANT_PRESETS: Record<string, ConversionOptions>;
15
+ export declare function convertIfcToPascal(ifcData: Uint8Array, onProgress?: (message: string, percent: number) => void, options?: ConversionOptions): Promise<PascalSceneGraph>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EAaf,MAAM,kBAAkB,CAAA;AAIzB,MAAM,MAAM,UAAU,GAAG,OAAO,CAAA;AAEhC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACjC,WAAW,EAAE,SAAS,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACtC;AAimBD,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAa7D,CAAA;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,UAAU,EACnB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,EACvD,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CA04C3B"}