onWindowResize method

dynamic onWindowResize()

Implementation

onWindowResize() {
  var scale =
      (this._gizmos.scale.x + this._gizmos.scale.y + this._gizmos.scale.z) /
          3;
  this._tbRadius = this.calculateTbRadius(this.camera);

  var newRadius = this._tbRadius / scale;
  var curve = new EllipseCurve(0, 0, newRadius, newRadius);
  var points = curve.getPoints(this._curvePts);
  var curveGeometry = new BufferGeometry().setFromPoints(points);

  for (var gizmo in this._gizmos.children) {
    // this._gizmos.children[ gizmo ].geometry = curveGeometry;
    gizmo.geometry = curveGeometry;
  }

  this.dispatchEvent(_changeEvent);
}