Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@spz-loader/core

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spz-loader/core - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
+28
README.md
# @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);
```
+4
-2
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 };

@@ -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