Skip to content

Commit

Permalink
chore: restructure files
Browse files Browse the repository at this point in the history
  • Loading branch information
HoyosJuan committed Aug 27, 2024
1 parent 5082d75 commit 445b07e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
3 changes: 2 additions & 1 deletion packages/core/src/ifc/IfcPropertiesManager/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./rels-builder";
export * from "./rel-attrs";
export * from "./rel-names";
export * from "./types";
28 changes: 28 additions & 0 deletions packages/core/src/ifc/IfcPropertiesManager/src/rel-attrs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { IfcRelName } from "./types";

type IfcRelAttributePosition = { related: number; relating: number };

export const ifcRelAttrsPosition: Record<IfcRelName, IfcRelAttributePosition> =
{
// IfcRelAssigns
IfcRelAssignsToControl: { related: 5, relating: 7 },
IfcRelAssignsToGroup: { related: 5, relating: 7 },
IfcRelAssignsToProduct: { related: 5, relating: 7 },
// IfcRelAssociates
IfcRelAssociatesClassification: { related: 5, relating: 6 },
IfcRelAssociatesMaterial: { related: 5, relating: 6 },
IfcRelAssociatesDocument: { related: 5, relating: 6 },
// IfcRelConnects
IfcRelContainedInSpatialStructure: { related: 5, relating: 6 },
IfcRelFlowControlElements: { related: 5, relating: 6 },
IfcRelConnectsElements: { related: 7, relating: 6 },
// IfcRelDeclares
IfcRelDeclares: { related: 6, relating: 5 },
// IfcRelDecomposes
IfcRelAggregates: { related: 6, relating: 5 },
IfcRelNests: { related: 6, relating: 5 },
// IfcRelDefines
IfcRelDefinesByProperties: { related: 5, relating: 6 },
IfcRelDefinesByType: { related: 5, relating: 6 },
IfcRelDefinesByTemplate: { related: 5, relating: 6 },
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,6 @@ import * as WEBIFC from "web-ifc";
import { IfcRelName } from "./types";
import { IfcRelation } from "../../IfcRelationsIndexer";

type IfcRelAttributePosition = { related: number; relating: number };

export const ifcRelAttrsPosition: Record<IfcRelName, IfcRelAttributePosition> =
{
// IfcRelAssigns
IfcRelAssignsToControl: { related: 5, relating: 7 },
IfcRelAssignsToGroup: { related: 5, relating: 7 },
IfcRelAssignsToProduct: { related: 5, relating: 7 },
// IfcRelAssociates
IfcRelAssociatesClassification: { related: 5, relating: 6 },
IfcRelAssociatesMaterial: { related: 5, relating: 6 },
IfcRelAssociatesDocument: { related: 5, relating: 6 },
// IfcRelConnects
IfcRelContainedInSpatialStructure: { related: 5, relating: 6 },
IfcRelFlowControlElements: { related: 5, relating: 6 },
IfcRelConnectsElements: { related: 7, relating: 6 },
// IfcRelDeclares
IfcRelDeclares: { related: 6, relating: 5 },
// IfcRelDecomposes
IfcRelAggregates: { related: 6, relating: 5 },
IfcRelNests: { related: 6, relating: 5 },
// IfcRelDefines
IfcRelDefinesByProperties: { related: 5, relating: 6 },
IfcRelDefinesByType: { related: 5, relating: 6 },
IfcRelDefinesByTemplate: { related: 5, relating: 6 },
};

export const ifcRelClassNames: Record<IfcRelation, IfcRelName> = {
// IfcRelAssigns
[WEBIFC.IFCRELASSIGNSTOCONTROL]: "IfcRelAssignsToControl",
Expand Down

0 comments on commit 445b07e

Please sign in to comment.