Skip to content

Commit

Permalink
format bindings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cartesian-theatrics committed Jul 4, 2023
1 parent 53c1f4b commit e59a9d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bindings/wasm/bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ Module.setup = function() {
return (center ? man.translate([0., 0., -height / 2.]) : man);
};

Module.CrossSection.prototype.revolve = function(circularSegments = 0, revolveDegrees = 360.0) {
Module.CrossSection.prototype.revolve = function(
circularSegments = 0, revolveDegrees = 360.0) {
return Module._Revolve(this, circularSegments, revolveDegrees);
};

Expand Down Expand Up @@ -555,7 +556,8 @@ Module.setup = function() {
return cs.extrude(height, nDivisions, twistDegrees, scaleTop, center);
};

Module.Manifold.revolve = function(polygons, circularSegments = 0, revolveDegrees = 360.0) {
Module.Manifold.revolve = function(
polygons, circularSegments = 0, revolveDegrees = 360.0) {
const cs = (polygons instanceof CrossSectionCtor) ?
polygons :
Module.CrossSection(polygons, 'Positive');
Expand Down

0 comments on commit e59a9d1

Please sign in to comment.