@spz-loader/core
Advanced tools
| // TypeScript bindings for emscripten-generated code. Automatically generated at compile time. | ||
| declare namespace RuntimeExports { | ||
| let HEAPF32: any; | ||
| let HEAPF64: any; | ||
| let HEAP_DATA_VIEW: any; | ||
| let HEAP8: any; | ||
| let HEAPU8: any; | ||
| let HEAP16: any; | ||
| let HEAPU16: any; | ||
| let HEAP32: any; | ||
| let HEAPU32: any; | ||
| let HEAP64: any; | ||
| let HEAPU64: any; | ||
| } | ||
@@ -25,2 +16,4 @@ interface WasmModule { | ||
| isDeleted(): boolean; | ||
| // @ts-ignore - If targeting lower than ESNext, this symbol might not exist. | ||
| [Symbol.dispose](): void; | ||
| clone(): this; | ||
@@ -44,2 +37,11 @@ } | ||
| export interface CoordinateSystemValue<T extends number> { | ||
| value: T; | ||
| } | ||
| export type CoordinateSystem = CoordinateSystemValue<0>|CoordinateSystemValue<1>|CoordinateSystemValue<2>|CoordinateSystemValue<3>|CoordinateSystemValue<4>|CoordinateSystemValue<5>|CoordinateSystemValue<6>|CoordinateSystemValue<7>|CoordinateSystemValue<8>; | ||
| export type UnpackOptions = { | ||
| coordinateSystem: CoordinateSystem | ||
| }; | ||
| export type RawGaussianCloud = { | ||
@@ -64,4 +66,5 @@ numPoints: number, | ||
| }; | ||
| CoordinateSystem: {UNSPECIFIED: CoordinateSystemValue<0>, LDB: CoordinateSystemValue<1>, RDB: CoordinateSystemValue<2>, LUB: CoordinateSystemValue<3>, RUB: CoordinateSystemValue<4>, LDF: CoordinateSystemValue<5>, RDF: CoordinateSystemValue<6>, LUF: CoordinateSystemValue<7>, RUF: CoordinateSystemValue<8>}; | ||
| vf32_ptr(_0: VectorFloat32): number; | ||
| load_spz(_0: number, _1: number): RawGaussianCloud; | ||
| load_spz(_0: number, _1: number, _2: UnpackOptions): RawGaussianCloud; | ||
| } | ||
@@ -68,0 +71,0 @@ |
@@ -0,4 +1,9 @@ | ||
| import { MainModule } from './build/main'; | ||
| import { GaussianCloud } from './gaussianCloud'; | ||
| type CoordinateSystemUnion = keyof MainModule["CoordinateSystem"]; | ||
| interface ILoadSpzOptions { | ||
| colorScaleFactor?: number; | ||
| unpackOptions?: { | ||
| coordinateSystem?: CoordinateSystemUnion; | ||
| }; | ||
| } | ||
@@ -12,2 +17,2 @@ /** | ||
| declare const loadSpzFromUrl: (url: string, options?: ILoadSpzOptions) => Promise<GaussianCloud>; | ||
| export { type ILoadSpzOptions, loadSpz, loadSpzFromUrl }; | ||
| export { type ILoadSpzOptions, loadSpz, loadSpzFromUrl, type CoordinateSystemUnion, }; |
+1
-1
@@ -35,3 +35,3 @@ { | ||
| }, | ||
| "version": "0.2.0", | ||
| "version": "0.3.0", | ||
| "type": "module", | ||
@@ -38,0 +38,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
509599
0.16%2760
1.06%6
200%