-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 9779061e9c1fc4cc2df14be02114ced603514eba:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 9779061e9c1fc4cc2df14be02114ced603514eba
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Wed Apr 1 11:04:38 2020 -0700

    Added descriptions for more attributes

diff --git a/scripts/janusbase.js b/scripts/janusbase.js

index 5875e1352093bd45bc9a989973e133f0305aaf94..

index ..4f2ed28255aa842c155ad9fc9ccc19047a6a9c8c 100644

--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -15,20 +15,21 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
         janus:    { type: 'object' },
         parent:   { type: 'object' },
         js_id:    { type: 'string' },
-        color:    { type: 'color', default: this.defaultcolor, set: this.updateColor },
-        opacity:  { type: 'float', default: 1.0, set: this.updateOpacity },
-        alphatest:  { type: 'float', default: 0.05, set: this.updateAlphaTest },
-        fwd:      { type: 'vector3', default: new THREE.Vector3(0,0,1), set: this.pushFrameUpdate },
-        xdir:     { type: 'vector3', default: new THREE.Vector3(1,0,0), set: this.pushFrameUpdate },
-        ydir:     { type: 'vector3', default: new THREE.Vector3(0,1,0), set: this.pushFrameUpdate },
-        zdir:     { type: 'vector3', default: new THREE.Vector3(0,0,1), set: this.pushFrameUpdate },
-        rotation: { type: 'euler', default: new THREE.Euler(0,0,0), set: this.pushFrameUpdate },
+        color:    { type: 'color', default: this.defaultcolor, set: this.updateColor, comment: 'Object color' },
+        opacity:  { type: 'float', default: 1.0, set: this.updateOpacity, min: 0, max: 1, comment: 'Object translucency, from 0..1' },
+        alphatest:  { type: 'float', default: 0.05, set: this.updateAlphaTest, min: 0, max: 1 },
+        fwd:      { type: 'vector3', default: new THREE.Vector3(0,0,1), set: this.pushFrameUpdate, comment: 'Forward vector (zdir == fwd)' },
+        xdir:     { type: 'vector3', default: new THREE.Vector3(1,0,0), set: this.pushFrameUpdate, comment: 'Left vector' },
+        ydir:     { type: 'vector3', default: new THREE.Vector3(0,1,0), set: this.pushFrameUpdate, comment: 'Up vector' },
+        zdir:     { type: 'vector3', default: new THREE.Vector3(0,0,1), set: this.pushFrameUpdate, comment: 'Forward vector (zdir == fwd)' },
+        rotation: { type: 'euler', default: new THREE.Euler(0,0,0), set: this.pushFrameUpdate, comment: 'Object Euler rotation, in degrees' },
         rotation_order: { type: 'string', default: 'XYZ', set: this.pushFrameUpdate },
-        lighting: { type: 'boolean', default: true },
-        sync:     { type: 'boolean', default: false },
-        locked:   { type: 'boolean', default: false },
-        rotate_axis: { type: 'string', default: '0 1 0', set: this.updateRotationSpeed },
-        rotate_deg_per_sec: { type: 'float', default: 0, set: this.updateRotationSpeed },
+        lighting: { type: 'boolean', default: true, comment: 'Object reacts to scene lighting' },
+        sync:     { type: 'boolean', default: false, comment: 'Sync object changes over network' },
+        autosync: { type: 'boolean', default: false, comment: 'Automatically sync object changes over network every frame' },
+        locked:   { type: 'boolean', default: false, comment: 'Prevent users from editing this object and its descendents' },
+        rotate_axis: { type: 'string', default: '0 1 0', set: this.updateRotationSpeed, comment: 'Axis to rotate object on (see rotate_deg_per_sec)' },
+        rotate_deg_per_sec: { type: 'float', default: 0, set: this.updateRotationSpeed, comment: 'Speed to rotate at (see rotate_axis)' },
         object: { type: 'object' },
         layers: { type: 'string', set: this.setLayers },
         renderorder: { type: 'integer', default: 0 },

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 16:10:35 2024