We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5304707 commit d944aadCopy full SHA for d944aad
packages/maker.js/src/core/measure.ts
@@ -491,7 +491,7 @@ namespace MakerJs.measure {
491
* @param atlas Optional atlas to save measurements.
492
* @returns object with low and high points.
493
*/
494
- export function modelExtents(modelToMeasure: IModel, atlas?: Atlas): IMeasureWithCenter {
+ export function modelExtents(modelToMeasure: IModel, atlas?: Atlas): IMeasureWithCenter | null {
495
496
function increaseParentModel(childRoute: string[], childMeasurement: IMeasure) {
497
@@ -537,7 +537,7 @@ namespace MakerJs.measure {
537
return augment(m);
538
}
539
540
- return m;
+ return null;
541
542
543
0 commit comments