Socket
Socket
Sign inDemoInstall

@shapediver/sdk.sdtf-geometry

Package Overview
Dependencies
1
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.3.0

4

dist/ISdtfGeometryTypes.d.ts

@@ -118,5 +118,7 @@ export interface SdtfGeometryArcType {

];
export type SdtfGeometryVectorType = SdtfGeometryVector2d | SdtfGeometryVector3d;
export type SdtfGeometryTransformListType = SdtfGeometryTransformType[];
export type SdtfGeometryVectorType = SdtfGeometryVector2d | SdtfGeometryVector3d | SdtfGeometryVector4d;
export type SdtfGeometryVector2d = [number, number];
export type SdtfGeometryVector3d = [number, number, number];
export type SdtfGeometryVector4d = [number, number, number, number];
//# sourceMappingURL=ISdtfGeometryTypes.d.ts.map

@@ -1,2 +0,2 @@

import { SdtfGeometryArcType, SdtfGeometryBoundingBoxType, SdtfGeometryBoxType, SdtfGeometryCircleType, SdtfGeometryComplexType, SdtfGeometryConeType, SdtfGeometryCylinderType, SdtfGeometryEllipseType, SdtfGeometryInterval2Type, SdtfGeometryIntervalType, SdtfGeometryLineType, SdtfGeometryMatrixType, SdtfGeometryPlaneType, SdtfGeometryPoint2d, SdtfGeometryPoint3d, SdtfGeometryPoint4d, SdtfGeometryPointType, SdtfGeometryPolylineType, SdtfGeometryRayType, SdtfGeometryRectangleType, SdtfGeometrySphereType, SdtfGeometryTorusType, SdtfGeometryTransformType, SdtfGeometryVector2d, SdtfGeometryVector3d, SdtfGeometryVectorType } from "./ISdtfGeometryTypes";
import { SdtfGeometryArcType, SdtfGeometryBoundingBoxType, SdtfGeometryBoxType, SdtfGeometryCircleType, SdtfGeometryComplexType, SdtfGeometryConeType, SdtfGeometryCylinderType, SdtfGeometryEllipseType, SdtfGeometryInterval2Type, SdtfGeometryIntervalType, SdtfGeometryLineType, SdtfGeometryMatrixType, SdtfGeometryPlaneType, SdtfGeometryPoint2d, SdtfGeometryPoint3d, SdtfGeometryPoint4d, SdtfGeometryPointType, SdtfGeometryPolylineType, SdtfGeometryRayType, SdtfGeometryRectangleType, SdtfGeometrySphereType, SdtfGeometryTorusType, SdtfGeometryTransformListType, SdtfGeometryTransformType, SdtfGeometryVector2d, SdtfGeometryVector3d, SdtfGeometryVector4d, SdtfGeometryVectorType } from "./ISdtfGeometryTypes";
export declare class SdtfGeometryTypeGuard {

@@ -95,5 +95,9 @@ /** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_ARC`. */

static isTransform(value: unknown): value is SdtfGeometryTransformType;
/** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM_LIST`. */
static assertTransformList(value: unknown): asserts value is SdtfGeometryTransformListType;
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM_LIST`. */
static isTransformList(value: unknown): value is SdtfGeometryTransformListType;
/** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR`. */
static assertVector(value: unknown): asserts value is SdtfGeometryVectorType;
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 2 or 3 elements. */
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 2, 3 or 4 elements. */
static isVector(value: unknown): value is SdtfGeometryVectorType;

@@ -103,8 +107,12 @@ /** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR`. */

/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 2 elements. */
private static isVector2d;
static isVector2d(value: unknown): value is SdtfGeometryVector2d;
/** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR`. */
static assertVector3d(value: unknown): asserts value is SdtfGeometryVector3d;
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 3 elements. */
private static isVector3d;
static isVector3d(value: unknown): value is SdtfGeometryVector3d;
/** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR`. */
static assertVector4d(value: unknown): asserts value is SdtfGeometryVector4d;
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 4 elements. */
static isVector4d(value: unknown): value is SdtfGeometryVector4d;
}
//# sourceMappingURL=SdtfGeometryTypeGuard.d.ts.map

@@ -256,2 +256,11 @@ "use strict";

}
/** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM_LIST`. */
static assertTransformList(value) {
if (!this.isTransformList(value))
throw new sdk_sdtf_core_1.SdtfError("Assertion error: Value is not a geometry transform-list type.");
}
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM_LIST`. */
static isTransformList(value) {
return Array.isArray(value) && value.every(v => this.isTransform(v));
}
/** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR`. */

@@ -262,5 +271,5 @@ static assertVector(value) {

}
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 2 or 3 elements. */
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 2, 3 or 4 elements. */
static isVector(value) {
return (0, sdk_sdtf_core_1.isNumberArray)(value) && (value.length === 2 || value.length === 3);
return (0, sdk_sdtf_core_1.isNumberArray)(value) && (value.length === 2 || value.length === 3 || value.length === 4);
}

@@ -285,4 +294,13 @@ /** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR`. */

}
/** Runtime check that raises an error when the given value is not of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR`. */
static assertVector4d(value) {
if (!this.isVector4d(value))
throw new sdk_sdtf_core_1.SdtfError("Assertion error: Value is not a geometry vector type.");
}
/** Returns `true` when the given value is of type `SdtfGeometryTypeHintName.GEOMETRY_VECTOR` with 4 elements. */
static isVector4d(value) {
return (0, sdk_sdtf_core_1.isNumberArray)(value) && value.length === 4;
}
}
exports.SdtfGeometryTypeGuard = SdtfGeometryTypeGuard;
//# sourceMappingURL=SdtfGeometryTypeGuard.js.map

@@ -43,2 +43,5 @@ "use strict";

case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT2D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT3D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT4D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POLYLINE:

@@ -50,3 +53,7 @@ case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_RAY:

case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM_LIST:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR2D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR3D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR4D:
return component.value;

@@ -53,0 +60,0 @@ default:

@@ -42,2 +42,8 @@ "use strict";

return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isPoint(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT2D:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isPoint2d(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT3D:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isPoint3d(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT4D:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isPoint4d(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POLYLINE:

@@ -55,4 +61,12 @@ return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isPolyline(value);

return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isTransform(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM_LIST:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isTransformList(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isVector(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR2D:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isVector2d(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR3D:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isVector3d(value);
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR4D:
return SdtfGeometryTypeGuard_1.SdtfGeometryTypeGuard.isVector4d(value);
default:

@@ -59,0 +73,0 @@ (0, sdk_sdtf_core_1.sdAssertUnreachable)(typeHint);

@@ -30,2 +30,5 @@ "use strict";

case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT2D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT3D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POINT4D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_POLYLINE:

@@ -37,3 +40,7 @@ case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_RAY:

case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_TRANSFORM_LIST:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR2D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR3D:
case sdk_sdtf_core_1.SdtfGeometryTypeHintName.GEOMETRY_VECTOR4D:
delete component.accessor; // Stored in JSON content

@@ -40,0 +47,0 @@ break;

{
"name": "@shapediver/sdk.sdtf-geometry",
"version": "1.2.2",
"version": "1.3.0",
"description": "Extension containing sdTF geometry types",

@@ -41,9 +41,9 @@ "keywords": [

"dependencies": {
"@shapediver/sdk.sdtf-core": "~1.2.2"
"@shapediver/sdk.sdtf-core": "~1.3.0"
},
"devDependencies": {
"jest": "~29.4.1",
"lerna": "~6.4.1",
"jest": "~29.5.0",
"lerna": "~6.6.0",
"typescript": "~4.9.5"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc