open-index/open-npm huggingface dataset:
npm package: 3d-viewer
Description: Super fast browser based 3D viewer
Author: Chris ter Beke
Latest version: 1.0.0

# AM.JS
A fast and fully-featured previewing library for 3D printing.

## Introduction
The goal of AM.JS is to create a modern, fast and fully-featured WebGL library for 3D printing.
The focus is on previewing STL and G-code files. Later on more file types and features will be added.

## Contributing and code style
Please refer to our [contributing guidelines](./.github/CONTRIBUTING.md) for details.

## License
Please check the [LICENSE](./LICENSE) file for details.
npm package: 3d-viewer-core
Description: render
Author: kevingui
Latest version: 1.0.2

# 3d-viewer-core

是gltf的主渲染库

使用方法：

```
const options = {};

import ThreeDViewer from '3d-viewer-core';

const container = document.querySelector('#app')

const viewer = new ThreeDViewer(container, options)

viewer.load('http://gltf.url').then((gltf) => {
  console.log('gltf loaded');
})


```

## options参数

autoRotate `boolean`
自动旋转
默认: `true`

autoRotateSpeed `number`
渲染转速度
默认: `1.0`

stats `boolean`
是否开启帧数、内存显示
默认: `false`

isBgColor `boolean`
是否开启渐变色彩背景
默认: `true`

bgColor1 `string`
渐变背景色1
默认: `#ffffff`

bgColor2 `string`
渐变背景色2
默认: `#353535`

ambientIntensity `number`
环境光强度
默认: `0.3`

ambientColor `number`
环境光颜色
默认: `0xFFFFFF`

directIntensity `number`
平行光强度
默认: `0.8 * Math.PI`

ambientColor `number`
平行光颜色
默认: `0xFFFFFF`

## 对外函数

加载gltf前
viewer.on('preLoad', (gltf, new ThreeDViewer) => {})

加载gltf时
viewer.on('loading', (ProgressEvent, new ThreeDViewer) => {})

加载gltf完成
viewer.on('loaded', (gltf, new ThreeDViewer) => {})
npm package: 3d-webaudio-raub
Description: WebAudio plugin for Node.js 3D Core
Author: Luis Blanco
Latest version: 3.0.0

# Node.js 3D WebAudio

This is a part of [Node3D](https://github.com/node-3d) project.

[![NPM](https://badge.fury.io/js/3d-webaudio-raub.svg)](https://badge.fury.io/js/3d-webaudio-raub)
[![ESLint](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/eslint.yml/badge.svg)](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/eslint.yml)
[![Test](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/test.yml/badge.svg)](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/test.yml)

```console
npm i -s 3d-webaudio-raub
```

![Example](examples/screenshot.jpg)

This plugin injects WebAudio API into Node3D's `window`. It ain't much, but it's honest work.

The WebAudio implementation is provided by [webaudio-raub](https://github.com/node-3d/webaudio-raub).
Some WebAudio features may be missing, but it works with Three.js. With positional audio.

Refer to [webaudio-raub](https://github.com/node-3d/webaudio-raub) for the full list
of currently implemented API.

```typescript
import { init } from '3d-core-raub';
import { init as initWebaudio } from '3d-webaudio-raub';

// Fetch `window` from standard Node3D init
const { window } = init();

// Initialize Webaudio
const { webaudio } = initWebaudio({ window });
// webaudio.AudioContext === window.AudioContext === global.AudioContext
```

Here, `webaudio` is directly re-exported [webaudio-raub](https://github.com/node-3d/webaudio-raub).
You can also use it through `window.AudioContext` or just `AudioContext`. But the main idea is
using it with Three.js, [like this](https://threejs.org/docs/#api/en/audio/PositionalAudio).