# dae2css

> Parses `.dae` Collada files and converts them into _[CSS Triangles](https://css-tricks.com/snippets/css/css-triangle/)_.

Latest version **1.2.0** (published 2021-03-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install dae2css
pnpm add dae2css
yarn add dae2css
bun add dae2css
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-03-12 |
| First published | 2021-02-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 33.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Guy Balaam |
| Maintainers | iambalaam |

## Links

- npm: https://www.npmjs.com/package/dae2css
- Repository: https://github.com/iambalaam/dae2css
- Homepage: https://github.com/iambalaam/dae2css#readme
- Issues: https://github.com/iambalaam/dae2css/issues
- npm.io page: https://npm.io/package/dae2css

## Dependencies (1)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.23

## Recent versions

- 1.2.0 (latest) — 2021-03-12
- 1.1.2 — 2021-02-05
- 1.1.1 — 2021-02-05
- 1.1.0 — 2021-02-04
- 1.0.3 — 2021-02-04
- 1.0.2 — 2021-02-02
- 1.0.1 — 2021-02-02
- 1.0.0 — 2021-02-02

## README

# dae2css

Parses `.dae` Collada files and converts them into _[CSS Triangles](https://css-tricks.com/snippets/css/css-triangle/)_.

## Usage
`renderCSSTriangles()` returns a promise that resolves to the html containing all triangles as a string.
``` js
import { renderCSSTriangles, requiredCSSRules } from 'dae2css';
const triangles = await renderCSSTriangles('models/icosphere.dae', 100, 'my-3d-model');
```
You will also need to ensure that the required CSS rules are on the page
``` js
`.my-3d-model {
    ${requiredCSSRules}
}`
```

---
_Source: https://npm.io/package/dae2css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
