Catalog npm
Back to packageRELEASE DETAILS

1.0.31

npm

3d-engine

Javascript 3D Rendering Software I made for fun

Published11 Apr 2024
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

3D Engine

3D Rendering Software I am developing with Typescript to run in the browser, for learning and for fun!

Usage

Import the UMD build:

<script type="text/javascript" src="https://unpkg.com/3d-engine"></script>

The only required parameter to be passed into the engine is an element selector string, which is the injection site for the engine.

<div id="root"></div>

<script>
    const settings = {
        background: '#000',
        windowSize: 180,
        entities: [
            {
                type: 'square',
                id: '001',
                width: 30,
                center: [(180 / 2), (180 / 2)]
            }
        ]
    }

    const app = new _3dEngine('#root', settings)
    app.launch()
</script>

Settings

The second settings object parameter is optional and here are the current settings available.

SettingValue
backgroundCSS String for the color of the background
windowSizeSize the engine
entitiesAn array of objects, each object will be an entity to be rendered, as of now, the engine only supports 2D squares, pass in type "square", a unique id string, a width, and an array of 2 numbers to define the center of the entity, if no entities property is found on the settings a default square will be rendered.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@rollup/plugin-terser
Environment
{
  "local_name": "@rollup/plugin-terser",
  "alias": false,
  "peer_metadata": null
}
^0.1.0development
@rollup/plugin-typescript
Environment
{
  "local_name": "@rollup/plugin-typescript",
  "alias": false,
  "peer_metadata": null
}
^9.0.2development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^2.79.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.9.5development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-igmKM6s0qEMnah3ya9USNxwrfO1ysPyFFV+76Ru5L7q49Xw9iY47HnnxA8BIptLinBeHYf3FgoOxL4fXao7XiQ==",
  "shasum": "95a9f892c8037a0905f68a36f5f173e23f23705a",
  "tarball": "https://registry.npmjs.org/3d-engine/-/3d-engine-1.0.31.tgz",
  "fileCount": 39,
  "unpackedSize": 49262,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCIUawa5JAlT3GBD3yRfSOmmka2Yo7AcutXsqsgA1vjvgIgRRglaIBipWkNh1Xc3KR/0ToQmSL0qP2QM4VFrXaD2Uo="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:66968b7bb7745b13eba3c5e441fe0db6af96c1f2e99200f473d63ecc47641fd8

Other collected versions

1.0.3312 Apr1.0.3211 Apr1.0.311 Apr1.0.210 Apr1.0.19 Apr1.0.02 AprView all collected versions →