Skip to content
8 changes: 0 additions & 8 deletions src/core/block-allocator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,20 @@ class MemBlock {
/**
* Position in the address space.
*
* @type {number}
* @private
*/
_offset = 0;

/**
* Size of this block.
*
* @type {number}
* @private
*/
_size = 0;

/**
* True if this is a free region, false if allocated.
*
* @type {boolean}
* @private
*/
_free = true;
Expand Down Expand Up @@ -67,7 +64,6 @@ class MemBlock {
/**
* Index of the size bucket this free block belongs to, or -1 if not in any bucket.
*
* @type {number}
* @private
*/
_bucket = -1;
Expand Down Expand Up @@ -139,31 +135,27 @@ class BlockAllocator {
/**
* Total address space.
*
* @type {number}
* @private
*/
_capacity = 0;

/**
* Sum of all allocated block sizes.
*
* @type {number}
* @private
*/
_usedSize = 0;

/**
* Sum of all free region sizes.
*
* @type {number}
* @private
*/
_freeSize = 0;

/**
* Number of free regions. Maintained O(1) for the fragmentation metric.
*
* @type {number}
* @private
*/
_freeRegionCount = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/core/event-handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class EventHandle {

/**
* True if event has been removed.
* @type {boolean}
*
* @private
*/
_removed = false;
Expand Down
2 changes: 0 additions & 2 deletions src/core/math/curve.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class Curve {
* Controls how {@link CURVE_SPLINE} tangents are calculated. Valid range is between 0 and 1
* where 0 results in a non-smooth curve (equivalent to linear interpolation) and 1 results in
* a very smooth curve. Use 0.5 for a Catmull-Rom spline.
*
* @type {number}
*/
tension = 0.5;

Expand Down
1 change: 0 additions & 1 deletion src/core/object-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class ObjectPool {
/**
* The number of object instances that are currently allocated.
*
* @type {number}
* @private
*/
_count = 0;
Expand Down
5 changes: 1 addition & 4 deletions src/core/ref-counted-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
* Base class that implements reference counting for objects.
*/
class RefCountedObject {
/**
* @type {number}
* @private
*/
/** @private */
_refCount = 0;

/**
Expand Down
10 changes: 2 additions & 8 deletions src/core/shape/bounding-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,10 @@ class BoundingBox {
*/
halfExtents = new Vec3(0.5, 0.5, 0.5);

/**
* @type {Vec3}
* @private
*/
/** @private */
_min = new Vec3();

/**
* @type {Vec3}
* @private
*/
/** @private */
_max = new Vec3();

/**
Expand Down
5 changes: 1 addition & 4 deletions src/core/shape/oriented-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ const tmpMat4 = new Mat4();
* @category Math
*/
class OrientedBox {
/**
* @type {Vec3}
* @private
*/
/** @private */
halfExtents = new Vec3(0.5, 0.5, 0.5);

/**
Expand Down
2 changes: 0 additions & 2 deletions src/core/shape/plane.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { Vec3 } from '../math/vec3.js';
class Plane {
/**
* The normal of the plane.
*
* @type {Vec3}
*/
normal = new Vec3();

Expand Down
4 changes: 0 additions & 4 deletions src/core/sorted-loop-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ class SortedLoopArray {

/**
* The number of elements in the array.
*
* @type {number}
*/
length = 0;

/**
* The current index used to loop through the array. This gets modified if we add or remove
* elements from the array while looping. See the example to see how to loop through this
* array.
*
* @type {number}
*/
loopIndex = -1;

Expand Down
4 changes: 1 addition & 3 deletions src/extras/exporters/gltf-exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ const textureSemantics = [
* @category Exporter
*/
class GltfExporter extends CoreExporter {
/**
* @ignore
*/
/** @ignore */
collectResources(root) {
const resources = {
buffers: [],
Expand Down
17 changes: 3 additions & 14 deletions src/extras/gizmo/gizmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,13 @@ class Gizmo extends EventHandler {
/**
* Internal version of the gizmo size. Defaults to 1.
*
* @type {number}
* @private
*/
_size = 1;

/**
* Internal version of the gizmo scale. Defaults to 1.
*
* @type {number}
* @protected
*/
_scale = 1;
Expand Down Expand Up @@ -224,7 +222,6 @@ class Gizmo extends EventHandler {
/**
* Internal flag to track if a render update is required.
*
* @type {boolean}
* @protected
*/
_renderUpdate = false;
Expand Down Expand Up @@ -252,8 +249,6 @@ class Gizmo extends EventHandler {

/**
* Flag to indicate whether to call `preventDefault` on pointer events.
*
* @type {boolean}
*/
preventDefault = true;

Expand Down Expand Up @@ -535,9 +530,7 @@ class Gizmo extends EventHandler {
this.fire(Gizmo.EVENT_POINTERUP, e.offsetX, e.offsetY, selection[0]);
}

/**
* @protected
*/
/** @protected */
_updatePosition() {
position.set(0, 0, 0);
if (this._coordSpace === 'local') {
Expand All @@ -560,9 +553,7 @@ class Gizmo extends EventHandler {
this._renderUpdate = true;
}

/**
* @protected
*/
/** @protected */
_updateRotation() {
rotation.set(0, 0, 0, 1);
if (this._coordSpace === 'local' && this.nodes.length !== 0) {
Expand All @@ -579,9 +570,7 @@ class Gizmo extends EventHandler {
this._renderUpdate = true;
}

/**
* @protected
*/
/** @protected */
_updateScale() {
if (this._camera.projection === PROJECTION_PERSPECTIVE) {
const gizmoPos = this.root.getLocalPosition();
Expand Down
9 changes: 2 additions & 7 deletions src/extras/gizmo/mesh-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ import { unlitShader } from './shaders.js';

const tmpV1 = new Vec3();

/**
* @ignore
*/
/** @ignore */
class MeshLine {
/**
* @type {number}
* @private
*/
/** @private */
_thickness = 0.02;

/**
Expand Down
30 changes: 6 additions & 24 deletions src/extras/gizmo/rotate-gizmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ class RotateGizmo extends TransformGizmo {
/**
* Internal selection starting angle in world space.
*
* @type {number}
* @private
*/
_selectionStartAngle = 0;
Expand Down Expand Up @@ -147,31 +146,27 @@ class RotateGizmo extends TransformGizmo {
/**
* Internal vector for storing the mouse position in screen space.
*
* @type {Vec2}
* @private
*/
_screenPos = new Vec2();

/**
* Internal vector for storing the mouse start position in screen space.
*
* @type {Vec2}
* @private
*/
_screenStartPos = new Vec2();

/**
* Internal vector for the start point of the guide line angle.
*
* @type {Vec3}
* @private
*/
_guideAngleStart = new Vec3();

/**
* Internal vector for the end point of the guide line angle.
*
* @type {Vec3}
* @private
*/
_guideAngleEnd = new Vec3();
Expand All @@ -187,14 +182,11 @@ class RotateGizmo extends TransformGizmo {
/**
* Internal copy of facing direction to avoid unnecessary updates.
*
* @type {Vec3}
* @private
*/
_facingDir = new Vec3();

/**
* @override
*/
/** @override */
snapIncrement = 5;

/**
Expand Down Expand Up @@ -467,9 +459,7 @@ class RotateGizmo extends TransformGizmo {
this._shapes.z[prop] = value;
}

/**
* @private
*/
/** @private */
_storeGuidePoints() {
const gizmoPos = this.root.getLocalPosition();
const axis = this._selectedAxis;
Expand Down Expand Up @@ -526,9 +516,7 @@ class RotateGizmo extends TransformGizmo {
}
}

/**
* @private
*/
/** @private */
_shapesLookAtCamera() {
// face shape
if (this._camera.projection === PROJECTION_PERSPECTIVE) {
Expand Down Expand Up @@ -599,9 +587,7 @@ class RotateGizmo extends TransformGizmo {
this._renderUpdate = true;
}

/**
* @private
*/
/** @private */
_storeNodeRotations() {
const gizmoPos = this.root.getLocalPosition();
for (let i = 0; i < this.nodes.length; i++) {
Expand Down Expand Up @@ -797,9 +783,7 @@ class RotateGizmo extends TransformGizmo {
}
}

/**
* @override
*/
/** @override */
prerender() {
super.prerender();

Expand All @@ -810,9 +794,7 @@ class RotateGizmo extends TransformGizmo {
this._shapesLookAtCamera();
}

/**
* @override
*/
/** @override */
destroy() {
this._guideAngleLines.forEach(line => line.destroy());

Expand Down
Loading