Catalog npm
PACKAGE EXPLORERView in registry

3d-engine

npm

Javascript 3D Rendering Software I made for fun

Versions collected7
Direct dependencies4From release 1.0.33
Last observed20 Oct, 19:34 UTC

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.

Versions 7

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.33Registry latest12 Apr 20244
1.0.3211 Apr 20244
1.0.3111 Apr 20244
1.0.311 Apr 20244
1.0.210 Apr 20244
1.0.19 Apr 20244
1.0.02 Apr 20244

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:e19eba89468b8f7d1808c1af691c443c486a9db5775a3271d1b65d804b02bba1