Pacioli

A statically typed unit-aware matrix language

View project on GitHub

3D Scene

The scene web component displays a 3D scene.

The pacioli-scene Component

The pacioli-scene element adds a Pacioli 3D scene to a web page.

<pacioli-scene definition="..."></pacioli-scene>

Common

definition
Name of the value or function to display
width
Width of the pacioli component.
height
Height of the pacioli component.
margin
Margin used around charts. For example margin="10,10,10,10"

3D Scene

caption
A title for the scene
unit
Unit of measurement for the three dimensions.
unitx
Unit of measurement in the x-direction. Overrides unit.
unity
Unit of measurement in the y-direction. Overrides unit.
unitz
Unit of measurement in the z-direction. Overrides unit.
background
Background color
axisColorsX
Color of the x-axis
axisColorsY
Color of the y-axis
axisColorsZ
Color of the z-axis
gridColor
Color of the grid. See grid.
ambientColor
Color of the ambient light
labelColor
axis
Add axis to the scene
grid
Add a grid in the x-y plane to the scene
orthographic
Use orthographic projection
hideLabels
Don't show labels. This includes the axis labels.
autoRotation
Turn on rotaton of the scene.
axisSize
Length of the axis
ambientIntensity
Intensity of the ambient light
gridSize
Size of the grid
gridDivisions
Number of gridlines
cameraNear
Maximum zoom-in level
cameraFar
Maximum zoom-out level
cameraX
x-coordinate of the camera position
cameraY
y-coordinate of the camera position
cameraZ
z-coordinate of the camera position
secondsPerRotation
Rotation speed. See autoRotation.