with dist
This commit is contained in:
parent
05c65aad4d
commit
ddd716c0a0
64 changed files with 262892 additions and 1 deletions
18
dist/library/assets/ifc/helpers/log.d.ts
vendored
Normal file
18
dist/library/assets/ifc/helpers/log.d.ts
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Web-IFC Logging Helper
|
||||
* @module Logging
|
||||
*/
|
||||
export declare enum LogLevel {
|
||||
LOG_LEVEL_DEBUG = 1,
|
||||
LOG_LEVEL_WARN = 3,
|
||||
LOG_LEVEL_ERROR = 4,
|
||||
LOG_LEVEL_OFF = 6
|
||||
}
|
||||
export declare abstract class Log {
|
||||
private static logLevel;
|
||||
static setLogLevel(level: number): void;
|
||||
static log(msg: string, ...args: any[]): void;
|
||||
static debug(msg: string, ...args: any[]): void;
|
||||
static warn(msg: string, ...args: any[]): void;
|
||||
static error(msg: string, ...args: any[]): void;
|
||||
}
|
||||
81
dist/library/assets/ifc/helpers/properties.d.ts
vendored
Normal file
81
dist/library/assets/ifc/helpers/properties.d.ts
vendored
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
/**
|
||||
* Web-IFC Properties
|
||||
* @module Properties
|
||||
*/
|
||||
import { IfcAPI } from "../web-ifc-api";
|
||||
interface Node {
|
||||
expressID: number;
|
||||
type: string;
|
||||
children: Node[];
|
||||
}
|
||||
export declare class Properties {
|
||||
private api;
|
||||
/** @ignore */
|
||||
constructor(api: IfcAPI);
|
||||
/**
|
||||
*
|
||||
* @param modelID model handle
|
||||
* @param id expressID of IfcElement
|
||||
* @param recursive default false, if true get all nested properties recursively
|
||||
* @param inverse default false, if true get all inverse properties recursively
|
||||
* @returns IfcElement
|
||||
*/
|
||||
getItemProperties(modelID: number, id: number, recursive?: boolean, inverse?: boolean): Promise<any>;
|
||||
/**
|
||||
* Get IfcPropertySets of IfcElements
|
||||
* @param modelID model handle
|
||||
* @param elementID expressID of IfcElement, default 0 (all psets in model)
|
||||
* @param recursive default false, if true get all nested properties recursively
|
||||
* @returns array of IfcElements inheriting from IfcPropertySetDefinition
|
||||
*/
|
||||
getPropertySets(modelID: number, elementID?: number, recursive?: boolean, includeTypeProperties?: boolean): Promise<any[]>;
|
||||
/**
|
||||
* Set IfcRelDefinesByProperties relations of IfcElements and IfcPropertySets
|
||||
* @param modelID model handle
|
||||
* @param elementID expressID or array of expressIDs of IfcElements
|
||||
* @param psetID expressID or array of expressIDs of IfcPropertySets
|
||||
* @returns true if success or false if error
|
||||
*/
|
||||
setPropertySets(modelID: number, elementID: number | number[], psetID: number | number[]): Promise<boolean>;
|
||||
/**
|
||||
* Get TypeObject of IfcElements
|
||||
* @param modelID model handle
|
||||
* @param elementID expressID of IfcElement, default 0 (all type objects in model)
|
||||
* @param recursive default false, if true get all nested properties of the type object recursively
|
||||
* @returns array of objects inheriting from IfcTypeObject
|
||||
*/
|
||||
getTypeProperties(modelID: number, elementID?: number, recursive?: boolean): Promise<any[]>;
|
||||
/**
|
||||
* Get materials of IfcElement
|
||||
* @param modelID model handle
|
||||
* @param elementID expressID of IfcElement, default 0 (all materials in model)
|
||||
* @param recursive default false, if true get all nested properties recursively
|
||||
* @returns array of IfcElements inheriting from IfcMaterialDefinition
|
||||
*/
|
||||
getMaterialsProperties(modelID: number, elementID?: number, recursive?: boolean, includeTypeMaterials?: boolean): Promise<any[]>;
|
||||
/**
|
||||
* Set IfcRelAssociatesMaterial relations of IfcElements and IfcMaterialDefinitions
|
||||
* @param modelID model handle
|
||||
* @param elementID expressID or array of expressIDs of IfcElements
|
||||
* @param materialID expressID or array of expressIDs of IfcMaterialDefinitions
|
||||
* @returns true if success or false if error
|
||||
*/
|
||||
setMaterialsProperties(modelID: number, elementID: number | number[], materialID: number | number[]): Promise<boolean>;
|
||||
/**
|
||||
* Get Spatial Structure of IfcProject
|
||||
* @param modelID model handle
|
||||
* @param includeProperties default false
|
||||
* @returns IfcProject as Node
|
||||
*/
|
||||
getSpatialStructure(modelID: number, includeProperties?: boolean): Promise<Node>;
|
||||
private getRelatedProperties;
|
||||
private getChunks;
|
||||
private static newIfcProject;
|
||||
private getSpatialNode;
|
||||
private getChildren;
|
||||
private newNode;
|
||||
private getSpatialTreeChunks;
|
||||
private saveChunk;
|
||||
private setItemProperties;
|
||||
}
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue