dae2css
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

dae2css

Parses .dae Collada files and converts them into CSS Triangles.

Usage

renderCSSTriangles() returns a promise that resolves to the html containing all triangles as a string.

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

`.my-3d-model {
    ${requiredCSSRules}
}`

Readme

Keywords

none

Package Sidebar

Install

npm i dae2css

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

34.2 kB

Total Files

20

Last publish

Collaborators

  • iambalaam