import '../../../globals.js';
// Copyright 2024, University of Colorado Boulder
/**
 * A property that is true when the node appears on the given display. See DisplayedTrailsProperty for additional options
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */
import { DerivedProperty1 } from '../../../axon/js/DerivedProperty.js';
import { DisplayedTrailsProperty, scenery } from '../imports.js';
class DisplayedProperty extends DerivedProperty1 {
    constructor(node, options) {
        const displayedTrailsProperty = new DisplayedTrailsProperty(node, options);
        super([displayedTrailsProperty], trails => trails.length > 0, options);
        this.displayedTrailsProperty = displayedTrailsProperty;
    }
    dispose() {
        this.displayedTrailsProperty.dispose();
        super.dispose();
    }
}
scenery.register('DisplayedProperty', DisplayedProperty);
export default DisplayedProperty;
//# sourceMappingURL=DisplayedProperty.js.map