import '../../../globals.js';
// Copyright 2019-2024, University of Colorado Boulder
/**
 * Represents a single sprite for the Sprites node, whose image can change over time (if it gets regenerated, etc.).
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */
import Property from '../../../axon/js/Property.js';
import { scenery } from '../imports.js';
export default class Sprite {
    constructor(spriteImage) {
        this.imageProperty = new Property(spriteImage);
    }
    /**
     * Returns a Shape that represents the hit-testable area of this Sprite.
     */
    getShape() {
        return this.imageProperty.value.getShape();
    }
    /**
     * Returns whether a given point is considered "inside" the Sprite
     */
    containsPoint(point) {
        return this.imageProperty.value.containsPoint(point);
    }
}
scenery.register('Sprite', Sprite);
//# sourceMappingURL=Sprite.js.map