import '../../../../globals.js';
// Copyright 2022-2024, University of Colorado Boulder
/**
 * An internal representation of a row/column for grid/flow handling in constraints (set up for pooling)
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */
import { scenery } from '../../imports.js';
export default class LayoutLine {
    initializeLayoutLine() {
        this.min = 0;
        this.max = Number.POSITIVE_INFINITY;
        this.minOrigin = Number.POSITIVE_INFINITY;
        this.maxOrigin = Number.NEGATIVE_INFINITY;
        this.size = 0;
        this.position = 0;
    }
    /**
     * Whether there was origin-based content in the layout
     * (scenery-internal)
     */
    hasOrigin() {
        return isFinite(this.minOrigin) && isFinite(this.maxOrigin);
    }
}
scenery.register('LayoutLine', LayoutLine);
//# sourceMappingURL=LayoutLine.js.map