@spz-loader/core
Advanced tools
+28
| # @spz-loader/core | ||
| ## About | ||
| core logics for decode .spz | ||
| ## Usage | ||
| Install like below. | ||
| ```sh | ||
| # for npm | ||
| npm i @spz-loader/core | ||
| # for pnpm | ||
| pnpm add @spz-loader/core | ||
| ``` | ||
| Usage example of core package. | ||
| ```ts | ||
| import { loadSpz } from "@spz-loader/core"; | ||
| import spzUrl from "../assets/racoonfamily.spz?url"; | ||
| const splat = await loadSpzFromUrl(spzUrl); | ||
| console.log(splat.numPoints); | ||
| ``` |
| import { GaussianCloud } from './gaussianCloud'; | ||
| export interface ILoadSpzOptions { | ||
| interface ILoadSpzOptions { | ||
| colorScaleFactor?: number; | ||
@@ -10,2 +10,4 @@ } | ||
| */ | ||
| export declare const loadSpz: (spzData: Uint8Array, options?: ILoadSpzOptions) => Promise<GaussianCloud>; | ||
| declare const loadSpz: (spzData: Uint8Array | ArrayBuffer, options?: ILoadSpzOptions) => Promise<GaussianCloud>; | ||
| declare const loadSpzFromUrl: (url: string, options?: ILoadSpzOptions) => Promise<GaussianCloud>; | ||
| export { type ILoadSpzOptions, loadSpz, loadSpzFromUrl }; |
+1
-1
@@ -35,3 +35,3 @@ { | ||
| }, | ||
| "version": "0.1.0", | ||
| "version": "0.2.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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
508792
0.17%11
10%2731
0.18%0
-100%29
Infinity%2
Infinity%