mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Address some JSDoc issues identified by makitsune
This commit is contained in:
parent
c86ef990db
commit
34958ddb71
6 changed files with 7 additions and 5 deletions
|
@ -187,7 +187,7 @@ void AvatarBookmarks::updateAvatarEntities(const QVariantList &avatarEntities) {
|
|||
* @property {number} avatarScale - The target scale of the avatar.
|
||||
* @property {Array<Object<"properties",Entities.EntityProperties>>} [avatarEntites] - The avatar entities included with the
|
||||
* bookmark.
|
||||
* @property {MyAvatar.AttachmentData[]} [attachments] - The attachments included with the bookmark.
|
||||
* @property {AttachmentData[]} [attachments] - The attachments included with the bookmark.
|
||||
* <p class="important">Deprecated: Use avatar entities instead.
|
||||
*/
|
||||
|
||||
|
|
|
@ -1928,7 +1928,7 @@ public:
|
|||
* @param {boolean} isActive - <code>true</code> if flow simulation is enabled on the joint, <code>false</code> if it isn't.
|
||||
* @param {boolean} isCollidable - <code>true</code> to enable collisions in the flow simulation, <code>false</code> to
|
||||
* disable.
|
||||
* @param {Object<JointName, MyAvatar.FlowPhysicsOptions>} [physicsConfig>] - Physics configurations for particular entity
|
||||
* @param {Object<JointName, MyAvatar.FlowPhysicsOptions>} [physicsConfig] - Physics configurations for particular entity
|
||||
* and avatar joints.
|
||||
* @param {Object<JointName, MyAvatar.FlowCollisionsOptions>} [collisionsConfig] - Collision configurations for particular
|
||||
* entity and avatar joints.
|
||||
|
|
|
@ -167,7 +167,7 @@ public:
|
|||
* of the pointer, see {@link Pointers.getPointerProperties}.
|
||||
* @function Pointers.getPointerScriptParameters
|
||||
* @param {number} id - The ID of the pointer.
|
||||
* @returns {Pointers.RayPointerProperties|Picks.ParabolaPointerProperties|Picks.StylusPointerProperties}
|
||||
* @returns {Pointers.RayPointerProperties|Pointers.ParabolaPointerProperties|Pointers.StylusPointerProperties}
|
||||
* Script-provided properties, per the pointer <code>type</code>.
|
||||
*/
|
||||
Q_INVOKABLE QVariantMap getPointerScriptParameters(unsigned int uid) const;
|
||||
|
|
|
@ -1174,7 +1174,7 @@ public:
|
|||
/**jsdoc
|
||||
* @function Avatar.updateAvatarEntity
|
||||
* @param {Uuid} entityID - The entity ID.
|
||||
* @param {Array.<byte>} entityData - Entity data.
|
||||
* @param {ArrayBuffer} entityData - Entity data.
|
||||
* @deprecated This function is deprecated and will be removed.
|
||||
*/
|
||||
Q_INVOKABLE virtual void updateAvatarEntity(const QUuid& entityID, const QByteArray& entityData);
|
||||
|
@ -1964,6 +1964,7 @@ Q_DECLARE_METATYPE(RayToAvatarIntersectionResult)
|
|||
QScriptValue RayToAvatarIntersectionResultToScriptValue(QScriptEngine* engine, const RayToAvatarIntersectionResult& results);
|
||||
void RayToAvatarIntersectionResultFromScriptValue(const QScriptValue& object, RayToAvatarIntersectionResult& results);
|
||||
|
||||
// No JSDoc because it's not provided as a type to the script engine.
|
||||
class ParabolaToAvatarIntersectionResult {
|
||||
public:
|
||||
bool intersects { false };
|
||||
|
|
|
@ -282,7 +282,7 @@ namespace controller {
|
|||
* Enables or disables a controller mapping. When enabled, the routes in the mapping have effect.
|
||||
* @function Controller.enableMapping
|
||||
* @param {string} mappingName - The name of the mapping.
|
||||
* @param {boolean} [[enable=true] - If <code>true</code> then the mapping is enabled, otherwise it is disabled.
|
||||
* @param {boolean} [enable=true] - If <code>true</code> then the mapping is enabled, otherwise it is disabled.
|
||||
*/
|
||||
Q_INVOKABLE void enableMapping(const QString& mappingName, bool enable = true);
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ public:
|
|||
// Used by the avatar mixer to describe a single joint
|
||||
// Translations relative to their parent joint
|
||||
// Rotations are absolute (i.e. not relative to parent) and are in rig space.
|
||||
// No JSDoc because its not provided as a type to the script engine.
|
||||
class JointData {
|
||||
public:
|
||||
glm::quat rotation;
|
||||
|
|
Loading…
Reference in a new issue