ui-p3d
v0.3.0
Published
Three dimension perpective interface web component
Downloads
7
Maintainers
Readme
uiP3d
Three dimension graphic interface weldkit component
Installation
cd myproject
npm install ui-p3d
API
Events
- initialized: Fired after the scene has been initialized. It returns the scene data with added instances uuid.
- render: Listener that renders the scene. Takes update data object as argument.
data-scene
Scene configuration data.
data-subject
Subject refers to the point of view configuration, it may include not only camera information but also avatar data.
data-display
Supported configuration parameters:
- width: In pixels
- height: In pixels
- pixelRatio: Canvas pixel ratio
- perspective(enum): Perspective type, default value
firstPerson