@bitbybit-dev/ifc 1.6.2 → 1.8.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.
|
@@ -2649,7 +2649,7 @@ export declare namespace IFC {
|
|
|
2649
2649
|
* model's recipe as OpenCascade shapes.
|
|
2650
2650
|
*/
|
|
2651
2651
|
class GeometryToShapesDto<T> {
|
|
2652
|
-
constructor(model?: T, elements?: string[], adjustZtoY?: boolean, emptyWhenFailed?: boolean, facetedMeshes?: boolean, maxTriangles?: number);
|
|
2652
|
+
constructor(model?: T, elements?: string[], adjustZtoY?: boolean, emptyWhenFailed?: boolean, facetedMeshes?: boolean, maxTriangles?: number, upAxis?: Base.upAxisConversionEnum);
|
|
2653
2653
|
/**
|
|
2654
2654
|
* The model whose elements are built.
|
|
2655
2655
|
* @default undefined
|
|
@@ -2663,9 +2663,17 @@ export declare namespace IFC {
|
|
|
2663
2663
|
*/
|
|
2664
2664
|
elements?: string[] | undefined;
|
|
2665
2665
|
/**
|
|
2666
|
-
*
|
|
2667
|
-
*
|
|
2668
|
-
* @default
|
|
2666
|
+
* `zUpToYUp` turns the shapes a quarter turn about X so the model's Z points along Y, and
|
|
2667
|
+
* `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
|
|
2668
|
+
* @default zUpToYUp
|
|
2669
|
+
*/
|
|
2670
|
+
upAxis?: Base.upAxisConversionEnum | undefined;
|
|
2671
|
+
/**
|
|
2672
|
+
* When false, the shapes keep their axes as `keep` does; true, its old default, decides nothing.
|
|
2673
|
+
* False wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
2674
|
+
* @deprecated Give `upAxis` instead; this flag goes in the next major version.
|
|
2675
|
+
* @default undefined
|
|
2676
|
+
* @optional true
|
|
2669
2677
|
*/
|
|
2670
2678
|
adjustZtoY?: boolean | undefined;
|
|
2671
2679
|
/**
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
import { Base } from "./base-inputs";
|
|
1
3
|
// GENERATED by scripts/gen-inputs.mjs from the fragments in ./ifc/ - do not edit; edit a fragment and run `npm run gen:inputs`.
|
|
2
4
|
/**
|
|
3
5
|
* Every parameter object the IFC library accepts. IFC is the open BIM exchange format: a model is a
|
|
@@ -2413,13 +2415,13 @@ export var IFC;
|
|
|
2413
2415
|
* model's recipe as OpenCascade shapes.
|
|
2414
2416
|
*/
|
|
2415
2417
|
class GeometryToShapesDto {
|
|
2416
|
-
constructor(model, elements, adjustZtoY, emptyWhenFailed, facetedMeshes, maxTriangles) {
|
|
2418
|
+
constructor(model, elements, adjustZtoY, emptyWhenFailed, facetedMeshes, maxTriangles, upAxis) {
|
|
2417
2419
|
/**
|
|
2418
|
-
*
|
|
2419
|
-
*
|
|
2420
|
-
* @default
|
|
2420
|
+
* `zUpToYUp` turns the shapes a quarter turn about X so the model's Z points along Y, and
|
|
2421
|
+
* `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
|
|
2422
|
+
* @default zUpToYUp
|
|
2421
2423
|
*/
|
|
2422
|
-
this.
|
|
2424
|
+
this.upAxis = Base.upAxisConversionEnum.zUpToYUp;
|
|
2423
2425
|
/**
|
|
2424
2426
|
* When true, an element that cannot be built comes back as an empty compound and the others are
|
|
2425
2427
|
* built; when false, it stops the build.
|
|
@@ -2459,6 +2461,9 @@ export var IFC;
|
|
|
2459
2461
|
if (maxTriangles !== undefined) {
|
|
2460
2462
|
this.maxTriangles = maxTriangles;
|
|
2461
2463
|
}
|
|
2464
|
+
if (upAxis !== undefined) {
|
|
2465
|
+
this.upAxis = upAxis;
|
|
2466
|
+
}
|
|
2462
2467
|
}
|
|
2463
2468
|
}
|
|
2464
2469
|
IFC.GeometryToShapesDto = GeometryToShapesDto;
|
|
@@ -44,7 +44,7 @@ export declare namespace IFC {
|
|
|
44
44
|
type GeometryElementsDto<T> = Inputs.IFC.GeometryElementsDto<T>;
|
|
45
45
|
type GeometryProblemDto = WithDefaults<Inputs.IFC.GeometryProblemDto, "globalId" | "type" | "message">;
|
|
46
46
|
type GeometryToDocumentDto<T> = WithDefaults<Inputs.IFC.GeometryToDocumentDto<T>, "name" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles" | "groupByClass" | "propertySets">;
|
|
47
|
-
type GeometryToShapesDto<T> = WithDefaults<Inputs.IFC.GeometryToShapesDto<T>, "
|
|
47
|
+
type GeometryToShapesDto<T> = WithDefaults<Inputs.IFC.GeometryToShapesDto<T>, "upAxis" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles">;
|
|
48
48
|
type GeometryToStepDto<T> = WithDefaults<Inputs.IFC.GeometryToStepDto<T>, "name" | "fileName" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles" | "compress" | "tryDownload" | "groupByClass" | "propertySets">;
|
|
49
49
|
type GeoreferenceDto = WithDefaults<Inputs.IFC.GeoreferenceDto, "mapped" | "crs" | "eastings" | "northings" | "orthogonalHeight" | "xAxisAbscissa" | "xAxisOrdinate" | "scale" | "located" | "latitude" | "longitude" | "elevation">;
|
|
50
50
|
type GetAttributeDto<T> = WithDefaults<Inputs.IFC.GetAttributeDto<T>, "attribute">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitbybit-dev/ifc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Bit By Bit Developers IFC library to write, read and author BIM models in TypeScript",
|
|
5
5
|
"homepage": "https://docs.bitbybit.dev/classes/Bit.IFC",
|
|
6
6
|
"main": "index.js",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"types": "./index.d.ts",
|
|
47
47
|
"type": "module",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@bitbybit-dev/base": "1.
|
|
49
|
+
"@bitbybit-dev/base": "1.8.0"
|
|
50
50
|
}
|
|
51
51
|
}
|