@intelligentgraphics/openconfiguration
Advanced tools
Comparing version 1.2.0 to 1.2.5
@@ -449,2 +449,10 @@ declare namespace Cns { | ||
properties: Property[]; | ||
/** | ||
* Quantity of the product. For the main product, always expected to be 1. | ||
*/ | ||
quantity?: number; | ||
/** | ||
* Commercial sub-products, visually represented by the main product. | ||
*/ | ||
products?: Commercial[]; | ||
} | ||
@@ -977,2 +985,3 @@ /** | ||
} | ||
declare const GetTechnicalVersion: (script: Script) => number; | ||
type Representation = "Standard" | "CAD_BIM" | "Photo"; | ||
@@ -1001,7 +1010,2 @@ /** | ||
/** | ||
* This optional attribute contains a link to the source of this OC data set. | ||
* Normally, a link that recovers the configuration. | ||
*/ | ||
source?: string; | ||
/** | ||
* This attribute contains general status information about the Scene contents. | ||
@@ -1104,2 +1108,6 @@ */ | ||
products: Product[]; | ||
/** | ||
* Commercial products without an own visual representation. | ||
*/ | ||
comProducts?: Commercial[]; | ||
} | ||
@@ -1141,2 +1149,2 @@ /** | ||
} | ||
export { Cns, Ig, AttachPointType, AttachPoint, CatalogEntry, Color, Commercial, Property, Value, cnsPrefix, Component, Geometry, GeometryIndex, GeometryMapping, Material, MaterialIndex, Product, Quaternion, Representation, Scene, Script, State, TextureMapping, Transform, Vector }; | ||
export { Cns, Ig, AttachPointType, AttachPoint, CatalogEntry, Color, Commercial, Property, Value, cnsPrefix, Component, Geometry, GeometryIndex, GeometryMapping, Material, MaterialIndex, Product, Quaternion, Representation, Scene, Script, GetTechnicalVersion, State, TextureMapping, Transform, Vector }; |
@@ -18,4 +18,17 @@ 'use strict'; | ||
const GetTechnicalVersion = (script) => { | ||
let tNumber = 0; | ||
if (script.version) { | ||
const tVersion = script.version.split('.'); | ||
if (tVersion.length === 4) { | ||
tNumber = eval(tVersion[3]) + 1000 * (eval(tVersion[2]) | ||
+ 1000 * (eval(tVersion[1]) + 1000 * eval(tVersion[0]))); | ||
} | ||
} | ||
return tNumber; | ||
}; | ||
exports.Cns = index; | ||
exports.GetTechnicalVersion = GetTechnicalVersion; | ||
exports.Ig = index$1; | ||
exports.cnsPrefix = cnsPrefix; |
@@ -449,2 +449,10 @@ declare namespace Cns { | ||
properties: Property[]; | ||
/** | ||
* Quantity of the product. For the main product, always expected to be 1. | ||
*/ | ||
quantity?: number; | ||
/** | ||
* Commercial sub-products, visually represented by the main product. | ||
*/ | ||
products?: Commercial[]; | ||
} | ||
@@ -977,2 +985,3 @@ /** | ||
} | ||
declare const GetTechnicalVersion: (script: Script) => number; | ||
type Representation = "Standard" | "CAD_BIM" | "Photo"; | ||
@@ -1001,7 +1010,2 @@ /** | ||
/** | ||
* This optional attribute contains a link to the source of this OC data set. | ||
* Normally, a link that recovers the configuration. | ||
*/ | ||
source?: string; | ||
/** | ||
* This attribute contains general status information about the Scene contents. | ||
@@ -1104,2 +1108,6 @@ */ | ||
products: Product[]; | ||
/** | ||
* Commercial products without an own visual representation. | ||
*/ | ||
comProducts?: Commercial[]; | ||
} | ||
@@ -1141,2 +1149,2 @@ /** | ||
} | ||
export { Cns, Ig, AttachPointType, AttachPoint, CatalogEntry, Color, Commercial, Property, Value, cnsPrefix, Component, Geometry, GeometryIndex, GeometryMapping, Material, MaterialIndex, Product, Quaternion, Representation, Scene, Script, State, TextureMapping, Transform, Vector }; | ||
export { Cns, Ig, AttachPointType, AttachPoint, CatalogEntry, Color, Commercial, Property, Value, cnsPrefix, Component, Geometry, GeometryIndex, GeometryMapping, Material, MaterialIndex, Product, Quaternion, Representation, Scene, Script, GetTechnicalVersion, State, TextureMapping, Transform, Vector }; |
{ | ||
"name": "@intelligentgraphics/openconfiguration", | ||
"version": "1.2.0", | ||
"description": "OpenConfiguration 1.2 (1.2.100)", | ||
"version": "1.2.5", | ||
"description": "OpenConfiguration 1.2.5 (1.2.5.100)", | ||
"publishConfig": { | ||
@@ -6,0 +6,0 @@ "access": "public" |
74754
2317