Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@intelligentgraphics/openconfiguration

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intelligentgraphics/openconfiguration - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

LICENSE

25

dist/index.d.ts

@@ -27,2 +27,3 @@ declare namespace Cns {

* Allowed formats are "OpenCTM", "OBJ", "FBX".
* Version: OC 1.1
*/

@@ -32,2 +33,3 @@ colliderFormat?: "OpenCTM" | "OBJ" | "FBX";

* An optional mesh to be used for collision detection.
* Version: OC 1.1
*/

@@ -85,2 +87,3 @@ collider?: string;

* Target type: Boolean
* Version: OC 1.1
*

@@ -91,2 +94,3 @@ * "NormalMapStrength":

* Target type: number
* Version: OC 1.1
*

@@ -100,2 +104,3 @@ * "RenderOrder"

* Target type: number
* Version: OC 1.1
*/

@@ -456,2 +461,3 @@ parameters?: {

* Quantity of the product. For the main product, always expected to be 1.
* Version: OC 1.3
*/

@@ -461,2 +467,3 @@ quantity?: number;

* Commercial sub-products, visually represented by the main product.
* Version: OC 1.3
*/

@@ -663,2 +670,3 @@ products?: Commercial[];

* Tag is more robust and not biunique.
* Version: OC 1.1
*/

@@ -920,2 +928,3 @@ tags?: string[];

* An optional product representation from top-view perspective.
* Version: OC 1.2
*/

@@ -925,2 +934,3 @@ topView?: TopView;

* An optional product preview image.
* Version: OC 1.2
*/

@@ -994,3 +1004,3 @@ preview?: Preview;

}
declare const GetTechnicalVersion: (script: Script) => number;
declare const getScriptTechnicalVersion: (script: Script) => number;
type Representation = "Standard" | "CAD_BIM" | "Photo";

@@ -1060,5 +1070,15 @@ /**

* legal for hash, is to compare them with an optionally existing one.
*
* Any asset should have an entry here as downloaders may iterate thru
* this record rather than exploring the other data entities.
*/
hashes: Record<string, string>;
/**
* Redirections maybe needed to convert absolute asset urls into file
* names, especially when compiling a self-contained OC zip.
* The attribute is optional.
* Version: OC 1.3
*/
redirections?: Record<string, string>;
/**
* The optional attribute contains all client-side JavaScript packages.

@@ -1119,2 +1139,3 @@ */

* Commercial products without an own visual representation.
* Version: OC 1.3
*/

@@ -1158,2 +1179,2 @@ comProducts?: Commercial[];

}
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 };
export { Cns, Ig, AttachPointType, AttachPoint, CatalogEntry, Color, Commercial, Property, Value, cnsPrefix, Component, Geometry, GeometryIndex, GeometryMapping, Material, MaterialIndex, Product, Quaternion, Representation, Scene, Script, getScriptTechnicalVersion, State, TextureMapping, Transform, Vector };

19

dist/index.js

@@ -18,17 +18,20 @@ 'use strict';

const GetTechnicalVersion = (script) => {
let tNumber = 0;
const getScriptTechnicalVersion = (script) => {
let number = 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])));
const parts = script.version.split(".");
if (parts.length === 4) {
number =
Number(parts[3]) +
1000 *
(Number(parts[2]) +
1000 * (Number(parts[1]) + 1000 * Number(parts[0])));
}
}
return tNumber;
return number;
};
exports.Cns = index;
exports.GetTechnicalVersion = GetTechnicalVersion;
exports.Ig = index$1;
exports.cnsPrefix = cnsPrefix;
exports.getScriptTechnicalVersion = getScriptTechnicalVersion;

@@ -27,2 +27,3 @@ declare namespace Cns {

* Allowed formats are "OpenCTM", "OBJ", "FBX".
* Version: OC 1.1
*/

@@ -32,2 +33,3 @@ colliderFormat?: "OpenCTM" | "OBJ" | "FBX";

* An optional mesh to be used for collision detection.
* Version: OC 1.1
*/

@@ -85,2 +87,3 @@ collider?: string;

* Target type: Boolean
* Version: OC 1.1
*

@@ -91,2 +94,3 @@ * "NormalMapStrength":

* Target type: number
* Version: OC 1.1
*

@@ -100,2 +104,3 @@ * "RenderOrder"

* Target type: number
* Version: OC 1.1
*/

@@ -456,2 +461,3 @@ parameters?: {

* Quantity of the product. For the main product, always expected to be 1.
* Version: OC 1.3
*/

@@ -461,2 +467,3 @@ quantity?: number;

* Commercial sub-products, visually represented by the main product.
* Version: OC 1.3
*/

@@ -663,2 +670,3 @@ products?: Commercial[];

* Tag is more robust and not biunique.
* Version: OC 1.1
*/

@@ -920,2 +928,3 @@ tags?: string[];

* An optional product representation from top-view perspective.
* Version: OC 1.2
*/

@@ -925,2 +934,3 @@ topView?: TopView;

* An optional product preview image.
* Version: OC 1.2
*/

@@ -994,3 +1004,3 @@ preview?: Preview;

}
declare const GetTechnicalVersion: (script: Script) => number;
declare const getScriptTechnicalVersion: (script: Script) => number;
type Representation = "Standard" | "CAD_BIM" | "Photo";

@@ -1060,5 +1070,15 @@ /**

* legal for hash, is to compare them with an optionally existing one.
*
* Any asset should have an entry here as downloaders may iterate thru
* this record rather than exploring the other data entities.
*/
hashes: Record<string, string>;
/**
* Redirections maybe needed to convert absolute asset urls into file
* names, especially when compiling a self-contained OC zip.
* The attribute is optional.
* Version: OC 1.3
*/
redirections?: Record<string, string>;
/**
* The optional attribute contains all client-side JavaScript packages.

@@ -1119,2 +1139,3 @@ */

* Commercial products without an own visual representation.
* Version: OC 1.3
*/

@@ -1158,2 +1179,2 @@ comProducts?: Commercial[];

}
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 };
export { Cns, Ig, AttachPointType, AttachPoint, CatalogEntry, Color, Commercial, Property, Value, cnsPrefix, Component, Geometry, GeometryIndex, GeometryMapping, Material, MaterialIndex, Product, Quaternion, Representation, Scene, Script, getScriptTechnicalVersion, State, TextureMapping, Transform, Vector };
{
"name": "@intelligentgraphics/openconfiguration",
"version": "1.2.5",
"description": "OpenConfiguration 1.2.5 (1.2.5.100)",
"version": "1.2.6",
"description": "OpenConfiguration 1.2.6 (1.2.6.100)",
"license": "./LICENSE",
"publishConfig": {

@@ -10,2 +11,3 @@ "access": "public"

"@wessberg/rollup-plugin-ts": "^1.3.4",
"rimraf": "^3.0.2",
"rollup": "^2.18.0",

@@ -22,3 +24,4 @@ "typedoc": "^0.18.0",

"genDocs": "npm run dist && npm run rename && npm run docs",
"prepublishOnly": "npm run dist"
"prepublishOnly": "npm run dist && node _scripts/prepublish.js",
"postpublish": "rimraf README.md LICENSE"
},

@@ -25,0 +28,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc